rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
s.append (prepend_symbols ('--import-impl=', impl_import (obj, prefix)))
if os.path.isdir (obj.impl_dir (prefix)): s.append (prepend_symbols ('--import-impl=', impl_import (obj, prefix)))
def import_options (obj, prefix=''): s = [] if obj.impl_dir () is not None: s.append (prepend_symbols ('--import-impl=', impl_import (obj, prefix))) if obj.sidl_file () is not None: s.append (prepend_symbols ('--import-sidl=', sidl_import (obj, prefix))) return ' '.join (s)
10e6009abcc5e3aa1bed7c98e16a5ae57263171c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5386/10e6009abcc5e3aa1bed7c98e16a5ae57263171c/bocca_command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2116, 261, 2603, 16, 1633, 2218, 11, 4672, 272, 273, 5378, 309, 1081, 18, 11299, 67, 1214, 1832, 353, 486, 599, 30, 309, 1140, 18, 803, 18, 291, 1214, 261, 2603, 18, 11299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2116, 261, 2603, 16, 1633, 2218, 11, 4672, 272, 273, 5378, 309, 1081, 18, 11299, 67, 1214, 1832, 353, 486, 599, 30, 309, 1140, 18, 803, 18, 291, 1214, 261, 2603, 18, 11299, ...
self.__buf = self.__buf + data
self.__buf.write(data)
def pack_fstring(self, n, s): if n < 0: raise ValueError, 'fstring size must be nonnegative' n = ((n+3)/4)*4 data = s[:n] data = data + (n - len(data)) * '\0' self.__buf = self.__buf + data
c47016ee74fdd765bdad0f890c810518501de22a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c47016ee74fdd765bdad0f890c810518501de22a/xdrlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 74, 1080, 12, 2890, 16, 290, 16, 272, 4672, 309, 290, 411, 374, 30, 1002, 2068, 16, 296, 74, 1080, 963, 1297, 506, 1661, 13258, 11, 290, 273, 14015, 82, 15, 23, 13176, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 74, 1080, 12, 2890, 16, 290, 16, 272, 4672, 309, 290, 411, 374, 30, 1002, 2068, 16, 296, 74, 1080, 963, 1297, 506, 1661, 13258, 11, 290, 273, 14015, 82, 15, 23, 13176, 24, ...
print time.time(), "end"
def _expose(self, imageRequest): shutterRequest = imageRequest['shutter'] if shutterRequest == Shutter.OPEN: shutter = SBIGDrv.openShutter elif shutterRequest == Shutter.CLOSE: shutter = SBIGDrv.closeShutter elif shutterRequest == Shutter.LEAVE_AS_IS: shutter = SBIGDrv.leaveShutter else: self.log.warning("Incorrect s...
cb9501362f8ebb5758f8d4cfb93788cb612fe799 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3749/cb9501362f8ebb5758f8d4cfb93788cb612fe799/sbig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 338, 4150, 12, 2890, 16, 1316, 691, 4672, 225, 9171, 387, 691, 273, 1316, 691, 3292, 674, 18220, 3546, 225, 309, 9171, 387, 691, 422, 2638, 18220, 18, 11437, 30, 9171, 387, 273, 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, 389, 338, 4150, 12, 2890, 16, 1316, 691, 4672, 225, 9171, 387, 691, 273, 1316, 691, 3292, 674, 18220, 3546, 225, 309, 9171, 387, 691, 422, 2638, 18220, 18, 11437, 30, 9171, 387, 273, 3...
self.assert_(disp in self.msg[headername])
self.assertNotEqual(self.msg[headername].find(disp), -1)
def test_delNotations(self): # Add each type of notation to each header and check that it # is removed. for headername in ["subject", "to"]: for disp in (self.ham, self.spam, self.unsure): # Add a notation to the header header = self.msg[headername] self.assert_(disp not in header) options["Headers", "notate_%s" % (hea...
274fd041277b8777bd1567b84a52d889f51c6bcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/274fd041277b8777bd1567b84a52d889f51c6bcc/test_message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3771, 1248, 1012, 12, 2890, 4672, 468, 1436, 1517, 618, 434, 12155, 358, 1517, 1446, 471, 866, 716, 518, 468, 353, 3723, 18, 364, 1446, 529, 316, 8247, 7857, 3113, 315, 869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3771, 1248, 1012, 12, 2890, 4672, 468, 1436, 1517, 618, 434, 12155, 358, 1517, 1446, 471, 866, 716, 518, 468, 353, 3723, 18, 364, 1446, 529, 316, 8247, 7857, 3113, 315, 869, ...
Update bans in the tracker from channel ban list,
Update bans in the tracker from the channel ban list,
def updatebt(self, irc, msg, args, channel): """[<channel>] Update bans in the tracker from channel ban list, if channel is not given then run in all channels """
353e8a3cb6570f78f25b8d8c4070231630fbefe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3106/353e8a3cb6570f78f25b8d8c4070231630fbefe3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23602, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 1904, 4672, 3536, 63, 32, 4327, 34, 65, 225, 2315, 324, 634, 316, 326, 9745, 628, 326, 1904, 25732, 666, 16, 309, 1904, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23602, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 1904, 4672, 3536, 63, 32, 4327, 34, 65, 225, 2315, 324, 634, 316, 326, 9745, 628, 326, 1904, 25732, 666, 16, 309, 1904, 3...
if self.GetGeometryType() == ogr.wkbGeometryCollection or \ self.GetGeometryType() == ogr.wkbGeometryCollection25D:
if self.GetGeometryType() == wkbGeometryCollection or \ self.GetGeometryType() == wkbGeometryCollection25D:
def get_coordinates(geometry): gtype = geometry.GetGeometryType() geom_count = geometry.GetGeometryCount() coordinates = []
fdfdc9d8eb334a016148de8705ca125d94ec7d6c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/fdfdc9d8eb334a016148de8705ca125d94ec7d6c/ogr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16941, 12, 14330, 4672, 314, 723, 273, 5316, 18, 967, 9823, 559, 1435, 7364, 67, 1883, 273, 5316, 18, 967, 9823, 1380, 1435, 5513, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 16941, 12, 14330, 4672, 314, 723, 273, 5316, 18, 967, 9823, 559, 1435, 7364, 67, 1883, 273, 5316, 18, 967, 9823, 1380, 1435, 5513, 273, 5378, 2, -100, -100, -100, -100, -100, ...
assert(self.mcl_state_machine.state == MCAP_STATE_READY)
assert(self.mcl_sm.state == MCAP_STATE_READY)
def check_asserts(self, counter): if (self.counter == 2): assert(self.mcl.count_mdls() == 1) assert(self.mcl_state_machine.state == MCAP_STATE_READY) assert(self.mcl.state == MCAP_MCL_STATE_ACTIVE) elif (self.counter == 3): assert(self.mcl.count_mdls() == 2) assert(self.mcl_state_machine.state == MCAP_STATE_READY) asse...
58de439d6e74c4b1556bf0b35da03b7a41012af1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/58de439d6e74c4b1556bf0b35da03b7a41012af1/test1_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 11231, 87, 12, 2890, 16, 3895, 4672, 309, 261, 2890, 18, 7476, 422, 576, 4672, 1815, 12, 2890, 18, 81, 830, 18, 1883, 67, 1264, 3251, 1435, 422, 404, 13, 1815, 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, 866, 67, 11231, 87, 12, 2890, 16, 3895, 4672, 309, 261, 2890, 18, 7476, 422, 576, 4672, 1815, 12, 2890, 18, 81, 830, 18, 1883, 67, 1264, 3251, 1435, 422, 404, 13, 1815, 12, 2890, 18,...
if valueType == "password": try: control.SetValue(waitForDeferred( data[field].decryptPassword(window=self))) except password.NoMasterPassword: control.SetValue("")
def __FetchFormData(self, panelType, panel, data): # Pull data out of the "data" dictionary and stick it into the widgets:
b1d959dcb6ea3064db41fef843c06b239e066a69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/b1d959dcb6ea3064db41fef843c06b239e066a69/AccountPreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5005, 30079, 12, 2890, 16, 6594, 559, 16, 6594, 16, 501, 4672, 468, 14899, 501, 596, 434, 326, 315, 892, 6, 3880, 471, 25608, 518, 1368, 326, 10965, 30, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5005, 30079, 12, 2890, 16, 6594, 559, 16, 6594, 16, 501, 4672, 468, 14899, 501, 596, 434, 326, 315, 892, 6, 3880, 471, 25608, 518, 1368, 326, 10965, 30, 2, -100, -100, -100, -100...
self.smallTitleText.hide()
if self.smallTitleText: self.smallTitleText.hide()
def hideSmallTitleTextTask(self, task): assert(DistributedLevel.notify.debug("hideTitleTextTask()")) self.smallTitleText.hide() return Task.done
cbecb2d3ea0eb29e99a7cc85b3149fa6a807d8ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/cbecb2d3ea0eb29e99a7cc85b3149fa6a807d8ab/DistributedLevel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 19187, 4247, 1528, 2174, 12, 2890, 16, 1562, 4672, 1815, 12, 1669, 11050, 2355, 18, 12336, 18, 4148, 2932, 11248, 4247, 1528, 2174, 10031, 3719, 309, 365, 18, 12019, 4247, 1528, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 19187, 4247, 1528, 2174, 12, 2890, 16, 1562, 4672, 1815, 12, 1669, 11050, 2355, 18, 12336, 18, 4148, 2932, 11248, 4247, 1528, 2174, 10031, 3719, 309, 365, 18, 12019, 4247, 1528, 30, ...
if self.logo: GL.glEnable (GL.GL_TEXTURE_2D) x, y = self.x, self.y w,h = self.width, self.height b = 16 GL.glBindTexture (GL.GL_TEXTURE_2D, self.logo_texid) GL.glColor4f (1, 1, 1, .5) GL.glTranslatef (0.0,0.0,0.1) GL.glBegin (GL.GL_QUADS) GL.glTexCoord2f (0.0,0.01), GL.glVertex2f (x+w-128-2*b, b) GL.glTexCoord2f (1.0...
def refresh (self): """ Refresh console texture """ if not self.active: return
fe073540bf8037e9f3becfb981aa7fc05baf437b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12213/fe073540bf8037e9f3becfb981aa7fc05baf437b/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 261, 2890, 4672, 3536, 14179, 2983, 11428, 3536, 225, 309, 486, 365, 18, 3535, 30, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4460, 261, 2890, 4672, 3536, 14179, 2983, 11428, 3536, 225, 309, 486, 365, 18, 3535, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
add_forum_style()
add_forum_style(context)
def view(self, context): namespace = {}
3b838d86710a06bfa99bd20af2526ac017d5816d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/3b838d86710a06bfa99bd20af2526ac017d5816d/forum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 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, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.hboxlayout38.addWidget(self.light_color_frame)
self.hboxlayout41.addWidget(self.light_color_frame)
def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint()))
30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 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, 3875, 13943, 12, 2890, 16, 2177, 1386, 2556, 6353, 4672, 2177, 1386, 2556, 6353, 18, 542, 16707, 2932, 1299, 1386, 2556, 6353, 7923, 2177, 1386, 2556, 6353, 18, 15169, 12, 23310, 4670, 18,...
from sys import getrefcount
def testStringWidth(self): from _rl_accel import stringWidthU from reportlab.pdfbase.pdfmetrics import _py_stringWidth, _py_getFont, registerFont from reportlab.pdfbase.ttfonts import TTFont from sys import getrefcount ttfn = 'Luxi-Serif' t1fn = 'Times-Roman' registerFont(TTFont(ttfn, "luxiserif.ttf")) ttf = _py_getFon...
12e8e9cc55671e5cc6f4a8cba83406f53d6c3513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/12e8e9cc55671e5cc6f4a8cba83406f53d6c3513/test_rl_accel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 780, 2384, 12, 2890, 4672, 628, 389, 1321, 67, 30737, 1930, 533, 2384, 57, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 389, 2074, 67, 1080, 2384, 16, 389, 2074, 67, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 780, 2384, 12, 2890, 4672, 628, 389, 1321, 67, 30737, 1930, 533, 2384, 57, 628, 2605, 7411, 18, 7699, 1969, 18, 7699, 9597, 1930, 389, 2074, 67, 1080, 2384, 16, 389, 2074, 67, 58...
print " $Revision: 1.2 $" print " $Date: 2005/10/18 10:32:28 $"
print " $Revision: 1.3 $" print " $Date: 2005/10/18 16:01:15 $"
def showVersion(): print print "RCS" print " $Revision: 1.2 $" print " $Date: 2005/10/18 10:32:28 $" print " $Author: noel $" print " $Source: /home/noel/active/otl2tags/RCS/otl2tags.py,v $" print
521585b86a523d00812deefb15f04d3be3543715 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6154/521585b86a523d00812deefb15f04d3be3543715/otl2tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1444, 13332, 1172, 1172, 315, 54, 4596, 6, 1172, 315, 271, 7939, 30, 404, 18, 23, 271, 6, 1172, 315, 271, 1626, 30, 4044, 25, 19, 2163, 19, 2643, 2872, 30, 1611, 30, 3600, 271,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1444, 13332, 1172, 1172, 315, 54, 4596, 6, 1172, 315, 271, 7939, 30, 404, 18, 23, 271, 6, 1172, 315, 271, 1626, 30, 4044, 25, 19, 2163, 19, 2643, 2872, 30, 1611, 30, 3600, 271,...
env={key: value})
env=env)
def test_undecodable_env(self): for key, value in (('test', 'abc\uDCFF'), ('test\uDCFF', '42')): value_repr = repr(value).encode("ascii")
edb0535ee695c17a8ed85b95ab57354a27b1653b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/edb0535ee695c17a8ed85b95ab57354a27b1653b/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 3074, 12, 2890, 4672, 364, 498, 16, 460, 316, 261, 2668, 3813, 2187, 296, 18947, 64, 89, 5528, 2246, 19899, 7707, 3813, 64, 89, 5528, 2246, 2187, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 323, 1559, 429, 67, 3074, 12, 2890, 4672, 364, 498, 16, 460, 316, 261, 2668, 3813, 2187, 296, 18947, 64, 89, 5528, 2246, 19899, 7707, 3813, 64, 89, 5528, 2246, 2187, 296...
for filename in FileUtilities.children_in_directory(dirname, False):
for filename in children_in_directory(dirname, False):
def list_files(self): # browser cache if self.options["cache"][1]: dirs = [ os.path.expanduser(self.profile_dir + "cache4/"), \ os.path.expanduser(self.profile_dir + "opcache/") ] for dirname in dirs: for filename in FileUtilities.children_in_directory(dirname, False): yield filename
905c2a6f962a355b11ab87c2064796c54c6c1af5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/905c2a6f962a355b11ab87c2064796c54c6c1af5/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 468, 4748, 1247, 309, 365, 18, 2116, 9614, 2493, 6, 6362, 21, 14542, 7717, 273, 306, 1140, 18, 803, 18, 12320, 1355, 12, 2890, 18, 5040, 67, 1214, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 468, 4748, 1247, 309, 365, 18, 2116, 9614, 2493, 6, 6362, 21, 14542, 7717, 273, 306, 1140, 18, 803, 18, 12320, 1355, 12, 2890, 18, 5040, 67, 1214, 397, ...
""" result = shellCall(0,'runsvctrl %s '+DIRACROOT+'/startup/%s %s' % (mode,system,component) )
""" template = 'runsvctrl %s '+DIRACROOT+'/startup/%s_%s' result = shellCall(0,template % (mode,system,component) )
def __startComponent(self,system,component,mode): """ Start the specified component for running with the runsv daemon """ result = shellCall(0,'runsvctrl %s '+DIRACROOT+'/startup/%s %s' % (mode,system,component) ) # Check the runsv status start = time.time() while (time.time()-10) < start: result = self.__getRunitCompo...
0de98dd4dbd644d0526d05f1d541804cf16ccb12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0de98dd4dbd644d0526d05f1d541804cf16ccb12/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1937, 1841, 12, 2890, 16, 4299, 16, 4652, 16, 3188, 4672, 3536, 3603, 326, 1269, 1794, 364, 3549, 598, 326, 1086, 5751, 8131, 3536, 1542, 273, 296, 2681, 5751, 16277, 738, 87, 1512...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1937, 1841, 12, 2890, 16, 4299, 16, 4652, 16, 3188, 4672, 3536, 3603, 326, 1269, 1794, 364, 3549, 598, 326, 1086, 5751, 8131, 3536, 1542, 273, 296, 2681, 5751, 16277, 738, 87, 1512...
date = datetime.date(*time.strptime(test, self.display_format)[:3])
date = datetime.date(*time.strptime(text, self.display_format)[:3])
def value_from_text(self, model, text): if not text: return False try: date = datetime.date(*time.strptime(test, self.display_format)[:3]) except: return False return common.datetime_strftime(date, self.server_format)
4a00f8bf01c1e9d400670dea71a63f8627639440 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9151/4a00f8bf01c1e9d400670dea71a63f8627639440/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 2080, 67, 955, 12, 2890, 16, 938, 16, 977, 4672, 309, 486, 977, 30, 327, 1083, 775, 30, 1509, 273, 3314, 18, 712, 30857, 957, 18, 701, 10650, 12, 955, 16, 365, 18, 5417, 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, 460, 67, 2080, 67, 955, 12, 2890, 16, 938, 16, 977, 4672, 309, 486, 977, 30, 327, 1083, 775, 30, 1509, 273, 3314, 18, 712, 30857, 957, 18, 701, 10650, 12, 955, 16, 365, 18, 5417, 6...
for line in self.gen_score_map(self.diff_score_map) : self.context.add_line(line)
map(lambda line: self.context.add_line(line), self.gen_score_map(self.diff_score_map))
def do_some_calc(self): if self.count <= 0: self.add_line("Game Count: %d" % (self.count)) return
ea21cf2f227e6680d6e79971a408072ed68a6347 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/ea21cf2f227e6680d6e79971a408072ed68a6347/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 19068, 67, 12448, 12, 2890, 4672, 309, 365, 18, 1883, 1648, 374, 30, 365, 18, 1289, 67, 1369, 2932, 12496, 6974, 30, 738, 72, 6, 738, 261, 2890, 18, 1883, 3719, 327, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 19068, 67, 12448, 12, 2890, 4672, 309, 365, 18, 1883, 1648, 374, 30, 365, 18, 1289, 67, 1369, 2932, 12496, 6974, 30, 738, 72, 6, 738, 261, 2890, 18, 1883, 3719, 327, 2, -100...
self.debug("descend(%s, %s)" % (i1, i2))
i2_str = str(i2) if isinstance(i2, Comparator): i2_str = i2.render_debug() self.debug("descend(%s, %s)" % (i1, i2_str))
def descend(self, i1, i2): self.debug("descend(%s, %s)" % (i1, i2)) self.depth += 1 res = super(DebugComparison, self).descend(i1, i2) self.depth -= 1 self.debug(res) return res
c959154be0d99a1cfd8892827f469978251ed3de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/873/c959154be0d99a1cfd8892827f469978251ed3de/deep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10653, 12, 2890, 16, 277, 21, 16, 277, 22, 4672, 277, 22, 67, 701, 273, 609, 12, 77, 22, 13, 309, 1549, 12, 77, 22, 16, 13359, 4672, 277, 22, 67, 701, 273, 277, 22, 18, 5902, 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, 10653, 12, 2890, 16, 277, 21, 16, 277, 22, 4672, 277, 22, 67, 701, 273, 609, 12, 77, 22, 13, 309, 1549, 12, 77, 22, 16, 13359, 4672, 277, 22, 67, 701, 273, 277, 22, 18, 5902, 67,...
from ctypes import byref, sizeof
from ctypes import byref
def test_cw_strings(self): from ctypes import byref, sizeof try: from ctypes import c_wchar, c_wchar_p except ImportError:
061b14a4a1f64532bfb4d716849ae662c09da62a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/061b14a4a1f64532bfb4d716849ae662c09da62a/test_parameters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 71, 91, 67, 10219, 12, 2890, 4672, 628, 6983, 1930, 12725, 775, 30, 628, 6983, 1930, 276, 67, 91, 3001, 16, 276, 67, 91, 3001, 67, 84, 1335, 11308, 30, 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, 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, 71, 91, 67, 10219, 12, 2890, 4672, 628, 6983, 1930, 12725, 775, 30, 628, 6983, 1930, 276, 67, 91, 3001, 16, 276, 67, 91, 3001, 67, 84, 1335, 11308, 30, 2, -100, -100, -100,...
return ListOfArithmeticTypes()
return ArithmeticList()
def concat_fields(*fields): if not fields: return ListOfArithmeticTypes() result = fields[0][:] for f in fields[1:]: result.extend(f) return result
26b00e61b9d12787955b744e839ffed23b4c2c8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12871/26b00e61b9d12787955b744e839ffed23b4c2c8d/arithmetic_container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3835, 67, 2821, 30857, 2821, 4672, 309, 486, 1466, 30, 327, 27443, 682, 1435, 563, 273, 1466, 63, 20, 6362, 26894, 364, 284, 316, 1466, 63, 21, 30, 14542, 563, 18, 14313, 12, 74, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3835, 67, 2821, 30857, 2821, 4672, 309, 486, 1466, 30, 327, 27443, 682, 1435, 563, 273, 1466, 63, 20, 6362, 26894, 364, 284, 316, 1466, 63, 21, 30, 14542, 563, 18, 14313, 12, 74, 13, ...
patt = re.compile("^\s+[A-Z\s]+ ATTRIBUTES\s*$")
patt = re.compile("^\s+[A-Z/\s-]+ATTRIBUTES\s*$") m = patt.match(s) if(m): print "Table Name", s return True patt = re.compile("^\s+[A-Za-z\s]+Attributes\s*$") m = patt.match(s) if(m): print "Table Name", s return True patt = re.compile("^\s+[A-Z\s]+MODULE\s*$")
def IsTableName(self,s): patt = re.compile("^\s+[A-Z\s]+ ATTRIBUTES\s*$") #MACRO/MODULE m = patt.match(s) if(m): print "Table Name", s return True return False
1d98d58968a693abcf40bf18e15775b8ec3b67d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13995/1d98d58968a693abcf40bf18e15775b8ec3b67d8/ParseAttributes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 7147, 12, 2890, 16, 87, 4672, 28560, 273, 283, 18, 11100, 2932, 17134, 87, 15, 63, 37, 17, 62, 24441, 87, 23238, 22308, 64, 87, 26788, 7923, 312, 273, 28560, 18, 1916, 12, 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, 2585, 7147, 12, 2890, 16, 87, 4672, 28560, 273, 283, 18, 11100, 2932, 17134, 87, 15, 63, 37, 17, 62, 24441, 87, 23238, 22308, 64, 87, 26788, 7923, 312, 273, 28560, 18, 1916, 12, 87, ...
content = '<p>%s</p>' % e.text
content = '<p>%s</p>' % cgi.escape(e.text)
def _build_newspages(self,messages): basefile = {u'de allmnna domstolarna': 'allmanna', u'frvaltningsdomstolarna': 'forvaltning', u'Arbetsdomstolen': 'ad', u'Marknadsdomstolen': 'md', u'Migrationsverdomstolen': 'mig', u'Miljverdomstolen': 'mod'}
5bcaf99fdd88fc1ba95481324c9dad4d2a51f017 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4027/5bcaf99fdd88fc1ba95481324c9dad4d2a51f017/DV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 2704, 1752, 1023, 12, 2890, 16, 6833, 4672, 1026, 768, 273, 288, 89, 14271, 73, 777, 13607, 6582, 4092, 334, 355, 1303, 69, 4278, 296, 454, 81, 1072, 69, 2187, 582, 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, 389, 3510, 67, 2704, 1752, 1023, 12, 2890, 16, 6833, 4672, 1026, 768, 273, 288, 89, 14271, 73, 777, 13607, 6582, 4092, 334, 355, 1303, 69, 4278, 296, 454, 81, 1072, 69, 2187, 582, 11, ...
debug(3, "mkdirhier(%s)" % dir)
bb.debug(3, "mkdirhier(%s)" % dir)
def mkdirhier(dir): """Create a directory like 'mkdir -p', but does not complain if directory already exists like os.makedirs """ debug(3, "mkdirhier(%s)" % dir) try: os.makedirs(dir) debug(2, "created " + dir) except OSError, e: if e.errno != 17: raise e
8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/8f83be3338d7aef4b6fcef5ea89dc69fa587c1f6/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6535, 76, 2453, 12, 1214, 4672, 3536, 1684, 279, 1867, 3007, 296, 26686, 300, 84, 2187, 1496, 1552, 486, 532, 7446, 309, 1867, 1818, 1704, 3007, 1140, 18, 81, 9477, 10539, 3536, 225, 712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6535, 76, 2453, 12, 1214, 4672, 3536, 1684, 279, 1867, 3007, 296, 26686, 300, 84, 2187, 1496, 1552, 486, 532, 7446, 309, 1867, 1818, 1704, 3007, 1140, 18, 81, 9477, 10539, 3536, 225, 712...
test.do_test(tbasic_loopback, [vm, send_pt, recv_pt], data)
test.do_test(tbasic_loopback, [vm, send_pt, recv_pt, data], True)
def test_smoke(test, vm, consoles, params): """ Virtio console smoke test.
4573cdbfbd7c20e3f65127889fc5f1151a85f428 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/4573cdbfbd7c20e3f65127889fc5f1151a85f428/virtio_console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4808, 3056, 12, 3813, 16, 4268, 16, 1959, 9112, 16, 859, 4672, 3536, 776, 2714, 1594, 2983, 3029, 3056, 1842, 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, 1842, 67, 4808, 3056, 12, 3813, 16, 4268, 16, 1959, 9112, 16, 859, 4672, 3536, 776, 2714, 1594, 2983, 3029, 3056, 1842, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if DEBUG: print 'DATA, RLEN', self.dlen, self.rlen
def _readheader(self):
f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 3374, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 3374, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
elif xopt == 'year':
elif xkey == 'year':
def plot_data(tempo_results, xkey, ykey, postfit=True, prefit=False, \ interactive=True, mark_peri=False, show_legend=True): # figure out what should be plotted # True means to plot postfit # False means to plot prefit if postfit and prefit: to_plot_postfit = [False, True] elif postfit and not prefit: to_plot_postfit =...
965bbd0ee9ee8694f9c3a6acaac793dd676ae9cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3485/965bbd0ee9ee8694f9c3a6acaac793dd676ae9cf/pyplotres.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 892, 12, 874, 1631, 67, 4717, 16, 619, 856, 16, 677, 856, 16, 1603, 7216, 33, 5510, 16, 675, 7216, 33, 8381, 16, 521, 12625, 33, 5510, 16, 2267, 67, 457, 77, 33, 8381, 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, 3207, 67, 892, 12, 874, 1631, 67, 4717, 16, 619, 856, 16, 677, 856, 16, 1603, 7216, 33, 5510, 16, 675, 7216, 33, 8381, 16, 521, 12625, 33, 5510, 16, 2267, 67, 457, 77, 33, 8381, 16...
graphs.append(tag('img', _class='graph', src="graph/temperature:%s" % length))
graphs.append('temperature')
def renderInterval(self, length): if not length: return self.renderLatest() graphs = []
714af92c4e55d8eaedfe268d172fdad7a6d42f24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/714af92c4e55d8eaedfe268d172fdad7a6d42f24/web.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 4006, 12, 2890, 16, 769, 4672, 309, 486, 769, 30, 327, 365, 18, 5902, 18650, 1435, 19422, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 4006, 12, 2890, 16, 769, 4672, 309, 486, 769, 30, 327, 365, 18, 5902, 18650, 1435, 19422, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
sage: magma(E) Elliptic Curve defined by y^2 = x^3 + 2*x + 5 over GF(41)
def _magma_init_(self): """ Return a Magma command that creates this curve.
705e8dbdf0cc4cef19f04abae7e44b2fe99c618c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/705e8dbdf0cc4cef19f04abae7e44b2fe99c618c/ell_finite_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4527, 2540, 67, 2738, 67, 12, 2890, 4672, 3536, 2000, 279, 490, 9454, 1296, 716, 3414, 333, 8882, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4527, 2540, 67, 2738, 67, 12, 2890, 4672, 3536, 2000, 279, 490, 9454, 1296, 716, 3414, 333, 8882, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if not self.idExists():
if not self.ufeed.idExists():
def feedparser_errback (self, e): if not self.idExists(): return print "Error updating feed: %s: %s" % (self.url, e) self.updating = False self.ufeed.signalChange() self.scheduleUpdateEvents(-1)
f737b0fec25840951c07d52c96224365c027c848 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/f737b0fec25840951c07d52c96224365c027c848/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4746, 4288, 67, 370, 823, 261, 2890, 16, 425, 4672, 309, 486, 365, 18, 696, 73, 329, 18, 350, 4002, 13332, 327, 1172, 315, 668, 9702, 4746, 30, 738, 87, 30, 738, 87, 6, 738, 261, 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, 4746, 4288, 67, 370, 823, 261, 2890, 16, 425, 4672, 309, 486, 365, 18, 696, 73, 329, 18, 350, 4002, 13332, 327, 1172, 315, 668, 9702, 4746, 30, 738, 87, 30, 738, 87, 6, 738, 261, 2...
class hm_upperlimit_job(pipeline.CondorDAGJob):
class far_plot_job(pipeline.CondorDAGJob):
def __init__(self, cp, tag_base='HM_UPPERLIMIT'): """ """ self.__prog__ = 'hm_upperlimit' self.__executable = string.strip(cp.get('condor','hm_upperlimit')) self.__universe = "vanilla" pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.tag_base = tag_base se...
e1cd4fc183f6c74e7477567f8b3addc75175e34e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/e1cd4fc183f6c74e7477567f8b3addc75175e34e/highmass_post_process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3283, 16, 1047, 67, 1969, 2218, 44, 49, 67, 31725, 8283, 11, 4672, 3536, 3536, 365, 16186, 14654, 972, 273, 296, 76, 81, 67, 5797, 3595, 11, 365, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3283, 16, 1047, 67, 1969, 2218, 44, 49, 67, 31725, 8283, 11, 4672, 3536, 3536, 365, 16186, 14654, 972, 273, 296, 76, 81, 67, 5797, 3595, 11, 365, 16186, ...
g = G(self.gens()[0])
g = G(self.gens()[0])
def B(self): G = self.group()
c4436c8abac791e198815503e74478ec5cbb6c54 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c4436c8abac791e198815503e74478ec5cbb6c54/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 12, 2890, 4672, 611, 273, 365, 18, 1655, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 605, 12, 2890, 4672, 611, 273, 365, 18, 1655, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not html_errors: return [page] return self.add_error(page, html_errors)
if html_errors: page = self.add_error(page, html_errors)[0] headers.remove( ('Content-Length', str(wsgilib.header_value(headers, 'content-length')))) headers.append(('Content-Length', str(len(page)))) return [page]
def writer_start_response(status, headers, exc_info=None): response.extend((status, headers)) start_response(status, headers, exc_info) return output.write
d07f87172851fbb876287cee858e092c639f7749 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2097/d07f87172851fbb876287cee858e092c639f7749/wdg_validate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2633, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 766, 18, 14313, 12443, 2327, 16, 1607, 3719, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2633, 67, 1937, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, 33, 7036, 4672, 766, 18, 14313, 12443, 2327, 16, 1607, 3719, 787, 67, 2740, 12, 2327, 16, 1607, 16, 3533, 67, 1376, ...
code = ['if (evtag_unmarshal_string(%s, %s, &%s->%s_data) == -1)' % (
code = ['if (evtag_unmarshal_string(%s, %s, &%s->%s_data) == -1) {' % (
def CodeUnmarshal(self, buf, tag_name, var_name): code = ['if (evtag_unmarshal_string(%s, %s, &%s->%s_data) == -1)' % ( buf, tag_name, var_name, self._name), ' return (-1);'] return code
32acc283c8ae44d9c4e306dbaf6a9fead5e71952 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13048/32acc283c8ae44d9c4e306dbaf6a9fead5e71952/event_rpcgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3356, 9593, 12, 2890, 16, 1681, 16, 1047, 67, 529, 16, 569, 67, 529, 4672, 981, 273, 10228, 430, 261, 14965, 2692, 67, 318, 3108, 67, 1080, 9275, 87, 16, 738, 87, 16, 473, 9, 87, 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, 3356, 9593, 12, 2890, 16, 1681, 16, 1047, 67, 529, 16, 569, 67, 529, 4672, 981, 273, 10228, 430, 261, 14965, 2692, 67, 318, 3108, 67, 1080, 9275, 87, 16, 738, 87, 16, 473, 9, 87, 2...
c = self.read(1) line = line + c if c=='\n' or c=="": break return line
c = self.read(readsize) i = string.find(c, '\n') if i >= 0 or c == '': bufs.append(c[:i]) self._unread(c[i+1:]) return string.join(bufs, '') bufs.append(c) readsize = readsize * 2
def readline(self):
f1409e06ab5e40cc3e2a8762690b55a092008400 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f1409e06ab5e40cc3e2a8762690b55a092008400/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 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, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 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, -100, ...
self.assertRaises(WindowsError, os.remove, test_support.TESTFN)
self.assertRaises(OSError, os.remove, test_support.TESTFN)
def test_remove(self): self.assertRaises(WindowsError, os.remove, test_support.TESTFN)
33bd587d158048f44b4958503cb4f2156300e788 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/33bd587d158048f44b4958503cb4f2156300e788/test_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4479, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 10399, 668, 16, 1140, 18, 4479, 16, 1842, 67, 13261, 18, 16961, 19793, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 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, 4479, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 10399, 668, 16, 1140, 18, 4479, 16, 1842, 67, 13261, 18, 16961, 19793, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
insert_connection = atom.service.AtomService._CreateConnection(self, uri,
insert_connection = self.handler._CreateConnection(self, uri,
def Put(self, data, uri, extra_headers=None, url_params=None, escape_params=True, redirects_remaining=3, media_source=None, converter=None): """Updates an entry at the given URI. Args: data: string, ElementTree._Element, or xml_wrapper.ElementWrapper The XML containing the updated data. uri: string A URI indicating en...
2fc3c8b5e04f49e7854d86afdf5c528572665ee2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6580/2fc3c8b5e04f49e7854d86afdf5c528572665ee2/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4399, 12, 2890, 16, 501, 16, 2003, 16, 2870, 67, 2485, 33, 7036, 16, 880, 67, 2010, 33, 7036, 16, 4114, 67, 2010, 33, 5510, 16, 18064, 67, 17956, 33, 23, 16, 3539, 67, 3168, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4399, 12, 2890, 16, 501, 16, 2003, 16, 2870, 67, 2485, 33, 7036, 16, 880, 67, 2010, 33, 7036, 16, 4114, 67, 2010, 33, 5510, 16, 18064, 67, 17956, 33, 23, 16, 3539, 67, 3168, 33, 70...
"num_clust_trigs": "int_4s", "ds2_H1H2": "real_4", "ds2_H1L1": "real_4", "ds2_H2L1": "real_4",
"num_clust_trigs": "int_4s", "ds2_H1H2": "real_4", "ds2_H1L1": "real_4", "ds2_H2L1": "real_4",
def get_ifos(self): return instrument_set_from_ifos( self.ifos )
259430d1131e692c0fa5c3351cc4e4e71c032412 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/259430d1131e692c0fa5c3351cc4e4e71c032412/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 430, 538, 12, 2890, 4672, 327, 10353, 67, 542, 67, 2080, 67, 430, 538, 12, 365, 18, 430, 538, 262, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 430, 538, 12, 2890, 4672, 327, 10353, 67, 542, 67, 2080, 67, 430, 538, 12, 365, 18, 430, 538, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if config.get('msvs_quote_cmd', True):
if quote_cmd:
def _PrepareActionRaw(config, cmd, cygwin_shell, has_input_path): if cygwin_shell: # Find path to cygwin. cygwin_dir = _FixPath(config.get('msvs_cygwin_dirs', ['.'])[0]) # Prepare command. direct_cmd = cmd direct_cmd = [i.replace('$(IntDir)', '`cygpath -m "${INTDIR}"`') for i in direct_cmd] direct_cmd = [i.replace('$(O...
4289bfbe7bd08f28a48e04f60f4d65c4b81dbe93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/4289bfbe7bd08f28a48e04f60f4d65c4b81dbe93/msvs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7543, 1803, 4809, 12, 1425, 16, 1797, 16, 276, 4338, 8082, 67, 10304, 16, 711, 67, 2630, 67, 803, 4672, 309, 276, 4338, 8082, 67, 10304, 30, 468, 4163, 589, 358, 276, 4338, 8082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7543, 1803, 4809, 12, 1425, 16, 1797, 16, 276, 4338, 8082, 67, 10304, 16, 711, 67, 2630, 67, 803, 4672, 309, 276, 4338, 8082, 67, 10304, 30, 468, 4163, 589, 358, 276, 4338, 8082, ...
"""Return a string representing the object\'s value in the format: March 1, 1997 1:45 pm"""
""" Return a string representing the object's value in the format: March 1, 1997 1:45 pm Permission -- Always available """
def fCommon(): """Return a string representing the object\'s value in the format: March 1, 1997 1:45 pm"""
b8c350cc5b36f5ce907db3ed0e2c54460ed7de1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b8c350cc5b36f5ce907db3ed0e2c54460ed7de1c/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 6517, 13332, 3536, 990, 279, 533, 5123, 326, 733, 3730, 87, 460, 316, 326, 740, 30, 490, 991, 404, 16, 23673, 27, 404, 30, 7950, 7430, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 6517, 13332, 3536, 990, 279, 533, 5123, 326, 733, 3730, 87, 460, 316, 326, 740, 30, 490, 991, 404, 16, 23673, 27, 404, 30, 7950, 7430, 8395, 2, -100, -100, -100, -100, -100, -100,...
cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd))
if passwd: cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd)) else: cr.execute('select count(*) from res_users where id=%s and password is null', (int(uid),))
def check(db, uid, passwd): if _uid_cache.get(db, {}).get(uid) == passwd: return True cr = pooler.get_db(db).cursor() cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd)) res = cr.fetchone()[0] cr.close() if not bool(res): raise Exception('AccessDenied') if res: if _uid_cache.has...
655eada141079901ef8fb16eea5890a92db19608 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/655eada141079901ef8fb16eea5890a92db19608/security.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 1966, 16, 4555, 16, 19093, 4672, 309, 389, 1911, 67, 2493, 18, 588, 12, 1966, 16, 2618, 2934, 588, 12, 1911, 13, 422, 19093, 30, 327, 1053, 4422, 273, 2845, 264, 18, 588, 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, 866, 12, 1966, 16, 4555, 16, 19093, 4672, 309, 389, 1911, 67, 2493, 18, 588, 12, 1966, 16, 2618, 2934, 588, 12, 1911, 13, 422, 19093, 30, 327, 1053, 4422, 273, 2845, 264, 18, 588, 67...
continue
ke.uChar.UnicodeChar = u(chr(cnum)) ke.wVirtualKeyCode = ctypes.windll.user32.VkKeyScanA(cnum + 96) ke.dwControlKeyState = LEFT_CTRL_PRESSED
def write_plain (self, text): # {{{
1598ce648f476a75fa26c90e9bf3aa46998bb2b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6680/1598ce648f476a75fa26c90e9bf3aa46998bb2b2/conque_sole_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7446, 261, 2890, 16, 977, 4672, 468, 10179, 95, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7446, 261, 2890, 16, 977, 4672, 468, 10179, 95, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elts[i].style.display = ((cmd=="hide private")?"none":"block");
elts[i].style.display = ((cmd && cmd.substr(0,4)=="hide")?"none":"block");
def write_javascript(self, directory): jsfile = open(os.path.join(directory, 'epydoc.js'), 'w') print >> jsfile, self.TOGGLE_PRIVATE_JS print >> jsfile, self.GET_COOKIE_JS print >> jsfile, self.SET_FRAME_JS print >> jsfile, self.HIDE_PRIVATE_JS print >> jsfile, self.TOGGLE_CALLGRAPH_JS print >> jsfile, html_colorize.PY...
df8fdcdaedad9bb890428949f435cf2d4e45e05d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/df8fdcdaedad9bb890428949f435cf2d4e45e05d/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 11242, 12, 2890, 16, 1867, 4672, 3828, 768, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 5149, 16, 296, 881, 93, 2434, 18, 2924, 19899, 296, 91, 6134, 1172, 1671, 3828, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11242, 12, 2890, 16, 1867, 4672, 3828, 768, 273, 1696, 12, 538, 18, 803, 18, 5701, 12, 5149, 16, 296, 881, 93, 2434, 18, 2924, 19899, 296, 91, 6134, 1172, 1671, 3828, 768, ...
if err[0] == errno.EINTR:
err_type = err.message if err_type == errno.EINTR:
def _read(self): buf = '' # put in a loop so that we retry on transient errors while True: try: buf = self._ssl.read(self._bufsize) except socket.sslerror as err: if (err[0] == socket.SSL_ERROR_WANT_READ or err[0] == socket.SSL_ERROR_WANT_WRITE): continue if (err[0] == socket.SSL_ERROR_ZERO_RETURN or err[0] == socket.S...
6f8fe151da16f43fc5d0c5167fc3d9432f993f70 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/6f8fe151da16f43fc5d0c5167fc3d9432f993f70/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 631...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 286) else quickfix.StringField.__init__(self, 286, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 576, 5292, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 576, 5292, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 9...
def alert(self, ctx): if len(ctx.authtype) > 1: ctx.Set("alert.classification.text", "Multiple authentication methods") ctx.Set("alert.correlation_alert.name", "Multiple authentication methods") ctx.Set("alert.assessment.impact.severity", "medium") ctx.Set("alert.assessment.impact.description", "Multiple ways of authen...
def alert(self, ctx): if len(ctx.authtype) > 1: ctx.Set("alert.classification.text", "Multiple authentication methods") ctx.Set("alert.correlation_alert.name", "Multiple authentication methods") ctx.Set("alert.assessment.impact.severity", "medium") ctx.Set("alert.assessment.impact.description", "Multiple ways of authen...
1f4c6bb0cac0876cc9b19dc12d703fc8e53e7151 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3386/1f4c6bb0cac0876cc9b19dc12d703fc8e53e7151/opensshauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6881, 12, 2890, 16, 1103, 4672, 309, 562, 12, 5900, 18, 5854, 647, 388, 13, 405, 404, 30, 1103, 18, 694, 2932, 11798, 18, 20251, 18, 955, 3113, 315, 8438, 5107, 2590, 7923, 1103, 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, 6881, 12, 2890, 16, 1103, 4672, 309, 562, 12, 5900, 18, 5854, 647, 388, 13, 405, 404, 30, 1103, 18, 694, 2932, 11798, 18, 20251, 18, 955, 3113, 315, 8438, 5107, 2590, 7923, 1103, 18, ...
adopt_init_args(self, locals(), hide=0001)
def __init__(self, peak_list, special_position_settings, general_positions_only=00000, min_cross_distance=None, max_clusters=None): adopt_init_args(self, locals(), hide=0001) if (min_cross_distance is None): min_cross_distance = special_position_settings.min_distance_sym_equiv() self._gridding = peak_list.gridding() se...
4d341582ea0f0849de55988e732bceb2b4337369 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/4d341582ea0f0849de55988e732bceb2b4337369/maptbx.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11148, 67, 1098, 16, 4582, 67, 3276, 67, 4272, 16, 7470, 67, 12388, 67, 3700, 33, 11706, 16, 1131, 67, 14653, 67, 8969, 33, 7036, 16, 943, 67, 16806, 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, 1001, 2738, 972, 12, 2890, 16, 11148, 67, 1098, 16, 4582, 67, 3276, 67, 4272, 16, 7470, 67, 12388, 67, 3700, 33, 11706, 16, 1131, 67, 14653, 67, 8969, 33, 7036, 16, 943, 67, 16806, 3...
@version: 1.4
@version: 1.5
def createColumns(self): self.InsertSizedColumn(0, "Index") self.InsertSizedColumn(1, "Filename", min=100, max=200) self.InsertSizedColumn(2, "Size", wx.LIST_FORMAT_RIGHT, min=30, greedy=True) self.InsertSizedColumn(3, "Mode", max="MMM") self.InsertSizedColumn(4, "Description", min=100) self.InsertSizedColumn(5, "URL",...
055ab42b9c1c7f05265ee06a881bbc1daa13c924 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/055ab42b9c1c7f05265ee06a881bbc1daa13c924/column_autosize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3380, 12, 2890, 4672, 365, 18, 4600, 55, 1235, 1494, 12, 20, 16, 315, 1016, 7923, 365, 18, 4600, 55, 1235, 1494, 12, 21, 16, 315, 5359, 3113, 1131, 33, 6625, 16, 943, 33, 6976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3380, 12, 2890, 4672, 365, 18, 4600, 55, 1235, 1494, 12, 20, 16, 315, 1016, 7923, 365, 18, 4600, 55, 1235, 1494, 12, 21, 16, 315, 5359, 3113, 1131, 33, 6625, 16, 943, 33, 6976, ...
self.value = [] valueLen = len(self.value)
valueLen = 0 else: valueLen = len(self.value)
def _keyreleased(self, widget, key_event, *ignore): """ A key has been released: the user might be wanting to insert a row... """ # bugs will come to haunt you at night if you delete this # and don't fix the socking but that is elsewhere # (I whish at least where does he hide, the little frak) if self.value is None: se...
acde4da04a5f0eca89a2514b9657fd0998d30741 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2750/acde4da04a5f0eca89a2514b9657fd0998d30741/grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 856, 9340, 72, 12, 2890, 16, 3604, 16, 498, 67, 2575, 16, 380, 6185, 4672, 3536, 432, 498, 711, 2118, 15976, 30, 326, 729, 4825, 506, 2545, 310, 358, 2243, 279, 1027, 2777, 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, 389, 856, 9340, 72, 12, 2890, 16, 3604, 16, 498, 67, 2575, 16, 380, 6185, 4672, 3536, 432, 498, 711, 2118, 15976, 30, 326, 729, 4825, 506, 2545, 310, 358, 2243, 279, 1027, 2777, 3536, ...
if self._inSack is None:
if not self.pkgSackPackages: pass elif self._inSack is None:
def getNewProvides(self, name, flag=None, version=(None, None, None)): """return dict { packages -> list of matching provides } searches in packages to be installed""" result = { } if self._inSack is None: for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems(): if self.getMembersWithState(pkg.pkgtup...
9d83cabc986283a64d32f4b6983771f3b12ec880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/9d83cabc986283a64d32f4b6983771f3b12ec880/transactioninfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12654, 17727, 12, 2890, 16, 508, 16, 2982, 33, 7036, 16, 1177, 28657, 7036, 16, 599, 16, 599, 3719, 30, 3536, 2463, 2065, 288, 5907, 317, 666, 434, 3607, 8121, 289, 16662, 316, 5907, 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, 12654, 17727, 12, 2890, 16, 508, 16, 2982, 33, 7036, 16, 1177, 28657, 7036, 16, 599, 16, 599, 3719, 30, 3536, 2463, 2065, 288, 5907, 317, 666, 434, 3607, 8121, 289, 16662, 316, 5907, 3...
if not os.path.isdir(subdir) or not subdir.startswith("_"):
if not os.path.isdir(subdir) or not dirname.startswith("_"):
def buildPackages(self): for (pack, (regex_single, regex_split)) in self.packageRegex.items(): for dirname in os.listdir(self.distDir): subdir = os.path.join(self.distDir, dirname) # Ignore non-dir directory members and non-gettor dirs if not os.path.isdir(subdir) or not subdir.startswith("_"): continue for filename in...
9baa53cdb95816443cdc07209facfae4f8a803b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7360/9baa53cdb95816443cdc07209facfae4f8a803b8/packages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 11425, 12, 2890, 4672, 364, 261, 2920, 16, 261, 7584, 67, 7526, 16, 3936, 67, 4939, 3719, 316, 365, 18, 5610, 6628, 18, 3319, 13332, 364, 4283, 316, 1140, 18, 1098, 1214, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 11425, 12, 2890, 4672, 364, 261, 2920, 16, 261, 7584, 67, 7526, 16, 3936, 67, 4939, 3719, 316, 365, 18, 5610, 6628, 18, 3319, 13332, 364, 4283, 316, 1140, 18, 1098, 1214, 12, 289...
""" Install OpenAlea.Deploy with setuptools""" try: from setuptools.command.easy_install import main except ImportError: from easy_install import main main(['-f', ALEA_PI_URL, "openalea.deploy"])
""" Install OpenAlea.Deploy with setuptools""" from pkg_resources import require require('setuptools') from setuptools.command.easy_install import main try: main(['-f', ALEA_PI_URL, "openalea.deploy"]) except: print "Ex"
def install_deploy(): """ Install OpenAlea.Deploy with setuptools""" try: from setuptools.command.easy_install import main except ImportError: from easy_install import main main(['-f', ALEA_PI_URL, "openalea.deploy"])
cf1e5e0e4ac09f9ca2a07feeed945694c5e24050 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4914/cf1e5e0e4ac09f9ca2a07feeed945694c5e24050/ez_alea_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 12411, 13332, 3536, 10284, 3502, 37, 298, 69, 18, 10015, 598, 444, 30693, 8395, 225, 628, 3475, 67, 4683, 1930, 2583, 2583, 2668, 542, 30693, 6134, 628, 444, 30693, 18, 3076, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 12411, 13332, 3536, 10284, 3502, 37, 298, 69, 18, 10015, 598, 444, 30693, 8395, 225, 628, 3475, 67, 4683, 1930, 2583, 2583, 2668, 542, 30693, 6134, 628, 444, 30693, 18, 3076, 1...
if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_)
def buildChildren(self, child_, nodeName_, from_subclass=False): if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', child_.tail) self.content_.append(obj_) pass
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 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, ...
[ 1, 1, 1, 1, 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, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print startNeighbor, endNeighbor, edge
def copyMapContents(sourceMap, destMap, edgeTransform = None): """copyMapContents(sourceMap, destMap, edgeTransform = None) Adds all nodes and edges of sourceMap to the destMap. The sigma order is preserved. Thus, it is an error to copy the contents of a graph - not sourceMap.edgesSorted() - into a map with destMap....
897f5acda25a0eeae052b9c2a7a615550585942e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/897f5acda25a0eeae052b9c2a7a615550585942e/maputils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 863, 6323, 12, 3168, 863, 16, 1570, 863, 16, 3591, 4059, 273, 599, 4672, 3536, 3530, 863, 6323, 12, 3168, 863, 16, 1570, 863, 16, 3591, 4059, 273, 599, 13, 225, 15605, 777, 2199,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 863, 6323, 12, 3168, 863, 16, 1570, 863, 16, 3591, 4059, 273, 599, 4672, 3536, 3530, 863, 6323, 12, 3168, 863, 16, 1570, 863, 16, 3591, 4059, 273, 599, 13, 225, 15605, 777, 2199,...
if y is None: self.n_skipped += 1 else: self.n_skipped = 0 factor = 2.0**self.n_skipped**2.0 this_R = factor*self.R
def step2__calculate_a_posteri(self,xhatminus,Pminus,y=None): """ y represents the observation for this time-step """ dot = numpy.dot # shorthand inv = numpy.linalg.inv ############################################ # incorporate observation
e357db73f8375a2ce3cd9f4a905ad06bb221a823 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14900/e357db73f8375a2ce3cd9f4a905ad06bb221a823/adskalman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2235, 22, 972, 11162, 67, 69, 67, 2767, 264, 77, 12, 2890, 16, 92, 11304, 19601, 16, 52, 19601, 16, 93, 33, 7036, 4672, 3536, 677, 8686, 326, 13853, 364, 333, 813, 17, 4119, 3536, 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, 2235, 22, 972, 11162, 67, 69, 67, 2767, 264, 77, 12, 2890, 16, 92, 11304, 19601, 16, 52, 19601, 16, 93, 33, 7036, 4672, 3536, 677, 8686, 326, 13853, 364, 333, 813, 17, 4119, 3536, 39...
global __config, configDefaults
global _config, configDefaults
def load(file): """ Returns a dictionary containing the current configuration information, read from the specified .INI file. """ global __config, configDefaults try: if not os.path.exists(file): __WriteINI(file) __config = __ReadINI(file, configDefaults) except: print "ERROR: could not load config file %s" % file sys....
57a4a624e1c74ec183a41def83450e16af01aebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13130/57a4a624e1c74ec183a41def83450e16af01aebd/configFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 768, 4672, 3536, 2860, 279, 3880, 4191, 326, 783, 1664, 1779, 16, 855, 628, 326, 1269, 263, 12772, 585, 18, 3536, 2552, 389, 1425, 16, 642, 7019, 775, 30, 309, 486, 1140, 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, 1262, 12, 768, 4672, 3536, 2860, 279, 3880, 4191, 326, 783, 1664, 1779, 16, 855, 628, 326, 1269, 263, 12772, 585, 18, 3536, 2552, 389, 1425, 16, 642, 7019, 775, 30, 309, 486, 1140, 18,...
def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement)
def __init__(self, prepoly, poly, prec, halt, print_mode, shift_seed, names): unram_prec = (prec + poly.degree() - 1) // poly.degree() ntl_poly = ntl_ZZ_pX([a.lift() for a in poly.list()], poly.base_ring().prime()**unram_prec) shift_poly = ntl_ZZ_pX([a.lift() for a in shift_seed.list()], shift_seed.base_ring().prime()...
def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement)
3f749fc2d07ac2b736b4a6e08cfee62c70e3d53b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3f749fc2d07ac2b736b4a6e08cfee62c70e3d53b/padic_extension_leaves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 512, 291, 275, 334, 13685, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 512, 291, 275, 334, 13685, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 1...
dnaStrand = selobj.molecule.parent_node_of_class(self.win.assy.DnaStrand) if dnaStrand: chunkList = [dnaStrand]
dnaStrandOrSegment = selobj.molecule.parent_node_of_class( self.win.assy.DnaStrandOrSegment) if dnaStrandOrSegment: chunkList = [dnaStrandOrSegment]
def _get_objects_to_highlight(self, selobj, hiColor1, hiColor2): """ Returns a python dictionary with objects to be drawn highlighted as its keys and highlight color as their corresponding values. The object to be highlighted is determined based the current graphics mode using the glpane.selobj. The subclasses can ove...
9b62a45032a66e2bb994ed6192351ad80ddd1d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/9b62a45032a66e2bb994ed6192351ad80ddd1d98/SelectChunks_GraphicsMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6911, 67, 869, 67, 15978, 12, 2890, 16, 357, 2603, 16, 10118, 2957, 21, 16, 10118, 2957, 22, 4672, 3536, 2860, 279, 5790, 3880, 598, 2184, 358, 506, 19377, 24375, 487, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6911, 67, 869, 67, 15978, 12, 2890, 16, 357, 2603, 16, 10118, 2957, 21, 16, 10118, 2957, 22, 4672, 3536, 2860, 279, 5790, 3880, 598, 2184, 358, 506, 19377, 24375, 487, 20...
kernel_fetch_cmd = "wget -q %s/isolinux/%s" % (self.url, self.kernel) initrd_fetch_cmd = "wget -q %s/isolinux/%s" % (self.url, self.initrd)
kernel_fetch_cmd = "wget -q %s/%s/%s" % (self.url, self.boot_path, os.path.basename(self.kernel)) initrd_fetch_cmd = "wget -q %s/%s/%s" % (self.url, self.boot_path, os.path.basename(self.initrd))
def setup_url(self): """ Download the vmlinuz and initrd.img from URL. """ print "Downloading the vmlinuz and initrd.img" os.chdir(self.image_path)
295f8a35ea41100c5c7582c4a6b666d666dbf25a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/295f8a35ea41100c5c7582c4a6b666d666dbf25a/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 718, 12, 2890, 4672, 3536, 13059, 326, 331, 781, 6860, 94, 471, 1208, 13623, 18, 6081, 628, 1976, 18, 3536, 1172, 315, 27217, 326, 331, 781, 6860, 94, 471, 1208, 13623, 18, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 718, 12, 2890, 4672, 3536, 13059, 326, 331, 781, 6860, 94, 471, 1208, 13623, 18, 6081, 628, 1976, 18, 3536, 1172, 315, 27217, 326, 331, 781, 6860, 94, 471, 1208, 13623, 18, 6...
self._parseheaders(root, fp)
firstbodyline = self._parseheaders(root, fp)
def parse(self, fp, headersonly=False): """Create a message structure from the data in a file.
fd75ad1c4ab511c4bd028c66a273ed9117440b57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fd75ad1c4ab511c4bd028c66a273ed9117440b57/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 4253, 16, 1607, 3700, 33, 8381, 4672, 3536, 1684, 279, 883, 3695, 628, 326, 501, 316, 279, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 12, 2890, 16, 4253, 16, 1607, 3700, 33, 8381, 4672, 3536, 1684, 279, 883, 3695, 628, 326, 501, 316, 279, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
sel.select_path(path[0])
sel.select_path(path[1])
def on_treeview_row_clicked(self, tv, evt): """ Called when the user clicked on a treeview element. """ try: if evt.button == 3: path = tv.get_path_at_pos(int(evt.x), int(evt.y)) sel = tv.get_selection() (rows, _) = sel.get_selected_rows() if path[0] not in rows[1]: sel.unselect_all() sel.select_path(path[0]) tv.grab_...
9edfcdeed3cd5d937c15049ed60c8c2a5154e55b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/9edfcdeed3cd5d937c15049ed60c8c2a5154e55b/jamendo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3413, 1945, 67, 492, 67, 7475, 329, 12, 2890, 16, 13521, 16, 6324, 4672, 3536, 11782, 1347, 326, 729, 17688, 603, 279, 2151, 1945, 930, 18, 3536, 775, 30, 309, 6324, 18, 5391,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3413, 1945, 67, 492, 67, 7475, 329, 12, 2890, 16, 13521, 16, 6324, 4672, 3536, 11782, 1347, 326, 729, 17688, 603, 279, 2151, 1945, 930, 18, 3536, 775, 30, 309, 6324, 18, 5391,...
low = Status.lowest_severity()
low = Status.default()
def create_events(): for service in Service.all(): low = Status.lowest_severity() day = datetime.today() - timedelta(days=2) e = Event(service=service, status=low, message="This service is operating fine", start=day) e.put()
243e8e56879d06046872e972c028b3896c81f19a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10465/243e8e56879d06046872e972c028b3896c81f19a/install_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5989, 13332, 364, 1156, 316, 1956, 18, 454, 13332, 4587, 273, 2685, 18, 1886, 1435, 2548, 273, 3314, 18, 30064, 1435, 300, 10661, 12, 9810, 33, 22, 13, 425, 273, 2587, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 5989, 13332, 364, 1156, 316, 1956, 18, 454, 13332, 4587, 273, 2685, 18, 1886, 1435, 2548, 273, 3314, 18, 30064, 1435, 300, 10661, 12, 9810, 33, 22, 13, 425, 273, 2587, 12, 327...
j = string.find(sys.version, ")", i)
j = sys.version.find(")", i)
def get_platform (): """Return a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information ...
c49a8d0dc091a213d4117981931f3d1357ba1d02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/c49a8d0dc091a213d4117981931f3d1357ba1d02/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9898, 1832, 30, 3536, 990, 279, 533, 716, 25283, 326, 783, 4072, 18, 225, 1220, 353, 1399, 31457, 358, 23926, 4072, 17, 12524, 1361, 6402, 471, 4072, 17, 12524, 6650, 23296, 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, 336, 67, 9898, 1832, 30, 3536, 990, 279, 533, 716, 25283, 326, 783, 4072, 18, 225, 1220, 353, 1399, 31457, 358, 23926, 4072, 17, 12524, 1361, 6402, 471, 4072, 17, 12524, 6650, 23296, 18,...
value = [twc.safe_validate(self.item_validator, v) for v in (value or [])] value = [v for v in value if v is not twc.Invalid]
if self.item_validator: value = [twc.safe_validate(self.item_validator, v) for v in (value or [])] value = [v for v in value if v is not twc.Invalid] elif self.validator: value = twc.safe_validate(self.validator, value)
def _validate(self, value): """ To redisplay correctly on error, selection fields must have the :attr:`item_validator` applies to their value. This function does this in a way that will never raise an exception, before calling the main validator. """ if self.multiple: if isinstance(value, basestring): value = [value,]...
075e50c979c9fbb01316d3b99e609e26458141c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11476/075e50c979c9fbb01316d3b99e609e26458141c4/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 12, 2890, 16, 460, 4672, 3536, 2974, 5813, 1601, 8783, 603, 555, 16, 4421, 1466, 1297, 1240, 326, 294, 1747, 28288, 1726, 67, 7357, 68, 10294, 358, 3675, 460, 18, 1220, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5662, 12, 2890, 16, 460, 4672, 3536, 2974, 5813, 1601, 8783, 603, 555, 16, 4421, 1466, 1297, 1240, 326, 294, 1747, 28288, 1726, 67, 7357, 68, 10294, 358, 3675, 460, 18, 1220, 445, ...
if c == r"'":
elif c == r"'":
def split_command_line(command_line): '''This splits a command line into a list of arguments. It splits arguments on spaces, but handles embedded quotes, doublequotes, and escaped characters. I couldn't do this with a regular expression, so I wrote a little state machine to parse the command line. ''' arg_list = [] arg...
a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 3076, 67, 1369, 12, 3076, 67, 1369, 4672, 9163, 2503, 11019, 279, 1296, 980, 1368, 279, 666, 434, 1775, 18, 2597, 11019, 1775, 603, 7292, 16, 1496, 7372, 7488, 10681, 16, 1645,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 3076, 67, 1369, 12, 3076, 67, 1369, 4672, 9163, 2503, 11019, 279, 1296, 980, 1368, 279, 666, 434, 1775, 18, 2597, 11019, 1775, 603, 7292, 16, 1496, 7372, 7488, 10681, 16, 1645,...
direntry.connect('selection-changed', self.prefs_direntry_changed, profiles)
direntry.connect('selection-changed', self._direntry_changed, profiles)
def mpd_tab(self): """Construct and layout the MPD tab""" mpdlabel = ui.label(markup='<b>' + _('MPD Connection') + '</b>', y=1) mpd_frame = gtk.Frame() mpd_frame.set_label_widget(mpdlabel) mpd_frame.set_shadow_type(gtk.SHADOW_NONE) controlbox = gtk.HBox() profiles = ui.combo() add_profile = ui.button(img=ui.image(stock...
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 72, 67, 7032, 12, 2890, 4672, 3536, 7249, 471, 3511, 326, 13480, 40, 3246, 8395, 6749, 72, 1925, 273, 5915, 18, 1925, 12, 15056, 2218, 32, 70, 1870, 397, 389, 2668, 4566, 40, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 72, 67, 7032, 12, 2890, 4672, 3536, 7249, 471, 3511, 326, 13480, 40, 3246, 8395, 6749, 72, 1925, 273, 5915, 18, 1925, 12, 15056, 2218, 32, 70, 1870, 397, 389, 2668, 4566, 40, 405...
""" A base class for comparators that transform their inout and then perform a simple comparison against a value. """
"""A base class for comparators that transform their inout and then perform a simple comparison against a value."""
def __repr__(self): return "%s(%s)" % (self.__class__.__name__, `self.value`)
2e7b15abd167a17bf8f880c7e0bd7891362e04de /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/873/2e7b15abd167a17bf8f880c7e0bd7891362e04de/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2213, 87, 9275, 87, 2225, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 1375, 2890, 18, 1132, 24065, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2213, 87, 9275, 87, 2225, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 1375, 2890, 18, 1132, 24065, 2, -100, -100, -100, -100, -100, -100...
sage: mathematica.eval('Cos[x] + Sin[y] + x^2 + y^2 + t /. x^2 + y^2 -> t')
sage: mathematica.eval('Cos[x] + Sin[y] + x^2 + y^2 + t /. x^2 + y^2 -> t')
def subs_expr(self, *equations): """ Given a dictionary of key:value pairs, substitute all occurences of key for value in self.
dad535f9b6332d16218fbc94ac430cdc58063cb4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/dad535f9b6332d16218fbc94ac430cdc58063cb4/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11630, 67, 8638, 12, 2890, 16, 380, 14298, 1012, 4672, 3536, 16803, 279, 3880, 434, 498, 30, 1132, 5574, 16, 14811, 777, 9145, 18842, 764, 434, 498, 364, 460, 316, 365, 18, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11630, 67, 8638, 12, 2890, 16, 380, 14298, 1012, 4672, 3536, 16803, 279, 3880, 434, 498, 30, 1132, 5574, 16, 14811, 777, 9145, 18842, 764, 434, 498, 364, 460, 316, 365, 18, 2, -100, -1...
learners = RelationshipProperty(URILearning, URISection, URILearner)
learners = RelationshipProperty(URILearning, URISection, URILearner)
def _getTitle(self): return _('Section of ') + " ".join([c.title for c in self.courses])
94e5db2b80df02892213d276a47f6e2de7d534e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/94e5db2b80df02892213d276a47f6e2de7d534e0/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4247, 12, 2890, 4672, 327, 389, 2668, 5285, 434, 8624, 397, 315, 3552, 5701, 3816, 71, 18, 2649, 364, 276, 316, 365, 18, 15804, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4247, 12, 2890, 4672, 327, 389, 2668, 5285, 434, 8624, 397, 315, 3552, 5701, 3816, 71, 18, 2649, 364, 276, 316, 365, 18, 15804, 5717, 2, -100, -100, -100, -100, -100, -100, -...
if not self._precheck(irc, msg, timeout=(to,factoid.name)): return cur.execute("UPDATE FACTS SET popularity = %d WHERE name = %s", factoid.popularity+1, factoid.name) db.commit() if factoid.value.startswith('<reply>'): irc.queueMsg(ircmsgs.privmsg(to, '%s%s' % (retmsg, factoid.value[7:].strip()))) else: irc.queueMsg(i...
if noalias: if not self._precheck(irc, msg, timeout=(to,factoid.name,1)): return cur.execute("SELECT name FROM facts WHERE value = %s", '<alias> ' + factoid.name) data = cur.fetchall() if(len(data)): aliases = "%s aliases: %s" % (factoid.name, ', '.join([x[0].strip() for x in data])) else: if factoid.value.strip().star...
def showfactoid(self, irc, msg, match): r"^(!|!?ubotu\S?\s)?(?P<noalias>-)?\s*(tell\s+(?P<nick>\S+)\s+about\s+)?(?P<factoid>\S.+?)(>\s*(?P<nick2>\S+))?$" withnick = bool(match.group(1)) and msg.args[1].startswith('ubotu') db = self._precheck(irc, msg, withnick=True, timeout=(msg.args[0], match.group('nick'), match.grou...
01f443b02020754b77ae2d59e7040a244cbd5b7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3105/01f443b02020754b77ae2d59e7040a244cbd5b7c/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3493, 839, 12, 2890, 16, 277, 1310, 16, 1234, 16, 845, 4672, 436, 6, 29020, 5, 96, 5, 35, 373, 352, 89, 64, 55, 10936, 87, 9945, 3680, 52, 32, 2135, 4930, 34, 17, 9945, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3493, 839, 12, 2890, 16, 277, 1310, 16, 1234, 16, 845, 4672, 436, 6, 29020, 5, 96, 5, 35, 373, 352, 89, 64, 55, 10936, 87, 9945, 3680, 52, 32, 2135, 4930, 34, 17, 9945, 64, ...
b = ScrollBehaviour((0, start), (0, stop), '_scroll') self._col_animation = self.animate(secs) self._col_animation.behave(b)
self.__col_animation = self.animate(secs) self.__col_animation.behave(ScrollBehaviour((0, y), '_scroll'))
def scroll_to(self, (row, col), secs): """ Scroll to row / cell position
b47bb145b9afab8cd03f9ba37d4dcd175be8f666 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11702/b47bb145b9afab8cd03f9ba37d4dcd175be8f666/grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5532, 67, 869, 12, 2890, 16, 261, 492, 16, 645, 3631, 18043, 4672, 3536, 23134, 358, 1027, 342, 2484, 1754, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5532, 67, 869, 12, 2890, 16, 261, 492, 16, 645, 3631, 18043, 4672, 3536, 23134, 358, 1027, 342, 2484, 1754, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
environ['TZ'] = 'US/Eastern'
environ['TZ'] = eastern
def test_tzset(self): if not hasattr(time, "tzset"): return # Can't test this; don't want the test suite to fail
0bb27d52a755bc77f9610e468f23f3c7f5f27863 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0bb27d52a755bc77f9610e468f23f3c7f5f27863/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 542, 12, 2890, 4672, 309, 486, 3859, 12, 957, 16, 315, 12994, 542, 6, 4672, 327, 468, 4480, 1404, 1842, 333, 31, 2727, 1404, 2545, 326, 1842, 11371, 358, 2321, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 542, 12, 2890, 4672, 309, 486, 3859, 12, 957, 16, 315, 12994, 542, 6, 4672, 327, 468, 4480, 1404, 1842, 333, 31, 2727, 1404, 2545, 326, 1842, 11371, 358, 2321, 2, -100...
def get_api_tuple(str): m = re.match("^([a-z]+)_([a-z][a-z0-9_]+)$", str) return 'p_' + m.group(1), m.group(2)
def get_api_tuple(source): match = re.match("^([a-z]+)_([a-z][a-z0-9_]+)$", source) return 'p_' + match.group(1), match.group(2)
def get_api_tuple(str): m = re.match("^([a-z]+)_([a-z][a-z0-9_]+)$", str) return 'p_' + m.group(1), m.group(2)
48ca569fea7e1a22f2994b3f5a7396ba7cf30959 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12113/48ca569fea7e1a22f2994b3f5a7396ba7cf30959/genapi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2425, 67, 8052, 12, 3168, 4672, 845, 273, 283, 18, 1916, 2932, 66, 3816, 69, 17, 94, 7941, 67, 3816, 69, 17, 94, 6362, 69, 17, 94, 20, 17, 29, 67, 7941, 8, 3113, 1084, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2425, 67, 8052, 12, 3168, 4672, 845, 273, 283, 18, 1916, 2932, 66, 3816, 69, 17, 94, 7941, 67, 3816, 69, 17, 94, 6362, 69, 17, 94, 20, 17, 29, 67, 7941, 8, 3113, 1084, 1...
template = template.blocks()[blockname]
template = template.blocks().get(blockname)
def template(self, name): if isinstance(name, document.Document) or callable(name): return name shortname = name prefix = None providers = None if isinstance(name, str): template = self.BLOCKS.get(name) if template: return template for blocks in self.BLKSTACK: if blocks: template = blocks.get(name) if template: return ...
ee91d8fafaaeb0531affcff79e64c250f94fe3ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1390/ee91d8fafaaeb0531affcff79e64c250f94fe3ad/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1542, 12, 2890, 16, 508, 4672, 309, 1549, 12, 529, 16, 1668, 18, 2519, 13, 578, 4140, 12, 529, 4672, 327, 508, 23879, 273, 508, 1633, 273, 599, 9165, 273, 599, 309, 1549, 12, 529, 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, 1542, 12, 2890, 16, 508, 4672, 309, 1549, 12, 529, 16, 1668, 18, 2519, 13, 578, 4140, 12, 529, 4672, 327, 508, 23879, 273, 508, 1633, 273, 599, 9165, 273, 599, 309, 1549, 12, 529, 16...
maxpage=maxpage, roundsize=roundsize)
maxpage=maxpage, roundsize=roundsize, nonames=nonames )
def main(): checkext = CHECKEXT verbose = VERBOSE maxpage = MAXPAGE roundsize = ROUNDSIZE dumpfile = DUMPFILE restart = 0 norun = 0 try: # Begin SLB 2/24/99: Added -t option here. opts, args = getopt.getopt(sys.argv[1:], 'Rd:m:nqr:t:vx') # End SLB 2/24/99 except getopt.error, msg: sys.stdout = sys.stderr print msg p...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 866, 408, 273, 14565, 4142, 3988, 273, 27857, 943, 2433, 273, 4552, 11219, 3643, 1467, 273, 27048, 4574, 4657, 768, 273, 463, 23942, 3776, 7870, 273, 374, 12517, 318, 273, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 866, 408, 273, 14565, 4142, 3988, 273, 27857, 943, 2433, 273, 4552, 11219, 3643, 1467, 273, 27048, 4574, 4657, 768, 273, 463, 23942, 3776, 7870, 273, 374, 12517, 318, 273, 374...
def is_ref(node): return isinstance(node, Ref)
def is_ir_set(node): return _is_yaml_mapping(node, IrSet)
def is_ref(node): return isinstance(node, Ref)
8e841208f4c2d35a14c2f7368d9b82801f784d4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/8e841208f4c2d35a14c2f7368d9b82801f784d4b/yaml_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 481, 67, 542, 12, 2159, 4672, 327, 389, 291, 67, 9522, 67, 6770, 12, 2159, 16, 467, 86, 694, 13, 282, 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, 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, 353, 67, 481, 67, 542, 12, 2159, 4672, 327, 389, 291, 67, 9522, 67, 6770, 12, 2159, 16, 467, 86, 694, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
'name': fields.char('Name', size=60),
'name': fields.char('Name', size=60, required=True),
def action_done(self, cr, uid, ids,group=True,type='out_refund', context=None): # need to make perfect checking # remaining to check sale condition # need Improvement invoice_obj = self.pool.get('account.invoice') invoice_line_obj = self.pool.get('account.invoice.line') tax_obj=self.pool.get('account.invoice.tax') part...
49ba78affef4aa09d339c2c0860b36f6171a6f1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/49ba78affef4aa09d339c2c0860b36f6171a6f1f/discount_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8734, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1655, 33, 5510, 16, 723, 2218, 659, 67, 1734, 1074, 2187, 819, 33, 7036, 4672, 468, 1608, 358, 1221, 24746, 6728, 468, 4463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 8734, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1655, 33, 5510, 16, 723, 2218, 659, 67, 1734, 1074, 2187, 819, 33, 7036, 4672, 468, 1608, 358, 1221, 24746, 6728, 468, 4463,...
R1 = N.zeros([4,4], dtype=N.float64); R2 = N.zeros([4,4], dtype=N.float64); R3 = N.zeros([4,4], dtype=N.float64); T = N.eye(4, dtype=N.float64);
R1 = NP.zeros([4,4], dtype=NP.float64); R2 = NP.zeros([4,4], dtype=NP.float64); R3 = NP.zeros([4,4], dtype=NP.float64); T = NP.eye(4, dtype=NP.float64);
def build_rotate_matrix(img_data_parms): """ rot_matrix = reg.build_rotate_matrix(img_data_parms) takes the 6 element vector (3 angles, 3 translations) and build the 4x4 mapping matrix Parameters ....... img_data_parms : {nd_array} this is the current (6-dim) array with 3 angles and 3 translations. Returns ....... r...
de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 20342, 67, 5667, 12, 6081, 67, 892, 67, 29927, 4672, 3536, 4168, 67, 5667, 273, 960, 18, 3510, 67, 20342, 67, 5667, 12, 6081, 67, 892, 67, 29927, 13, 225, 5530, 326, 1666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 20342, 67, 5667, 12, 6081, 67, 892, 67, 29927, 4672, 3536, 4168, 67, 5667, 273, 960, 18, 3510, 67, 20342, 67, 5667, 12, 6081, 67, 892, 67, 29927, 13, 225, 5530, 326, 1666, ...
before = [l.rstrip('\n') for l in lines[lbound:lineno]] line = lines[lineno].rstrip('\n') after = [l.rstrip('\n') for l in lines[lineno + 1:ubound]]
charset = None rep = re.compile('coding[=:]\s*([-\w.]+)') for linestr in lines[0], lines[1]: match = rep.search(linestr) if match: charset = match.group(1) break before = [to_unicode(l.rstrip('\n'), charset) for l in lines[lbound:lineno]] line = to_unicode(lines[lineno].rstrip('\n'), charset) after = [to_unicode(l.rs...
def get_lines_from_file(filename, lineno, context=0): """Return `content` number of lines before and after the specified `lineno` from the file identified by `filename`. Returns a `(lines_before, line, lines_after)` tuple. """ if os.path.isfile(filename): fileobj = open(filename, 'U') try: lines = fileobj.readlines() ...
a947bc01a37d86d695b1d79fc146414e8c7177cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2831/a947bc01a37d86d695b1d79fc146414e8c7177cb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3548, 67, 2080, 67, 768, 12, 3459, 16, 7586, 16, 819, 33, 20, 4672, 3536, 990, 1375, 1745, 68, 1300, 434, 2362, 1865, 471, 1839, 326, 1269, 1375, 17782, 68, 628, 326, 585, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3548, 67, 2080, 67, 768, 12, 3459, 16, 7586, 16, 819, 33, 20, 4672, 3536, 990, 1375, 1745, 68, 1300, 434, 2362, 1865, 471, 1839, 326, 1269, 1375, 17782, 68, 628, 326, 585, 9...
space this function simply returns self.
space this function simply returns self, unless the base field is different.
def vector_space(self): """ Return the vector space associated to self. Since self is a vector space this function simply returns self. EXAMPLES: sage: V = span(Rationals(), [[1,2,3]]); V Vector space of degree 3 and dimension 1 over Rational Field Basis matrix: [1 2 3] sage: V.vector_space() Vector space of degree 3...
27c1d953b6798afbc4f6f486098714caebeb979d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/27c1d953b6798afbc4f6f486098714caebeb979d/free_module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 67, 2981, 12, 2890, 4672, 3536, 2000, 326, 3806, 3476, 3627, 358, 365, 18, 225, 7897, 365, 353, 279, 3806, 3476, 333, 445, 8616, 1135, 365, 16, 3308, 326, 1026, 652, 353, 3775, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 67, 2981, 12, 2890, 4672, 3536, 2000, 326, 3806, 3476, 3627, 358, 365, 18, 225, 7897, 365, 353, 279, 3806, 3476, 333, 445, 8616, 1135, 365, 16, 3308, 326, 1026, 652, 353, 3775, 1...
print (' NumFrames: %d PlayRate: %0.2f' % (animControl.getNumFrames(), animControl.getPlayRate()))
if animControl == None: print ' (not loaded)' else: print (' NumFrames: %d PlayRate: %0.2f' % (animControl.getNumFrames(), animControl.getPlayRate()))
def pprint(self): """pprint(self) Pretty print actor's details """ for lodName, lodInfo in self.getActorInfo(): print 'LOD:', lodName for partName, bundle, animInfo in lodInfo: print ' Part:', partName print ' Bundle:', `bundle` for animName, file, animControl in animInfo: print ' Anim:', animName print ' Fil...
f3ecd1b3be1dfb26d71ee04e5cafdbea5f5b53a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/f3ecd1b3be1dfb26d71ee04e5cafdbea5f5b53a9/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18771, 12, 2890, 4672, 3536, 84, 1188, 12, 2890, 13, 22328, 1172, 8327, 1807, 3189, 3536, 364, 328, 369, 461, 16, 328, 369, 966, 316, 365, 18, 588, 17876, 966, 13332, 1172, 296, 48, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18771, 12, 2890, 4672, 3536, 84, 1188, 12, 2890, 13, 22328, 1172, 8327, 1807, 3189, 3536, 364, 328, 369, 461, 16, 328, 369, 966, 316, 365, 18, 588, 17876, 966, 13332, 1172, 296, 48, 12...
game = libgambit.NewTable([ len(self.contribs) for i in xrange(self.N) ])
game = libgambit.NewTable([ len(self.choices) for i in xrange(self.N) ])
def nfg(self): game = libgambit.NewTable([ len(self.contribs) for i in xrange(self.N) ])
5b71669e95cb1e59558f3b550ecd43f33998cb0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12755/5b71669e95cb1e59558f3b550ecd43f33998cb0b/msgame.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 290, 2137, 12, 2890, 4672, 7920, 273, 2561, 75, 2536, 305, 18, 1908, 1388, 3816, 562, 12, 2890, 18, 26930, 87, 13, 364, 277, 316, 12314, 12, 2890, 18, 50, 13, 308, 13, 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, 290, 2137, 12, 2890, 4672, 7920, 273, 2561, 75, 2536, 305, 18, 1908, 1388, 3816, 562, 12, 2890, 18, 26930, 87, 13, 364, 277, 316, 12314, 12, 2890, 18, 50, 13, 308, 13, 2, -100, -100,...
n_alpha = self.alpha_selection(limit="and name N").count(True) n_beta = self.beta_selection(limit="and name N").count(True)
alpha_sele = self.alpha_selection(limit="and name N", main_conf_only=True) n_alpha = alpha_sele.count(True) beta_sele = self.beta_selection(limit="and name N", main_conf_only=True) n_beta = beta_sele.count(True)
def calculate_structure_content (self) : isel = self.selection_cache.iselection calpha = isel("name N and (altloc ' ' or altloc 'A')") n_alpha = self.alpha_selection(limit="and name N").count(True) n_beta = self.beta_selection(limit="and name N").count(True) if calpha.size() == 0 : return (0.0, 0.0) return (n_alpha / c...
0010b9e17ff7db6e6d7268f81202d7209b8e2567 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/0010b9e17ff7db6e6d7268f81202d7209b8e2567/secondary_structure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 67, 7627, 67, 1745, 261, 2890, 13, 294, 353, 292, 273, 365, 18, 10705, 67, 2493, 18, 291, 292, 794, 1443, 2762, 273, 353, 292, 2932, 529, 423, 471, 261, 2390, 1829, 296, 296, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 67, 7627, 67, 1745, 261, 2890, 13, 294, 353, 292, 273, 365, 18, 10705, 67, 2493, 18, 291, 292, 794, 1443, 2762, 273, 353, 292, 2932, 529, 423, 471, 261, 2390, 1829, 296, 296, 5...
cmd = self.f90_compiler + ' -dryrun dummy.f'
cmd = self.f90_compiler + ' -dryrun __dummy.f'
def find_lib_dir(self): library_dirs = ["/opt/SUNWspro/prod/lib"] lib_match = r'### f90: Note: LD_RUN_PATH\s*= '\ '(?P<lib_paths>[^\s.]*).*' cmd = self.f90_compiler + ' -dryrun dummy.f' self.announce(yellow_text(cmd)) exit_status, output = run_command(cmd) if not exit_status: libs = re.findall(lib_match,output) if libs...
18f6cc54d9a0fe3dd53474858e6dc2fcefb0e657 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/18f6cc54d9a0fe3dd53474858e6dc2fcefb0e657/build_flib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 2941, 67, 1214, 12, 2890, 4672, 5313, 67, 8291, 273, 8247, 19, 3838, 19, 55, 2124, 15444, 685, 19, 17672, 19, 2941, 11929, 2561, 67, 1916, 273, 436, 11, 13151, 284, 9349, 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, 1104, 67, 2941, 67, 1214, 12, 2890, 4672, 5313, 67, 8291, 273, 8247, 19, 3838, 19, 55, 2124, 15444, 685, 19, 17672, 19, 2941, 11929, 2561, 67, 1916, 273, 436, 11, 13151, 284, 9349, 30,...
path, targetfile = util.create_unique_file(os.path.join(self.path, filename))
def insert(self, filename, fileobj, size, t=None, db=None): if not db: db = self.env.get_db_cnx() handle_ta = True else: handle_ta = False
18a7e517868a6fd8a4adee5383eeee9ba09e1b82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/18a7e517868a6fd8a4adee5383eeee9ba09e1b82/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 1544, 16, 17041, 16, 963, 16, 268, 33, 7036, 16, 1319, 33, 7036, 4672, 309, 486, 1319, 30, 1319, 273, 365, 18, 3074, 18, 588, 67, 1966, 67, 10305, 92, 1435, 1640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2243, 12, 2890, 16, 1544, 16, 17041, 16, 963, 16, 268, 33, 7036, 16, 1319, 33, 7036, 4672, 309, 486, 1319, 30, 1319, 273, 365, 18, 3074, 18, 588, 67, 1966, 67, 10305, 92, 1435, 1640,...
str += self._class_summary(classes, 'Classes') str += self._class_summary(excepts, 'Exceptions') str += self._func_summary(doc.functions()) str += self._var_summary(doc.variables())
str += self._class_summary(classes, doc.sort_order(), 'Classes') str += self._class_summary(excepts, doc.sort_order(), 'Exceptions') str += self._func_summary(doc.functions(), doc.sort_order()) str += self._var_summary(doc.variables(), doc.sort_order())
def _module_to_html(self, uid): 'Return an HTML page for a Module' doc = self._docmap[uid] descr = doc.descr() if uid.is_package(): moduletype = 'package' else: moduletype = 'module' str = self._header(`uid`) str += self._navbar(moduletype, uid) if self._show_both: str += self._public_private_link(uid)
29127a15ecd548178da747376d81226f0a835ef6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/29127a15ecd548178da747376d81226f0a835ef6/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2978, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 296, 990, 392, 3982, 1363, 364, 279, 5924, 11, 997, 273, 365, 6315, 2434, 1458, 63, 1911, 65, 18426, 273, 997, 18, 28313, 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, 2978, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 296, 990, 392, 3982, 1363, 364, 279, 5924, 11, 997, 273, 365, 6315, 2434, 1458, 63, 1911, 65, 18426, 273, 997, 18, 28313, 1435, ...
return DictionaryOfArithmeticTypes()
return ArithmeticDictionary()
def _get_empty_self(self): return DictionaryOfArithmeticTypes()
26b00e61b9d12787955b744e839ffed23b4c2c8d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12871/26b00e61b9d12787955b744e839ffed23b4c2c8d/arithmetic_container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5531, 67, 2890, 12, 2890, 4672, 327, 16447, 951, 686, 16368, 2016, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5531, 67, 2890, 12, 2890, 4672, 327, 16447, 951, 686, 16368, 2016, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if vlen: dlen=dlen+16+vlen
if vlen: dlen=dlen+(16+vlen)
def undo(self, transaction_id): self._lock_acquire() try: self._clear_index() transaction_id=base64.decodestring(transaction_id+'==\n') tid, tpos = transaction_id[:8], u64(transaction_id[8:]) packt=self._packt if packt is None or packt > tid: raise POSException.UndoError, ( 'Undo is currently disabled for database main...
e9aa3bd398cba329c8a421eb6d47f4dba6e400a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e9aa3bd398cba329c8a421eb6d47f4dba6e400a9/FileStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15436, 12, 2890, 16, 2492, 67, 350, 4672, 365, 6315, 739, 67, 1077, 1039, 1435, 775, 30, 365, 6315, 8507, 67, 1615, 1435, 2492, 67, 350, 33, 1969, 1105, 18, 4924, 1145, 371, 12, 7958, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15436, 12, 2890, 16, 2492, 67, 350, 4672, 365, 6315, 739, 67, 1077, 1039, 1435, 775, 30, 365, 6315, 8507, 67, 1615, 1435, 2492, 67, 350, 33, 1969, 1105, 18, 4924, 1145, 371, 12, 7958, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 135) else quickfix.DoubleField.__init__(self, 135, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 404, 4763, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 404, 4763, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
" %prog -l\n",
" %prog -l",
def mvbranch(argv, progname=None): progname = progname or os.path.basename(argv[0]) parser = optparse.OptionParser( "usage: %prog [-n] [-m MSG] oldbranch newbranch\n" " %prog -l\n", prog=progname, description="Rename a Subversion branch.") parser.add_option('-l', '--list', help='list existing branches', action='s...
0243003a6f9d9339ec1f01f32f9c410c2307e8c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11524/0243003a6f9d9339ec1f01f32f9c410c2307e8c7/eazysvn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7701, 7500, 12, 19485, 16, 11243, 529, 33, 7036, 4672, 11243, 529, 273, 11243, 529, 578, 1140, 18, 803, 18, 13909, 12, 19485, 63, 20, 5717, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 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, 7701, 7500, 12, 19485, 16, 11243, 529, 33, 7036, 4672, 11243, 529, 273, 11243, 529, 578, 1140, 18, 803, 18, 13909, 12, 19485, 63, 20, 5717, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 3...
relation = self._columns[node.getAttribute('name')]._obj
column = self._columns[node.getAttribute('name')]
def __view_look_dom(self, cr, user, node, view_id, context=None): if not context: context = {} result = False fields = {} childs = True
45f34ac9eb7f3d2d5bb3e09f3d53f64a9f5e642e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/45f34ac9eb7f3d2d5bb3e09f3d53f64a9f5e642e/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 1476, 67, 350, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 1476, 67, 350, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, ...
self.builder.get_object('button_play_cut').props.visible = cut_ok
self.builder.get_object('button_play_cut').props.visible = cut_ok self.builder.get_object('box_archive').props.visible = cut_ok
def show_conclusion(self, new_iter): self.conclusion_iter = new_iter self.file_conclusion = self.__file_conclusions[self.conclusion_iter] self.builder.get_object('label_count').set_text("Zeige Datei %s/%s" % (str(new_iter + 1), len(self.__file_conclusions)))
270edd8c959fe53e05f88f1d050c4a41c66345e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11048/270edd8c959fe53e05f88f1d050c4a41c66345e2/ConclusionDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 591, 15335, 12, 2890, 16, 394, 67, 2165, 4672, 365, 18, 591, 15335, 67, 2165, 273, 394, 67, 2165, 365, 18, 768, 67, 591, 15335, 273, 365, 16186, 768, 67, 591, 25364, 63, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 591, 15335, 12, 2890, 16, 394, 67, 2165, 4672, 365, 18, 591, 15335, 67, 2165, 273, 394, 67, 2165, 365, 18, 768, 67, 591, 15335, 273, 365, 16186, 768, 67, 591, 25364, 63, 28...
while Q != []:
while True: EdgeRemoved = True while Q == [] and EdgeRemoved: EdgeRemoved = False for Item in LibraryList: if Item not in Constructor: continue for Node in ConsumedByList[Item]: if Node in Constructor: continue ConsumedByList[Item].remove(Node) EdgeRemoved = True if ConsumedByList[Item] == []: Q.insert(0, Item) bre...
def _MergeModuleInfo(self, Module, ModuleId): ModuleType = Module.ModuleType # merge library class/instance information for LibraryClass in Module.LibraryClasses: if self.LibraryClasses[LibraryClass, ModuleType] == None: continue Module.LibraryClasses[LibraryClass] = self.LibraryClasses[LibraryClass, ModuleType] Record...
ed4f99270fb13f95de3f3566ac92242b62495cd9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/ed4f99270fb13f95de3f3566ac92242b62495cd9/WorkspaceDatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6786, 3120, 966, 12, 2890, 16, 5924, 16, 5924, 548, 4672, 5924, 559, 273, 5924, 18, 3120, 559, 468, 2691, 5313, 667, 19, 1336, 1779, 364, 18694, 797, 316, 5924, 18, 9313, 4818, 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, 6786, 3120, 966, 12, 2890, 16, 5924, 16, 5924, 548, 4672, 5924, 559, 273, 5924, 18, 3120, 559, 468, 2691, 5313, 667, 19, 1336, 1779, 364, 18694, 797, 316, 5924, 18, 9313, 4818, 30...
self.STDIN_FILENO = sys.stdin.fileno() self.STDOUT_FILENO = sys.stdout.fileno() self.STDERR_FILENO = sys.stderr.fileno()
self.STDIN_FILENO = pty.STDIN_FILENO self.STDOUT_FILENO = pty.STDOUT_FILENO self.STDERR_FILENO = pty.STDERR_FILENO
def __init__(self, command, args=[], timeout=30): """This is the constructor. The command parameter may be a string that includes a command and any arguments to the command. For example: p = pexpect.spawn ('/usr/bin/ftp') p = pexpect.spawn ('/usr/bin/ssh user@example.com') p = pexpect.spawn ('ls -latr /tmp') You may al...
8c4ecf17710883ea8cc68bcd989ba58de0d2e671 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/8c4ecf17710883ea8cc68bcd989ba58de0d2e671/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1296, 16, 833, 22850, 6487, 2021, 33, 5082, 4672, 3536, 2503, 353, 326, 3885, 18, 1021, 1296, 1569, 2026, 506, 279, 533, 716, 6104, 279, 1296, 471, 1281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1296, 16, 833, 22850, 6487, 2021, 33, 5082, 4672, 3536, 2503, 353, 326, 3885, 18, 1021, 1296, 1569, 2026, 506, 279, 533, 716, 6104, 279, 1296, 471, 1281, ...
step_type = pooler.get_pool(cr.dbname).get('dm.offer.step.type')
def graph_get(cr, uid, graph, offer_id): offer_obj = pooler.get_pool(cr.dbname).get('dm.offer') offer = offer_obj.browse(cr, uid, offer_id)[0] nodes = {} step_type = pooler.get_pool(cr.dbname).get('dm.offer.step.type') type_ids = step_type.search(cr, uid, []) for step in offer.step_ids: if not step.graph_hide: args = ...
e3d8adc104c00ea9e765f59675644bb6bbd479f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/e3d8adc104c00ea9e765f59675644bb6bbd479f6/dm_print_offer_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 67, 588, 12, 3353, 16, 4555, 16, 2667, 16, 10067, 67, 350, 4672, 225, 10067, 67, 2603, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 2934, 588, 2668, 10956, 18, 23322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2667, 67, 588, 12, 3353, 16, 4555, 16, 2667, 16, 10067, 67, 350, 4672, 225, 10067, 67, 2603, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 2934, 588, 2668, 10956, 18, 23322, ...
('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.svg')), ('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.svg')), ('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.svg')),
('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')), ('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')), ('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')),
def _compile_po_files (self): data_files = []
3e67611d6f7da6bae7f532e0850c6bb69ebb6913 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/3e67611d6f7da6bae7f532e0850c6bb69ebb6913/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 67, 1631, 67, 2354, 261, 2890, 4672, 501, 67, 2354, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11100, 67, 1631, 67, 2354, 261, 2890, 4672, 501, 67, 2354, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def compile_path(skip_curdir=1, maxlevels=0, force=0):
def compile_path(skip_curdir=1, maxlevels=0, force=0, quiet=0):
def compile_path(skip_curdir=1, maxlevels=0, force=0): """Byte-compile all module on sys.path. Arguments (all optional): skip_curdir: if true, skip current directory (default true) maxlevels: max recursion level (default 0) force: as for compile_dir() (default 0) """ success = 1 for dir in sys.path: if (not dir or...
6fb3494c60cbdbefb2193ec4f676a8916063457f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6fb3494c60cbdbefb2193ec4f676a8916063457f/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 803, 12, 7457, 67, 1397, 1214, 33, 21, 16, 943, 12095, 33, 20, 16, 2944, 33, 20, 16, 10902, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 1605, 603, 2589, 18, 803, 18, 225, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 803, 12, 7457, 67, 1397, 1214, 33, 21, 16, 943, 12095, 33, 20, 16, 2944, 33, 20, 16, 10902, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 1605, 603, 2589, 18, 803, 18, 225, 1...
def __unicode__(self): return "<ResultSet: query=%s prefetch=%s>" % (self.query_str, self._prefetch)
def __unicode__(self): return u"<ResultSet: query=%s>" % smart_unicode(self._query_str)
def __unicode__(self): return "<ResultSet: query=%s prefetch=%s>" % (self.query_str, self._prefetch)
d27788323bfd2214ac4f2fe8e518e9392deae687 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4645/d27788323bfd2214ac4f2fe8e518e9392deae687/resultset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 3532, 13198, 30, 843, 5095, 87, 17607, 5095, 87, 2984, 738, 261, 2890, 18, 2271, 67, 701, 16, 365, 6315, 1484, 5754, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 3532, 13198, 30, 843, 5095, 87, 17607, 5095, 87, 2984, 738, 261, 2890, 18, 2271, 67, 701, 16, 365, 6315, 1484, 5754, 13, 2, -100, -100, -100, -100...
In this next example, a Solexa FASTQ file is converted into a standard Sanger style FASTQ file using PHRED qualities:
In this next example, an old style Solexa/Illumina FASTQ file (using Solexa quality scores) is converted into a standard Sanger style FASTQ file using PHRED qualities:
def QualPhredIterator(handle, alphabet = single_letter_alphabet, title2ids = None) : """For QUAL files which include PHRED quality scores, but no sequence. For example, consider this short QUAL file:: >EAS54_6_R1_2_1_413_324 26 26 18 26 26 26 26 26 26 26 26 26 26 26 26 22 26 26 26 26 26 26 26 23 23 >EAS54_6_R1_2_1_54...
ca957491dd42f6d15dc267230d1a6ebbd10491c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/ca957491dd42f6d15dc267230d1a6ebbd10491c1/QualityIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15029, 3731, 1118, 3198, 12, 4110, 16, 10877, 273, 2202, 67, 13449, 67, 287, 8907, 16, 2077, 22, 2232, 273, 599, 13, 294, 3536, 1290, 10110, 1013, 1390, 1492, 2341, 15490, 5879, 9312, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15029, 3731, 1118, 3198, 12, 4110, 16, 10877, 273, 2202, 67, 13449, 67, 287, 8907, 16, 2077, 22, 2232, 273, 599, 13, 294, 3536, 1290, 10110, 1013, 1390, 1492, 2341, 15490, 5879, 9312, 84...