rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.setWindowTitle('Untitle.xml')
self.setWindowTitle('Untitled.xml')
def __init__(self, parent=None): """ QVistrailItem(parent: QWidget) -> QVistrailItem Make it a main window with dockable area """ QDockContainer.__init__(self, parent) # The window title is the name of the vistrail file self.setWindowTitle('Untitle.xml')
c8835805f75b995ec74015628c695a57650f91e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/c8835805f75b995ec74015628c695a57650f91e1/vistrail_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 4672, 3536, 2238, 3282, 15565, 1180, 12, 2938, 30, 2238, 4609, 13, 317, 2238, 3282, 15565, 1180, 4344, 518, 279, 2774, 2742, 598, 5822, 429,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 33, 7036, 4672, 3536, 2238, 3282, 15565, 1180, 12, 2938, 30, 2238, 4609, 13, 317, 2238, 3282, 15565, 1180, 4344, 518, 279, 2774, 2742, 598, 5822, 429,...
old_verbose = support.verbose
def test_main(verbose=False): if skip_expected: raise unittest.SkipTest("No SSL support") if support.verbose: plats = { 'Linux': platform.linux_distribution, 'Mac': platform.mac_ver, 'Windows': platform.win32_ver, } for name, func in plats.items(): plat = func() if plat and plat[0]: plat = '%s %r' % (name, plat) break...
0e12df3cc85da916bb2c181f6c629ed6c478d978 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/0e12df3cc85da916bb2c181f6c629ed6c478d978/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 12, 11369, 33, 8381, 4672, 309, 2488, 67, 3825, 30, 1002, 2836, 3813, 18, 6368, 4709, 2932, 2279, 7419, 2865, 7923, 225, 309, 2865, 18, 11369, 30, 886, 2323, 273, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 12, 11369, 33, 8381, 4672, 309, 2488, 67, 3825, 30, 1002, 2836, 3813, 18, 6368, 4709, 2932, 2279, 7419, 2865, 7923, 225, 309, 2865, 18, 11369, 30, 886, 2323, 273, 288, ...
result = "%s (%s)" % (code, territory) else: result = self.languages.get(term.value, term.title) if result.startswith(term.value[:2]): return term.title
result = "%s (%s)" % (result, territory) else: result = self.languages.get(term.value, None) if result is None or result == term.value: return term.title
def textForValue(self, term): """Extract a string from the `term`.
2185cf3f799c57f1930fb83add59248bcdc06d80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12189/2185cf3f799c57f1930fb83add59248bcdc06d80/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 1290, 620, 12, 2890, 16, 2481, 4672, 3536, 4976, 279, 533, 628, 326, 1375, 6408, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 1290, 620, 12, 2890, 16, 2481, 4672, 3536, 4976, 279, 533, 628, 326, 1375, 6408, 8338, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
changeset = os.popen(COMMAND_CHANGESET).read().replace('changeset:', '').strip().replace(':', '_')
changeset = os.popen(COMMAND_CHANGESET).readlines()[0].replace('changeset:', '').strip().replace(':', '_')
def main(): argv = sys.argv[1:] if argv[0]=='-d': debug = True del argv[0] else: debug = False changeset = os.popen(COMMAND_CHANGESET).read().replace('changeset:', '').strip().replace(':', '_') output_name = os.tmpnam() arg = ' '.join(argv) + ' &> %s' % output_name print arg returncode = os.system(arg)>>8 print arg, 'f...
7377d1f85e36de795ed9c7cbdb48f41ba42289e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/7377d1f85e36de795ed9c7cbdb48f41ba42289e3/record_results.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 5261, 273, 2589, 18, 19485, 63, 21, 26894, 309, 5261, 63, 20, 65, 18920, 17, 72, 4278, 1198, 273, 1053, 1464, 5261, 63, 20, 65, 469, 30, 1198, 273, 1083, 22463, 273, 1140,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 5261, 273, 2589, 18, 19485, 63, 21, 26894, 309, 5261, 63, 20, 65, 18920, 17, 72, 4278, 1198, 273, 1053, 1464, 5261, 63, 20, 65, 469, 30, 1198, 273, 1083, 22463, 273, 1140,...
if scope.get(SKIP_VAR_NAME): if VERBOSE: print " Deps file specifies skipping this directory." return None
def FromImpl(unused): pass # NOP function so "From" doesn't fail.
f3bb0346579cd4eb431c45e43041e139876015e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/f3bb0346579cd4eb431c45e43041e139876015e8/checkdeps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6338, 2828, 12, 14375, 4672, 1342, 225, 468, 423, 3665, 445, 1427, 315, 1265, 6, 3302, 1404, 2321, 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, 6338, 2828, 12, 14375, 4672, 1342, 225, 468, 423, 3665, 445, 1427, 315, 1265, 6, 3302, 1404, 2321, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
import sys
def make_thread(f, arg): try: f(arg) except KeyboardInterrupt, SystemExit: on_exit() except KeyError: # Client finished while we were trying to help it, oh well print "Lost client" pass except: import sys x = sys.exc_info() print "Unhandled exception in ",f,": ",x[0]," line",x[2].tb_lineno,x[1]
70d16121d30ba988d5b58d360835248a53501bdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/70d16121d30ba988d5b58d360835248a53501bdd/sumiserv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5930, 12, 74, 16, 1501, 4672, 775, 30, 284, 12, 3175, 13, 1335, 19424, 16, 25454, 30, 603, 67, 8593, 1435, 1335, 4999, 30, 468, 2445, 6708, 1323, 732, 4591, 8374, 358, 2809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5930, 12, 74, 16, 1501, 4672, 775, 30, 284, 12, 3175, 13, 1335, 19424, 16, 25454, 30, 603, 67, 8593, 1435, 1335, 4999, 30, 468, 2445, 6708, 1323, 732, 4591, 8374, 358, 2809, ...
print self.workflow_history return self.workflow_history[IssueWorkflowName]
return self.workflow_history[self.collector_workflow]
def getWorkflowHistory(self): """ return the workflow history """ print self.workflow_history return self.workflow_history[IssueWorkflowName]
47f17620cb10cc2823c41b8a0806f3bbab12642d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/47f17620cb10cc2823c41b8a0806f3bbab12642d/Issue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30995, 5623, 12, 2890, 4672, 3536, 327, 326, 6095, 4927, 3536, 1172, 365, 18, 13815, 67, 8189, 327, 365, 18, 13815, 67, 8189, 63, 12956, 8484, 461, 65, 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, 0, 0, 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, 30995, 5623, 12, 2890, 4672, 3536, 327, 326, 6095, 4927, 3536, 1172, 365, 18, 13815, 67, 8189, 327, 365, 18, 13815, 67, 8189, 63, 12956, 8484, 461, 65, 2, -100, -100, -100, -100, -100, ...
dodiff(sys.stdout, ui, repo, node1, node2, files=files)
patch.diff(repo, node1, node2, files=files, opts=patch.diffopts(ui, {'git': True}))
def __difftree(repo, node1, node2, files=[]): if node2: change = repo.changelog.read(node2) mmap2 = repo.manifest.read(change[0]) status = repo.status(node1, node2, files=files)[:5] modified, added, removed, deleted, unknown = status else: status = repo.status(node1, files=files)[:5] modified, added, removed, deleted, ...
8c3dae37329d23b259d2a56c63de22db96e5c065 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/8c3dae37329d23b259d2a56c63de22db96e5c065/hgk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11593, 1222, 992, 12, 7422, 16, 756, 21, 16, 756, 22, 16, 1390, 33, 8526, 4672, 309, 756, 22, 30, 2549, 273, 3538, 18, 24083, 12970, 18, 896, 12, 2159, 22, 13, 30749, 22, 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, 11593, 1222, 992, 12, 7422, 16, 756, 21, 16, 756, 22, 16, 1390, 33, 8526, 4672, 309, 756, 22, 30, 2549, 273, 3538, 18, 24083, 12970, 18, 896, 12, 2159, 22, 13, 30749, 22, 273, ...
'datas_fname': attach,
'datas_fname': str(attach)[:64],
def msg_new(self, msg): message = self.msg_body_get(msg) data = { 'name': self._decode_header(msg['Subject']), 'section_id': self.section_id, 'email_from': self._decode_header(msg['From']), 'email_cc': self._decode_header(msg['Cc'] or ''), 'canal_id': self.canal_id, 'user_id': False, 'history_line': [(0, 0, {'descripti...
48ccd4e9897657b356f82c8cbff9b13e2ca2e8ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/48ccd4e9897657b356f82c8cbff9b13e2ca2e8ba/tinyerp-mailgate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1234, 67, 2704, 12, 2890, 16, 1234, 4672, 883, 273, 365, 18, 3576, 67, 3432, 67, 588, 12, 3576, 13, 501, 273, 288, 296, 529, 4278, 365, 6315, 3922, 67, 3374, 12, 3576, 3292, 6638, 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, 1234, 67, 2704, 12, 2890, 16, 1234, 4672, 883, 273, 365, 18, 3576, 67, 3432, 67, 588, 12, 3576, 13, 501, 273, 288, 296, 529, 4278, 365, 6315, 3922, 67, 3374, 12, 3576, 3292, 6638, 35...
quiz_pool = []
def on_tag_generator(self, word_pair): # TODO pass
61137565b77646b22933df89beeaf478431bb2b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2313/61137565b77646b22933df89beeaf478431bb2b9/quizdrill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 2692, 67, 8812, 12, 2890, 16, 2076, 67, 6017, 4672, 468, 2660, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 603, 67, 2692, 67, 8812, 12, 2890, 16, 2076, 67, 6017, 4672, 468, 2660, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
for result in factures.values():
for result in invoices.values():
def make_invoice(order, lines): a = order.partner_id.property_account_receivable.id inv = { 'name': order.name, 'origin': 'SO:'+str(order.id)+':'+order.name, 'reference': "P%dSO%d" % (order.partner_id.id, order.id), 'account_id': a, 'partner_id': order.partner_id.id, 'address_invoice_id': order.partner_invoice_id.id, '...
7c29408aea7da1f1f8c3ba73971aa90f18ca4a6c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/7c29408aea7da1f1f8c3ba73971aa90f18ca4a6c/wizard_sale_line_invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16119, 12, 1019, 16, 2362, 4672, 279, 273, 1353, 18, 31993, 67, 350, 18, 4468, 67, 4631, 67, 8606, 427, 429, 18, 350, 2198, 273, 288, 296, 529, 4278, 1353, 18, 529, 16, 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, 1221, 67, 16119, 12, 1019, 16, 2362, 4672, 279, 273, 1353, 18, 31993, 67, 350, 18, 4468, 67, 4631, 67, 8606, 427, 429, 18, 350, 2198, 273, 288, 296, 529, 4278, 1353, 18, 529, 16, 296...
print "Connection refused when connecting to", ADDR
error_msg('was refused')
def test_timeout(): test_support.requires('network') if test_support.verbose: print "test_timeout ..." # A service which issues a welcome banner (without need to write # anything). # XXX ("gmail.org", 995) has been unreliable so far, from time to time # XXX non-responsive for hours on end (& across all buildbot slave...
b4b9bd3bb3e6dca2ed6e3d2f2a78751950aa5191 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b4b9bd3bb3e6dca2ed6e3d2f2a78751950aa5191/test_socket_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4538, 13332, 1842, 67, 13261, 18, 18942, 2668, 5185, 6134, 225, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 315, 3813, 67, 4538, 18483, 225, 468, 432, 1156, 1492, 8296, 279, 283...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4538, 13332, 1842, 67, 13261, 18, 18942, 2668, 5185, 6134, 225, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 315, 3813, 67, 4538, 18483, 225, 468, 432, 1156, 1492, 8296, 279, 283...
def getTextOfPage(root, page, args=None):
def getTextOfPage(root, page, args=None, return_request=False):
def getTextOfPage(root, page, args=None): """This perpetrates several awful hacks.""" r = testutil.FakeRequest(args=args) r.postpath = [page] ctx = context.RequestContext(tag=r) pageContext = deferredResult(appserver.NevowSite(root).getPageContextForRequestContext, ctx) while 1: html = deferredResult(pageContext.tag.re...
5c0eb8349cc510866672b3c2b775f62813d25257 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/5c0eb8349cc510866672b3c2b775f62813d25257/test_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6701, 951, 1964, 12, 3085, 16, 1363, 16, 833, 33, 7036, 16, 327, 67, 2293, 33, 8381, 4672, 3536, 2503, 1534, 6951, 24285, 11392, 1690, 2706, 11769, 87, 12123, 436, 273, 1842, 1367, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6701, 951, 1964, 12, 3085, 16, 1363, 16, 833, 33, 7036, 16, 327, 67, 2293, 33, 8381, 4672, 3536, 2503, 1534, 6951, 24285, 11392, 1690, 2706, 11769, 87, 12123, 436, 273, 1842, 1367, 18, ...
previous_completion = self.completions[cursel - 1] while cursel > 0 and selstart[:i] <= previous_completion: i += 1 if selstart == previous_completion: break
def _selection_changed(self): """Should be called when the selection of the Listbox has changed. Updates the Listbox display and calls _change_start.""" cursel = int(self.listbox.curselection()[0])
4caee3e62f43c46b049bd7e1bacc6e03cf1f633f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/4caee3e62f43c46b049bd7e1bacc6e03cf1f633f/AutoCompleteWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10705, 67, 6703, 12, 2890, 4672, 3536, 14309, 506, 2566, 1347, 326, 4421, 434, 326, 987, 2147, 711, 3550, 18, 15419, 326, 987, 2147, 2562, 471, 4097, 389, 3427, 67, 1937, 12123, 662...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 10705, 67, 6703, 12, 2890, 4672, 3536, 14309, 506, 2566, 1347, 326, 4421, 434, 326, 987, 2147, 711, 3550, 18, 15419, 326, 987, 2147, 2562, 471, 4097, 389, 3427, 67, 1937, 12123, 662...
wikipedia.output("uploading text from %s to %s" % (djvu, index_page) )
wikipedia.output(u"uploading text from %s to %s" % (djvu, index_page) )
def main(): import os index = None djvu = None pages = None # what would have been changed. debug = False ask = False # Parse command line arguments for arg in wikipedia.handleArgs(): if arg.startswith("-debug"): debug = True elif arg.startswith("-ask"): ask = True elif arg.startswith("-djvu:"): djvu = arg[6:] elif ar...
3afdf05014bc0d0886e3c33c045186aeef34f676 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/3afdf05014bc0d0886e3c33c045186aeef34f676/djvutext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 1140, 770, 273, 599, 19754, 90, 89, 273, 599, 4689, 273, 599, 468, 4121, 4102, 1240, 2118, 3550, 18, 1198, 273, 1083, 6827, 273, 1083, 225, 468, 2884, 1296, 980, 1775,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1930, 1140, 770, 273, 599, 19754, 90, 89, 273, 599, 4689, 273, 599, 468, 4121, 4102, 1240, 2118, 3550, 18, 1198, 273, 1083, 6827, 273, 1083, 225, 468, 2884, 1296, 980, 1775,...
self.molecularDispToolbar.setGeometry(QRect(587,0,183,29))
self.molecularDispToolbar.setGeometry(QRect(602,0,188,29))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
2bdc60455ab85cd2792604c15ae9034d3632b0df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/2bdc60455ab85cd2792604c15ae9034d3632b0df/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
<widget source="global.CurrentTime" render="Label" position="56,46" size="82,18" font="Regular;16" >
<widget source="global.CurrentTime" render="Label" position="62,46" size="82,18" font="Regular;16" >
def downloadCuesheet(self): cue = self.__getCuesheet()
fb1e03cf013bb255146c445e5f2c748bab21b6d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/fb1e03cf013bb255146c445e5f2c748bab21b6d8/InfoBarGenerics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 39, 3610, 2963, 12, 2890, 4672, 276, 344, 273, 365, 16186, 588, 39, 3610, 2963, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 39, 3610, 2963, 12, 2890, 4672, 276, 344, 273, 365, 16186, 588, 39, 3610, 2963, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _setupOther(self): otherfilepath = os.path.join(self.conf.outputdir, self.conf.tempdir, self.conf.otherfile) fo = _gzipOpen(otherfilepath, 'w') fo.write('<?xml version="1.0" encoding="UTF-8"?>\n') fo.write('<otherdata xmlns="http://linux.duke.edu/metadata/other" packages="%s">' % self.pkgcount) return fo
def _setupFilelists(self): # setup the filelist file filelistpath = os.path.join(self.conf.outputdir, self.conf.tempdir, self.conf.filelistsfile) fo = _gzipOpen(filelistpath, 'w') fo.write('<?xml version="1.0" encoding="UTF-8"?>\n') fo.write('<filelists xmlns="http://linux.duke.edu/metadata/filelists" packages="%s">' %...
473cb91d36b5c88e3a55fa60404eb172a1c6e32b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9557/473cb91d36b5c88e3a55fa60404eb172a1c6e32b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 25579, 292, 1486, 12, 2890, 4672, 468, 3875, 326, 26204, 585, 26204, 803, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 2844, 1214, 16, 365, 18, 3923, 18, 5814, 1214...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8401, 25579, 292, 1486, 12, 2890, 4672, 468, 3875, 326, 26204, 585, 26204, 803, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 3923, 18, 2844, 1214, 16, 365, 18, 3923, 18, 5814, 1214...
check(x, size(h + '3P2P') + (8+16)*size('P2P'))
check(x, size(h + '3P2P' + 8*'P2P') + 16*size('P2P'))
def method(): pass
815d7811a04a5d89e83d103e3d61fc11e5ac1006 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/815d7811a04a5d89e83d103e3d61fc11e5ac1006/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 707, 13332, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def pixelMapData(geomap, scale = 1.0, offset = Vector2(0, 0), skipEverySecond = False): """pixelMapData(geomap, scale = 1.0, offset = Vector2(0, 0), skipEverySecond = False) Extracts node positions and edge geometry from a GeoMap object. For nodes, this function simply calculates their center of mass. All positions ar...
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0), imageSize = None, skipEverySecond = False, midCracks = False): """Extract node positions and edge geometry from a cellimage.GeoMap object and returns a new subpixel-GeoMap object initialized with it. For nodes, this function simply uses the center ...
def pixelMapData(geomap, scale = 1.0, offset = Vector2(0, 0), skipEverySecond = False): """pixelMapData(geomap, scale = 1.0, offset = Vector2(0, 0), skipEverySecond = False) Extracts node positions and edge geometry from a GeoMap object. For nodes, this function simply calculates their center of mass. All positions ar...
678ec87b36196e8d7d73df770b7ddd31e4956f10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/678ec87b36196e8d7d73df770b7ddd31e4956f10/pixelmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4957, 863, 22, 1717, 9037, 863, 12, 10049, 438, 16, 3159, 273, 404, 18, 20, 16, 1384, 273, 5589, 22, 12, 20, 16, 374, 3631, 29344, 273, 599, 16, 2488, 21465, 8211, 273, 1083, 16, 750...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4957, 863, 22, 1717, 9037, 863, 12, 10049, 438, 16, 3159, 273, 404, 18, 20, 16, 1384, 273, 5589, 22, 12, 20, 16, 374, 3631, 29344, 273, 599, 16, 2488, 21465, 8211, 273, 1083, 16, 750...
total -= 1 if not total: return
if total is not None: total -= 1 if not total: return
def subcategories(self, recurse=False, step=None, total=None): """Iterate all subcategories of the current category.
9471492866d6d0301fe790f0fcad50849e57c42e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9005/9471492866d6d0301fe790f0fcad50849e57c42e/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 720, 8995, 12, 2890, 16, 11502, 33, 8381, 16, 2235, 33, 7036, 16, 2078, 33, 7036, 4672, 3536, 14916, 777, 720, 8995, 434, 326, 783, 3150, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 720, 8995, 12, 2890, 16, 11502, 33, 8381, 16, 2235, 33, 7036, 16, 2078, 33, 7036, 4672, 3536, 14916, 777, 720, 8995, 434, 326, 783, 3150, 18, 2, -100, -100, -100, -100, -100, -100, -10...
self.__translators.append(Translator(sName, sMail, bIsMaintainer))
self._translators.append(Translator(sName, sMail, bIsMaintainer))
def __init__(self, filepath, template): self.__filepath = filepath self.__template = template self.__count = 0 self.__translated = 0 self.__untranslated = 0 self.__fuzzy = 0 self.__porevisiondate = '' self.__potcreationdate = '' self.__translators = [] if os.access(filepath, os.R_OK): #If PO(T) file can read... reMsgI...
e85ef62312df51ac83b838d96a1b779626f60785 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5344/e85ef62312df51ac83b838d96a1b779626f60785/GetTranslationsStatus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3608, 16, 1542, 4672, 365, 16186, 10561, 273, 3608, 365, 16186, 3202, 273, 1542, 365, 16186, 1883, 273, 374, 365, 16186, 22899, 273, 374, 365, 16186, 318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3608, 16, 1542, 4672, 365, 16186, 10561, 273, 3608, 365, 16186, 3202, 273, 1542, 365, 16186, 1883, 273, 374, 365, 16186, 22899, 273, 374, 365, 16186, 318, ...
for filename in files: links += process_Request(post_test_result(results_server, results_link, filename)) os.remove(filename)
for data_string in result_strings: RETRIES = 5 wait_time = 5 times = 0 msg = "" while (times < RETRIES): try: utils.stamped_msg("Transmitting test: " + testname, "Started") links += process_Request(post_file.post_multipart(results_server, results_link, [("key", "value")], [("filename", "data_string", data_string)])) b...
def send_to_graph(results_server, results_link, machine, date, browser_config, results): links = '' files = [] #construct all the files of data, one file per test and one file per counter for testname in results: vals = [] fullname = testname browser_dump, counter_dump = results[testname] utils.debug("Working with tes...
45d391516c431f01a640eba7975c0f2c6a73ac4c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12156/45d391516c431f01a640eba7975c0f2c6a73ac4c/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 5228, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 4716, 273, 875, 1390, 273, 5378, 225, 468, 10062, 777, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 869, 67, 4660, 12, 4717, 67, 3567, 16, 1686, 67, 1232, 16, 5228, 16, 1509, 16, 4748, 67, 1425, 16, 1686, 4672, 4716, 273, 875, 1390, 273, 5378, 225, 468, 10062, 777, 326, 1...
self.assertRaises(CifFile.CifError,CifFile.merge_dic,[self.offdic,self.adic],mergemode="strict")
self.assertRaises(StarFile.StarError,CifFile.merge_dic,[self.offdic,self.adic],mergemode="strict")
def testAStrict(self): self.assertRaises(CifFile.CifError,CifFile.merge_dic,[self.offdic,self.adic],mergemode="strict")
a65d099e46f5afda94b5df0a69c7bb8d7605c42c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3057/a65d099e46f5afda94b5df0a69c7bb8d7605c42c/TestPyCifRW.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 37, 14809, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 18379, 812, 18, 18379, 668, 16, 39, 430, 812, 18, 2702, 67, 15859, 16, 63, 2890, 18, 3674, 15859, 16, 2890, 18, 20333,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 37, 14809, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 18379, 812, 18, 18379, 668, 16, 39, 430, 812, 18, 2702, 67, 15859, 16, 63, 2890, 18, 3674, 15859, 16, 2890, 18, 20333,...
gLogger.exception(errStr,requestName,lException=x) return S_ERROR(errStr) def __getRequestString(self,requestName):
gLogger.exception( errStr, requestName, lException = x ) return S_ERROR( errStr ) def __getRequestString( self, requestName ):
def __locateRequest(self,requestName,assigned=False): """ Locate the sub requests associated with a requestName """ gLogger.info("RequestDBFile.__locateRequest: Attempting to locate %s." % requestName) requestTypes = os.listdir(self.root) subRequests = [] try: for requestType in requestTypes: reqDir = "%s/%s" % (self.r...
457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 25450, 691, 12, 2890, 16, 2293, 461, 16, 15938, 33, 8381, 4672, 3536, 2851, 340, 326, 720, 3285, 3627, 598, 279, 590, 461, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25450, 691, 12, 2890, 16, 2293, 461, 16, 15938, 33, 8381, 4672, 3536, 2851, 340, 326, 720, 3285, 3627, 598, 279, 590, 461, 3536, 314, 3328, 18, 1376, 2932, 691, 2290, 812, 16186, ...
results += cr.fetchall()
results2 = cr.fetchall()
def _product_get_multi_location(self, cr, uid, ids, product_ids=False, context={}, states=['done'], what=('in', 'out')): states_str = ','.join(map(lambda s: "'%s'" % s, states)) if not product_ids: product_ids = self.pool.get('product.product').search(cr, uid, []) res = {} for id in product_ids: res[id] = 0.0 if not id...
63d43bbc9e5fa6c4aa76ab6f5b6b40e295fd7231 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/63d43bbc9e5fa6c4aa76ab6f5b6b40e295fd7231/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5896, 67, 588, 67, 7027, 67, 3562, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 2232, 33, 8381, 16, 819, 28793, 5493, 33, 3292, 8734, 17337, 4121, 33, 2668, 267, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5896, 67, 588, 67, 7027, 67, 3562, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 2232, 33, 8381, 16, 819, 28793, 5493, 33, 3292, 8734, 17337, 4121, 33, 2668, 267, 2187, ...
xia2doc.addTOC() twinning = str(xia2['twinning'][0]) try: asu_and_solvent = str(xia2['asu_and_solvent'][0]) except IndexError: asu_and_solvent = "No information on ASU contents" overview = xia2doc.addSection("Overview")
table_one.addRow(['',Canary.Link("More crystallographic parameters..", overview)])
def get_relative_path(filename): """Attempt to get the path relative to cwd If 'filename' refers to a file or directory below the current working directory (cwd) then this function returns the relative path to cwd. Otherwise it returns 'filename'.""" pwd = os.getcwd() common_prefix = os.path.commonprefix([pwd,filename...
e1340f1bff904e82fb6a1fdf58de2ed7622eee81 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3290/e1340f1bff904e82fb6a1fdf58de2ed7622eee81/Xia2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11626, 67, 803, 12, 3459, 4672, 3536, 7744, 358, 336, 326, 589, 3632, 358, 7239, 225, 971, 296, 3459, 11, 21368, 358, 279, 585, 578, 1867, 5712, 326, 783, 5960, 1867, 261, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11626, 67, 803, 12, 3459, 4672, 3536, 7744, 358, 336, 326, 589, 3632, 358, 7239, 225, 971, 296, 3459, 11, 21368, 358, 279, 585, 578, 1867, 5712, 326, 783, 5960, 1867, 261, 110...
def randompage(self):
def randompage(self, redirect = False):
def randompage(self): if config.use_api and self.versionnumber() >= 12: params = { 'action': 'query', 'list': 'random', #'rnnamespace': '0', 'rnlimit': '1', #'': '', } data = query.GetData(params, self) return Page(self, data['query']['random'][0]['title']) else: """Yield random page via Special:Random""" html = self.g...
d5499d880622cba09dbd5cfa71503029ad2e2fcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/d5499d880622cba09dbd5cfa71503029ad2e2fcf/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 2433, 12, 2890, 16, 3136, 273, 1083, 4672, 309, 642, 18, 1202, 67, 2425, 471, 365, 18, 1589, 2696, 1435, 1545, 2593, 30, 859, 273, 288, 296, 1128, 4278, 296, 2271, 2187, 296, 109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 2433, 12, 2890, 16, 3136, 273, 1083, 4672, 309, 642, 18, 1202, 67, 2425, 471, 365, 18, 1589, 2696, 1435, 1545, 2593, 30, 859, 273, 288, 296, 1128, 4278, 296, 2271, 2187, 296, 109...
uri = self.filename_to_uri(results_filename)
uri = self.get_absolute_path(results_filename)
def show_results_html_file(self, results_filename): uri = self.filename_to_uri(results_filename) if self._options.use_drt: # FIXME: This should use User.open_url webbrowser.open(uri, new=1) else: # Note: Not thread safe: http://bugs.python.org/issue2320 subprocess.Popen([self._path_to_driver(), uri])
71edf0d8430f86c2e4d7a436b5daf82222003208 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/71edf0d8430f86c2e4d7a436b5daf82222003208/chromium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 4717, 67, 2620, 67, 768, 12, 2890, 16, 1686, 67, 3459, 4672, 2003, 273, 365, 18, 588, 67, 12547, 67, 803, 12, 4717, 67, 3459, 13, 309, 365, 6315, 2116, 18, 1202, 67, 3069, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4717, 67, 2620, 67, 768, 12, 2890, 16, 1686, 67, 3459, 4672, 2003, 273, 365, 18, 588, 67, 12547, 67, 803, 12, 4717, 67, 3459, 13, 309, 365, 6315, 2116, 18, 1202, 67, 3069, ...
match = external_expr.search(line) if match: branch = match.group(1) external = urllib.unquote(match.group(2).replace("%0A", " ").strip("%20 ")).split() revision_expr = re.compile(r"-r(\d*)") i = 0 while i < len(external): match = revision_expr.search(external[i+1]) if match: externals[external[i]] = (external[i+2], m...
m = external_expr.search(line) if m: match = m rev_match = rev_expr.search(line) if self.revision and rev_match: if rev_match.group(1) > self.revision: break if match: branch = match.group(1) external = urllib.unquote(match.group(2).replace("%0A", " ").strip("%20 ")).split() revision_expr = re.compile(r"-r(\d*)") i =...
def _get_externals(self, buildscript, branch="git-svn"): cwd = self.get_checkoutdir() unhandledFile = open(cwd + os.path.join(os.sep, '.git', 'svn', branch, 'unhandled.log'), 'r') external_expr = re.compile(r"\+dir_prop: (.*?) svn:externals (.*)$") externals = {} for line in unhandledFile: match = external_expr.search(...
41569c1b43158c8ea184d3dd6cd090a7fdc767fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4596/41569c1b43158c8ea184d3dd6cd090a7fdc767fb/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 338, 798, 1031, 12, 2890, 16, 1361, 4263, 16, 3803, 1546, 6845, 17, 31505, 6, 4672, 7239, 273, 365, 18, 588, 67, 17300, 1214, 1435, 27868, 812, 273, 1696, 12, 11089, 397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 338, 798, 1031, 12, 2890, 16, 1361, 4263, 16, 3803, 1546, 6845, 17, 31505, 6, 4672, 7239, 273, 365, 18, 588, 67, 17300, 1214, 1435, 27868, 812, 273, 1696, 12, 11089, 397,...
[ 3 + 4*5 + 3*5^2 + 4*5^3 + O(5^4) 2*5^-1 + 1 + 3*5 + 3*5^3 + O(5^4)] [ 2 + 4*5 + 5^2 + 5^4 + O(5^5) 2 + 5^2 + 5^4 + O(5^5)]
[ 2 + 5^2 + 5^4 + O(5^5) 3*5^-1 + 3 + 5 + 4*5^2 + 5^3 + O(5^4)] [ 3 + 3*5^2 + 4*5^3 + 3*5^4 + O(5^5) 3 + 4*5 + 3*5^2 + 4*5^3 + 3*5^4 + O(5^5)]
def frobenius(self, prec=20, method = "mw"): r""" This returns a geometric Frobenius $\varphi$ on the Diedonne module $D_p(E)$ with respect to the basis $\omega$, the invariant differential and $\eta=x\omega$. It satisfies $phi^2 - a_p/p*phi + 1/p = 0$. INPUT: prec -- (default: 20) a positive integer method -- either...
f84dbff957b17eadccb4c294a5e1cde84af1cd4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f84dbff957b17eadccb4c294a5e1cde84af1cd4a/padic_lseries.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 303, 19425, 8384, 12, 2890, 16, 13382, 33, 3462, 16, 707, 273, 315, 81, 91, 6, 4672, 436, 8395, 1220, 1135, 279, 7364, 1591, 478, 303, 19425, 8384, 271, 64, 1401, 9973, 8, 603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 303, 19425, 8384, 12, 2890, 16, 13382, 33, 3462, 16, 707, 273, 315, 81, 91, 6, 4672, 436, 8395, 1220, 1135, 279, 7364, 1591, 478, 303, 19425, 8384, 271, 64, 1401, 9973, 8, 603, ...
'product_uos_qty': uos_qty, 'state': move.state,
'product_uos_qty': uos_qty, 'state': move.state,
def consume_moves(self, cr, uid, ids, quantity, location_id=False, location_dest_id=False, consume=True, context=None): if not context: context = {} if quantity <= 0: raise osv.except_osv(_('Warning!'), _('Please provide Proper Quantity !'))
57b92258d91762c1152280783171e1fcfb8afdcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/57b92258d91762c1152280783171e1fcfb8afdcb/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 67, 81, 10829, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 2117, 67, 350, 33, 8381, 16, 2117, 67, 10488, 67, 350, 33, 8381, 16, 7865, 33, 5510, 16, 819, 33, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 67, 81, 10829, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 10457, 16, 2117, 67, 350, 33, 8381, 16, 2117, 67, 10488, 67, 350, 33, 8381, 16, 7865, 33, 5510, 16, 819, 33, 7036, ...
print "ERROR: %s %s" % ( response.status, response.reason )
print "ERROR: %s %s" % ( status, error )
def pasteBin( self, params ): """Send a command + output buffer to http://pastebin.com""" index = params[0] contents = self._shell.myout.buffer( int( index ) ) status, error, location = sendToPastebin( contents ) if status == 302: print "SHELL: Pasted to %s" % location else: print "ERROR: %s %s" % ( response.status, re...
ceb67ff32867b0ee793379d49d13a7fc65db26ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/ceb67ff32867b0ee793379d49d13a7fc65db26ef/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 9913, 12, 365, 16, 859, 262, 30, 3536, 3826, 279, 1296, 397, 876, 1613, 358, 1062, 2207, 29795, 4757, 18, 832, 8395, 770, 273, 859, 63, 20, 65, 2939, 273, 365, 6315, 10304, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19401, 9913, 12, 365, 16, 859, 262, 30, 3536, 3826, 279, 1296, 397, 876, 1613, 358, 1062, 2207, 29795, 4757, 18, 832, 8395, 770, 273, 859, 63, 20, 65, 2939, 273, 365, 6315, 10304, 18, ...
othercount = othercount + 1 sts = st.tm_hour*3600+st.tm_min*60+st.tm_sec if not None == laststs: dt = sts - laststs lastmatched.addTime(dt) laststs = sts lastmatched = pmatched
other.match(title) pmatched = other laststs = sts lastmatched = pmatched
def update(filename): patterndict = {'WindowsFileSystem':'^CabinetWClass', 'Chrome':'^Chrome_', 'IE':'^IEFrame.*Windows Internet Explorer\r$', 'Python':'^TkTopLevel|^Shell_TrayWnd', 'Notepad':'^Notepad', 'Emacs':'^Emacs', 'WindowsPhotoViewer':'^Photo_Lightweight_Viewer', 'QQ':'TXGuiFoundation', 'TTPlayer':'^TTPlayer_',...
b86dc0307959ea8c4ab0aa88db8bf129ddcfddcc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8373/b86dc0307959ea8c4ab0aa88db8bf129ddcfddcc/updatedailyappusage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 3459, 4672, 1936, 1576, 273, 13666, 10399, 11785, 11, 2497, 66, 39, 378, 23864, 59, 797, 2187, 296, 28548, 11, 2497, 66, 28548, 67, 2187, 296, 8732, 11, 2497, 66, 8732, 3219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 3459, 4672, 1936, 1576, 273, 13666, 10399, 11785, 11, 2497, 66, 39, 378, 23864, 59, 797, 2187, 296, 28548, 11, 2497, 66, 28548, 67, 2187, 296, 8732, 11, 2497, 66, 8732, 3219, ...
('daylight_name', str),
('daylight_name', unicode),
def __ne__(self, other): return not self.__eq__(other)
a9362458092c14b0c207545bb46eb2732971ad59 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/992/a9362458092c14b0c207545bb46eb2732971ad59/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 16186, 11253, 972, 12, 3011, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4644, 972, 12, 2890, 16, 1308, 4672, 327, 486, 365, 16186, 11253, 972, 12, 3011, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
__slots__ = ["instance_name", "os_type"]
__slots__ = OpCode.__slots__ + ["instance_name", "os_type"]
def Summary(self): """Generates a summary description of this opcode.
4f05fd3bdb49a9f1628b9915afde3c0d83367f6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/4f05fd3bdb49a9f1628b9915afde3c0d83367f6d/opcodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17967, 12, 2890, 4672, 3536, 6653, 279, 4916, 2477, 434, 333, 11396, 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, 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, 17967, 12, 2890, 4672, 3536, 6653, 279, 4916, 2477, 434, 333, 11396, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
serverURL=serverURL.strip("ldbd://")
def getSciSegs(ifo=None, gpsStart=None, gpsStop=None, cut=bool(False), serverURL=None, segName="DMT-SCIENCE", seglenmin=None, segpading=0
a0d77a7dcf88051c4ffa98c8f16075f270251556 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/a0d77a7dcf88051c4ffa98c8f16075f270251556/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 8450, 1761, 564, 12, 20299, 33, 7036, 16, 20985, 1685, 33, 7036, 16, 20985, 4947, 33, 7036, 16, 6391, 33, 6430, 12, 8381, 3631, 1438, 1785, 33, 7036, 16, 2291, 461, 1546, 40, 615...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 8450, 1761, 564, 12, 20299, 33, 7036, 16, 20985, 1685, 33, 7036, 16, 20985, 4947, 33, 7036, 16, 6391, 33, 6430, 12, 8381, 3631, 1438, 1785, 33, 7036, 16, 2291, 461, 1546, 40, 615...
token = ppLexer.token ()
def preprocess (text, global_values, global_macros): """ Preprocess a C/C++ header file text Preprocesses h files - does #define substitutions and evaluates conditionals to include/exclude code. No substitutions are performed on preprocessor lines (any line beginning with '#'). Global #defines are applied LAST, so the...
b5ef63064bf5c06cfa584ca2c4abe90aac2ebb27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1705/b5ef63064bf5c06cfa584ca2c4abe90aac2ebb27/pplexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17942, 261, 955, 16, 2552, 67, 2372, 16, 2552, 67, 5821, 6973, 4672, 3536, 2962, 2567, 279, 385, 19, 39, 9904, 1446, 585, 977, 225, 2962, 18675, 366, 1390, 300, 1552, 468, 11255, 23368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17942, 261, 955, 16, 2552, 67, 2372, 16, 2552, 67, 5821, 6973, 4672, 3536, 2962, 2567, 279, 385, 19, 39, 9904, 1446, 585, 977, 225, 2962, 18675, 366, 1390, 300, 1552, 468, 11255, 23368, ...
if debug: logger.debug("Added Package %s" % item)
def complete(self, metadata, packages, unresolved, debug=False): # perhaps cache arch? #arch = [a for a in self.arches if a in metadata.groups][0] # return newpkg, unknown newpkg = set(packages) unknown = set() work = set(unresolved) seen = set() while work: item = work.pop() seen.add(item) if self.is_package(metadata,...
3419c67e473c171d5cff9b669427da96f71b000c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11867/3419c67e473c171d5cff9b669427da96f71b000c/Packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 12, 2890, 16, 1982, 16, 5907, 16, 20573, 16, 1198, 33, 8381, 4672, 468, 26282, 1247, 6637, 35, 468, 991, 273, 306, 69, 364, 279, 316, 365, 18, 991, 281, 309, 279, 316, 1982, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 12, 2890, 16, 1982, 16, 5907, 16, 20573, 16, 1198, 33, 8381, 4672, 468, 26282, 1247, 6637, 35, 468, 991, 273, 306, 69, 364, 279, 316, 365, 18, 991, 281, 309, 279, 316, 1982, 18...
""" Print program's available options """
""" Prints program's available options """
def usage(self): """ Print program's available options """ print "pyfind_revdep - utility to search broken dependencies files" print "Copyright (C) 2009 LukenShiro <lukenshiro@ngi.it>\n" print "Usage: pyfind_revdep [options]\n" print " -p, --predict -> Try a prediction of which package is " \ "behind broken file...
f9b5bccd6b4fd4355a72b9b495908af2da52cae3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/f9b5bccd6b4fd4355a72b9b495908af2da52cae3/pyfind_revdep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 12, 2890, 4672, 3536, 3038, 87, 5402, 1807, 2319, 702, 3536, 225, 1172, 315, 2074, 4720, 67, 9083, 15037, 300, 12788, 358, 1623, 12933, 5030, 1390, 6, 1172, 315, 2951, 4083, 261, 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, 4084, 12, 2890, 4672, 3536, 3038, 87, 5402, 1807, 2319, 702, 3536, 225, 1172, 315, 2074, 4720, 67, 9083, 15037, 300, 12788, 358, 1623, 12933, 5030, 1390, 6, 1172, 315, 2951, 4083, 261, 3...
kernel = '/usr/lib/xen/boot/hvmlocader'
kernel = '/usr/lib/xen/boot/hvmloader'
def createXenConfig(self, vmName, image, macAddr, memory, cores, hints): fn = os.path.join("/tmp", vmName) vmType = hints.get('vmtype', self.defaultVmType) print 'starting vm with type: ', vmType bootstr = '' if vmType == 'pvgrub': # FIXME: untested, requires Xen 3.3 bootstr = '''
dc2625d190a002385b816fa7373a198643dabce1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/dc2625d190a002385b816fa7373a198643dabce1/xenpv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 60, 275, 809, 12, 2890, 16, 4268, 461, 16, 1316, 16, 5318, 3178, 16, 3778, 16, 15355, 16, 13442, 4672, 2295, 273, 1140, 18, 803, 18, 5701, 2932, 19, 5645, 3113, 4268, 461, 13, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 60, 275, 809, 12, 2890, 16, 4268, 461, 16, 1316, 16, 5318, 3178, 16, 3778, 16, 15355, 16, 13442, 4672, 2295, 273, 1140, 18, 803, 18, 5701, 2932, 19, 5645, 3113, 4268, 461, 13, 4...
"universe":"vanilla"
"universe":"vanilla",
def __init__(self,job,time,cp,qcache,ifo,name, opts, d_node, dag, datafindCommand, qscanCommand, trig=None,qFlag=None): """ job = A CondorDAGJob that can run an instance of qscan. """ self.friendlyName = name self.id = ifo + '-' + name + '-' + repr(time)
9e152961c57c114ca32f6d71b76f936ddd7c7b79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9e152961c57c114ca32f6d71b76f936ddd7c7b79/fu_Condor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4688, 16, 957, 16, 4057, 16, 85, 2493, 16, 20299, 16, 529, 16, 1500, 16, 302, 67, 2159, 16, 22940, 16, 501, 4720, 2189, 16, 1043, 9871, 2189, 16, 23142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4688, 16, 957, 16, 4057, 16, 85, 2493, 16, 20299, 16, 529, 16, 1500, 16, 302, 67, 2159, 16, 22940, 16, 501, 4720, 2189, 16, 1043, 9871, 2189, 16, 23142...
succ = tokens[i+1]
succ = t.succ
def check_oneliners(tokens, lines, warnings): "Check for if, else, statements on the same line." for i, t in enumerate(tokens): if t.typ != Token.ident: continue if t.string == 'else': succ = tokens[i+1] if succ.typ == Token.punct and succ.string == '{': succ = tokens[i+2] if succ.line > t.line: continue if succ.typ ==...
ecf9bde6b618739f9ef7098da2a7ad267a2f3d5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/ecf9bde6b618739f9ef7098da2a7ad267a2f3d5f/check-coding-style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 265, 292, 267, 414, 12, 7860, 16, 2362, 16, 5599, 4672, 315, 1564, 364, 309, 16, 469, 16, 6317, 603, 326, 1967, 980, 1199, 364, 277, 16, 268, 316, 4241, 12, 7860, 4672, 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, 866, 67, 265, 292, 267, 414, 12, 7860, 16, 2362, 16, 5599, 4672, 315, 1564, 364, 309, 16, 469, 16, 6317, 603, 326, 1967, 980, 1199, 364, 277, 16, 268, 316, 4241, 12, 7860, 4672, 309,...
os.system(r'pause "done creating binary dist"')
def build_executable(self): #delete old build dir. print r'rd /S /Q build' os.system(r'rd /S /Q build') #delete old dist dir print r'rd /S /Q dist' os.system(r'rd /S /Q dist')
5401a4bab3ded5aa9169d211f156547636712336 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/5401a4bab3ded5aa9169d211f156547636712336/make_all_dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 17751, 12, 2890, 4672, 225, 468, 3733, 1592, 1361, 1577, 18, 1172, 436, 11, 13623, 342, 55, 342, 53, 1361, 11, 1140, 18, 4299, 12, 86, 11, 13623, 342, 55, 342, 53, 1361, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17751, 12, 2890, 4672, 225, 468, 3733, 1592, 1361, 1577, 18, 1172, 436, 11, 13623, 342, 55, 342, 53, 1361, 11, 1140, 18, 4299, 12, 86, 11, 13623, 342, 55, 342, 53, 1361, 61...
valueStr = self.scaleMenuWdg.getString() funcName = "scale" + valueStr.replace(" ", "")
strVal = self.scaleMenuWdg.getString() funcName = "scale" + strVal.replace(" ", "")
def doScaleMenu(self, *args): """Handle new selection from scale menu.""" valueStr = self.scaleMenuWdg.getString() funcName = "scale" + valueStr.replace(" ", "") try: func = getattr(self, funcName) except AttributeError: raise RuntimeError("Bug! No function named %r" % (funcName,)) func()
f6acf1b41d9f8bc361017b632a5be4b62e606910 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6236/f6acf1b41d9f8bc361017b632a5be4b62e606910/GrayImageDispWdg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 5587, 4599, 12, 2890, 16, 380, 1968, 4672, 3536, 3259, 394, 4421, 628, 3159, 3824, 12123, 609, 3053, 273, 365, 18, 5864, 4599, 59, 72, 75, 18, 588, 780, 1435, 20810, 273, 315, 586...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5587, 4599, 12, 2890, 16, 380, 1968, 4672, 3536, 3259, 394, 4421, 628, 3159, 3824, 12123, 609, 3053, 273, 365, 18, 5864, 4599, 59, 72, 75, 18, 588, 780, 1435, 20810, 273, 315, 586...
s, ord(c), self.fmtpos)
s, ord(c), self.fmtpos - 1)
def unknown_fmtchar(self): space = self.space c = self.fmt[self.fmtpos - 1] if do_unicode: w_defaultencoding = space.call_function( space.sys.get('getdefaultencoding')) w_s = space.call_method(space.wrap(c), "encode", w_defaultencoding, space.wrap('replace')) s = space.str_w(w_s) else: s = c msg = "unsupported format c...
bf43809eda23e52cab43e68ed1e0597ca921425e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/bf43809eda23e52cab43e68ed1e0597ca921425e/formatting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5917, 67, 8666, 3001, 12, 2890, 4672, 3476, 273, 365, 18, 2981, 276, 273, 365, 18, 8666, 63, 2890, 18, 8666, 917, 300, 404, 65, 309, 741, 67, 9124, 30, 341, 67, 1886, 5999, 273, 3476...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5917, 67, 8666, 3001, 12, 2890, 4672, 3476, 273, 365, 18, 2981, 276, 273, 365, 18, 8666, 63, 2890, 18, 8666, 917, 300, 404, 65, 309, 741, 67, 9124, 30, 341, 67, 1886, 5999, 273, 3476...
return WeakKeyedKeyIterator(self) __iter__ = iterkeys
for wr in self.data.iterkeys(): obj = wr() if obj is not None: yield obj def __iter__(self): return self.iterkeys()
def iterkeys(self): return WeakKeyedKeyIterator(self)
c54d503f3c64a1eb97e74aebc62f137edd2c1f04 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c54d503f3c64a1eb97e74aebc62f137edd2c1f04/weakref.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31664, 12, 2890, 4672, 327, 23632, 653, 329, 653, 3198, 12, 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, 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, 31664, 12, 2890, 4672, 327, 23632, 653, 329, 653, 3198, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
prefs_profile_num = profile_combo.get_active()
profile_num = profile_combo.get_active()
def prefs_add_profile(self, _button, nameentry, profile_combo, remove_profiles): self.updating_nameentry = True prefs_profile_num = profile_combo.get_active() self.config.profile_names.append(_("New Profile")) nameentry.set_text(self.config.profile_names[-1]) self.updating_nameentry = False self.config.host.append(self...
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15503, 67, 1289, 67, 5040, 12, 2890, 16, 389, 5391, 16, 508, 4099, 16, 3042, 67, 25053, 16, 1206, 67, 18314, 4672, 365, 18, 5533, 1776, 67, 529, 4099, 273, 1053, 3042, 67, 2107, 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, 15503, 67, 1289, 67, 5040, 12, 2890, 16, 389, 5391, 16, 508, 4099, 16, 3042, 67, 25053, 16, 1206, 67, 18314, 4672, 365, 18, 5533, 1776, 67, 529, 4099, 273, 1053, 3042, 67, 2107, 273, ...
ctx = SSL.Context('sslv23') s = SSL.Connection(ctx) s.connect(self.srv_addr) self.failUnlessEqual(s.get_version(), 'SSLv3') s.close() self.stop_server(pid)
try: ctx = SSL.Context('sslv23') s = SSL.Connection(ctx) s.connect(self.srv_addr) self.failUnlessEqual(s.get_version(), 'SSLv3') s.close() finally: self.stop_server(pid)
def test_sslv23_no_v2(self): self.args.append('-no_tls1') pid = self.start_server(self.args) ctx = SSL.Context('sslv23') s = SSL.Connection(ctx) s.connect(self.srv_addr) self.failUnlessEqual(s.get_version(), 'SSLv3') s.close() self.stop_server(pid)
787f56abaf95d4b31f93406cbd1f766e498b370b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/787f56abaf95d4b31f93406cbd1f766e498b370b/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1049, 3070, 4366, 67, 2135, 67, 90, 22, 12, 2890, 4672, 365, 18, 1968, 18, 6923, 2668, 17, 2135, 67, 17116, 21, 6134, 4231, 273, 365, 18, 1937, 67, 3567, 12, 2890, 18, 1968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1049, 3070, 4366, 67, 2135, 67, 90, 22, 12, 2890, 4672, 365, 18, 1968, 18, 6923, 2668, 17, 2135, 67, 17116, 21, 6134, 4231, 273, 365, 18, 1937, 67, 3567, 12, 2890, 18, 1968...
ok = runtest(test, generate, verbose, quiet, testdir) if ok > 0: good.append(test) elif ok == 0: bad.append(test)
if trace: tracer.runctx('runtest(test, generate, verbose, quiet, testdir)', globals=globals(), locals=vars())
def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, fromfile=None, findleaks=0, use_resources=None): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdi...
1a5ffc9a430cf54038f88d81f49479e4f301c290 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a5ffc9a430cf54038f88d81f49479e4f301c290/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 20, 16, 2103, 33, 20, 16, 4433, 33, 20, 16, 2202, 33, 20, 16, 2744, 554, 33, 20, 16, 628, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 16341, 33, 7036, 16, 1842, 1214, 33, 7036, 16, 3988, 33, 20, 16, 10902, 33, 20, 16, 2103, 33, 20, 16, 4433, 33, 20, 16, 2202, 33, 20, 16, 2744, 554, 33, 20, 16, 628, 76...
return socket.ntohl(struct.unpack("L", ''.join(read))[0])
return socket.ntohl(struct.unpack("I", ''.join(read))[0])
def readInteger (self): read = [] while (len(read) < 4): read.append(self.sock.recv(1)) return socket.ntohl(struct.unpack("L", ''.join(read))[0])
321b860b35ada4a88aab5787dfbfd35753119555 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4202/321b860b35ada4a88aab5787dfbfd35753119555/agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 4522, 261, 2890, 4672, 855, 273, 5378, 1323, 261, 1897, 12, 896, 13, 411, 1059, 4672, 855, 18, 6923, 12, 2890, 18, 15031, 18, 18334, 12, 21, 3719, 327, 2987, 18, 496, 16699, 80, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 4522, 261, 2890, 4672, 855, 273, 5378, 1323, 261, 1897, 12, 896, 13, 411, 1059, 4672, 855, 18, 6923, 12, 2890, 18, 15031, 18, 18334, 12, 21, 3719, 327, 2987, 18, 496, 16699, 80, ...
def allIsDir(directory, subdirs):
def allInDir(directory, subdirs):
def allIsDir(directory, subdirs): for subdir in subdirs: if not os.path.isdir(os.path.join(directory, subdir)): return False return True
06a01ae812b082d2afa4149584a57243cdf95272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/06a01ae812b082d2afa4149584a57243cdf95272/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 382, 1621, 12, 5149, 16, 720, 8291, 4672, 364, 16921, 316, 720, 8291, 30, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 5149, 16, 16921, 3719, 30, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 777, 382, 1621, 12, 5149, 16, 720, 8291, 4672, 364, 16921, 316, 720, 8291, 30, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 5149, 16, 16921, 3719, 30, 327,...
getattr(interfaces, profileSchemaName)
getattr(profileSchemas, profileSchemaName)
def __init__(self, context, request): self.context = context self.request = request self.siteInfo = createObject('groupserver.SiteInfo', context) self.groupInfo = createObject('groupserver.GroupInfo', context) self.profileList = ProfileList(context) self.acl_users = context.site_root().acl_users site_root = context.s...
e91e39d9f982bd54da8038629c6faf9e2ee7dba9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6252/e91e39d9f982bd54da8038629c6faf9e2ee7dba9/create_users_from_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 590, 4672, 365, 18, 2472, 273, 819, 365, 18, 2293, 273, 590, 225, 365, 18, 4256, 966, 273, 17109, 2668, 1655, 3567, 18, 4956, 966, 2187, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 590, 4672, 365, 18, 2472, 273, 819, 365, 18, 2293, 273, 590, 225, 365, 18, 4256, 966, 273, 17109, 2668, 1655, 3567, 18, 4956, 966, 2187, 819, ...
):
**chanKArgs):
def __init__(self, portName, baud = 9600, parity = "n", dataBits = 8, stopBits = 1, buffering = "line", handshake = "none", translation = "lf", readCallback = None, stateCallback = None,
62c0fa72bb24f52b42ed48d8e18298e87162e96a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6236/62c0fa72bb24f52b42ed48d8e18298e87162e96a/TkSerial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 461, 16, 9846, 1100, 273, 19332, 713, 16, 19904, 273, 315, 82, 3113, 501, 6495, 273, 1725, 16, 2132, 6495, 273, 404, 16, 25056, 273, 315, 1369, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1756, 461, 16, 9846, 1100, 273, 19332, 713, 16, 19904, 273, 315, 82, 3113, 501, 6495, 273, 1725, 16, 2132, 6495, 273, 404, 16, 25056, 273, 315, 1369, 311...
tally[match.home].rate += (diff * 100/7)/2 tally[match.road].rate -= (diff * 100/7)/2
tally[match.home].rate -= (diff * 100/7)/2 tally[match.road].rate += (diff * 100/7)/2 print " > home: %d road: %d" % (tally[match.home].rate, tally[match.road].rate) print "------"
def __init__(self): self.win = 0 self.loss = 0 self.rate = 1500
1be1242e854246cdaacfc20d1ac91dd624d996ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14994/1be1242e854246cdaacfc20d1ac91dd624d996ce/elo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 8082, 273, 374, 365, 18, 7873, 273, 374, 365, 18, 5141, 273, 4711, 713, 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, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 8082, 273, 374, 365, 18, 7873, 273, 374, 365, 18, 5141, 273, 4711, 713, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
class POLYBEZIERTO16(POLYBEZIER16):
class _POLYBEZIERTO16(_POLYBEZIER16):
def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.apts)) return txt.getvalue()
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 69, 1092, 3719, 225, 327, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 609, 67, 7763, 12, 2890, 4672, 6463, 33, 780, 4294, 1435, 787, 33, 20, 6463, 18, 2626, 31458, 88, 4139, 30, 738, 87, 64, 82, 6, 738, 609, 12, 2890, 18, 69, 1092, 3719, 225, 327, 64...
Computes lower and upper bounds on the rank of the Mordell-Weil group, and a list of independent points.
Computes lower and upper bounds on the rank of the Mordell-Weil group, and a list of independent points. Used internally by the :meth:`~rank`, :meth:`~rank_bounds` and :meth:`~gens` methods.
def simon_two_descent(self, verbose=0, lim1=5, lim3=50, limtriv=10, maxprob=20, limbigprime=30): r""" Computes lower and upper bounds on the rank of the Mordell-Weil group, and a list of independent points. INPUT:
16c5d6f4b590776892987400ecee6a836886ccbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/16c5d6f4b590776892987400ecee6a836886ccbb/ell_number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3142, 265, 67, 15415, 67, 5569, 319, 12, 2890, 16, 3988, 33, 20, 16, 20167, 21, 33, 25, 16, 20167, 23, 33, 3361, 16, 20167, 313, 427, 33, 2163, 16, 943, 7748, 33, 3462, 16, 20167, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3142, 265, 67, 15415, 67, 5569, 319, 12, 2890, 16, 3988, 33, 20, 16, 20167, 21, 33, 25, 16, 20167, 23, 33, 3361, 16, 20167, 313, 427, 33, 2163, 16, 943, 7748, 33, 3462, 16, 20167, ...
self._process = subprocess.Popen(start_cmd, env=env)
self._process = subprocess.Popen(start_cmd, stdout=self._wsout, env=env)
def Start(self): if not self._web_socket_tests: logging.info('No need to start %s server.' % self._server_name) return if self.IsRunning(): raise PyWebSocketNotStarted('%s is already running.' % self._server_name)
baf07cf403038e682c83ca25de48fba5f23555b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/baf07cf403038e682c83ca25de48fba5f23555b2/websocket_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 12, 2890, 4672, 309, 486, 365, 6315, 4875, 67, 7814, 67, 16341, 30, 2907, 18, 1376, 2668, 2279, 1608, 358, 787, 738, 87, 1438, 1093, 738, 365, 6315, 3567, 67, 529, 13, 327, 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, 3603, 12, 2890, 4672, 309, 486, 365, 6315, 4875, 67, 7814, 67, 16341, 30, 2907, 18, 1376, 2668, 2279, 1608, 358, 787, 738, 87, 1438, 1093, 738, 365, 6315, 3567, 67, 529, 13, 327, 309, ...
SquareOpen.objects.neighbors_standby(square_open, False);
SquareOpen.objects.neighbors_standby(square_open, False)
def release(request, issue, square_open): square = get_object_or_404(Square, pos_x=square_open.pos_x,\ pos_y=square_open.pos_y, issue=issue) SquareOpen.objects.neighbors_standby(square_open, False); square.delete() return HttpResponseRedirect(reverse('square_templates'))
66e522976f3135a60c3e6884789b0f13d9937ab0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/66e522976f3135a60c3e6884789b0f13d9937ab0/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 12, 2293, 16, 5672, 16, 8576, 67, 3190, 4672, 8576, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 22255, 16, 949, 67, 92, 33, 19719, 67, 3190, 18, 917, 67, 92, 17211, 949, 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, 3992, 12, 2293, 16, 5672, 16, 8576, 67, 3190, 4672, 8576, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 22255, 16, 949, 67, 92, 33, 19719, 67, 3190, 18, 917, 67, 92, 17211, 949, 67, ...
return value
return smart_str(value)
def convert(self, field_value): """ Generates index values (for sorting) for given field value and its content type """ if field_value is None: return None
2505f2b4c7572e4c38568341fa3e82e74ca5c128 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4645/2505f2b4c7572e4c38568341fa3e82e74ca5c128/indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 652, 67, 1132, 4672, 3536, 31902, 770, 924, 261, 1884, 9602, 13, 364, 864, 652, 460, 471, 2097, 913, 618, 3536, 309, 652, 67, 1132, 353, 599, 30, 327, 599, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 2890, 16, 652, 67, 1132, 4672, 3536, 31902, 770, 924, 261, 1884, 9602, 13, 364, 864, 652, 460, 471, 2097, 913, 618, 3536, 309, 652, 67, 1132, 353, 599, 30, 327, 599, 2, -10...
v = votes[vote_id]
try: v = votes[vote_id] except KeyError: continue
def update_db_from_files(self): print "Update DB From Files"
3b6ab53e20bf311f12873f4b5d16952290ffd045 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/3b6ab53e20bf311f12873f4b5d16952290ffd045/syncdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1966, 67, 2080, 67, 2354, 12, 2890, 4672, 1172, 315, 1891, 2383, 6338, 6471, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1966, 67, 2080, 67, 2354, 12, 2890, 4672, 1172, 315, 1891, 2383, 6338, 6471, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
raise Exception('callRemote got illegal arg: %s %s' (arg, type(arg)))
raise Exception('callRemote got illegal arg: %s %s' % (arg, type(arg)))
def callRemote(self, user, *args, **kwargs): """if we still have a connection, call remote, otherwise clean up""" legalTypes = (int, long, basestring, float, list, type(None)) for arg in args: if not isinstance(arg, legalTypes): raise Exception('callRemote got illegal arg: %s %s' (arg, type(arg))) for keyword, arg in k...
6c2f7d7adb9c4815473012c5246a8a73cea27906 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1679/6c2f7d7adb9c4815473012c5246a8a73cea27906/kajonggserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 5169, 12, 2890, 16, 729, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 430, 732, 4859, 1240, 279, 1459, 16, 745, 2632, 16, 3541, 2721, 731, 8395, 19286, 2016, 273, 261, 474, 16, 1525...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 5169, 12, 2890, 16, 729, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 430, 732, 4859, 1240, 279, 1459, 16, 745, 2632, 16, 3541, 2721, 731, 8395, 19286, 2016, 273, 261, 474, 16, 1525...
else: self._request_more()
self._request_more()
def got_piece(self, index, begin, piece): try: self.active_requests.remove((index, begin, len(piece))) except ValueError: return false if self.downloader.storage.is_endgame(): self.downloader.all_requests.remove((index, begin, len(piece))) self.last = time() self.measure.update_rate(len(piece)) self.downloader.measuref...
7ddd2ba96a39707385c0e92e4570f2600b7472e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/7ddd2ba96a39707385c0e92e4570f2600b7472e5/Downloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 67, 30100, 12, 2890, 16, 770, 16, 2376, 16, 11151, 4672, 775, 30, 365, 18, 3535, 67, 11420, 18, 4479, 12443, 1615, 16, 2376, 16, 562, 12, 30100, 20349, 1335, 2068, 30, 327, 629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 67, 30100, 12, 2890, 16, 770, 16, 2376, 16, 11151, 4672, 775, 30, 365, 18, 3535, 67, 11420, 18, 4479, 12443, 1615, 16, 2376, 16, 562, 12, 30100, 20349, 1335, 2068, 30, 327, 629, ...
if self.status.severity < TaskStatus.by_name(u'Completed').severity \ or self.status == TaskStatus.by_name(u'Running') \ or self.status == TaskStatus.by_name(u'Waiting'):
if not self.finish_time: self.finish_time = datetime.utcnow()
def _abort_cancel(self, status, msg=None): """ cancel = User instigated abort = Auto instigated """ # Only record an abort/cancel on tasks that are New, Queued, Scheduled # or Running if self.status.severity < TaskStatus.by_name(u'Completed').severity \ or self.status == TaskStatus.by_name(u'Running') \ or self.status...
56f0d27e98867bd8bee844b5433fa1209508f0e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/56f0d27e98867bd8bee844b5433fa1209508f0e2/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 18623, 67, 10996, 12, 2890, 16, 1267, 16, 1234, 33, 7036, 4672, 3536, 3755, 273, 2177, 1804, 360, 690, 6263, 225, 273, 8064, 1804, 360, 690, 3536, 468, 5098, 1409, 392, 6263, 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, 389, 18623, 67, 10996, 12, 2890, 16, 1267, 16, 1234, 33, 7036, 4672, 3536, 3755, 273, 2177, 1804, 360, 690, 6263, 225, 273, 8064, 1804, 360, 690, 3536, 468, 5098, 1409, 392, 6263, 19, ...
if options.foreground:
if options.foreground:
def do_run(self, options, args): windows = platform == "Windows" if options.unmount:
541006a76a12343a29852dec14beab20966e9909 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/541006a76a12343a29852dec14beab20966e9909/fsmount.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2681, 12, 2890, 16, 702, 16, 833, 4672, 225, 9965, 273, 4072, 422, 315, 10399, 6, 225, 309, 702, 18, 318, 4778, 30, 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, 741, 67, 2681, 12, 2890, 16, 702, 16, 833, 4672, 225, 9965, 273, 4072, 422, 315, 10399, 6, 225, 309, 702, 18, 318, 4778, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
undo['virtual'][key] = binaries[arch][1][j][:] binaries[arch][1][j].remove(binary) if len(binaries[arch][1][j]) == 0: del binaries[arch][1][j]
undo['virtual'][key] = binaries[parch][1][j][:] binaries[parch][1][j].remove(binary) if len(binaries[parch][1][j]) == 0: del binaries[parch][1][j]
def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg`
b8d4deefd1e15dc48987f2d10c01b6f060204f30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b8d4deefd1e15dc48987f2d10c01b6f060204f30/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 3536, 7001, 279, 2549, 358, 326, 7769, 7006, 487, 3764, 635, 1375, 10657, 68, 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, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 3536, 7001, 279, 2549, 358, 326, 7769, 7006, 487, 3764, 635, 1375, 10657, 68, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def OnSize(self, event):
def OnSize(self, dummyEvent):
def OnSize(self, event): if self.GetAutoLayout(): self.Layout()
f83ca6a47506c5553c6484fbbc99223f3d58b65e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/f83ca6a47506c5553c6484fbbc99223f3d58b65e/RadioBox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1225, 12, 2890, 16, 9609, 1133, 4672, 309, 365, 18, 967, 4965, 3744, 13332, 365, 18, 3744, 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, 2755, 1225, 12, 2890, 16, 9609, 1133, 4672, 309, 365, 18, 967, 4965, 3744, 13332, 365, 18, 3744, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
print "updatedheaders", self.crypted
def update_headers(self, tocpos): """add level""" Archive.update_headers(self, tocpos) self.lib.write(struct.pack('!iB', self.LEVEL, self.crypted)) print "updatedheaders", self.crypted
e1bc0211ae3bf3138d73ba31c41b5a6ab5b8f5e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11925/e1bc0211ae3bf3138d73ba31c41b5a6ab5b8f5e7/archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 2485, 12, 2890, 16, 17919, 917, 4672, 3536, 1289, 1801, 8395, 13124, 18, 2725, 67, 2485, 12, 2890, 16, 17919, 917, 13, 365, 18, 2941, 18, 2626, 12, 1697, 18, 2920, 2668, 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, 1089, 67, 2485, 12, 2890, 16, 17919, 917, 4672, 3536, 1289, 1801, 8395, 13124, 18, 2725, 67, 2485, 12, 2890, 16, 17919, 917, 13, 365, 18, 2941, 18, 2626, 12, 1697, 18, 2920, 2668, 5, ...
res = self.__makeDirs(url)
strippedUrl = url.rstrip('/') res = self.__makeDirs(strippedUrl)
def createDirectory(self,path): """ Make recursively new directory(ies) on the physical storage """ if type(path) == types.StringType: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.createDirectory: Supplied path must be string or list of strings") successful = {} failed ...
0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28430, 12, 2890, 16, 803, 4672, 3536, 4344, 8536, 394, 1867, 12, 606, 13, 603, 326, 11640, 2502, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28430, 12, 2890, 16, 803, 4672, 3536, 4344, 8536, 394, 1867, 12, 606, 13, 603, 326, 11640, 2502, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 13...
s.append('- index of '+self.classname)
if self.template == 'item': s.append('- new %s'%self.classname) elif self.template == 'index': s.append('- %s index'%self.classname) else: s.append('- %s %s'%(self.classname, self.template))
def description(self): ''' Return a description of the request - handle for the page title. ''' s = [self.client.db.config.TRACKER_NAME] if self.classname: if self.client.nodeid: s.append('- %s%s'%(self.classname, self.client.nodeid)) else: s.append('- index of '+self.classname) else: s.append('- home') return ' '.join...
c5b111eab031d2504dc6517dd34d1dff8dc110db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/c5b111eab031d2504dc6517dd34d1dff8dc110db/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2477, 12, 2890, 4672, 9163, 2000, 279, 2477, 434, 326, 590, 300, 1640, 364, 326, 1363, 2077, 18, 9163, 272, 273, 306, 2890, 18, 2625, 18, 1966, 18, 1425, 18, 28720, 654, 67, 1985, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2477, 12, 2890, 4672, 9163, 2000, 279, 2477, 434, 326, 590, 300, 1640, 364, 326, 1363, 2077, 18, 9163, 272, 273, 306, 2890, 18, 2625, 18, 1966, 18, 1425, 18, 28720, 654, 67, 1985, 65, ...
if self.document_class in ('book', 'report', 'scrartcl', 'scrbook'):
if self.document_class in ('book', 'report', 'scrreprt', 'scrbook'):
def section(self, level): """ Return the section name at the given level for the specific document class.
cad16535c0d98f8f6b413062f7fa10f78f8516c2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8194/cad16535c0d98f8f6b413062f7fa10f78f8516c2/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 12, 2890, 16, 1801, 4672, 3536, 2000, 326, 2442, 508, 622, 326, 864, 1801, 364, 326, 2923, 1668, 667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 12, 2890, 16, 1801, 4672, 3536, 2000, 326, 2442, 508, 622, 326, 864, 1801, 364, 326, 2923, 1668, 667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
raise DataError(self.no_current_msg)
raise DataError(self._no_current_msg)
def get_current(self): if self.current is None: raise DataError(self.no_current_msg) return self.current
af959cb080815162dfaa581798ee4a3fd27510e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/af959cb080815162dfaa581798ee4a3fd27510e9/connectioncache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2972, 12, 2890, 4672, 309, 365, 18, 2972, 353, 599, 30, 1002, 1910, 668, 12, 2890, 6315, 2135, 67, 2972, 67, 3576, 13, 327, 365, 18, 2972, 225, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2972, 12, 2890, 4672, 309, 365, 18, 2972, 353, 599, 30, 1002, 1910, 668, 12, 2890, 6315, 2135, 67, 2972, 67, 3576, 13, 327, 365, 18, 2972, 225, 2, -100, -100, -100, -100, -1...
return S_ERROR( "Monitoring is not initialized" )
return
def registerActivity( self, name, description, category, unit, operation, bucketLength = 60 ): """ Register new activity. Before reporting information to the server, the activity must be registered.
fd66b0ffb166419c0da9ffd36aa2bd3b740a0ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/fd66b0ffb166419c0da9ffd36aa2bd3b740a0ccd/MonitoringClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 6193, 12, 365, 16, 508, 16, 2477, 16, 3150, 16, 2836, 16, 1674, 16, 2783, 1782, 273, 4752, 262, 30, 3536, 5433, 394, 5728, 18, 11672, 16096, 1779, 358, 326, 1438, 16, 326, 5728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1744, 6193, 12, 365, 16, 508, 16, 2477, 16, 3150, 16, 2836, 16, 1674, 16, 2783, 1782, 273, 4752, 262, 30, 3536, 5433, 394, 5728, 18, 11672, 16096, 1779, 358, 326, 1438, 16, 326, 5728, ...
def __get_corner(point, transmat, orientmat):
def __get_corner(point, transmat, orientmat, db):
def __get_corner(point, transmat, orientmat): newpt = __point_transformation(point, transmat, orientmat) print "New Point:", newpt pol = __calc_polar(newpt[0], newpt[1], newpt[2]) azi = __calc_azi(newpt[1], newpt[0]) return (pol, azi)
5dda94f6f020457616aeb9c18c84293aeaff5080 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/762/5dda94f6f020457616aeb9c18c84293aeaff5080/calc_dgs_params.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 30519, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 16, 1319, 4672, 394, 337, 273, 1001, 1153, 67, 2338, 1471, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 13, 1172, 315, 1908, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 30519, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 16, 1319, 4672, 394, 337, 273, 1001, 1153, 67, 2338, 1471, 12, 1153, 16, 906, 7373, 16, 7891, 7373, 13, 1172, 315, 1908, ...
data.append(self.request_line_tostr())
data.append(self.request_line_to_str())
def to_str(self): data = [] data.append(self.request_line_tostr()) data.append(self.headers_to_str()) # The body (XXX to do) return ''.join(data)
cce2ad6e699270b16f38f178059a4e248efe2d42 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/cce2ad6e699270b16f38f178059a4e248efe2d42/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 701, 12, 2890, 4672, 501, 273, 5378, 501, 18, 6923, 12, 2890, 18, 2293, 67, 1369, 67, 869, 67, 701, 10756, 501, 18, 6923, 12, 2890, 18, 2485, 67, 869, 67, 701, 10756, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 701, 12, 2890, 4672, 501, 273, 5378, 501, 18, 6923, 12, 2890, 18, 2293, 67, 1369, 67, 869, 67, 701, 10756, 501, 18, 6923, 12, 2890, 18, 2485, 67, 869, 67, 701, 10756, 468, ...
floating point number $B$ such that if $P$ is a point on the curve, then the naive logarithmic height $h(P)$ is less than $B+\hat{h}(P)$, where $\hat{h}(P)$ is the canonical height of $P$.
floating point number `B` such that if `P` is a point on the curve, then the naive logarithmic height `h(P)` is less than `B+\hat{h}(P)`, where `\hat{h}(P)` is the canonical height of `P`.
def CPS_height_bound(self): r""" Return the Cremona-Prickett-Siksek height bound. This is a floating point number $B$ such that if $P$ is a point on the curve, then the naive logarithmic height $h(P)$ is less than $B+\hat{h}(P)$, where $\hat{h}(P)$ is the canonical height of $P$.
1cc4edc9aafb88d044d853b60331d1432546cf60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/1cc4edc9aafb88d044d853b60331d1432546cf60/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5181, 55, 67, 4210, 67, 3653, 12, 2890, 4672, 436, 8395, 2000, 326, 5799, 2586, 69, 17, 2050, 29378, 88, 17, 55, 1766, 307, 79, 2072, 2489, 18, 225, 1220, 353, 279, 13861, 1634, 1300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5181, 55, 67, 4210, 67, 3653, 12, 2890, 4672, 436, 8395, 2000, 326, 5799, 2586, 69, 17, 2050, 29378, 88, 17, 55, 1766, 307, 79, 2072, 2489, 18, 225, 1220, 353, 279, 13861, 1634, 1300, ...
stoptime = (totalAvg - cpulimit) * totaltime * 2
stoptime = max(((totalAvg * totaltime) / cpulimit) - totaltime , 0)
def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: #print "Time, Rolling, Average, Instant" return #if totaltime > 120: # linux_killme...
a130b68d202c10ca030b7418740d1c46b4de4350 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/a130b68d202c10ca030b7418740d1c46b4de4350/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 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, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 6...
new_image_fd, old.field_name, old.name, old.content_type, new_image_fd.len, old.charset)
name='', file=new_image_fd, content_type=None, size=new_image_fd.len, charset=None)
def clean_photo(self): # Safe copy of data... self.cleaned_data['photo'].seek(0) data = self.cleaned_data['photo'].read() self.cleaned_data['photo'].seek(0) data_fd = StringIO.StringIO(data)
74354f7eaa785fd884dc3fd9d2f18ae73f55c910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/74354f7eaa785fd884dc3fd9d2f18ae73f55c910/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 17232, 12, 2890, 4672, 468, 14060, 1610, 434, 501, 2777, 365, 18, 6200, 329, 67, 892, 3292, 17232, 29489, 16508, 12, 20, 13, 501, 273, 365, 18, 6200, 329, 67, 892, 3292, 1723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 17232, 12, 2890, 4672, 468, 14060, 1610, 434, 501, 2777, 365, 18, 6200, 329, 67, 892, 3292, 17232, 29489, 16508, 12, 20, 13, 501, 273, 365, 18, 6200, 329, 67, 892, 3292, 1723...
build_base = self.get_peer_option ('build', 'build_base') output_dir = os.path.join (build_base, "bdist") self.make_install_tree (output_dir, inputs, outputs)
self.announce ("installing to %s" % self.bdist_dir) install.ensure_ready() install.run()
def run (self):
54c7c4e402eaf3e8a11e2e86de977bcf04f3870e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54c7c4e402eaf3e8a11e2e86de977bcf04f3870e/bdist_dumb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
security.declareProtected(permissions.ModifyPortalContent,
security.declareProtected(CMFCorePermissions.ModifyPortalContent,
def unmarkCreationFlag(self): """Removes the creation flag. """ if shasattr(aq_inner(self), '_at_creation_flag'): self._at_creation_flag = False
460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 3355, 9906, 4678, 12, 2890, 4672, 3536, 6220, 326, 6710, 2982, 18, 3536, 309, 699, 345, 1747, 12, 69, 85, 67, 7872, 12, 2890, 3631, 2070, 270, 67, 17169, 67, 6420, 11, 4672, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 3355, 9906, 4678, 12, 2890, 4672, 3536, 6220, 326, 6710, 2982, 18, 3536, 309, 699, 345, 1747, 12, 69, 85, 67, 7872, 12, 2890, 3631, 2070, 270, 67, 17169, 67, 6420, 11, 4672, 365, ...
i = r.next()
i = r.instances.next()
def start(self): self.stop() ec2 = boto.connect_ec2() ami = ec2.get_all_images(image_ids = [str(self.ami_id)])[0] groups = ec2.get_all_security_groups(groupnames=[str(self.security_group)]) if not self._config: self._config = boto.utils.fetch_file(self.config_uri).read() r = ami.run(min_count=1, max_count=1, key_name=s...
dc444c07978628103947eaaa2a61e09aecef6a77 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/dc444c07978628103947eaaa2a61e09aecef6a77/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 5681, 1435, 6557, 22, 273, 17228, 18, 3612, 67, 557, 22, 1435, 2125, 77, 273, 6557, 22, 18, 588, 67, 454, 67, 7369, 12, 2730, 67, 2232, 273, 306, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 5681, 1435, 6557, 22, 273, 17228, 18, 3612, 67, 557, 22, 1435, 2125, 77, 273, 6557, 22, 18, 588, 67, 454, 67, 7369, 12, 2730, 67, 2232, 273, 306, 701, ...
new_table_set_col_attr(self.__connection__, table, self.__skeleton__[table])
new_table_set_col_attr(self.__connection__, table_name, self.__skeleton__[table_name])
def make_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...)
85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 8258, 67, 856, 12, 2890, 16, 1014, 16, 645, 67, 529, 4672, 3536, 21464, 6229, 12786, 2347, 862, 1584, 4437, 7662, 789, 3063, 5398, 4437, 10366, 985, 7660, 10336, 5069, 380, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 8258, 67, 856, 12, 2890, 16, 1014, 16, 645, 67, 529, 4672, 3536, 21464, 6229, 12786, 2347, 862, 1584, 4437, 7662, 789, 3063, 5398, 4437, 10366, 985, 7660, 10336, 5069, 380, 188...
'hypervisor': instance.hypervisor,
'hypervisor_name': instance.hypervisor,
def _BuildInstanceHookEnvByObject(lu, instance, override=None): """Builds instance related env variables for hooks from an object. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type instance: L{objects.Instance} @param instance: the instance for which we should build the environment ...
b0c63e2b928e5082ad8e2b2b0d3a88d93acf2cd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/b0c63e2b928e5082ad8e2b2b0d3a88d93acf2cd9/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3116, 1442, 5394, 3491, 858, 921, 12, 28832, 16, 791, 16, 3849, 33, 7036, 4672, 3536, 7746, 791, 3746, 1550, 3152, 364, 9153, 628, 392, 733, 18, 225, 632, 723, 20072, 30, 511, 95,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3116, 1442, 5394, 3491, 858, 921, 12, 28832, 16, 791, 16, 3849, 33, 7036, 4672, 3536, 7746, 791, 3746, 1550, 3152, 364, 9153, 628, 392, 733, 18, 225, 632, 723, 20072, 30, 511, 95,...
data_partner = self.pool.get('res.partner').browse(cr,uid,partner_id)
if partner_id: data_partner = self.pool.get('res.partner').browse(cr,uid,partner_id)
def product_id_change(self, cr, uid, ids,product_id,partner_id=False,member_price=False): price_unit=uos_id=prod_name=a=False
2d4c7de0c7ef7d0424d25cc794c8b1f894368de0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/2d4c7de0c7ef7d0424d25cc794c8b1f894368de0/cci_mission.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5896, 67, 350, 16, 31993, 67, 350, 33, 8381, 16, 5990, 67, 8694, 33, 8381, 4672, 6205, 67, 4873, 33, 89, 538, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5896, 67, 350, 16, 31993, 67, 350, 33, 8381, 16, 5990, 67, 8694, 33, 8381, 4672, 6205, 67, 4873, 33, 89, 538, 6...
result = int(unit * 25.4 * 4 / 72 * 10)
result = int(unit * (dpi/72.) * 10)
def unit_convert(val, ref=80): """ Tries to convert html units stored in C{val} to pixels. C{ref} contains the reference value for relative units. Returns the number of pixels (an int) if successful. Otherwise, returns None. Assumes: 1 pixel is 1/4 mm. One em is 10pts """ result = None m = re.match("\s*(-*[0-9]*\.?[0-9...
dd3c14b0f1676aa7cd8ca8e54b190acd43418506 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/dd3c14b0f1676aa7cd8ca8e54b190acd43418506/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2836, 67, 6283, 12, 1125, 16, 1278, 33, 3672, 4672, 3536, 10000, 281, 358, 1765, 1729, 4971, 4041, 316, 385, 95, 1125, 97, 358, 8948, 18, 385, 95, 1734, 97, 1914, 326, 2114, 460, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2836, 67, 6283, 12, 1125, 16, 1278, 33, 3672, 4672, 3536, 10000, 281, 358, 1765, 1729, 4971, 4041, 316, 385, 95, 1125, 97, 358, 8948, 18, 385, 95, 1734, 97, 1914, 326, 2114, 460, 364, ...
for header in output_headers: full_path = os.path.normpath(os.path.join(intermediate_path, header)) if os.path.exists(full_path): try: os.remove(full_path) except OSError, e:
for header in output_headers: full_path = os.path.normpath(os.path.join(intermediate_path, header)) if os.path.exists(full_path): try: os.remove(full_path) except OSError, e:
def total_split(path): components = [] while path: head, tail = os.path.split(path) if not tail: break components.append(tail) path = head return list(reversed(components))
f5c515d2731a81ad87df53231d2f3cccc4aab4b8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/f5c515d2731a81ad87df53231d2f3cccc4aab4b8/clobber_generated_headers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2078, 67, 4939, 12, 803, 4672, 4085, 273, 5378, 1323, 589, 30, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 803, 13, 309, 486, 5798, 30, 898, 4085, 18, 6923, 12, 13101, 13, 589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2078, 67, 4939, 12, 803, 4672, 4085, 273, 5378, 1323, 589, 30, 910, 16, 5798, 273, 1140, 18, 803, 18, 4939, 12, 803, 13, 309, 486, 5798, 30, 898, 4085, 18, 6923, 12, 13101, 13, 589, ...
access_key = self.config.get('Credentials', 'aws_access_key_id', None)
access_key = self.config.get_value('Credentials', 'aws_access_key_id', None)
def write_env_setup(self): fp = open('/etc/profile.d/aws.sh', 'w') fp.write('\n# AWS Environment Setup Script\n') access_key = self.config.get('Credentials', 'aws_access_key_id', None) if access_key: fp.write('export AWS_ACCESS_KEY_ID=%s\n' % access_key) secret_key = self.config.get('Credentials', 'aws_secret_access_ke...
57af29b935af13752666f35bf3c761a77e8b90d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1098/57af29b935af13752666f35bf3c761a77e8b90d0/loadboto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 3074, 67, 8401, 12, 2890, 4672, 4253, 273, 1696, 2668, 19, 14175, 19, 5040, 18, 72, 19, 6850, 18, 674, 2187, 296, 91, 6134, 4253, 18, 2626, 2668, 64, 82, 7, 3279, 7518, 109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 3074, 67, 8401, 12, 2890, 4672, 4253, 273, 1696, 2668, 19, 14175, 19, 5040, 18, 72, 19, 6850, 18, 674, 2187, 296, 91, 6134, 4253, 18, 2626, 2668, 64, 82, 7, 3279, 7518, 109...
def test_gtype_return_ptr(self): self.assertEquals(gobject.TYPE_NONE, TestGI.gtype_return_ptr())
def test_gtype_return_ptr(self): self.assertEquals(gobject.TYPE_NONE, TestGI.gtype_return_ptr())
aefac8c5f64bf059dd6652f8a843d17b34fa0854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8659/aefac8c5f64bf059dd6652f8a843d17b34fa0854/test_gi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 75, 723, 67, 2463, 67, 6723, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 75, 1612, 18, 2399, 67, 9826, 16, 7766, 13797, 18, 75, 723, 67, 2463, 67, 6723, 10756, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 75, 723, 67, 2463, 67, 6723, 12, 2890, 4672, 365, 18, 11231, 8867, 12, 75, 1612, 18, 2399, 67, 9826, 16, 7766, 13797, 18, 75, 723, 67, 2463, 67, 6723, 10756, 2, -100, -100,...
FL_Coord, STRING],
FL_Coord, STRING],
def fl_goodies_atclose(p1, p2): """ fl_goodies_atclose(p1, p2) -> num. """ retval = _fl_goodies_atclose(p1, p2) 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, 3240, 18134, 67, 270, 4412, 12, 84, 21, 16, 293, 22, 4672, 3536, 1183, 67, 3240, 18134, 67, 270, 4412, 12, 84, 21, 16, 293, 22, 13, 317, 818, 18, 3536, 225, 5221, 273, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3240, 18134, 67, 270, 4412, 12, 84, 21, 16, 293, 22, 4672, 3536, 1183, 67, 3240, 18134, 67, 270, 4412, 12, 84, 21, 16, 293, 22, 13, 317, 818, 18, 3536, 225, 5221, 273, 38...
r""" Square-free numbers INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005117;a Square-free numbers. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(2) 2 sage: a(12) 17 sage: a.list(12) [1, 2, 3, 5, 6, 7, 10, 1...
def __init__(self): r""" Square-free numbers INPUT: n -- positive integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A005117;a Square-free numbers. sage: a(0) Traceback (most recent call last): ... ValueError: input n (=0) must be a positive integer sage: a(2) 2 sage: a(12) 17 sage: a.list(12) [1, ...
def list(self, n): try: if len(self._b) <= n: raise IndexError else: return self._b[:n] except (AttributeError, IndexError): self._precompute() # try again return self.list(n)
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 775, 30, 309, 562, 12, 2890, 6315, 70, 13, 1648, 290, 30, 1002, 10195, 469, 30, 327, 365, 6315, 70, 10531, 82, 65, 1335, 261, 1499, 668, 16, 10195, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 12, 2890, 16, 290, 4672, 775, 30, 309, 562, 12, 2890, 6315, 70, 13, 1648, 290, 30, 1002, 10195, 469, 30, 327, 365, 6315, 70, 10531, 82, 65, 1335, 261, 1499, 668, 16, 10195, 4672...
kid.enable_import()
kid.enable_import(path=self.templatedir)
def sendpage(self, req, thepage): """bridge to widget code to allow templating to gradually replace it""" if kid is not None and hasattr(thepage, "templatename") and hasattr(thepage, "templatevars"): # renders using templates rather than the underlying widget class kid.enable_import() #template = kid.Template(os.path.j...
b85dd504d8f174992ae82fb6c3feb6190dd23557 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11388/b85dd504d8f174992ae82fb6c3feb6190dd23557/pootle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 2433, 12, 2890, 16, 1111, 16, 326, 2433, 4672, 3536, 18337, 358, 3604, 981, 358, 1699, 28923, 358, 3087, 2544, 1230, 1453, 518, 8395, 309, 17395, 353, 486, 599, 471, 3859, 12, 451,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 2433, 12, 2890, 16, 1111, 16, 326, 2433, 4672, 3536, 18337, 358, 3604, 981, 358, 1699, 28923, 358, 3087, 2544, 1230, 1453, 518, 8395, 309, 17395, 353, 486, 599, 471, 3859, 12, 451,...
value += self._safe_read(chunk_left)
value.append(self._safe_read(chunk_left))
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = ''
baf4101b94fbd3dfe0f2e79f9e4d6a402a0b5cb6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/baf4101b94fbd3dfe0f2e79f9e4d6a402a0b5cb6/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 875, 2, -100, -100, -100, -100, ...
""" Return the discriminant of the quadratic extension K=Q(\sqrt{D}), i.e.
r""" Return the discriminant of the quadratic extension $K=Q(\sqrt{D})$, i.e.
def fundamental_discriminant(D): """ Return the discriminant of the quadratic extension K=Q(\sqrt{D}), i.e. an integer d congruent to either 0 or 1, mod 4, and such that, at most, the only square dividing it is 4. """ D = Integer(D) D = D.square_free_part() if D%4 == 1: return D return 4*D
da64bbf6f38b760c414abaa5b877dac9f88ffba4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/da64bbf6f38b760c414abaa5b877dac9f88ffba4/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1074, 14773, 287, 67, 2251, 9496, 20030, 12, 40, 4672, 436, 8395, 2000, 326, 29649, 20030, 434, 326, 26146, 2710, 271, 47, 33, 53, 4713, 24492, 95, 40, 6792, 8, 16, 277, 18, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1074, 14773, 287, 67, 2251, 9496, 20030, 12, 40, 4672, 436, 8395, 2000, 326, 29649, 20030, 434, 326, 26146, 2710, 271, 47, 33, 53, 4713, 24492, 95, 40, 6792, 8, 16, 277, 18, 73, ...
'switchPosition': 2, 'timeMaggedDown': None, 'scheduledMagDownTime': time.time(), 'scheduledMagUpTime': time.time(),
def connect(self, *args, **peripheralDict): """ TODO: Add error checking and handling """ #Give the ADR a client connection to LabRAD. #ADR's use the same connection as the ADR server. #Each ADR makes LabRAD requests in its own context.
4c26a662812540946b670d0dea14be83848dd982 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/4c26a662812540946b670d0dea14be83848dd982/ADR.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 380, 1968, 16, 2826, 457, 4337, 287, 5014, 4672, 3536, 2660, 30, 1436, 555, 6728, 471, 5057, 3536, 468, 43, 688, 326, 432, 6331, 279, 1004, 1459, 358, 511, 378, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 380, 1968, 16, 2826, 457, 4337, 287, 5014, 4672, 3536, 2660, 30, 1436, 555, 6728, 471, 5057, 3536, 468, 43, 688, 326, 432, 6331, 279, 1004, 1459, 358, 511, 378, 288...
return False def unmake_crossover_ok(twoPls): when = debug_pref("Offer Unmake Crossover...", Choice(["never", "always (even when incorrect)"]), non_debug = True, prefs_key = True ) return when != 'never'
return False def remove_crossover_ok(twoPls): "figure out whether to offer Remove Crossover, assuming bond directions are well-defined" Pl1, Pl2 = twoPls a,b = Pl1.ordered_bases d,c = Pl2.ordered_bases if bases_are_stacked((a, c)) and bases_are_stacked((b, d)) \ and not bases_are_stacked((a, d)) and not bas...
def make_crossover_ok(twoPls): ##### NEED TO MAKE THIS A RECOGNIZER so it can easily be told to print why it's not saying it's ok. Pl1, Pl2 = twoPls if Pl1.in_only_one_helix and Pl2.in_only_one_helix: involved1, involved2 = map( lambda pl: pl.involved_atoms_for_make_crossover, twoPls) if not sets_overlap(involved1, inv...
f3409c2827e88ba9c4c98914a03ed544d2b23aff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/f3409c2827e88ba9c4c98914a03ed544d2b23aff/crossovers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 14653, 1643, 67, 601, 12, 15415, 1749, 87, 4672, 468, 1970, 12901, 2056, 8493, 19316, 6859, 20676, 432, 2438, 3865, 8318, 6867, 654, 1427, 518, 848, 17997, 506, 268, 1673, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 14653, 1643, 67, 601, 12, 15415, 1749, 87, 4672, 468, 1970, 12901, 2056, 8493, 19316, 6859, 20676, 432, 2438, 3865, 8318, 6867, 654, 1427, 518, 848, 17997, 506, 268, 1673, 358, ...
id = 'action_%s_resolve_resolution' % action
def render_ticket_action_control(self, req, ticket, action):
2e3fe1993c32c7abb8d0c7e86eec4f07fb7bb7cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/2e3fe1993c32c7abb8d0c7e86eec4f07fb7bb7cd/default_workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 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,...
[ 1, 1, 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, 1743, 67, 16282, 67, 1128, 67, 7098, 12, 2890, 16, 1111, 16, 9322, 16, 1301, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
subscribe_address = Utils.LCDomain(mail.GetSender())
subscribe_address = Utils.LCDomain(mail.get_sender())
def ProcessSubscribeCmd(self, args, cmd, mail): """Parse subscription request and send confirmation request."""
fd50f6ba3c52ce475f91f07aef2835cffeada335 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fd50f6ba3c52ce475f91f07aef2835cffeada335/MailCommandHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 16352, 5931, 12, 2890, 16, 833, 16, 1797, 16, 4791, 4672, 3536, 3201, 4915, 590, 471, 1366, 14296, 590, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 16352, 5931, 12, 2890, 16, 833, 16, 1797, 16, 4791, 4672, 3536, 3201, 4915, 590, 471, 1366, 14296, 590, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
gdaltest.tiff_drv.Delete( 'tmp/test_6.tif' )
gdaltest.tiff_drv.Delete( 'tmp/test_8.tif' )
def tiff_write_8(): options= [ 'TILED=YES', 'BLOCKSIZE=32', 'COMPRESS=PACKBITS' ] ds = gdaltest.tiff_drv.Create( 'tmp/test_6.tif', 200, 200, 1, gdal.GDT_Byte, options ) # make a 32x32 byte buffer buf = array.array('B',range(32)).tostring() for i in range(5): buf = buf + buf ds.WriteRaster( 0, 0, 32, 32, buf, buf_typ...
777d5aad0cbc14d0eb98f470cd8022c9b6d43be0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/777d5aad0cbc14d0eb98f470cd8022c9b6d43be0/tiff_write.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 3048, 67, 2626, 67, 28, 13332, 225, 702, 33, 306, 296, 56, 9504, 33, 29081, 2187, 296, 11403, 4574, 33, 1578, 2187, 296, 4208, 22526, 33, 12231, 25171, 11, 308, 3780, 273, 15551, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3048, 67, 2626, 67, 28, 13332, 225, 702, 33, 306, 296, 56, 9504, 33, 29081, 2187, 296, 11403, 4574, 33, 1578, 2187, 296, 4208, 22526, 33, 12231, 25171, 11, 308, 3780, 273, 15551, ...
this = apply(_quickfix.new_DisplayWhen, args)
this = _quickfix.new_DisplayWhen(*args)
def __init__(self, *args): this = apply(_quickfix.new_DisplayWhen, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 4236, 9434, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 4236, 9434, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 1...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0050char(self): ''' Test Char. ''' char1_id = self.char.create({ 'char': 'Test', }, CONTEXT) self.assert_(char1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3361, 3001, 12, 2890, 4672, 9163, 7766, 3703, 18, 9163, 1149, 21, 67, 350, 273, 365, 18, 3001, 18, 2640, 12590, 296, 3001, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 3361, 3001, 12, 2890, 4672, 9163, 7766, 3703, 18, 9163, 1149, 21, 67, 350, 273, 365, 18, 3001, 18, 2640, 12590, 296, 3001, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, ...