rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
labeltabColsTitle.pack(side=TOP,anchor=W,padx=5) self.scaleTabCols.pack(side=TOP,padx=5,fill=X)
def CreatePageFontTab(self): #tkVars self.fontSize=StringVar(self) self.fontBold=BooleanVar(self) self.fontName=StringVar(self) self.spaceNum=IntVar(self) self.tabCols=IntVar(self) self.indentBySpaces=BooleanVar(self) self.editFont=tkFont.Font(self,('courier',12,'normal')) ##widget creation #body frame frame=self.tabPa...
bbfc131c567f0e2a96e25138666f8f75d2d04b8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bbfc131c567f0e2a96e25138666f8f75d2d04b8e/configDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 5711, 5661, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 5776, 1225, 33, 780, 1537, 12, 2890, 13, 365, 18, 5776, 38, 1673, 33, 5507, 1537, 12, 2890, 13, 365, 18, 5776, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1964, 5711, 5661, 12, 2890, 4672, 468, 16099, 5555, 365, 18, 5776, 1225, 33, 780, 1537, 12, 2890, 13, 365, 18, 5776, 38, 1673, 33, 5507, 1537, 12, 2890, 13, 365, 18, 5776, 461, ...
assert down.m == [(down.cs_made[0], 'booga 3')] down.cs_made[0].send_message('booga 4')
assert down.m == [(down.cs_made[1], 'booga 3')] down.cs_made[1].send_message('booga 4')
def test_remote_connect_down(): up = DummyTransfer() down = DummyTransfer() s = DummyScheduler() c = Connecter(up, down, s, 5, 6) e = DummyEncrypter() c.set_encrypter(e) dc = DummyConnection('a' * 20) c.got_message(dc, 'upload') assert len(down.cs_made) == 1 and down.cs_made[0].get_id() == 'a' * 20 c.got_message(dc, ...
e515f2d77bfcdfdf465f07113b3fb94b00f492ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/e515f2d77bfcdfdf465f07113b3fb94b00f492ad/Connecter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7222, 67, 3612, 67, 2378, 13332, 731, 273, 28622, 5912, 1435, 2588, 273, 28622, 5912, 1435, 272, 273, 28622, 11870, 1435, 276, 273, 8289, 264, 12, 416, 16, 2588, 16, 272, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7222, 67, 3612, 67, 2378, 13332, 731, 273, 28622, 5912, 1435, 2588, 273, 28622, 5912, 1435, 272, 273, 28622, 11870, 1435, 276, 273, 8289, 264, 12, 416, 16, 2588, 16, 272, 16, ...
Result: A list of Category objects on success or a dictionary containing values for the keys, "faultCode" and "faultString".
Result: A list of Category objects on success
def testplan_update(self, plan_id, name, product_id, type_id, product_version, isactive): """Update An Existing TestPlan.
83012e559756373ef19add9ed3d26f1bf779a22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/231/83012e559756373ef19add9ed3d26f1bf779a22c/testopia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7088, 67, 2725, 12, 2890, 16, 4995, 67, 350, 16, 508, 16, 3017, 67, 350, 16, 618, 67, 350, 16, 3017, 67, 1589, 16, 353, 3535, 4672, 3536, 1891, 1922, 28257, 7766, 5365, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7088, 67, 2725, 12, 2890, 16, 4995, 67, 350, 16, 508, 16, 3017, 67, 350, 16, 618, 67, 350, 16, 3017, 67, 1589, 16, 353, 3535, 4672, 3536, 1891, 1922, 28257, 7766, 5365, 18, 2, ...
def perform(self, node, input_storage, output_storage): raise NotImplementedError('only C is implemented')
def perform(self, node, input_storage, output_storage): raise NotImplementedError('only C is implemented')
f14dc05d6b77472cd0e69b4934e537c2ebbdd4da /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/f14dc05d6b77472cd0e69b4934e537c2ebbdd4da/nnet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 16, 756, 16, 810, 67, 5697, 16, 876, 67, 5697, 4672, 1002, 11206, 2668, 3700, 385, 353, 8249, 6134, 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, 3073, 12, 2890, 16, 756, 16, 810, 67, 5697, 16, 876, 67, 5697, 4672, 1002, 11206, 2668, 3700, 385, 353, 8249, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
(identity.current.user_name, self.groupnames))
(identity.current.user_name, self.owner_memberships))
def _acl_can_be_held_by_user(self, acl, user=None): '''Return true if the user is allowed to hold the specified acl.
b28495bbefcf7e8025cf3331820ea585282a7ec1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/b28495bbefcf7e8025cf3331820ea585282a7ec1/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10150, 67, 4169, 67, 2196, 67, 76, 488, 67, 1637, 67, 1355, 12, 2890, 16, 7895, 16, 729, 33, 7036, 4672, 9163, 990, 638, 309, 326, 729, 353, 2935, 358, 6887, 326, 1269, 7895, 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, 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, 10150, 67, 4169, 67, 2196, 67, 76, 488, 67, 1637, 67, 1355, 12, 2890, 16, 7895, 16, 729, 33, 7036, 4672, 9163, 990, 638, 309, 326, 729, 353, 2935, 358, 6887, 326, 1269, 7895, 18...
gLogger.fatal(errStr,self.name) return S_ERROR(errStr) resDict = {'Failed':failed,'Successful':successful} return S_OK(resDict) def putFile(self,path,sourceSize=0): res = self.checkArgumentFormat(path)
gLogger.fatal( errStr, self.name ) return S_ERROR( errStr ) resDict = {'Failed':failed, 'Successful':successful} return S_OK( resDict ) def putFile( self, path, sourceSize = 0 ): res = self.checkArgumentFormat( path )
def getFileSize(self,path): """Get the physical size of the given file """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value']
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 1225, 12, 2890, 16, 803, 4672, 3536, 967, 326, 11640, 963, 434, 326, 864, 585, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6034, 1225, 12, 2890, 16, 803, 4672, 3536, 967, 326, 11640, 963, 434, 326, 864, 585, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, ...
reportToUpdate = inputState.getJobReport()
def stageOut(): """ _stageOut_ Main function for this module. Loads data from the task and manages the stage out process for a single attempt """ state = TaskState(os.getcwd()) state.loadRunResDB() workflow = WorkflowSpec() workflow.load(os.environ['PRODAGENT_WORKFLOW_SPEC']) stageOutFor, override, controls = Sta...
e03c0c8527aa1fd1ba74430016f47be0c1c0b073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/e03c0c8527aa1fd1ba74430016f47be0c1c0b073/RuntimeStageOut.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6009, 1182, 13332, 3536, 389, 12869, 1182, 67, 225, 12740, 445, 364, 333, 1605, 18, 4444, 87, 501, 628, 326, 1562, 471, 20754, 281, 326, 6009, 596, 1207, 364, 279, 2202, 4395, 225, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6009, 1182, 13332, 3536, 389, 12869, 1182, 67, 225, 12740, 445, 364, 333, 1605, 18, 4444, 87, 501, 628, 326, 1562, 471, 20754, 281, 326, 6009, 596, 1207, 364, 279, 2202, 4395, 225, 3536,...
template = "account/email_validate_email.html"
def add(self, user, type, email): """ Add a new validation process entry """ while True: key = User.objects.make_random_password(70) try: Validation.objects.get(key=key) except Validation.DoesNotExist: self.key = key break
eb0016dfe4cd52b2bbba09899ffa0fb5cf6cadda /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12976/eb0016dfe4cd52b2bbba09899ffa0fb5cf6cadda/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 729, 16, 618, 16, 2699, 4672, 3536, 1436, 279, 394, 3379, 1207, 1241, 3536, 1323, 1053, 30, 498, 273, 2177, 18, 6911, 18, 6540, 67, 9188, 67, 3664, 12, 7301, 13, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 12, 2890, 16, 729, 16, 618, 16, 2699, 4672, 3536, 1436, 279, 394, 3379, 1207, 1241, 3536, 1323, 1053, 30, 498, 273, 2177, 18, 6911, 18, 6540, 67, 9188, 67, 3664, 12, 7301, 13, 7...
cline = cline + " -TRANSWEIGHT=%s" % self.trans_weight
cline += " -TRANSWEIGHT=%s" % self.trans_weight
def __str__(self): """Write out the command line as a string.""" cline = self.command + " " + self.sequence_file
2eec844bd4b813ca4a021c23a58ac4936477a812 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/2eec844bd4b813ca4a021c23a58ac4936477a812/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 3067, 596, 326, 1296, 980, 487, 279, 533, 12123, 927, 558, 273, 365, 18, 3076, 397, 315, 315, 397, 365, 18, 6178, 67, 768, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 3067, 596, 326, 1296, 980, 487, 279, 533, 12123, 927, 558, 273, 365, 18, 3076, 397, 315, 315, 397, 365, 18, 6178, 67, 768, 2, -100, -100, -100, ...
self.printIndented("<Component Id=\"" + componentId + "\" Guid=\"" + guid + "\" DiskId=\"1\">") self.incrementIndent()
component = "<Component Id=\"" + componentId + "\" Guid=\"" + guid + "\" DiskId=\"1\"" if self.win64: component += " Win64=\"" + self.win64 + "\"" component += ">" self.printIndented(component) self.incrementIndent()
def startComponent(self, componentId, guid): self.printIndented("<Component Id=\"" + componentId + "\" Guid=\"" + guid + "\" DiskId=\"1\">") self.incrementIndent()
f73b0c64e753681bdcfe45cab4cfc40cb805f813 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5450/f73b0c64e753681bdcfe45cab4cfc40cb805f813/harvest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1841, 12, 2890, 16, 29976, 16, 9875, 4672, 1794, 273, 3532, 1841, 3124, 13186, 397, 29976, 397, 7023, 611, 1911, 13186, 397, 9875, 397, 7023, 12951, 548, 5189, 21, 8530, 309, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1841, 12, 2890, 16, 29976, 16, 9875, 4672, 1794, 273, 3532, 1841, 3124, 13186, 397, 29976, 397, 7023, 611, 1911, 13186, 397, 9875, 397, 7023, 12951, 548, 5189, 21, 8530, 309, 365, 1...
wikipedia.output(newcontent) self.page.put(newcontent, comment = summary)
self.page.put(self.content, comment = summary)
def handlebadpage(self): try: self.content = self.page.get() except wikipedia.IsRedirectPage: wikipedia.output(u'Already redirected, skipping.') return except wikipedia.NoPage: wikipedia.output(u'Already deleted') return
ca708b8e06afe9a610956cccce093f30516019bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/ca708b8e06afe9a610956cccce093f30516019bf/followlive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 8759, 2433, 12, 2890, 4672, 775, 30, 365, 18, 1745, 273, 365, 18, 2433, 18, 588, 1435, 1335, 21137, 18, 2520, 5961, 1964, 30, 21137, 18, 2844, 12, 89, 11, 9430, 21808, 16, 14195,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 8759, 2433, 12, 2890, 4672, 775, 30, 365, 18, 1745, 273, 365, 18, 2433, 18, 588, 1435, 1335, 21137, 18, 2520, 5961, 1964, 30, 21137, 18, 2844, 12, 89, 11, 9430, 21808, 16, 14195,...
response = IncludedResponse
response = IncludedResponse()
def activate(self, environ): response = IncludedResponse def start_response(status, headers, exc_info=None): if exc_info: raise exc_info[0], exc_info[1], exc_info[2] response.status = status response.headers = headers return response.write app_iter = self.application(environ, start_response) try: for s in app_iter: res...
767dc45a6585a8b9780a8e0936ab28e08e122e9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/767dc45a6585a8b9780a8e0936ab28e08e122e9b/recursive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 12, 2890, 16, 5473, 4672, 766, 273, 657, 7908, 1064, 1435, 1652, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 309, 3533, 67, 1376, 30, 1002, 3533, 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, 10235, 12, 2890, 16, 5473, 4672, 766, 273, 657, 7908, 1064, 1435, 1652, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 309, 3533, 67, 1376, 30, 1002, 3533, 67, ...
self.updateProgressMicroStep("generating book descriptions ...", float(title_num*100/len(self.booksByTitle))/100)
self.updateProgressMicroStep("Description %d of %d" % \ (title_num, len(self.booksByTitle)), float(title_num*100/len(self.booksByTitle))/100)
def generateHTMLDescriptions(self): # Write each title to a separate HTML file in contentdir self.opts.log.info(self.updateProgressFullStep("generateHTMLDescriptions()"))
1ce23c231468dc03709ee76c7da814fa41c6e4a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/1ce23c231468dc03709ee76c7da814fa41c6e4a7/catalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 4870, 16844, 12, 2890, 4672, 468, 2598, 1517, 2077, 358, 279, 9004, 3982, 585, 316, 913, 1214, 365, 18, 4952, 18, 1330, 18, 1376, 12, 2890, 18, 2725, 5491, 5080, 4160, 2932, 7163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 4870, 16844, 12, 2890, 4672, 468, 2598, 1517, 2077, 358, 279, 9004, 3982, 585, 316, 913, 1214, 365, 18, 4952, 18, 1330, 18, 1376, 12, 2890, 18, 2725, 5491, 5080, 4160, 2932, 7163, ...
if len(res['Value']) == 0: return S_OK ([])
if len( res['Value'] ) == 0: return S_OK ( [] )
def getHeartBeatData(self,jobID): """ Retrieve the job's heart beat data """ ret = self._escapeString(jobID) if not ret['OK']: return ret jobID = ret['Value']
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5256, 485, 1919, 270, 751, 12, 2890, 16, 4688, 734, 4672, 3536, 10708, 326, 1719, 1807, 3904, 485, 23795, 501, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4688, 734, 13, 309, 486, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5256, 485, 1919, 270, 751, 12, 2890, 16, 4688, 734, 4672, 3536, 10708, 326, 1719, 1807, 3904, 485, 23795, 501, 3536, 325, 273, 365, 6315, 6939, 780, 12, 4688, 734, 13, 309, 486, 3...
f = open(TESTFN, 'w+') f.write("ABCDEabcde")
f = open(TESTFN, 'wb+') f.write(b"ABCDEabcde")
def test_move(self): # make move works everywhere (64-bit format problem earlier) f = open(TESTFN, 'w+')
d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8501, 12, 2890, 4672, 468, 1221, 3635, 6330, 3614, 6051, 261, 1105, 17, 3682, 740, 6199, 13805, 13, 284, 273, 1696, 12, 16961, 19793, 16, 296, 91, 15, 6134, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8501, 12, 2890, 4672, 468, 1221, 3635, 6330, 3614, 6051, 261, 1105, 17, 3682, 740, 6199, 13805, 13, 284, 273, 1696, 12, 16961, 19793, 16, 296, 91, 15, 6134, 2, -100, -100, -1...
Subgroup of Mordell Weil group: [[1:-1:1], [-2:3:1], [-14:25:8]] In the next example, a serach bound of 12 is needed to find a non-torsin point::
Subgroup of Mordell-Weil group: [[1:-1:1], [-2:3:1], [-14:25:8]] In the next example, a search bound of 12 is needed to find a non-torsion point::
def search(self, height_limit=18, verbose=False): r""" Search for new points, and add them to this subgroup of the Mordell-Weil group.
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 2072, 67, 3595, 33, 2643, 16, 3988, 33, 8381, 4672, 436, 8395, 5167, 364, 394, 3143, 16, 471, 527, 2182, 358, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 12, 2890, 16, 2072, 67, 3595, 33, 2643, 16, 3988, 33, 8381, 4672, 436, 8395, 5167, 364, 394, 3143, 16, 471, 527, 2182, 358, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, ...
print 'Generating %s %s code...' %("and compiling " and options1.really_compile or "",options1.backend)
print 'Generating %s %s code...' %(options1.really_compile and "and compiling " or "",options1.backend)
def interpret(): import py from pypy.rpython.llinterp import LLInterpreter py.log.setconsumer("llinterp operation", None) interp = LLInterpreter(t.flowgraphs, t.rtyper) interp.eval_function(entry_point, targetspec_dic['get_llinterp_args']())
d245692231799788baf4c2be3bcaecdeb75db6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/d245692231799788baf4c2be3bcaecdeb75db6b7/translate_pypy_new.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10634, 13332, 1930, 2395, 628, 18951, 93, 18, 86, 8103, 18, 2906, 24940, 1930, 29863, 30010, 2395, 18, 1330, 18, 542, 13230, 2932, 2906, 24940, 1674, 3113, 599, 13, 8174, 273, 29863, 30010...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10634, 13332, 1930, 2395, 628, 18951, 93, 18, 86, 8103, 18, 2906, 24940, 1930, 29863, 30010, 2395, 18, 1330, 18, 542, 13230, 2932, 2906, 24940, 1674, 3113, 599, 13, 8174, 273, 29863, 30010...
elif self.objtype == 'cmember':
elif self.objtype == 'member':
def get_index_text(self, name): if self.objtype == 'cfunction': return _('%s (C function)') % name elif self.objtype == 'cmember': return _('%s (C member)') % name elif self.objtype == 'cmacro': return _('%s (C macro)') % name elif self.objtype == 'ctype': return _('%s (C type)') % name elif self.objtype == 'cvar': ret...
4038f49ca7f8e2aa4e79cdb9d7b8f6eba94d1aeb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/4038f49ca7f8e2aa4e79cdb9d7b8f6eba94d1aeb/c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1615, 67, 955, 12, 2890, 16, 508, 4672, 309, 365, 18, 2603, 723, 422, 296, 71, 915, 4278, 327, 389, 29909, 87, 261, 39, 445, 2506, 13, 738, 508, 1327, 365, 18, 2603, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1615, 67, 955, 12, 2890, 16, 508, 4672, 309, 365, 18, 2603, 723, 422, 296, 71, 915, 4278, 327, 389, 29909, 87, 261, 39, 445, 2506, 13, 738, 508, 1327, 365, 18, 2603, 723, ...
conf.read(f) sects = conf.sections() for sect in sects: if verbose: print "sect:", sect rev_merger(conf.items(sect), use_dict)
try: conf.read(f) sects = conf.sections() for sect in sects: if verbose: print "sect:", sect rev_merger(conf.items(sect), use_dict) except: print "!%s is not a valid keyword file"%f import pkg_resources
def rev_ini_annotator(use_dict, verbose=True): """ update revert dict by ini files
2a50941be1a6c8368a3d1c517506ec114dd7579d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1969/2a50941be1a6c8368a3d1c517506ec114dd7579d/pyzh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 67, 8767, 67, 18338, 639, 12, 1202, 67, 1576, 16, 3988, 33, 5510, 4672, 3536, 1089, 15226, 2065, 635, 6896, 1390, 225, 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, 5588, 67, 8767, 67, 18338, 639, 12, 1202, 67, 1576, 16, 3988, 33, 5510, 4672, 3536, 1089, 15226, 2065, 635, 6896, 1390, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.assertEqual(p.stderr.read(), "strawberry")
self.assertEqual(remove_stderr_debug_decorations(p.stderr.read()), "strawberry")
def test_stderr_pipe(self): # stderr redirection p = subprocess.Popen([sys.executable, "-c", 'import sys; sys.stderr.write("strawberry")'], stderr=subprocess.PIPE) self.assertEqual(p.stderr.read(), "strawberry")
3061b171f6d3b6e96578be96cafab4c3c44f4f97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3061b171f6d3b6e96578be96cafab4c3c44f4f97/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11241, 67, 14772, 12, 2890, 4672, 468, 4514, 19611, 293, 273, 6652, 18, 52, 3190, 3816, 9499, 18, 17751, 16, 3701, 71, 3113, 296, 5666, 2589, 31, 2589, 18, 11241, 18, 2626, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11241, 67, 14772, 12, 2890, 4672, 468, 4514, 19611, 293, 273, 6652, 18, 52, 3190, 3816, 9499, 18, 17751, 16, 3701, 71, 3113, 296, 5666, 2589, 31, 2589, 18, 11241, 18, 2626, 2...
"""
"""
def flps_invalidate_color_cache(): """ flps_invalidate_color_cache() """ _flps_invalidate_color_cache()
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, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 13332, 3536, 1183, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 3536, 225, 389, 2242, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 13332, 3536, 1183, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 3536, 225, 389, 2242, 1121, 67, 5387, 340, 67, 3266, 67, 2493, 1435, 28...
version='0.8.5',
version='0.9.0',
def publish(): """Publish to PyPi""" os.system("python setup.py sdist upload")
8d6e75ad20a2ae56ae7270ff7f4f8943af69e8db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14944/8d6e75ad20a2ae56ae7270ff7f4f8943af69e8db/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 13332, 3536, 6024, 358, 4707, 16539, 8395, 1140, 18, 4299, 2932, 8103, 3875, 18, 2074, 272, 4413, 3617, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3808, 13332, 3536, 6024, 358, 4707, 16539, 8395, 1140, 18, 4299, 2932, 8103, 3875, 18, 2074, 272, 4413, 3617, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def testWindowedRead(self): r = IECore.Reader.create(self.testfile)
r = IECore.Reader.create(self.testfile)
def testHalf(self):
9faa9bf4945d330bb4737cd1f3b3eb60b0ab6258 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9042/9faa9bf4945d330bb4737cd1f3b3eb60b0ab6258/EXRReader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16168, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 16168, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) try: self.yList.append( eval(yaxis, self.entry)[:,1]) except NameError: self.theSession.printMessage( "name '%s' is not defined \n" % yaxis ) self["entry%i"%num].set_text ('') self.changeyaxis( self["entry%i"%num] ) self.yList.append(['Non...
self.changexaxis( self["entry1"] ) self.xList.append(self.FullDataList[0][:,0]) self.yList.append ( self.FullDataList[num][:,1] ) else: num = 2 for yaxis in self.yaxis: if yaxis == '': self.xList.append (['None']) self.yList.append (['None']) else: try: self.xList.append( eval(self.xaxis, self.entry)[:,1]) except NameE...
def update( self ): if self.arg % 10 == 5: theStateList = self.setStateList() self.updateLoggerDataList() if self.LoggerDataList[0] == (): pass else: self.updateFullDataList() self.xList = [] self.yList = [] if self.xaxis == None or self.xaxis == 'time': if self.yaxis == None: for num in range(len(self.LoggerDataList)...
e25a4482966107fd645b73fd395987a2d02216c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/e25a4482966107fd645b73fd395987a2d02216c7/TracerWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 365, 262, 30, 309, 365, 18, 3175, 738, 1728, 422, 1381, 30, 326, 1119, 682, 273, 365, 18, 542, 1119, 682, 1435, 365, 18, 2725, 3328, 24274, 1435, 225, 309, 365, 18, 3328, 2...
global aniVal, rppVal, meshVal, materVal, frameVal, sceneVal, rppBtn, layerBtns, layers global rppBtn, layerBtns, layers, projectName, projectButton
global animation, sceneVal, layerBtns, layers, projectName, projectButton
def buttonEvent(evt): global aniVal, rppVal, meshVal, materVal, frameVal, sceneVal, rppBtn, layerBtns, layers global rppBtn, layerBtns, layers, projectName, projectButton if evt == 8: projectName = projectButton.val if evt == 1: doExport() if evt == 2: print "Rendering...\n" elif evt == 4: aniVal = 1 - aniVal elif ev...
4592ac1c6506933737691ef09136834b05443979 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1122/4592ac1c6506933737691ef09136834b05443979/adrt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 1133, 12, 73, 11734, 4672, 2552, 8794, 16, 9065, 3053, 16, 3018, 38, 88, 2387, 16, 6623, 16, 17234, 16, 1984, 3616, 225, 309, 6324, 422, 1725, 30, 17234, 273, 1984, 3616, 18, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 1133, 12, 73, 11734, 4672, 2552, 8794, 16, 9065, 3053, 16, 3018, 38, 88, 2387, 16, 6623, 16, 17234, 16, 1984, 3616, 225, 309, 6324, 422, 1725, 30, 17234, 273, 1984, 3616, 18, 112...
paths.append(path + [dep])
paths.append(newpath)
def filterNodes(self, seedsIn, seedsOut = None, allInBetween = False):
f147d159c71527bdeb50ccdc541809b1fc6b4bf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5315/f147d159c71527bdeb50ccdc541809b1fc6b4bf2/make_grapher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 3205, 12, 2890, 16, 19076, 382, 16, 19076, 1182, 273, 599, 16, 777, 382, 11831, 273, 1083, 4672, 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, 1034, 3205, 12, 2890, 16, 19076, 382, 16, 19076, 1182, 273, 599, 16, 777, 382, 11831, 273, 1083, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if encoding is None: stream = open(filename, mode) else: stream = codecs.open(filename, mode, encoding) StreamHandler.__init__(self, stream)
def __init__(self, filename, mode='a', encoding=None): """ Open the specified file and use it as the stream for logging. """ if codecs is None: encoding = None if encoding is None: stream = open(filename, mode) else: stream = codecs.open(filename, mode, encoding) StreamHandler.__init__(self, stream) #keep the absolute ...
17056c62515b43a5b6239930b4a8f88dfd01401e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/17056c62515b43a5b6239930b4a8f88dfd01401e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1965, 2218, 69, 2187, 2688, 33, 7036, 4672, 3536, 3502, 326, 1269, 585, 471, 999, 518, 487, 326, 1407, 364, 2907, 18, 3536, 309, 17437, 353, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1965, 2218, 69, 2187, 2688, 33, 7036, 4672, 3536, 3502, 326, 1269, 585, 471, 999, 518, 487, 326, 1407, 364, 2907, 18, 3536, 309, 17437, 353, 59...
log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
log.error('File ID ' + str(fileId) + ' not on this FSServer') raise monitors.OmeroFSError('File ID ' + str(fileId) + ' not on this FSServer')
def isDir(self, fileId, current=None): """ Return true if fileId represents a directory. :Parameters: fileId : string A string uniquely identifying a file on this Monitor. current An ICE context, this parameter is required to be present in an ICE interface method. :return: atime :rtype: float """ try: pathString = ...
c12bc7fb04f687c05f37bb5a6eba2577b9556cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/c12bc7fb04f687c05f37bb5a6eba2577b9556cda/MonitorServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17850, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 638, 309, 21223, 8686, 279, 1867, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17850, 12, 2890, 16, 21223, 16, 783, 33, 7036, 4672, 3536, 2000, 638, 309, 21223, 8686, 279, 1867, 18, 225, 294, 2402, 30, 21223, 294, 533, 432, 533, 30059, 29134, 279, 585, 603, 333, ...
num, cluster, password = station num = int(num) station_list[num] = (cluster, password)
if station: num, cluster, password = station num = int(num) station_list[num] = (cluster, password)
def do_init(configfile): """Load configuration and passwords and set up a logger handler This function will do one-time initialization. By using global variables, we eliminate the need to reread configuration and passwords on every request. """ # set up config global config try: config except NameError: config = Con...
12e09305df3c534ae7cf38793f64ee961ffba626 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11539/12e09305df3c534ae7cf38793f64ee961ffba626/wsgi_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2738, 12, 1425, 768, 4672, 3536, 2563, 1664, 471, 24210, 471, 444, 731, 279, 1194, 1838, 225, 1220, 445, 903, 741, 1245, 17, 957, 10313, 18, 225, 2525, 1450, 2552, 3152, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2738, 12, 1425, 768, 4672, 3536, 2563, 1664, 471, 24210, 471, 444, 731, 279, 1194, 1838, 225, 1220, 445, 903, 741, 1245, 17, 957, 10313, 18, 225, 2525, 1450, 2552, 3152, 16, 7...
if item.isDeleted(): itemToSelect = master.getRecurrenceID(recurrenceID) or master itemToSelect = itemToSelect.itsItem
assert not newMaster.itsItem.isDeleted() occurrence = newMaster.getRecurrenceID(newMaster.recurrenceID) itemToSelect = occurrence.itsItem
def SetAttributeValue(self, item, attributeName, value): """ Set the value of the attribute given by the value. """ assert value != RecurrenceAttributeEditor.customIndex # Changing the recurrence period on a non-master item could delete # this very 'item'; we'll try to select the "same" occurrence # afterwards ... asse...
11b8f583abddac7026bb8148cc6cfa8a4ea1070b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/11b8f583abddac7026bb8148cc6cfa8a4ea1070b/detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 14942, 12, 2890, 16, 761, 16, 9734, 16, 460, 4672, 3536, 1000, 326, 460, 434, 326, 1566, 864, 635, 326, 460, 18, 3536, 1815, 460, 480, 868, 17131, 1499, 6946, 18, 3662, 1016, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 14942, 12, 2890, 16, 761, 16, 9734, 16, 460, 4672, 3536, 1000, 326, 460, 434, 326, 1566, 864, 635, 326, 460, 18, 3536, 1815, 460, 480, 868, 17131, 1499, 6946, 18, 3662, 1016, 468...
if charAfter and chr(charAfter) in "[]{}()" and styleAfter == stc.STC_P_OPERATOR:
if charAfter and chr(charAfter) in "[]{}()" and styleAfter == stc.STC_C_OPERATOR:
def OnUpdateUI(self, evt): # check for matching braces braceAtCaret = -1 braceOpposite = -1 charBefore = None caretPos = self.GetCurrentPos()
50c444321a077c149eeb7545d767e753034d7fb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11200/50c444321a077c149eeb7545d767e753034d7fb8/Psycollider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1891, 5370, 12, 2890, 16, 6324, 4672, 468, 866, 364, 3607, 26852, 22500, 861, 39, 20731, 273, 300, 21, 22500, 3817, 4974, 273, 300, 21, 1149, 4649, 273, 599, 21683, 1616, 273, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1891, 5370, 12, 2890, 16, 6324, 4672, 468, 866, 364, 3607, 26852, 22500, 861, 39, 20731, 273, 300, 21, 22500, 3817, 4974, 273, 300, 21, 1149, 4649, 273, 599, 21683, 1616, 273, 365,...
self.client.server_response(self.server, response, statuscode, headers)
self.client.server_response(self.server, response, status, headers)
def server_response (self, response, statuscode, headers): """the server got a response""" # Okay, transfer control over to the real client if self.client.connected: config['requests']['valid'] += 1 self.server.client = self.client self.client.server_response(self.server, response, statuscode, headers) else: self.serve...
5aaaf0f8c7cbeb35466459a95e5888072c287921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/5aaaf0f8c7cbeb35466459a95e5888072c287921/ClientServerMatchmaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 2740, 261, 2890, 16, 766, 16, 1267, 710, 16, 1607, 4672, 3536, 5787, 1438, 2363, 279, 766, 8395, 468, 16154, 528, 16, 7412, 3325, 1879, 358, 326, 2863, 1004, 309, 365, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 2740, 261, 2890, 16, 766, 16, 1267, 710, 16, 1607, 4672, 3536, 5787, 1438, 2363, 279, 766, 8395, 468, 16154, 528, 16, 7412, 3325, 1879, 358, 326, 2863, 1004, 309, 365, 18, 26...
if not lc.IsOk():
if lc is None or not lc.IsOk():
def setWxLocale(locale, i18nMan): """ Sets the c{wx.Locale} to the value passed in c{str} locale argument.
56421d8e0e78b7cbb4f8e9fb940c24150df656c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/56421d8e0e78b7cbb4f8e9fb940c24150df656c5/i18nmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 59, 92, 3916, 12, 6339, 16, 277, 2643, 82, 5669, 4672, 3536, 11511, 326, 276, 95, 27226, 18, 3916, 97, 358, 326, 460, 2275, 316, 276, 95, 701, 97, 2573, 1237, 18, 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, 444, 59, 92, 3916, 12, 6339, 16, 277, 2643, 82, 5669, 4672, 3536, 11511, 326, 276, 95, 27226, 18, 3916, 97, 358, 326, 460, 2275, 316, 276, 95, 701, 97, 2573, 1237, 18, 2, -100, -100,...
response = runner.run(server, (digest, server))
runner.run(server, (digest, server))
def check(self, args): getopt.getopt(args[1:], '')
56b0371912ebd45ae7c0303ca204f2a438aa4ff9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7249/56b0371912ebd45ae7c0303ca204f2a438aa4ff9/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 833, 4672, 336, 3838, 18, 588, 3838, 12, 1968, 63, 21, 30, 6487, 28707, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 833, 4672, 336, 3838, 18, 588, 3838, 12, 1968, 63, 21, 30, 6487, 28707, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for lfn,fileID in res['Value']:
for lfn, fileID in res['Value']:
def getTransformationProblematics(self,transID): req = "SELECT LFN,FileID FROM Problematics WHERE Status = 'New' AND LFN LIKE '%s/%s/%s';" % ('%',('%8.f' % prodID).replace(' ','0'),'%') res = self._query(req) if not res['OK']: return res problematics = {} for lfn,fileID in res['Value']: problematics[lfn] = fileID retur...
c0ad35468416f798369c9462d5f8a11a19686a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c0ad35468416f798369c9462d5f8a11a19686a43/DataIntegrityDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15292, 13719, 270, 2102, 12, 2890, 16, 2338, 734, 4672, 1111, 273, 315, 4803, 18803, 50, 16, 812, 734, 4571, 21685, 270, 2102, 4852, 2685, 273, 296, 1908, 11, 4116, 18803, 50, 13161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15292, 13719, 270, 2102, 12, 2890, 16, 2338, 734, 4672, 1111, 273, 315, 4803, 18803, 50, 16, 812, 734, 4571, 21685, 270, 2102, 4852, 2685, 273, 296, 1908, 11, 4116, 18803, 50, 13161...
if empty_to_zero and index == '':
if empty_to_zero and not index:
def _index_to_int(self, index, empty_to_zero=False): if empty_to_zero and index == '': return 0 try: return int(index) except ValueError: raise ValueError("Cannot convert index '%s' to an integer" % index)
1a30ca3f7347244c59d0f784ad3f1162492374e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/1a30ca3f7347244c59d0f784ad3f1162492374e1/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 67, 869, 67, 474, 12, 2890, 16, 770, 16, 1008, 67, 869, 67, 7124, 33, 8381, 4672, 309, 1008, 67, 869, 67, 7124, 471, 486, 770, 30, 327, 374, 775, 30, 327, 509, 12, 1615,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 67, 869, 67, 474, 12, 2890, 16, 770, 16, 1008, 67, 869, 67, 7124, 33, 8381, 4672, 309, 1008, 67, 869, 67, 7124, 471, 486, 770, 30, 327, 374, 775, 30, 327, 509, 12, 1615,...
if not isinstance(b, bytes): if hasattr(b, "__index__"): raise TypeError("Can't write object of type %s" % type(b).__name__) b = bytes(b)
if isinstance(b, str): raise TypeError("can't write str to binary stream")
def write(self, b): if self.closed: raise ValueError("write to closed file") if not isinstance(b, bytes): if hasattr(b, "__index__"): raise TypeError("Can't write object of type %s" % type(b).__name__) b = bytes(b) # XXX we can implement some more tricks to try and avoid partial writes if len(self._write_buf) > self.bu...
ca2411b61de7457be2e1b8115f6254037cecf183 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ca2411b61de7457be2e1b8115f6254037cecf183/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 324, 4672, 309, 365, 18, 12204, 30, 1002, 2068, 2932, 2626, 358, 4375, 585, 7923, 309, 1549, 12, 70, 16, 609, 4672, 1002, 3580, 2932, 4169, 1404, 1045, 609, 358, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 324, 4672, 309, 365, 18, 12204, 30, 1002, 2068, 2932, 2626, 358, 4375, 585, 7923, 309, 1549, 12, 70, 16, 609, 4672, 1002, 3580, 2932, 4169, 1404, 1045, 609, 358, 31...
self.entry = gtk.Entry() self.pack_start(self.entry) self.entry.show() self.button = gtk.Button("...") self.button.connect("clicked", self.show_dialog) self.pack_start(self.button, expand=False)
self.button = gtk.FileChooserButton("Pick a file") self.pack_start(self.button, False, False, 6) self.button.set_filename (default)
def __init__(self, default=""): gtk.HBox.__init__(self, False, 5) self.entry = gtk.Entry() self.pack_start(self.entry) self.entry.show() self.button = gtk.Button("...") self.button.connect("clicked", self.show_dialog) self.pack_start(self.button, expand=False) self.button.show()
9396fb5b6609afc5f2bbe1d5c2eb54424e5b9330 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/9396fb5b6609afc5f2bbe1d5c2eb54424e5b9330/gimpui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 805, 1546, 6, 4672, 22718, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 1381, 13, 365, 18, 5391, 273, 22718, 18, 812, 17324, 3616, 2932, 17968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 805, 1546, 6, 4672, 22718, 18, 44, 3514, 16186, 2738, 972, 12, 2890, 16, 1083, 16, 1381, 13, 365, 18, 5391, 273, 22718, 18, 812, 17324, 3616, 2932, 17968...
o = open(self.pointOutput, 'w')
o = open(self.pointOutputFile, 'w')
def _grabPoints(self): """ Reads vertex indices from a pset file. """ f = file(self.ucdFile) lines = f.readlines() fileLen = len(lines) firstline = lines[0].split() numVerts = int(firstline[0]) numCells = int(firstline[1]) numVertAttrs = int(firstline[2]) vertInd = 0 ucdInd = 0 # Get vertex coordinates for lineCount in...
ace54b3397b4474efcd5c466bf6bb37dfeef58a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8645/ace54b3397b4474efcd5c466bf6bb37dfeef58a6/grabpoints.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2752, 70, 5636, 12, 2890, 4672, 3536, 29185, 5253, 4295, 628, 279, 293, 542, 585, 18, 3536, 284, 273, 585, 12, 2890, 18, 89, 4315, 812, 13, 2362, 273, 284, 18, 896, 3548, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2752, 70, 5636, 12, 2890, 4672, 3536, 29185, 5253, 4295, 628, 279, 293, 542, 585, 18, 3536, 284, 273, 585, 12, 2890, 18, 89, 4315, 812, 13, 2362, 273, 284, 18, 896, 3548, 1435, ...
file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n") def WriteGLES2ImplementationHeader(self, func, file): """Writes the GLES2 Implemention."""
def WriteGLES2ImplementationDeclaration(self, func, file): """Writes the GLES2 Implemention declaration.""" file.Write("%s %s(%s);\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) file.Write("\n")
b8fb1c2876060305792c0b72943407a8dd011c60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b8fb1c2876060305792c0b72943407a8dd011c60/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 6094, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 8266, 12123, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 20472, 82, 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, 2598, 43, 11386, 22, 13621, 6094, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 8368, 326, 611, 11386, 22, 10886, 285, 8266, 12123, 585, 18, 3067, 27188, 87, 738, 87, 9275, 87, 20472, 82, 6...
local_sdp = SDPSession.new(self._invitation.sdp.active_local) local_sdp.version += 1 removed_streams = [stream for stream in self.streams if stream.index in removed_media_indexes] prev_on_hold_streams = set(stream for stream in self.streams if stream.hold_supported and stream.on_hold_by_remote) for stream in removed_st...
self.state = 'connected' elif notification.data.state == 'disconnected': if self.state == 'incoming': self.state = 'terminated' if notification.data.originator == 'remote': notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method='INVITE', co...
def _NH_SIPInvitationChangedState(self, notification): notification_center = NotificationCenter() if self.greenlet is not None and self.greenlet is not api.getcurrent(): if notification.data.state == 'disconnected' and notification.data.prev_state != 'disconnecting': self._channel.send_exception(InvitationDidFailError(...
6da5670f0b72ac50f967cb615c5979d56c795edf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/6da5670f0b72ac50f967cb615c5979d56c795edf/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 19896, 5033, 1119, 12, 2890, 16, 3851, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 365, 18, 11571, 1810, 353, 486, 599, 471, 365, 18, 11571, 1810, 353, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 17739, 19896, 5033, 1119, 12, 2890, 16, 3851, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 365, 18, 11571, 1810, 353, 486, 599, 471, 365, 18, 11571, 1810, 353, 48...
con = sqlite.connect(":memory:") cur = con.cursor()
cur = self.con.cursor()
def CheckPragmaAutocommit(self): """ Verifies that running a PRAGMA statement that does an autocommit does work. This did not work in 2.5.3/2.5.4. """ con = sqlite.connect(":memory:") cur = con.cursor() cur.execute("create table foo(bar)") cur.execute("insert into foo(bar) values (5)")
fbd6d66102d78b029d28c9f0068db30b8324be34 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/fbd6d66102d78b029d28c9f0068db30b8324be34/regression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 2050, 9454, 7150, 27159, 12, 2890, 4672, 3536, 6160, 5032, 716, 3549, 279, 11770, 1781, 5535, 3021, 716, 1552, 392, 2059, 27159, 1552, 1440, 18, 1220, 5061, 486, 1440, 316, 576, 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, 2073, 2050, 9454, 7150, 27159, 12, 2890, 4672, 3536, 6160, 5032, 716, 3549, 279, 11770, 1781, 5535, 3021, 716, 1552, 392, 2059, 27159, 1552, 1440, 18, 1220, 5061, 486, 1440, 316, 576, 18, ...
print 'variable selection changed'
def OnVarSelected(self,*args): print 'variable selection changed' selected = self.treeVariables.selectionModel().selectedIndexes() print '%i nodes selected' % len(selected) if len(selected)==0: return node = selected[0].internalPointer() print 'selected node: %s' % node if node.hasChildren(): return varname = node.get...
388f690b937ee9998c95ea7cac9fbf0a7f9e42e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/381/388f690b937ee9998c95ea7cac9fbf0a7f9e42e6/visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1537, 7416, 12, 2890, 16, 14, 1968, 4672, 3170, 273, 365, 18, 3413, 6158, 18, 10705, 1488, 7675, 8109, 8639, 1435, 1172, 1995, 77, 2199, 3170, 11, 738, 562, 12, 8109, 13, 309, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1537, 7416, 12, 2890, 16, 14, 1968, 4672, 3170, 273, 365, 18, 3413, 6158, 18, 10705, 1488, 7675, 8109, 8639, 1435, 1172, 1995, 77, 2199, 3170, 11, 738, 562, 12, 8109, 13, 309, 56...
self.assertEquals(x._objects, {"0": "spam", "1": "foo"})
self.assertEquals(x._objects, {"0": b"spam", "1": b"foo"})
def test_ccharp_struct(self): class X(Structure): _fields_ = [("a", c_char_p), ("b", c_char_p)] x = X() self.assertEquals(x._objects, None)
43cbc5943de9bed3b0b5b3645c16b4089c6df019 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/43cbc5943de9bed3b0b5b3645c16b4089c6df019/test_keeprefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 67, 1697, 12, 2890, 4672, 667, 1139, 12, 6999, 4672, 389, 2821, 67, 273, 306, 2932, 69, 3113, 276, 67, 3001, 67, 84, 3631, 7566, 70, 3113, 276, 67, 3001, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 3001, 84, 67, 1697, 12, 2890, 4672, 667, 1139, 12, 6999, 4672, 389, 2821, 67, 273, 306, 2932, 69, 3113, 276, 67, 3001, 67, 84, 3631, 7566, 70, 3113, 276, 67, 3001, 67, ...
item.SetColumn(self.SecondColumn)
item.SetColumn(self.FileNamePerformerColumn)
def AddItemAtIndex ( self, index, song ): # Add the title column item = wx.ListItem() item.SetId(index) item.SetColumn(self.TitleCol) try: item.SetText(song.Title) except UnicodeError: item.SetText(song.Title.encode('UTF-8', 'replace')) item.SetData(index) self.Playlist.InsertItem(item)
7d6c2cead80b3d812ebc0d6027018fbc93b8714c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/7d6c2cead80b3d812ebc0d6027018fbc93b8714c/pykaraoke.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1180, 24499, 261, 365, 16, 770, 16, 17180, 262, 30, 468, 1436, 326, 2077, 1057, 761, 273, 7075, 18, 13575, 1435, 761, 18, 18523, 12, 1615, 13, 761, 18, 694, 1494, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 1180, 24499, 261, 365, 16, 770, 16, 17180, 262, 30, 468, 1436, 326, 2077, 1057, 761, 273, 7075, 18, 13575, 1435, 761, 18, 18523, 12, 1615, 13, 761, 18, 694, 1494, 12, 2890, 18, ...
data = self.itkfilter.GetOutput()
data = self.itkfilter.GetOutput()
def execute(self, inputs, update = 0, last = 0): """ Created: 15.04.2006, KP Description: Execute the filter with given inputs and return the output """ if not ProcessingFilter.ProcessingFilter.execute(self, inputs): return None image = self.getInput(1) image = self.convertVTKtoITK(image, cast = types.FloatType) print...
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, 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, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, 3...
" LettError, Erik van Blokland, for the \n" " Python for Windows graphic.\n" " http://www.letterror.com/\n" "\n"
def add_ui(db): x = y = 50 w = 370 h = 300 title = "[ProductName] Setup" # see "Dialog Style Bits" modal = 3 # visible | modal modeless = 1 # visible track_disk_space = 32 add_data(db, 'ActionText', uisample.ActionText) add_data(db, 'UIText', uisample.UIText) # Bitmaps if not os.path.exists(srcdir+r"\PC\pytho...
33fd0774ce3cc2ca314f09138dd5d38e17286784 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/33fd0774ce3cc2ca314f09138dd5d38e17286784/msi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4881, 12, 1966, 4672, 619, 273, 677, 273, 6437, 341, 273, 890, 7301, 366, 273, 11631, 2077, 273, 5158, 4133, 461, 65, 10939, 6, 225, 468, 2621, 315, 6353, 9767, 18690, 6, 1301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4881, 12, 1966, 4672, 619, 273, 677, 273, 6437, 341, 273, 890, 7301, 366, 273, 11631, 2077, 273, 5158, 4133, 461, 65, 10939, 6, 225, 468, 2621, 315, 6353, 9767, 18690, 6, 1301...
taskName = "AvatarControls%s"%(id(self),)
taskName = "AvatarControls-%s"%(id(self),)
def disableAvatarControls(self): """ Ignore the arrow keys, etc. """ assert(self.debugPrint("disableAvatarControls")) taskName = "AvatarControls%s"%(id(self),) taskMgr.remove(taskName)
018270a4e31f463af03b2fa3f806409b428cc147 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/018270a4e31f463af03b2fa3f806409b428cc147/NonPhysicsWalker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4056, 23999, 16795, 12, 2890, 4672, 3536, 8049, 326, 12274, 1311, 16, 5527, 18, 3536, 1815, 12, 2890, 18, 4148, 5108, 2932, 8394, 23999, 16795, 6, 3719, 20172, 273, 315, 23999, 16795, 6456...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4056, 23999, 16795, 12, 2890, 4672, 3536, 8049, 326, 12274, 1311, 16, 5527, 18, 3536, 1815, 12, 2890, 18, 4148, 5108, 2932, 8394, 23999, 16795, 6, 3719, 20172, 273, 315, 23999, 16795, 6456...
for source_dir, dest_dir in [(src_dir, dest_src_dir), (build_dir, dest_build_dir)]:
bundle_build_dirs = [] bundle_editable_dirs = [] for source_dir, dest_dir, dir_collection in [ (src_dir, dest_src_dir, bundle_editable_dirs), (build_dir, dest_build_dir, bundle_build_dirs)]:
def move_bundle_files(self, dest_build_dir, dest_src_dir): base = self._temp_build_dir assert base src_dir = os.path.join(base, 'src') build_dir = os.path.join(base, 'build') for source_dir, dest_dir in [(src_dir, dest_src_dir), (build_dir, dest_build_dir)]: if os.path.exists(source_dir): for dirname in os.listdir(sour...
3cc8c7972cf79da39a22d1c562a62b591fb6d792 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/3cc8c7972cf79da39a22d1c562a62b591fb6d792/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 9991, 67, 2354, 12, 2890, 16, 1570, 67, 3510, 67, 1214, 16, 1570, 67, 4816, 67, 1214, 4672, 1026, 273, 365, 6315, 5814, 67, 3510, 67, 1214, 1815, 1026, 1705, 67, 1214, 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, 3635, 67, 9991, 67, 2354, 12, 2890, 16, 1570, 67, 3510, 67, 1214, 16, 1570, 67, 4816, 67, 1214, 4672, 1026, 273, 365, 6315, 5814, 67, 3510, 67, 1214, 1815, 1026, 1705, 67, 1214, 273, ...
red = lamp.col[0] green = lamp.col[1] blue = lamp.col[2]
def export_lights(lmp): # only lamps type 0, 1 and 4 supported at the moment # lamp types are: 0 - Lamp, 1 - Sun, 2 - Spot, 3 - Hemi, 4 - Area # Spots are replaced by directional (cylinrical) lights: adjust dist as close as possible to the ground receiving the # cone of light if you want Radius as close as possible lam...
223dfc1c7b8557f033095eceba9a38be84b7749e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/223dfc1c7b8557f033095eceba9a38be84b7749e/sunflow_export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5099, 87, 12, 80, 1291, 4672, 468, 1338, 328, 25508, 618, 374, 16, 404, 471, 1059, 3260, 622, 326, 10382, 468, 328, 931, 1953, 854, 30, 374, 300, 511, 931, 16, 404, 300, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5099, 87, 12, 80, 1291, 4672, 468, 1338, 328, 25508, 618, 374, 16, 404, 471, 1059, 3260, 622, 326, 10382, 468, 328, 931, 1953, 854, 30, 374, 300, 511, 931, 16, 404, 300, 31...
def parse_comment(self, i):
def parse_comment(self, i, report=1):
def parse_comment(self, i): rawdata = self.rawdata assert rawdata[i:i+4] == '<!--', 'unexpected call to parse_comment()' match = commentclose.search(rawdata, i+4) if not match: return -1 j = match.start() self.handle_comment(rawdata[i+4: j]) j = match.end() return j
e1f1b158a9a19e3889890db85d5e537716820815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e1f1b158a9a19e3889890db85d5e537716820815/HTMLParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3469, 12, 2890, 16, 277, 16, 2605, 33, 21, 4672, 1831, 892, 273, 365, 18, 1899, 892, 1815, 1831, 892, 63, 77, 30, 77, 15, 24, 65, 422, 2368, 22772, 2187, 296, 21248, 745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 3469, 12, 2890, 16, 277, 16, 2605, 33, 21, 4672, 1831, 892, 273, 365, 18, 1899, 892, 1815, 1831, 892, 63, 77, 30, 77, 15, 24, 65, 422, 2368, 22772, 2187, 296, 21248, 745, ...
import base64
def asBase64(self): import base64 return base64.encodestring(self.data)
95387a18956b2ab60709a79aaa93cfddec8978d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/95387a18956b2ab60709a79aaa93cfddec8978d9/plistlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 2171, 1105, 12, 2890, 4672, 327, 1026, 1105, 18, 1331, 1145, 371, 12, 2890, 18, 892, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 2171, 1105, 12, 2890, 4672, 327, 1026, 1105, 18, 1331, 1145, 371, 12, 2890, 18, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
else:
elif self.display == 2: table = "schTASK"
def start(self, stdscr): ring = 0 if curses.has_colors(): curses.start_color() curses.init_pair(8, curses.COLOR_WHITE, curses.COLOR_BLACK) curses.init_pair(1, curses.COLOR_WHITE, curses.COLOR_RED) curses.init_pair(2, curses.COLOR_GREEN, curses.COLOR_BLACK) curses.init_pair(3, curses.COLOR_MAGENTA, curses.COLOR_BLACK) c...
621e32812dd0bb7f178db346fc028225f40d7a3d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/621e32812dd0bb7f178db346fc028225f40d7a3d/bibsched.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 2044, 24638, 4672, 9221, 273, 374, 309, 30436, 18, 5332, 67, 9724, 13332, 30436, 18, 1937, 67, 3266, 1435, 30436, 18, 2738, 67, 6017, 12, 28, 16, 30436, 18, 10989, 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, 787, 12, 2890, 16, 2044, 24638, 4672, 9221, 273, 374, 309, 30436, 18, 5332, 67, 9724, 13332, 30436, 18, 1937, 67, 3266, 1435, 30436, 18, 2738, 67, 6017, 12, 28, 16, 30436, 18, 10989, 6...
shutil.rmtree('tmp/tmp')
try: shutil.rmtree('tmp/tmp') except: reason = 'Cannot remove tmp/tmp for drv = %s, nBands = %d, datatype = %s' % (drv.ShortName, nBands, gdal.GetDataTypeName(datatype)) gdaltest.post_reason(reason) return
def misc_5_internal(drv, datatype, nBands): #print 'drv = %s, nBands = %d, datatype = %s' % (drv.ShortName, nBands, gdal.GetDataTypeName(datatype)) os.mkdir('tmp/tmp') ds = drv.Create('tmp/tmp/foo', 100, 100, nBands, datatype) ds = None shutil.rmtree('tmp/tmp') return
6b534427e9ae64c95c4f17a9e5c73617b473475e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/6b534427e9ae64c95c4f17a9e5c73617b473475e/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20448, 67, 25, 67, 7236, 12, 3069, 90, 16, 11172, 16, 290, 26554, 4672, 468, 1188, 296, 3069, 90, 273, 738, 87, 16, 290, 26554, 273, 738, 72, 16, 11172, 273, 738, 87, 11, 738, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20448, 67, 25, 67, 7236, 12, 3069, 90, 16, 11172, 16, 290, 26554, 4672, 468, 1188, 296, 3069, 90, 273, 738, 87, 16, 290, 26554, 273, 738, 72, 16, 11172, 273, 738, 87, 11, 738, 261, ...
return wc.i18n.get_translator(configdata.name, get_locdir(), lang,
return wc.i18n.get_translator(configdata.name, get_locdir(), [lang],
def get_translator (lang, translatorklass=None, fallbackklass=None): """ Return translator class. """ return wc.i18n.get_translator(configdata.name, get_locdir(), lang, translatorklass=translatorklass, fallback=True, fallbackklass=fallbackklass)
9b66c74660f2ae074fc1a8c43455209d7caf485c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9b66c74660f2ae074fc1a8c43455209d7caf485c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17879, 261, 4936, 16, 8333, 22626, 33, 7036, 16, 5922, 22626, 33, 7036, 4672, 3536, 2000, 8333, 667, 18, 3536, 327, 14310, 18, 77, 2643, 82, 18, 588, 67, 17879, 12, 1425, 892,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 17879, 261, 4936, 16, 8333, 22626, 33, 7036, 16, 5922, 22626, 33, 7036, 4672, 3536, 2000, 8333, 667, 18, 3536, 327, 14310, 18, 77, 2643, 82, 18, 588, 67, 17879, 12, 1425, 892,...
sage: sage.combinat.set_partition._listbloc(2,2,[1,2,3,4]) == l
sage: list(sage.combinat.set_partition._listbloc(2,2,[1,2,3,4])) == l
def _listbloc(n, nbrepets, listint=None): """ listbloc decomposes a set of n*nbrepets integers (the list listint) in nbrepets parts. It is used in the algorithm to generate all set partitions. Not to be called by the user. EXAMPLES: sage: sage.combinat.set_partition._listbloc(2,1) [{{1, 2}}] sage: l = [Set([Set([3, ...
9a6b5050d0dd868fd1f7db43e417529babaf7e6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9a6b5050d0dd868fd1f7db43e417529babaf7e6d/set_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1098, 70, 1829, 12, 82, 16, 4264, 14462, 2413, 16, 666, 474, 33, 7036, 4672, 3536, 666, 70, 1829, 9862, 10522, 279, 444, 434, 290, 14, 82, 6073, 84, 2413, 12321, 261, 5787, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1098, 70, 1829, 12, 82, 16, 4264, 14462, 2413, 16, 666, 474, 33, 7036, 4672, 3536, 666, 70, 1829, 9862, 10522, 279, 444, 434, 290, 14, 82, 6073, 84, 2413, 12321, 261, 5787, 666, ...
"""
def sqr(x, wait=0.0): time.sleep(wait) return x*x
9cbd5a7ebf2e75965579f3919b8cd9004fbf3411 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9cbd5a7ebf2e75965579f3919b8cd9004fbf3411/test_multiprocessing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4744, 86, 12, 92, 16, 2529, 33, 20, 18, 20, 4672, 813, 18, 19607, 12, 7048, 13, 327, 619, 14, 92, 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, 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, 4744, 86, 12, 92, 16, 2529, 33, 20, 18, 20, 4672, 813, 18, 19607, 12, 7048, 13, 327, 619, 14, 92, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if context is None: context = {} id = self.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context) if id: journal = self.browse(cr, uid, id[0], context=context) if journal.journal_id: return journal.journal_id.id
md = self.pool.get('ir.model.data') try: result = md.get_object_reference(cr, uid, 'hr_timesheet', 'analytic_journal') return result[1] except ValueError, e: pass
def _getAnalyticJournal(self, cr, uid, context=None): if context is None: context = {} id = self.search(cr, uid, [('user_id', '=', context.get('user_id', uid))], context=context) if id: journal = self.browse(cr, uid, id[0], context=context) if journal.journal_id: return journal.journal_id.id return False
e61f615c7b892b10c291f8e43cb27f000cc3d6db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/e61f615c7b892b10c291f8e43cb27f000cc3d6db/hr_timesheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 979, 7834, 335, 16336, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3481, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 775, 30, 563, 273, 3481...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 979, 7834, 335, 16336, 12, 2890, 16, 4422, 16, 4555, 16, 819, 33, 7036, 4672, 3481, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 775, 30, 563, 273, 3481...
if fc != bc:
if fc != bc and fc != (bc[1], bc[0]):
def offset(freemanCodes, index, closed = True): fc = searchForwardQuadrant(freemanCodes, index, closed) bc = searchBackwardQuadrant(freemanCodes, index, closed) assert type(fc) == tuple and type(bc) == tuple if fc != bc: return Vector2(0, 0) dsl, ofs = tangentDSL(freemanCodes, index, closed) #dsl.convert8to4() alpha = ...
b21e1a58e23598e8d5ffe0fe9bfec5020788028a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/b21e1a58e23598e8d5ffe0fe9bfec5020788028a/dsl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1384, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 273, 1053, 4672, 8036, 273, 1623, 8514, 24483, 6890, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 13, 6533, 273, 1623, 26283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1384, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 273, 1053, 4672, 8036, 273, 1623, 8514, 24483, 6890, 12, 74, 266, 351, 304, 6295, 16, 770, 16, 4375, 13, 6533, 273, 1623, 26283, ...
_namecheck_rgx = re.compile('([_a-zA-Z][_a-zA-Z0-9]*)+(\.[_a-zA-Z][_a-zA-Z0-9]*)*')
_namecheck_rgx = re.compile( '([_a-zA-Z][_a-zA-Z0-9]*)+(\.[_a-zA-Z][_a-zA-Z0-9]*)*')
def set(self, object, name, value): if self.iostatus is 'out': raise TraitError('%s is an output trait and cannot be set' % name) if self.trait: value = self.trait.validate(object, name, value) setattr(self._ref() or self._resolve(object), self._last_name, value)
8586d67f5d42158f614b7fc3ff6c91066cfdb680 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/8586d67f5d42158f614b7fc3ff6c91066cfdb680/container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 733, 16, 508, 16, 460, 4672, 309, 365, 18, 77, 669, 996, 353, 296, 659, 4278, 1002, 2197, 305, 668, 29909, 87, 353, 392, 876, 13517, 471, 2780, 506, 444, 11, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 733, 16, 508, 16, 460, 4672, 309, 365, 18, 77, 669, 996, 353, 296, 659, 4278, 1002, 2197, 305, 668, 29909, 87, 353, 392, 876, 13517, 471, 2780, 506, 444, 11, 738, ...
t.type,
t.type_id,
def init(self, cr): tools.sql.drop_view_if_exists(cr, 'report_project_task_user') cr.execute(""" CREATE view report_project_task_user as SELECT (select 1 ) AS nbr, t.id as id, to_char(date_start, 'YYYY') as year, to_char(date_start, 'MM') as month, to_char(date_start, 'YYYY-MM-DD') as day, date_trunc('day',t.date_start...
233223b2a5102d950d6803b118283109f97dbb94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/233223b2a5102d950d6803b118283109f97dbb94/project_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 4406, 67, 4146, 67, 1355, 6134, 4422, 18, 8837, 2932, 3660, 13278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 2890, 16, 4422, 4672, 8513, 18, 4669, 18, 7285, 67, 1945, 67, 430, 67, 1808, 12, 3353, 16, 296, 6006, 67, 4406, 67, 4146, 67, 1355, 6134, 4422, 18, 8837, 2932, 3660, 13278, ...
iax.appendValue(self, "host", "defaultip")
if self.host != '': iax.appendValue(self, "host", "defaultip")
def createAsteriskConfig(self): needModule("res_crypto") needModule("chan_iax2") iax = AstConf("iax.conf") iax.setSection(self.name) iax.append("type=friend") iax.appendValue(self, "secret") iax.append("host=dynamic") iax.appendValue(self, "host", "defaultip") iax.append("context=out-%s" % self.name) if self.calleridn...
70efb43ead493334ac1159933394ce60894cd584 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/70efb43ead493334ac1159933394ce60894cd584/cfg_phone_iax.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 455, 67, 18489, 7923, 1608, 3120, 2932, 7472, 67, 77, 651, 22, 7923, 225, 277, 651, 273, 16614, 3976, 2932, 77, 651, 18, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 37, 8190, 10175, 809, 12, 2890, 4672, 1608, 3120, 2932, 455, 67, 18489, 7923, 1608, 3120, 2932, 7472, 67, 77, 651, 22, 7923, 225, 277, 651, 273, 16614, 3976, 2932, 77, 651, 18, 39...
from docutils.core import publih_string
from docutils.core import publish_string
def setSaneLocale(localestring=''): """Set a sane local configuration for LC_NUMERIC. `locale` is the locale string to be set, e.g. 'en_US.UTF-8' This will change the ``LC_ALL`` setting to the specified string, and set the ``LC_NUMBERIC`` to 'C'. Changing the LC_NUMERIC setting is a very bad idea! It makes floating ...
1d676bfc5f289ea5bcfbd29fa112e31219bb716c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2499/1d676bfc5f289ea5bcfbd29fa112e31219bb716c/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13928, 8806, 3916, 12, 22638, 371, 2218, 11, 4672, 3536, 694, 279, 30426, 1191, 1664, 364, 27727, 67, 22998, 18, 225, 1375, 6339, 68, 353, 326, 2573, 533, 358, 506, 444, 16, 425, 18, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13928, 8806, 3916, 12, 22638, 371, 2218, 11, 4672, 3536, 694, 279, 30426, 1191, 1664, 364, 27727, 67, 22998, 18, 225, 1375, 6339, 68, 353, 326, 2573, 533, 358, 506, 444, 16, 425, 18, 7...
total = total + t_power * R(sigma[k].lift())
total = total + t_power * sigma[k].lift()
def height(P, check=True): if P.is_finite_order(): return K(0) if check: assert P.curve() == E, "the point P must lie on the curve " \ "from which the height function was created"
65c3f320038580074d5807d5c1512949277d8800 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/65c3f320038580074d5807d5c1512949277d8800/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2072, 12, 52, 16, 866, 33, 5510, 4672, 309, 453, 18, 291, 67, 9551, 67, 1019, 13332, 327, 1475, 12, 20, 13, 309, 866, 30, 1815, 453, 18, 16683, 1435, 422, 512, 16, 315, 5787, 1634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2072, 12, 52, 16, 866, 33, 5510, 4672, 309, 453, 18, 291, 67, 9551, 67, 1019, 13332, 327, 1475, 12, 20, 13, 309, 866, 30, 1815, 453, 18, 16683, 1435, 422, 512, 16, 315, 5787, 1634, ...
child_stdout, child_stdin, child_stderr = popen3("ffmpeg -h") error = child_stderr.read()
child_stdout_and_stderr, child_stdin = popen4("ffmpeg -h") error = child_stdout_and_stderr.read()
def _check_ffmpeg(): """Checks if ffmpeg is available. If ffmpeg is not installed with the proper options (libmp3lame) a MediaConverterError exception will be raised. """ status = os.system("ffmpeg -h") if sys.platform != 'win32' and os.WIFEXITED(status): # TODO: portable way to get the exit code exit_code = os.WEXITS...
52f3809723dcae84258d3b4598aa55ca36ef8cad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/52f3809723dcae84258d3b4598aa55ca36ef8cad/MediaConverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1403, 19951, 13332, 3536, 4081, 309, 6875, 19951, 353, 2319, 18, 225, 971, 6875, 19951, 353, 486, 5876, 598, 326, 5338, 702, 261, 2941, 1291, 23, 80, 339, 13, 279, 6128, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1403, 19951, 13332, 3536, 4081, 309, 6875, 19951, 353, 2319, 18, 225, 971, 6875, 19951, 353, 486, 5876, 598, 326, 5338, 702, 261, 2941, 1291, 23, 80, 339, 13, 279, 6128, ...
hdf5DataStoreDir = \ gromacsWorkingDir + os.sep + \ gromacsFullBaseFileInfo.completeBaseName() os.mkdir(hdf5DataStoreDir)
if (launchNV1): hdf5DataStoreDir = \ gromacsWorkingDir + os.sep + \ gromacsFullBaseFileInfo.completeBaseName() os.mkdir(hdf5DataStoreDir)
def run_using_old_movie_obj_to_hold_sim_params(self, movie): self._movie = movie # general kluge for old-code compat # (lots of our methods still use this and modify it) # note, this movie object (really should be a simsetup object?) # does not yet know a proper alist (or any alist, I hope) [bruce 050404] self.errcode ...
0d723b48183c53759eeb7acb5b16b25588d30624 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/0d723b48183c53759eeb7acb5b16b25588d30624/runSim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 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, 1086, 67, 9940, 67, 1673, 67, 8683, 13120, 67, 2603, 67, 869, 67, 21056, 67, 9812, 67, 2010, 12, 2890, 16, 21360, 4672, 365, 6315, 8683, 13120, 273, 21360, 468, 7470, 15290, 21627, 364, ...
return bool(self.flag & DEF_STAR)
return bool(self.__flags & DEF_STAR)
def is_vararg(self): return bool(self.flag & DEF_STAR)
5030cf1c2db98d5e83ef0c2b21e3d7a1fed50047 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5030cf1c2db98d5e83ef0c2b21e3d7a1fed50047/symtable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 24823, 12, 2890, 4672, 327, 1426, 12, 2890, 18, 6420, 473, 25957, 67, 20943, 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, 353, 67, 24823, 12, 2890, 4672, 327, 1426, 12, 2890, 18, 6420, 473, 25957, 67, 20943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return "<a href='%s' title='View recent builds for %s'>%s:%s</a>" % (tree.name, tree.name, tree.branch)
return "<a href='%s' title='View recent builds for %s'>%s:%s</a>" % (tree_uri(myself, tree), tree.name, tree.name, tree.branch)
def tree_link(myself, tree): """return a link to a particular tree""" return "<a href='%s' title='View recent builds for %s'>%s:%s</a>" % (tree.name, tree.name, tree.branch)
181ed9854e8909f56eb12a6ccc924680273734c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/181ed9854e8909f56eb12a6ccc924680273734c6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 67, 1232, 12, 4811, 2890, 16, 2151, 4672, 3536, 2463, 279, 1692, 358, 279, 6826, 2151, 8395, 327, 3532, 69, 3897, 28713, 87, 11, 2077, 2218, 1767, 8399, 10736, 364, 738, 87, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 67, 1232, 12, 4811, 2890, 16, 2151, 4672, 3536, 2463, 279, 1692, 358, 279, 6826, 2151, 8395, 327, 3532, 69, 3897, 28713, 87, 11, 2077, 2218, 1767, 8399, 10736, 364, 738, 87, 11, ...
cannotMove = not self.shownAttributes or len(self.selectedShown) != 1 self.buttonUPAttr.setDisabled(cannotMove or not self.selectedShown[0]) self.buttonDOWNAttr.setDisabled(cannotMove or self.selectedShown[0] >= len(self.shownAttributes)-1)
if self.selectedShown: mini, maxi = min(self.selectedShown), max(self.selectedShown) tightSelection = maxi - mini == len(self.selectedShown) - 1 self.buttonUPAttr.setEnabled(self.selectedShown != [] and tightSelection and mini) self.buttonDOWNAttr.setEnabled(self.selectedShown != [] and tightSelection and maxi < len(se...
def resetAttrManipulation(self): cannotMove = not self.shownAttributes or len(self.selectedShown) != 1 self.buttonUPAttr.setDisabled(cannotMove or not self.selectedShown[0]) self.buttonDOWNAttr.setDisabled(cannotMove or self.selectedShown[0] >= len(self.shownAttributes)-1) self.attrAddButton.setDisabled(not self.select...
00556450e32f27a7d6376545381692844e321e27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/00556450e32f27a7d6376545381692844e321e27/OWLinProj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 3843, 19308, 6234, 12, 2890, 4672, 309, 365, 18, 8109, 27042, 30, 21959, 16, 943, 77, 273, 1131, 12, 2890, 18, 8109, 27042, 3631, 943, 12, 2890, 18, 8109, 27042, 13, 26066, 6233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 3843, 19308, 6234, 12, 2890, 4672, 309, 365, 18, 8109, 27042, 30, 21959, 16, 943, 77, 273, 1131, 12, 2890, 18, 8109, 27042, 3631, 943, 12, 2890, 18, 8109, 27042, 13, 26066, 6233, ...
except: raise 'BadRequest', ( '<strong>Invalid entry for <em>%s</em> </strong>' % argument_name)
else: args.append(v)
def function_with_empty_signature(): pass
6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 1918, 67, 5531, 67, 8195, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 445, 67, 1918, 67, 5531, 67, 8195, 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,...
def availableSplitter(self):
def availableSplitters(self):
def availableSplitter(self): """ splitter we can add """ return Splitter.availableSplitters
fa6133bc34f4051342345000f969926e3ef7baf7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/fa6133bc34f4051342345000f969926e3ef7baf7/ZCatalog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 5521, 5432, 12, 2890, 4672, 3536, 21553, 732, 848, 527, 3536, 327, 5385, 387, 18, 5699, 5521, 5432, 2, 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, 2319, 5521, 5432, 12, 2890, 4672, 3536, 21553, 732, 848, 527, 3536, 327, 5385, 387, 18, 5699, 5521, 5432, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def parseConfigurationFile( self, afile ): try: self.configuration.data = bb.parse.handle( afile, self.configuration.data )
def parseConfigurationFile( self, afiles ): try: for afile in afiles: self.configuration.data = bb.parse.handle( afile, self.configuration.data )
def parseConfigurationFile( self, afile ): try: self.configuration.data = bb.parse.handle( afile, self.configuration.data )
cb8684f9bce2ba06f42f1f49e4feb4675c311c24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8123/cb8684f9bce2ba06f42f1f49e4feb4675c311c24/cooker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1750, 812, 12, 365, 16, 279, 768, 262, 30, 775, 30, 365, 18, 7025, 18, 892, 273, 7129, 18, 2670, 18, 4110, 12, 279, 768, 16, 365, 18, 7025, 18, 892, 262, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 1750, 812, 12, 365, 16, 279, 768, 262, 30, 775, 30, 365, 18, 7025, 18, 892, 273, 7129, 18, 2670, 18, 4110, 12, 279, 768, 16, 365, 18, 7025, 18, 892, 262, 2, -100, -100, -100,...
return "Dg:%s[%s]" % (dtella_local.version, get_os())
return "Dt:%s[%s]" % (dtella_local.version, get_os())
def get_version_string(): return "Dg:%s[%s]" % (dtella_local.version, get_os())
82dfdf054a9b9ae5e5d12020e186ff0189144557 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/82dfdf054a9b9ae5e5d12020e186ff0189144557/dtella_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1589, 67, 1080, 13332, 327, 315, 19739, 5319, 87, 14451, 87, 4279, 738, 261, 7510, 1165, 69, 67, 3729, 18, 1589, 16, 336, 67, 538, 10756, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1589, 67, 1080, 13332, 327, 315, 19739, 5319, 87, 14451, 87, 4279, 738, 261, 7510, 1165, 69, 67, 3729, 18, 1589, 16, 336, 67, 538, 10756, 282, 2, -100, -100, -100, -100, -100,...
else: do_exec(cvs+' co reportlab', 'the checkout phase')
def cvs_checkout(d): os.chdir(d) recursive_rmdir(cvsdir) cvs = find_exe('cvs') if cvs is None: os.exit(1) os.environ['CVSROOT']=':pserver:%s@cvs.reportlab.sourceforge.net:/cvsroot/reportlab' % USER if release: do_exec(cvs+(' export -r %s reportlab' % tagname), 'the export phase') else: if py2pdf: do_exec(cvs+' co rep...
b44cd49e99d91cc912ae3ae1309819e6423841a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b44cd49e99d91cc912ae3ae1309819e6423841a9/daily.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 6904, 67, 17300, 12, 72, 4672, 1140, 18, 343, 1214, 12, 72, 13, 5904, 67, 8864, 1214, 12, 71, 6904, 1214, 13, 225, 276, 6904, 273, 1104, 67, 14880, 2668, 71, 6904, 6134, 309, 27...
utils.run_cmd("git config remote.origin.url=%s"%self.git_repo)
utils.run_cmd("git config remote.origin.url %s"%self.git_repo)
def push(self): os.chdir(self.co_path) if (self.branch is not None): effective_branch = "remotes/origin/%s:%s" % (self.branch, self.branch) else: effective_branch = "" utils.run_cmd("git config remote.origin.url=%s"%self.git_repo) utils.run_cmd("git push origin %s"%effective_branch)
6db6155aeec89813cfd10e9fc08b782780202266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/6db6155aeec89813cfd10e9fc08b782780202266/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 2894, 67, 803, 13, 309, 261, 2890, 18, 7500, 353, 486, 599, 4672, 11448, 67, 7500, 273, 315, 2764, 6366, 19, 10012, 5258, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 12, 2890, 4672, 1140, 18, 343, 1214, 12, 2890, 18, 2894, 67, 803, 13, 309, 261, 2890, 18, 7500, 353, 486, 599, 4672, 11448, 67, 7500, 273, 315, 2764, 6366, 19, 10012, 5258, 87, ...
try: sysroot = argv[1] except IndexError: sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0]) return 1
parser = optparse.OptionParser() parser.add_option('-s', '--sysroot', default='/', help='sysroot to prepend') parser.add_option('-p', '--strip-prefix', default='', help='prefix to strip') opts, args = parser.parse_args(argv[1:])
def main(argv): try: sysroot = argv[1] except IndexError: sys.stderr.write('usage: %s /path/to/sysroot\n' % argv[0]) return 1 for line in sys.stdin.readlines(): line = RewriteLine(line.strip(), sysroot) print line return 0
090e84f6c261bf1557fa3074a65c518eb7fc03c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/090e84f6c261bf1557fa3074a65c518eb7fc03c0/rewrite_dirs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 87, 2187, 3534, 9499, 3085, 2187, 805, 2218, 19, 2187, 2809, 2218, 9499, 3085, 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, 2774, 12, 19485, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 87, 2187, 3534, 9499, 3085, 2187, 805, 2218, 19, 2187, 2809, 2218, 9499, 3085, 358...
def show(self, network):
def update(self):
def show(self, network): for child in self.get_children(): self.remove(child) network_info = conf.get('networks', {}).get(network, {})
4e3fce086a885558cfbd2aca990b3731ca541fa8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/4e3fce086a885558cfbd2aca990b3731ca541fa8/servers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 364, 1151, 316, 365, 18, 588, 67, 5906, 13332, 365, 18, 4479, 12, 3624, 13, 225, 2483, 67, 1376, 273, 2195, 18, 588, 2668, 19982, 2187, 2618, 2934, 588, 12, 5185,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 2890, 4672, 364, 1151, 316, 365, 18, 588, 67, 5906, 13332, 365, 18, 4479, 12, 3624, 13, 225, 2483, 67, 1376, 273, 2195, 18, 588, 2668, 19982, 2187, 2618, 2934, 588, 12, 5185,...
formattedParentIds = ','.join(parentIds) formattedJobIds = ','.join(jobIds) command = 'python ' + self.commandQueryPath \ + 'GLiteStatusQuery.py --parentId=%s --jobId=%s' \ % (formattedParentIds, formattedJobIds) outJson, ret = self.ExecuteCommand( self.prefixCommandQuery + \ self.proxyString + command ) try: out ...
if jobIds : formattedParentIds = ','.join(parentIds) formattedJobIds = ','.join(jobIds) command = 'python ' + self.commandQueryPath \ + 'GLiteStatusQuery.py --parentId=%s --jobId=%s' \ % (formattedParentIds, formattedJobIds) outJson, ret = self.ExecuteCommand( self.prefixCommandQuery + \ self.proxyString + command) ...
def query(self, obj, service='', objType='node') : """ query status and eventually other scheduler related information """
0edd8f75f81c08242d2ef1f97a4d036f302634bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/0edd8f75f81c08242d2ef1f97a4d036f302634bf/SchedulerGLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 1081, 16, 1156, 2218, 2187, 30078, 2218, 2159, 6134, 294, 3536, 843, 1267, 471, 18011, 1308, 8129, 3746, 1779, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 843, 12, 2890, 16, 1081, 16, 1156, 2218, 2187, 30078, 2218, 2159, 6134, 294, 3536, 843, 1267, 471, 18011, 1308, 8129, 3746, 1779, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
def test_search_help_page_availability(self): """websearch - availability of Search Help page"""
def test_help_page_availability(self): """websearch - availability of Help Central page"""
def test_search_help_page_availability(self): """websearch - availability of Search Help page"""
c88cd4f1af40a1ac6a3f16aff626c22f3fcd06d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2139/c88cd4f1af40a1ac6a3f16aff626c22f3fcd06d6/websearch_regression_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3072, 67, 5201, 67, 2433, 67, 24318, 12, 2890, 4672, 3536, 4875, 3072, 300, 13395, 434, 5167, 11288, 1363, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3072, 67, 5201, 67, 2433, 67, 24318, 12, 2890, 4672, 3536, 4875, 3072, 300, 13395, 434, 5167, 11288, 1363, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
m = Marshaller(encoding)
m = Marshaller(encoding, allow_none)
def dumps(params, methodname=None, methodresponse=None, encoding=None): """data [,options] -> marshalled data Convert an argument tuple or a Fault instance to an XML-RPC request (or response, if the methodresponse option is used). In addition to the data object, the following options can be given as keyword arguments...
a4c2b7485b6c33d0d6221d1a4505350ea9353668 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a4c2b7485b6c33d0d6221d1a4505350ea9353668/xmlrpclib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6711, 12, 2010, 16, 707, 529, 33, 7036, 16, 707, 2740, 33, 7036, 16, 2688, 33, 7036, 4672, 3536, 892, 306, 16, 2116, 65, 317, 10893, 1259, 501, 225, 4037, 392, 1237, 3193, 578, 279, ...
for line in text.splitlines():
for line in content.splitlines():
def parse_clone_text(self, text): url = rev = None for line in text.splitlines(): if not line.strip() or line.strip().startswith('#'): continue url_match = re.search(r'git\s*remote\s*add\s*origin(.*)\s*-f', line) if url_match: url = url_match.group(1).strip() rev_match = re.search(r'^git\s*checkout\s*-q\s*(.*)\s*', lin...
4faa7a5f6c74f814cee91ccd722060b26857a0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/4faa7a5f6c74f814cee91ccd722060b26857a0d3/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 14056, 67, 955, 12, 2890, 16, 977, 4672, 880, 273, 5588, 273, 599, 364, 980, 316, 913, 18, 4939, 3548, 13332, 309, 486, 980, 18, 6406, 1435, 578, 980, 18, 6406, 7675, 17514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 14056, 67, 955, 12, 2890, 16, 977, 4672, 880, 273, 5588, 273, 599, 364, 980, 316, 913, 18, 4939, 3548, 13332, 309, 486, 980, 18, 6406, 1435, 578, 980, 18, 6406, 7675, 17514, ...
mac = hmac.new(s, self.secret, digestmod=sha1).digest()
mac = hmac.new(self.secret, s, digestmod=sha1).digest()
def generateUniqueId(self): """Generate a new, random, unique id.
630282f38e5bf38464385a13dc5beab4b6d7d65e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9756/630282f38e5bf38464385a13dc5beab4b6d7d65e/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 24174, 12, 2890, 4672, 3536, 4625, 279, 394, 16, 2744, 16, 3089, 612, 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,...
[ 1, 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, 2103, 24174, 12, 2890, 4672, 3536, 4625, 279, 394, 16, 2744, 16, 3089, 612, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if isinstance(fp, file):
if isfile(fp):
def write_array(fp, array, version=(1,0)): """ Write an array to an NPY file, including a header. If the array is neither C-contiguous or Fortran-contiguous AND if the filelike object is not a real file object, then this function will have to copy data in memory. Parameters ---------- fp : filelike object An open, wr...
906d21e1b3ef6e6cd68847c427c185137a151314 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/906d21e1b3ef6e6cd68847c427c185137a151314/format.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1126, 12, 7944, 16, 526, 16, 1177, 28657, 21, 16, 20, 3719, 30, 3536, 2598, 392, 526, 358, 392, 423, 16235, 585, 16, 6508, 279, 1446, 18, 225, 971, 326, 526, 353, 15826, 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, 1045, 67, 1126, 12, 7944, 16, 526, 16, 1177, 28657, 21, 16, 20, 3719, 30, 3536, 2598, 392, 526, 358, 392, 423, 16235, 585, 16, 6508, 279, 1446, 18, 225, 971, 326, 526, 353, 15826, 38...
if rt[0]: rt = (rt[0] + reget_length, rt[1])
if rt[0] is None: rt = (0, rt[1]) rt = (rt[0] + reget_length, rt[1])
def _build_range(self): reget_length = 0 rt = None if self.opts.reget and type(self.filename) in types.StringTypes: # we have reget turned on and we're dumping to a file try: s = os.stat(self.filename) except OSError: pass else: self.reget_time = s[stat.ST_MTIME] reget_length = s[stat.ST_SIZE]
e44c45c1684bd8e4175b4ab862377340932d4b94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7001/e44c45c1684bd8e4175b4ab862377340932d4b94/grabber.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 3676, 12, 2890, 4672, 283, 588, 67, 2469, 273, 374, 8253, 273, 599, 309, 365, 18, 4952, 18, 266, 588, 471, 618, 12, 2890, 18, 3459, 13, 316, 1953, 18, 780, 2016, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 3676, 12, 2890, 4672, 283, 588, 67, 2469, 273, 374, 8253, 273, 599, 309, 365, 18, 4952, 18, 266, 588, 471, 618, 12, 2890, 18, 3459, 13, 316, 1953, 18, 780, 2016, 30, ...
self.accounts = self.check_accounts(e.get_text()) config.set('plugins', self.c_accounts, join(self.accounts))
self.accounts = e.get_text().split() config.set('plugins', self.c_accounts, e.get_text())
def accounts_e_changed(self, e): self.accounts = self.check_accounts(e.get_text()) config.set('plugins', self.c_accounts, join(self.accounts))
d57aa4a777cfcfe18cb9cedff8cf760d5ec3651c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/d57aa4a777cfcfe18cb9cedff8cf760d5ec3651c/gajim_status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9484, 67, 73, 67, 6703, 12, 2890, 16, 425, 4672, 365, 18, 13739, 273, 365, 18, 1893, 67, 13739, 12, 73, 18, 588, 67, 955, 10756, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9484, 67, 73, 67, 6703, 12, 2890, 16, 425, 4672, 365, 18, 13739, 273, 365, 18, 1893, 67, 13739, 12, 73, 18, 588, 67, 955, 10756, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 13...
class RegistrationController(BaseController, Create, Update):
class RegistrationController(SecureController, Create, Update):
def _from_python(self, value): return value.id
f0bf4741599b356896367dc3abd3ed67333b6c9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/f0bf4741599b356896367dc3abd3ed67333b6c9b/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2080, 67, 8103, 12, 2890, 16, 460, 4672, 327, 460, 18, 350, 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...
[ 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, 389, 2080, 67, 8103, 12, 2890, 16, 460, 4672, 327, 460, 18, 350, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return datetime.time(hour, minute, second)
return time(hour, minute, second)
def decode(data): if not data: return None
de0550af8b8d14401327d7ab8661d54b6765c9c5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/de0550af8b8d14401327d7ab8661d54b6765c9c5/datetime_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 892, 4672, 309, 486, 501, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 892, 4672, 309, 486, 501, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
p.add_constraint(v[x] + b[x][y] - v[y], min=0, max=0)
p.add_constraint(v[x] + b[x][y] - v[y], min=0)
def edge_cut(self, s, t, value_only=True, use_edge_labels=False, vertices=False, solver=None, verbose=0): r""" Returns a minimum edge cut between vertices `s` and `t` represented by a list of edges.
c689b5410fb1054bf00912c776e7aa93a3ae72ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c689b5410fb1054bf00912c776e7aa93a3ae72ec/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 5150, 12, 2890, 16, 272, 16, 268, 16, 460, 67, 3700, 33, 5510, 16, 999, 67, 7126, 67, 5336, 33, 8381, 16, 6928, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3591, 67, 5150, 12, 2890, 16, 272, 16, 268, 16, 460, 67, 3700, 33, 5510, 16, 999, 67, 7126, 67, 5336, 33, 8381, 16, 6928, 33, 8381, 16, 12776, 33, 7036, 16, 3988, 33, 20, 4672, 436...
isofstype = self.__isofstype,
isofstype = self._isofstype,
def __write_yaboot_config(isodir, bit): cfg = self.__get_basic_yaboot_config(name = self.name, timeout = self._timeout * 100)
4a670c764a1a949c866539b8a6a60e2729747acb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9342/4a670c764a1a949c866539b8a6a60e2729747acb/live.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2626, 67, 93, 378, 1632, 67, 1425, 12, 291, 369, 481, 16, 2831, 4672, 2776, 273, 365, 16186, 588, 67, 13240, 67, 93, 378, 1632, 67, 1425, 12, 529, 273, 365, 18, 529, 16, 2021, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2626, 67, 93, 378, 1632, 67, 1425, 12, 291, 369, 481, 16, 2831, 4672, 2776, 273, 365, 16186, 588, 67, 13240, 67, 93, 378, 1632, 67, 1425, 12, 529, 273, 365, 18, 529, 16, 2021, ...
return self.posToColumn (self.PositionFromPoint (point))
return self.GetColumn (self.PositionFromPoint (point))
def getLeftmostColumn (self): point = wx.Point () point.x = self.GetXOffset () point.y = 0 return self.posToColumn (self.PositionFromPoint (point))
a6939f364c8be53bdb79671ac6f692647d50a667 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/a6939f364c8be53bdb79671ac6f692647d50a667/candy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15930, 10329, 1494, 261, 2890, 4672, 1634, 273, 7075, 18, 2148, 1832, 1634, 18, 92, 273, 365, 18, 967, 60, 2335, 1832, 1634, 18, 93, 273, 374, 327, 365, 18, 917, 774, 1494, 261, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15930, 10329, 1494, 261, 2890, 4672, 1634, 273, 7075, 18, 2148, 1832, 1634, 18, 92, 273, 365, 18, 967, 60, 2335, 1832, 1634, 18, 93, 273, 374, 327, 365, 18, 917, 774, 1494, 261, 2890, ...
port = int(OptionalEnvironmentVariable('UPLOAD_PORT'))
port = OptionalEnvironmentVariable('UPLOAD_PORT') if port is not None: port = int(port)
def UploadFiles(user, host, path, files, verbose=False, port=None, ssh_key=None, base_path=None, post_upload_command=None): """Upload each file in the list files to user@host:path. Optionally pass port and ssh_key to the ssh commands. If base_path is not None, upload files including their path relative to base_path. If...
6d8fb610166733ee9d58d5c2c4ceb0b780dfa719 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/6d8fb610166733ee9d58d5c2c4ceb0b780dfa719/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9414, 2697, 12, 1355, 16, 1479, 16, 589, 16, 1390, 16, 3988, 33, 8381, 16, 1756, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 1026, 67, 803, 33, 7036, 16, 1603, 67, 6327, 67, 3076, 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, 9414, 2697, 12, 1355, 16, 1479, 16, 589, 16, 1390, 16, 3988, 33, 8381, 16, 1756, 33, 7036, 16, 7056, 67, 856, 33, 7036, 16, 1026, 67, 803, 33, 7036, 16, 1603, 67, 6327, 67, 3076, 3...
msg += "0x%X" % text
msg += "0x%X" % ord(text)
def nextToken(self): while True: # save state pos = self.pos line = self.line col = self.col
89e4d819e47e716c2c27fb9b7f247c57bdfc18ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3689/89e4d819e47e716c2c27fb9b7f247c57bdfc18ed/antlrre.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9617, 12, 2890, 4672, 1323, 1053, 30, 468, 1923, 919, 949, 273, 365, 18, 917, 980, 273, 365, 18, 1369, 645, 273, 365, 18, 1293, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9617, 12, 2890, 4672, 1323, 1053, 30, 468, 1923, 919, 949, 273, 365, 18, 917, 980, 273, 365, 18, 1369, 645, 273, 365, 18, 1293, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if self.debug > 0: print 'default calculation required'
def calculation_required(self, atoms=None, quantities=None): ''' determines if a calculation is needed.
efb0053a692e68241ce5b5d3e00d105383545b1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/efb0053a692e68241ce5b5d3e00d105383545b1a/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11096, 67, 4718, 12, 2890, 16, 9006, 33, 7036, 16, 10251, 1961, 33, 7036, 4672, 9163, 12949, 309, 279, 11096, 353, 3577, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11096, 67, 4718, 12, 2890, 16, 9006, 33, 7036, 16, 10251, 1961, 33, 7036, 4672, 9163, 12949, 309, 279, 11096, 353, 3577, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
file(path_init, "w").write(sql)
print >> file(path_init, "w"), sql
def __init__(self, outdir, sql): name = _get_name(sql) path = join(outdir, name) mkdir(path)
d2d193af7d66a40aaea16aca4906a638579d9edb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/d2d193af7d66a40aaea16aca4906a638579d9edb/cmd_mysql2fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15398, 16, 1847, 4672, 508, 273, 389, 588, 67, 529, 12, 4669, 13, 225, 589, 273, 1233, 12, 659, 1214, 16, 508, 13, 6535, 12, 803, 13, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 15398, 16, 1847, 4672, 508, 273, 389, 588, 67, 529, 12, 4669, 13, 225, 589, 273, 1233, 12, 659, 1214, 16, 508, 13, 6535, 12, 803, 13, 2, -100, -100, ...
if name.upper() != original_name:
if orignal_name.upper() != original_name:
def case_insensitive_tests(class_): """Class decorator that nullifies tests that require a case-insensitive file system.""" if sys.platform not in ('win32', 'darwin', 'cygwin'): original_name = os.listdir('.')[0] if name.upper() != original_name: changed_name = original_name.upper() else: changed_name = original_name.l...
c2bf892fda69f458da574f3796794908e0d4f16a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c2bf892fda69f458da574f3796794908e0d4f16a/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 67, 31940, 67, 16341, 12, 1106, 67, 4672, 3536, 797, 7367, 716, 446, 5032, 7434, 716, 2583, 279, 648, 17, 31940, 585, 2619, 12123, 309, 2589, 18, 9898, 486, 316, 7707, 8082, 1578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 648, 67, 31940, 67, 16341, 12, 1106, 67, 4672, 3536, 797, 7367, 716, 446, 5032, 7434, 716, 2583, 279, 648, 17, 31940, 585, 2619, 12123, 309, 2589, 18, 9898, 486, 316, 7707, 8082, 1578, ...
return "CC_PACKET:=" + cmpl.get()
return "CC_PACKET:= " + cmpl.get()
def repl_compil(m): return "CC_PACKET:=" + cmpl.get()
e2b0b7a15665e7f5130b4f9e830fd32651df813f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2128/e2b0b7a15665e7f5130b4f9e830fd32651df813f/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 67, 2919, 330, 12, 81, 4672, 327, 315, 6743, 67, 12231, 1584, 30, 33, 315, 397, 5003, 412, 18, 588, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6831, 67, 2919, 330, 12, 81, 4672, 327, 315, 6743, 67, 12231, 1584, 30, 33, 315, 397, 5003, 412, 18, 588, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
t1 = time.millitimer()
t1 = time.time()
def record(v, info, filename, audiofilename, mono, grey, greybits, \ monotreshold, fields, preallocspace): import thread format, x, y, qsize, rate = info fps = 59.64 # Fields per second # XXX (Strange: need fps of Indigo monitor, not of PAL or NTSC!) tpf = 1000.0 / fps # Time per field in msec if filename: vout = VFile...
7911430d00ceaac39d086959bf7b8de3452bd9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7911430d00ceaac39d086959bf7b8de3452bd9fc/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1123, 16, 1544, 16, 20232, 77, 792, 2550, 16, 6921, 83, 16, 5174, 93, 16, 5174, 93, 6789, 16, 521, 6921, 352, 3444, 16, 1466, 16, 675, 9853, 2981, 4672, 1930, 2650,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1123, 16, 1544, 16, 20232, 77, 792, 2550, 16, 6921, 83, 16, 5174, 93, 16, 5174, 93, 6789, 16, 521, 6921, 352, 3444, 16, 1466, 16, 675, 9853, 2981, 4672, 1930, 2650,...
self.recall(self.text.get(next[0], next[1]))
self.recall(self.text.get(next[0], next[1]), event)
def enter_callback(self, event): if self.executing and not self.reading: return # Let the default binding (insert '\n') take over # If some text is selected, recall the selection # (but only if this before the I/O mark) try: sel = self.text.get("sel.first", "sel.last") if sel: if self.text.compare("sel.last", "<=", "io...
e88225f2d5060953d48573a5934561756edf7326 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e88225f2d5060953d48573a5934561756edf7326/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 871, 4672, 309, 365, 18, 4177, 8490, 471, 486, 365, 18, 21803, 30, 327, 468, 10559, 326, 805, 5085, 261, 6387, 2337, 82, 6134, 4862, 1879, 468, 971, 2690,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6103, 67, 3394, 12, 2890, 16, 871, 4672, 309, 365, 18, 4177, 8490, 471, 486, 365, 18, 21803, 30, 327, 468, 10559, 326, 805, 5085, 261, 6387, 2337, 82, 6134, 4862, 1879, 468, 971, 2690,...
uses floating points methods based on elliptic logarithms to
uses floating point methods based on elliptic logarithms to
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura...
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, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
model._meta.object_name,
poss_ormise(app, model, model._meta.object_name),
"\n ".join(["('%s', %s)," % (fname, fdef) for fname, fdef in fields.items()]),
dad4fe1c4d9728a1634d573389487d8ad3b15860 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/dad4fe1c4d9728a1634d573389487d8ad3b15860/startmigration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1548, 82, 5411, 3552, 5701, 3816, 6, 29909, 87, 2187, 738, 87, 3631, 6, 738, 261, 12749, 16, 284, 536, 13, 364, 5299, 16, 284, 536, 316, 1466, 18, 3319, 1435, 65, 3631, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1548, 82, 5411, 3552, 5701, 3816, 6, 29909, 87, 2187, 738, 87, 3631, 6, 738, 261, 12749, 16, 284, 536, 13, 364, 5299, 16, 284, 536, 316, 1466, 18, 3319, 1435, 65, 3631, 2, -100, -100, -100...