rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def GetRpcServer(options):
def GetRpcServer(server, email=None, host_override=None, save_cookies=True):
def GetRpcServer(options): """Returns an instance of an AbstractRpcServer. Returns: A new AbstractRpcServer, on which RPC calls can be made. """ rpc_server_class = HttpRpcServer def GetUserCredentials(): """Prompts the user for a username and password.""" email = options.email if email is None: email = GetEmail("Ema...
872c4c56ac671ad93f0bee6c49710c8fbb9ac8b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/872c4c56ac671ad93f0bee6c49710c8fbb9ac8b4/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 11647, 2081, 12, 3567, 16, 2699, 33, 7036, 16, 1479, 67, 10601, 33, 7036, 16, 1923, 67, 16240, 33, 5510, 4672, 3536, 1356, 392, 791, 434, 392, 4115, 11647, 2081, 18, 225, 2860, 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, 968, 11647, 2081, 12, 3567, 16, 2699, 33, 7036, 16, 1479, 67, 10601, 33, 7036, 16, 1923, 67, 16240, 33, 5510, 4672, 3536, 1356, 392, 791, 434, 392, 4115, 11647, 2081, 18, 225, 2860, 30...
if 0: fow = vtk.vtkFileOutputWindow() fow.SetFileName('vtk_output.txt') ow = vtk.vtkOutputWindow () ow.SetInstance (fow)
fow = vtk.vtkFileOutputWindow() fow.SetFileName('vtk_output.txt') ow = vtk.vtkOutputWindow () ow.SetInstance (fow)
def LoadImages(dir_): # TODO!!! SUPER GAMBIARRA!!! DO THIS BETTER if 0: fow = vtk.vtkFileOutputWindow() fow.SetFileName('vtk_output.txt') ow = vtk.vtkOutputWindow () ow.SetInstance (fow) dcm_files, acquisition_modality = GetDicomFiles(dir_) dcm_series = dicom_grouper.ivDicomGroups() dcm_series.SetFileList(dcm_files...
1193e5cf3d0a86807a9bc69fff4fb40e4654be57 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/1193e5cf3d0a86807a9bc69fff4fb40e4654be57/dicom_reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 8946, 12, 1214, 67, 4672, 468, 225, 2660, 25885, 16459, 654, 611, 2192, 31558, 985, 2849, 25885, 5467, 20676, 9722, 11976, 282, 284, 543, 273, 13659, 18, 11734, 79, 812, 1447, 3829, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 8946, 12, 1214, 67, 4672, 468, 225, 2660, 25885, 16459, 654, 611, 2192, 31558, 985, 2849, 25885, 5467, 20676, 9722, 11976, 282, 284, 543, 273, 13659, 18, 11734, 79, 812, 1447, 3829, ...
if proxy_auth: h.putheader('Proxy-Authorization: Basic %s' % proxy_auth) if auth: h.putheader('Authorization: Basic %s' % auth)
if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth) if auth: h.putheader('Authorization', 'Basic %s' % auth)
def open_https(self, url, data=None): """Use HTTPS protocol.""" import httplib user_passwd = None proxy_passwd = None if isinstance(url, str): host, selector = splithost(url) if host: user_passwd, host = splituser(host) host = unquote(host) realhost = host else: host, selector = url # here, we determine, whether the pr...
0e52146bccda355807c1358b8af88ba15b395fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0e52146bccda355807c1358b8af88ba15b395fed/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 4528, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 18904, 1771, 12123, 1930, 15851, 6673, 729, 67, 24002, 273, 599, 2889, 67, 24002, 273, 599, 309, 1549, 12, 718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 4528, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 3536, 3727, 18904, 1771, 12123, 1930, 15851, 6673, 729, 67, 24002, 273, 599, 2889, 67, 24002, 273, 599, 309, 1549, 12, 718, ...
self.sizTextAndButtons.Add(self.sizTextFormat, 1, wx.EXPAND, 0)
self.sizTextAndButtons.Add(self.sizTextFormat, 0, wx.EXPAND, 0)
def __init__(self, parent, id): wx.Panel.__init__(self, parent, id) self.curOptions = MenuOptions() self.curColorData = wx.ColourData() self.parent = parent self.sboxBG = wx.StaticBox(self, wx.ID_ANY, "Menu background options") self.sizBG = wx.StaticBoxSizer(self.sboxBG, wx.VERTICAL)
6fec461fb22eae6469c5b5f20c58f5e75d41e319 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/6fec461fb22eae6469c5b5f20c58f5e75d41e319/panels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 4672, 7075, 18, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 612, 13, 365, 18, 1397, 1320, 273, 9809, 1320, 1435, 365, 18, 1397, 2957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 4672, 7075, 18, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 612, 13, 365, 18, 1397, 1320, 273, 9809, 1320, 1435, 365, 18, 1397, 2957, ...
if hasattr(self, '_redirarg'): if not get_redirect: raise IsRedirectPage,self._redirarg elif hasattr(self, '_getexception'):
if hasattr(self, '_getexception'):
def get(self, read_only = False, force = False, get_redirect=False, throttle = True): """The wiki-text of the page. This will retrieve the page if it has not been retrieved yet. This can raise the following exceptions that should be caught by the calling code:
184b1577d9d6e78833f6b08382598a3850e5156d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/184b1577d9d6e78833f6b08382598a3850e5156d/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 855, 67, 3700, 273, 1083, 16, 2944, 273, 1083, 16, 336, 67, 7590, 33, 8381, 16, 18304, 273, 1053, 4672, 3536, 1986, 9050, 17, 955, 434, 326, 1363, 18, 1220, 903, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 855, 67, 3700, 273, 1083, 16, 2944, 273, 1083, 16, 336, 67, 7590, 33, 8381, 16, 18304, 273, 1053, 4672, 3536, 1986, 9050, 17, 955, 434, 326, 1363, 18, 1220, 903, 4...
if not str:
if not s:
def decode(in_file, out_file=None, mode=None): """Decode uuencoded file""" # # Open the input file, if needed. # if in_file == '-': in_file = sys.stdin elif type(in_file) == type(''): in_file = open(in_file) # # Read until a begin is encountered or we've exhausted the file # while 1: hdr = in_file.readline() if not hdr...
79c8671c7aee3dfaeb3aa9ce14abe08cc30ecc54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/79c8671c7aee3dfaeb3aa9ce14abe08cc30ecc54/uu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 267, 67, 768, 16, 596, 67, 768, 33, 7036, 16, 1965, 33, 7036, 4672, 3536, 6615, 582, 89, 10787, 585, 8395, 468, 468, 3502, 326, 810, 585, 16, 309, 3577, 18, 468, 309, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 267, 67, 768, 16, 596, 67, 768, 33, 7036, 16, 1965, 33, 7036, 4672, 3536, 6615, 582, 89, 10787, 585, 8395, 468, 468, 3502, 326, 810, 585, 16, 309, 3577, 18, 468, 309, 316, ...
p=fill(tmpx*tmpx,tmpy, facecolor='k')
if stat=="bitten_l": p=fill((tmpx-ds),tmpy, facecolor='y') else: p=fill((tmpx-ds)*(tmpx-ds),tmpy, facecolor='y')
def cumhiststat(trigs=None, slide_trigs=None,ifolist = None, min_val = None, \ max_val = None, nbins = 20, stat=None): """ function to plot a cumulative histogram of the snr of coincident events in the zero lag and times slides @param trigs: coincInspiralTable @param slide_trigs: dictionary of time slide triggers @par...
ad1a5e65e2619b7996601b04dce9b66bc30cd949 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3592/ad1a5e65e2619b7996601b04dce9b66bc30cd949/viz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14471, 11488, 5642, 12, 313, 360, 87, 33, 7036, 16, 12701, 67, 313, 360, 87, 33, 7036, 16, 430, 355, 376, 273, 599, 16, 1131, 67, 1125, 273, 599, 16, 521, 943, 67, 1125, 273, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14471, 11488, 5642, 12, 313, 360, 87, 33, 7036, 16, 12701, 67, 313, 360, 87, 33, 7036, 16, 430, 355, 376, 273, 599, 16, 1131, 67, 1125, 273, 599, 16, 521, 943, 67, 1125, 273, 599, ...
msg = "Writing a hypo2000 phase file with a S phase " + \ "seconds value greater than 99 seconds. This " + \ "case could be covered incorrectly. Check " + \ "location results carefully. (And give " + \ "feedback... =)"
msg = "S phase seconds are greater than 99 which is " + \ "not covered by the hypo phase file format! " + \ "Omitting S phase of station %s!!!" % sta
def doHyp2000(self): self.setXMLEventID() subprocess.call(self.hyp2000PreCall, shell = True) f = open(self.hyp2000Phasefile, 'w') f2 = open(self.hyp2000Stationsfile, 'w') network = "BW" #fmt = "RWMOIP?0 091229124412.22 13.99IS?0" fmtP = "%4s%1sP%1s%1i %15s" fmtS = "%12s%1sS%1s%1i\n" #fmt2 = " BGLD4739.14N01300.7...
bb1bb2534cc7f6ed798bf1e4262523f7d4e72a5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/bb1bb2534cc7f6ed798bf1e4262523f7d4e72a5b/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 44, 879, 17172, 12, 2890, 4672, 365, 18, 542, 60, 9687, 616, 734, 1435, 6652, 18, 1991, 12, 2890, 18, 76, 879, 17172, 1386, 1477, 16, 5972, 273, 1053, 13, 284, 273, 1696, 12, 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, 741, 44, 879, 17172, 12, 2890, 4672, 365, 18, 542, 60, 9687, 616, 734, 1435, 6652, 18, 1991, 12, 2890, 18, 76, 879, 17172, 1386, 1477, 16, 5972, 273, 1053, 13, 284, 273, 1696, 12, 28...
import time for i in range(0,3): anaconda.id.bootloader.write(anaconda.rootPath, anaconda.id.fsset, anaconda.id.bootloader, anaconda.id.instLanguage, kernelList, otherList, defaultDev, justConfigFile, anaconda.intf) dosync() time.sleep(1) if not justConfigFile: w.pop() except bootloaderInfo.BootyNoKernelWarn...
rootEntry = fsset.getEntryByMountPoint("/") if rootEntry.getLabel() is not None and rootEntry.device.getDevice().find('/mpath') == -1: return "LABEL=%s" %(rootEntry.getLabel(),) return "/dev/%s" %(rootDev,) except: return "/dev/%s" %(rootDev,) def getProductName(): if os.access("/etc/redhat-release", os.R_OK): f = ...
def rectifyLuksName(anaconda, name): if name is not None and name.startswith('mapper/luks-'): try: newname = anaconda.id.partitions.encryptedDevices.get(name[12:]) if newname is None: for luksdev in anaconda.id.partitions.encryptedDevices.values(): if os.path.basename(luksdev.getDevice(encrypted=1)) == name[12:]: newna...
583246e158d09b4e23c27cb6c4ae52ba7fa7afdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/583246e158d09b4e23c27cb6c4ae52ba7fa7afdb/bootloaderInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4917, 1164, 48, 89, 7904, 461, 12, 13848, 591, 2414, 16, 508, 4672, 309, 508, 353, 486, 599, 471, 508, 18, 17514, 1918, 2668, 13919, 19, 28832, 7904, 6627, 4672, 775, 30, 26722, 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, 4917, 1164, 48, 89, 7904, 461, 12, 13848, 591, 2414, 16, 508, 4672, 309, 508, 353, 486, 599, 471, 508, 18, 17514, 1918, 2668, 13919, 19, 28832, 7904, 6627, 4672, 775, 30, 26722, 273, 3...
def __init__(self, fromLang = 'auto', toLang = 'en', start_text = ''): if not self.fromLang(fromLang): self.fromLang('auto') if not self.toLang(toLang): self.toLang('en')
def __init__(self, from_lang = 'auto', to_lang = 'en', start_text = ''): if not self.from_lang(from_lang): self.from_lang('auto') if not self.to_lang(to_lang): self.to_lang('en')
def __init__(self, fromLang = 'auto', toLang = 'en', start_text = ''): if not self.fromLang(fromLang): self.fromLang('auto') if not self.toLang(toLang): self.toLang('en') self._text = start_text
14df03d8cb360b4e980acabb44bd6dbe0fd79acd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/14df03d8cb360b4e980acabb44bd6dbe0fd79acd/traduisons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 628, 67, 4936, 273, 296, 6079, 2187, 358, 67, 4936, 273, 296, 275, 2187, 787, 67, 955, 273, 875, 4672, 309, 486, 365, 18, 2080, 67, 4936, 12, 2080, 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, 1001, 2738, 972, 12, 2890, 16, 628, 67, 4936, 273, 296, 6079, 2187, 358, 67, 4936, 273, 296, 275, 2187, 787, 67, 955, 273, 875, 4672, 309, 486, 365, 18, 2080, 67, 4936, 12, 2080, 67,...
return describe_by_about (specifier)
return describe_by_about(specifier)
def describe_by_mode(specifier, mode): """mode can be a string (about, id or query) or a flags object with flags.about, flags.query and flags.id""" if mode == 'about': return describe_by_about (specifier) elif mode == 'id': return describe_by_id (specifier) elif mode == 'query': return describe_by_id (specifier) raise ...
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6401, 67, 1637, 67, 3188, 12, 2793, 1251, 16, 1965, 4672, 3536, 3188, 848, 506, 279, 533, 261, 21071, 16, 612, 578, 843, 13, 578, 279, 2943, 733, 598, 2943, 18, 21071, 16, 2943, 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, 6401, 67, 1637, 67, 3188, 12, 2793, 1251, 16, 1965, 4672, 3536, 3188, 848, 506, 279, 533, 261, 21071, 16, 612, 578, 843, 13, 578, 279, 2943, 733, 598, 2943, 18, 21071, 16, 2943, 18, ...
alamId = int( alamIdList ) alamIdList = [ alarmId ]
alarmId = int( alarmIdList ) alarmIdList = [ alarmId ]
def deleteAlarmsByAlarmId( self, alamIdList ): self.log.info( "Trying to delete alarms with ids %s" % alamIdList ) try: alamId = int( alamIdList ) alamIdList = [ alarmId ] except: pass
b354546a67c867bad4d2691fbfb8b34dd3953884 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/b354546a67c867bad4d2691fbfb8b34dd3953884/NotificationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 1067, 20452, 858, 16779, 548, 12, 365, 16, 524, 301, 22117, 262, 30, 365, 18, 1330, 18, 1376, 12, 315, 18038, 358, 1430, 524, 20452, 598, 3258, 738, 87, 6, 738, 524, 301, 22117, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 1067, 20452, 858, 16779, 548, 12, 365, 16, 524, 301, 22117, 262, 30, 365, 18, 1330, 18, 1376, 12, 315, 18038, 358, 1430, 524, 20452, 598, 3258, 738, 87, 6, 738, 524, 301, 22117, ...
proxy_auth = _get_proxy_auth(url.protocol) if url.protocol == 'https': proxy = os.environ.get('https_proxy') if proxy:
proxy_settings = os.environ.get('%s_proxy' % url.protocol) if not proxy_settings: return HttpClient._prepare_connection(self, url, headers) else: print '!!!!%s' % proxy_settings proxy_auth = _get_proxy_auth(proxy_settings) proxy_netloc = _get_proxy_net_location(proxy_settings) print '!!!!%s' % proxy_auth print '!!!!%s...
def _prepare_connection(self, url, headers): proxy_auth = _get_proxy_auth(url.protocol) if url.protocol == 'https': # destination is https proxy = os.environ.get('https_proxy') if proxy: # Set any proxy auth headers if proxy_auth: proxy_auth = 'Proxy-authorization: %s' % proxy_auth # Construct the proxy connect comman...
11f531b223a4a1d050d708ce7833bb657986433f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10620/11f531b223a4a1d050d708ce7833bb657986433f/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9366, 67, 4071, 12, 2890, 16, 880, 16, 1607, 4672, 2889, 67, 1944, 273, 389, 588, 67, 5656, 67, 1944, 12, 718, 18, 8373, 13, 309, 880, 18, 8373, 422, 296, 4528, 4278, 468, 2929,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9366, 67, 4071, 12, 2890, 16, 880, 16, 1607, 4672, 2889, 67, 1944, 273, 389, 588, 67, 5656, 67, 1944, 12, 718, 18, 8373, 13, 309, 880, 18, 8373, 422, 296, 4528, 4278, 468, 2929,...
assert sum([isinstance(node.op,tensor.blas.Gemm) or node.op.__class__.__name__=="GpuGemm"for node in topo])==1 assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm))
if theano.config.mode!='FAST_COMPILE': assert sum([node.op.__class__.__name__ in ["Gemm","GpuGemm","StructuredDot"] for node in topo])==1 assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm)) assert all(node.op.inplace for node in topo if node.op.__class__.__name__ == ...
def test_specify_shape_inplace(self): #test that specify_shape don't break inserting inplace op
24f06dd1c66333fd29de8065dc6605c1001d2d5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/24f06dd1c66333fd29de8065dc6605c1001d2d5f/test_sharedvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2793, 1164, 67, 4867, 67, 267, 964, 12, 2890, 4672, 468, 3813, 716, 4800, 67, 4867, 2727, 1404, 898, 21079, 11783, 1061, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2793, 1164, 67, 4867, 67, 267, 964, 12, 2890, 4672, 468, 3813, 716, 4800, 67, 4867, 2727, 1404, 898, 21079, 11783, 1061, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if self.compiler is not None:
if self.fcompiler is not None:
def run(self): if not self.libraries: return
c9e6f3025b235055336cb5a05c170128e0ec9a91 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/c9e6f3025b235055336cb5a05c170128e0ec9a91/build_clib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 309, 486, 365, 18, 31417, 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, 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, 1086, 12, 2890, 4672, 309, 486, 365, 18, 31417, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not str(msg).startswith(expected): self.fail("Message %r, expected %r" % (str(msg), expected))
if test_support.check_impl_detail(): if not str(msg).startswith(expected): self.fail("Message %r, expected %r" % (str(msg), expected))
def raises(exc, expected, callable, *args): try: callable(*args) except exc, msg: if not str(msg).startswith(expected): self.fail("Message %r, expected %r" % (str(msg), expected)) else: self.fail("Expected %s" % exc)
4a0d8c36fabcd955e24a465c9276c005529fa702 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/4a0d8c36fabcd955e24a465c9276c005529fa702/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14183, 12, 10075, 16, 2665, 16, 4140, 16, 380, 1968, 4672, 775, 30, 4140, 30857, 1968, 13, 1335, 3533, 16, 1234, 30, 225, 309, 1842, 67, 13261, 18, 1893, 67, 11299, 67, 8992, 13332, 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, 14183, 12, 10075, 16, 2665, 16, 4140, 16, 380, 1968, 4672, 775, 30, 4140, 30857, 1968, 13, 1335, 3533, 16, 1234, 30, 225, 309, 1842, 67, 13261, 18, 1893, 67, 11299, 67, 8992, 13332, 30...
options = coptions()
def getglobaloptions(self, platform, arch): try: return self.gobaloptioncache[platform+"-"+arch] except KeyError: options = coptions() if not platform in self.platforms or not arch in self.archs: return options options.merge(self.globaloptions) for d in self.depends: options.merge(d.getglobaloptions(platform, arch)) fo...
95b9b9970b12fdbcf5e46b2e7ea2f8600efc8449 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/95b9b9970b12fdbcf5e46b2e7ea2f8600efc8449/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6347, 2116, 12, 2890, 16, 4072, 16, 6637, 4672, 775, 30, 327, 365, 18, 75, 947, 287, 3482, 2493, 63, 9898, 9078, 10951, 15, 991, 65, 1335, 4999, 30, 309, 486, 4072, 316, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 6347, 2116, 12, 2890, 16, 4072, 16, 6637, 4672, 775, 30, 327, 365, 18, 75, 947, 287, 3482, 2493, 63, 9898, 9078, 10951, 15, 991, 65, 1335, 4999, 30, 309, 486, 4072, 316, 365, 18...
The algorithm used is described in [ullman-algorithm-1976]. It has worse-case complexity of :math:`O(N_{\text{g}}^{N_\text{sub}})`, but for random graphs it typically has a complexity of :math:`O(N_{\text{g}}^\gamma)` with :math:`\gamma` depending sub-linearly on the size of `sub`.
The algorithm used is described in [ullmann-algorithm-1976]. It has worse-case complexity of :math:`O(N_g^{N_{sub}})`, but for random graphs it typically has a complexity of :math:`O(N_g^\gamma)` with :math:`\gamma` depending sub-linearly on the size of `sub`.
def subgraph_isomorphism(sub, g): r""" Obtain all subgraph isomorphisms of `sub` in `g`. It returns two lists, containing the vertex and edge property maps for `sub` with the isomorphism mappings. The value of the properties are the vertex/edge index of the corresponding vertex/edge in `g`. Examples -------- >>> from...
4e60cbfe880777a08d910a866bbc77cb0e043d60 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3516/4e60cbfe880777a08d910a866bbc77cb0e043d60/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21469, 67, 291, 362, 7657, 6228, 12, 1717, 16, 314, 4672, 436, 8395, 24850, 777, 21469, 353, 362, 7657, 23749, 434, 1375, 1717, 68, 316, 1375, 75, 8338, 225, 2597, 1135, 2795, 6035, 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, 21469, 67, 291, 362, 7657, 6228, 12, 1717, 16, 314, 4672, 436, 8395, 24850, 777, 21469, 353, 362, 7657, 23749, 434, 1375, 1717, 68, 316, 1375, 75, 8338, 225, 2597, 1135, 2795, 6035, 16, ...
return self.run(['git', 'diff', '--binary', "--no-ext-diff", "--full-index", "-M", self.merge_base(git_commit), "--"] + changed_files, decode_output=False)
return self.run(['git', 'diff', '--binary', "--no-ext-diff", "--full-index", "-M", self.merge_base(git_commit), "--"] + changed_files, decode_output=False, cwd=self.checkout_root)
def create_patch(self, git_commit=None, changed_files=[]): """Returns a byte array (str()) representing the patch file. Patch files are effectively binary since they may contain files of multiple different encodings.""" # FIXME: This should probably use cwd=self.checkout_root return self.run(['git', 'diff', '--binary',...
a3b8479d0ca8e144f2785699e01c165bc6c8b1f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a3b8479d0ca8e144f2785699e01c165bc6c8b1f0/scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2272, 12, 2890, 16, 5071, 67, 7371, 33, 7036, 16, 3550, 67, 2354, 33, 8526, 4672, 3536, 1356, 279, 1160, 526, 261, 701, 10756, 5123, 326, 4729, 585, 18, 12042, 1390, 854, 2350...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2272, 12, 2890, 16, 5071, 67, 7371, 33, 7036, 16, 3550, 67, 2354, 33, 8526, 4672, 3536, 1356, 279, 1160, 526, 261, 701, 10756, 5123, 326, 4729, 585, 18, 12042, 1390, 854, 2350...
self.syntax_error('reference to unknown entity')
self.syntax_error("reference to unknown entity `&%s;'" % name)
def goahead(self, end): rawdata = self.rawdata i = 0 n = len(rawdata) while i < n: if i > 0: self.__at_start = 0 if self.nomoretags: data = rawdata[i:n] self.handle_data(data) self.lineno = self.lineno + string.count(data, '\n') i = n break res = interesting.search(rawdata, i) if res: j = res.start(0) else: j = n if i ...
cc2c291b7fdb2eb4a46bdce264931bd5adeaff38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cc2c291b7fdb2eb4a46bdce264931bd5adeaff38/xmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 11617, 12, 2890, 16, 679, 4672, 1831, 892, 273, 365, 18, 1899, 892, 277, 273, 374, 290, 273, 562, 12, 1899, 892, 13, 1323, 277, 411, 290, 30, 309, 277, 405, 374, 30, 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, 1960, 11617, 12, 2890, 16, 679, 4672, 1831, 892, 273, 365, 18, 1899, 892, 277, 273, 374, 290, 273, 562, 12, 1899, 892, 13, 1323, 277, 411, 290, 30, 309, 277, 405, 374, 30, 365, 16186...
as = atom.service.AtomService('code.google.com') self.assertEquals(as.server, 'code.google.com') (host, port, ssl, path) = atom.service.ProcessUrl(as,
atom_service = atom.service.AtomService('code.google.com') self.assertEquals(atom_service.server, 'code.google.com') (host, port, ssl, path) = atom.service.ProcessUrl(atom_service,
def testParseHttpUrl(self): as = atom.service.AtomService('code.google.com') self.assertEquals(as.server, 'code.google.com') (host, port, ssl, path) = atom.service.ProcessUrl(as, 'http://www.google.com/service/subservice?name=value')
baf155b351712dae1750dc47f55d4629c7ccf76a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/baf155b351712dae1750dc47f55d4629c7ccf76a/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3201, 2940, 1489, 12, 2890, 4672, 3179, 67, 3278, 273, 3179, 18, 3278, 18, 3641, 1179, 2668, 710, 18, 9536, 18, 832, 6134, 365, 18, 11231, 8867, 12, 7466, 67, 3278, 18, 3567, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3201, 2940, 1489, 12, 2890, 4672, 3179, 67, 3278, 273, 3179, 18, 3278, 18, 3641, 1179, 2668, 710, 18, 9536, 18, 832, 6134, 365, 18, 11231, 8867, 12, 7466, 67, 3278, 18, 3567, 16,...
'pt': u'Discussão Portal',
'pt': u'Portal Discussão',
def __init__(self): family.Family.__init__(self) self.name = 'wikipedia'
228d19aed728f17cc3666e3c4b4a92e3cd8beab8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/228d19aed728f17cc3666e3c4b4a92e3cd8beab8/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 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, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 11999, 13744, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def fixUpSMIGlobs(portal, out):
def fixUpSMIGlobs(portal, out=None):
def fixUpSMIGlobs(portal, out): from Products.MimetypesRegistry.mime_types import smi_mimetypes from Products.Archetypes.debug import log mtr = getToolByName(portal, 'mimetypes_registry') smi_mimetypes.initialize(mtr) # Now comes the fun part. For every glob, lookup a extension # matching the glob and unregister it. f...
6b53dd1bff7b8ade43917f45080f302597bad7cc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12163/6b53dd1bff7b8ade43917f45080f302597bad7cc/setuphandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 1211, 7303, 3047, 1295, 87, 12, 24386, 16, 596, 33, 7036, 4672, 628, 8094, 87, 18, 49, 381, 15180, 4243, 18, 11757, 67, 2352, 1930, 3029, 77, 67, 81, 381, 15180, 628, 8094, 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, 2917, 1211, 7303, 3047, 1295, 87, 12, 24386, 16, 596, 33, 7036, 4672, 628, 8094, 87, 18, 49, 381, 15180, 4243, 18, 11757, 67, 2352, 1930, 3029, 77, 67, 81, 381, 15180, 628, 8094, 87, ...
For each segment in the list, move both the start and the end a distance x towards the other. Coalesce the result. Segmentlist is modified in place.
Execute the .contract() method on each segment in the list and coalesce the result. Segmentlist is modified in place.
def contract(self, x): """ For each segment in the list, move both the start and the end a distance x towards the other. Coalesce the result. Segmentlist is modified in place. """ for i in xrange(len(self)): self[i] = self[i].contract(x) return self.coalesce()
b8d62cdad939775ab60dde40de9755d5089bae1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/b8d62cdad939775ab60dde40de9755d5089bae1a/segments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6835, 12, 2890, 16, 619, 4672, 3536, 7903, 326, 263, 16351, 1435, 707, 603, 1517, 3267, 316, 326, 666, 471, 1825, 24827, 326, 563, 18, 225, 10807, 1098, 353, 4358, 316, 3166, 18, 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, 6835, 12, 2890, 16, 619, 4672, 3536, 7903, 326, 263, 16351, 1435, 707, 603, 1517, 3267, 316, 326, 666, 471, 1825, 24827, 326, 563, 18, 225, 10807, 1098, 353, 4358, 316, 3166, 18, 3536, ...
if nextIndirection is not None and self.evalStr == '.__dict__': return ''
if nextIndirection is not None and self.evalStr[-len(instanceDictStr):] == instanceDictStr: return self.evalStr[:-len(instanceDictStr)] if prevIndirection is not None and prevIndirection.evalStr is not None: if prevIndirection.evalStr[-len(instanceDictStr):] == instanceDictStr: return '.%s' % self.evalStr[2:-2]
def getString(self, nextIndirection=None): # return our contribution to the name of the object if self.evalStr is not None: # if we're an instance dict and the next indirection is not a dict key, # skip over this one (obj.__dict__[keyName] == obj.keyName) if nextIndirection is not None and self.evalStr == '.__dict__': ...
bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/bb22b15b9f0ccdc40e73d008896e3199a4fa2dc3/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4997, 12, 2890, 16, 1024, 3866, 2769, 33, 7036, 4672, 468, 327, 3134, 24880, 358, 326, 508, 434, 326, 733, 309, 365, 18, 8622, 1585, 353, 486, 599, 30, 468, 309, 732, 4565, 392, 791, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4997, 12, 2890, 16, 1024, 3866, 2769, 33, 7036, 4672, 468, 327, 3134, 24880, 358, 326, 508, 434, 326, 733, 309, 365, 18, 8622, 1585, 353, 486, 599, 30, 468, 309, 732, 4565, 392, 791, ...
task(counter)
gobject.idle_add(lambda : task(counter))
def task(counter=None): beans = update_id3_wind_filtering([bean], counter) for one in beans: one.update_uuid() row = self.get_row_from_bean(one) self.model.append(None, row)
8709926a10b1da7ef62b5dce089352af37bbbb24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/8709926a10b1da7ef62b5dce089352af37bbbb24/drugdrop_tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 12, 7476, 33, 7036, 4672, 15709, 273, 1089, 67, 350, 23, 67, 10094, 67, 2188, 310, 3816, 14496, 6487, 3895, 13, 364, 1245, 316, 15709, 30, 1245, 18, 2725, 67, 7080, 1435, 1027, 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, 1562, 12, 7476, 33, 7036, 4672, 15709, 273, 1089, 67, 350, 23, 67, 10094, 67, 2188, 310, 3816, 14496, 6487, 3895, 13, 364, 1245, 316, 15709, 30, 1245, 18, 2725, 67, 7080, 1435, 1027, 2...
dest = self.bookmarkReference(name)
dest = self._bookmarkReference(name)
def bookmarkHorizontalInPageAbsolute(self, name, yhorizontal): """bind a bookmark (destination to the current page at a horizontal position""" dest = self.bookmarkReference(name) pageref = self._doc.thisPageRef() dest.fith(yhorizontal) dest.setPageRef(pageref) return dest
2424475e071e1c37b73f3c67658b0731bda9a15e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/2424475e071e1c37b73f3c67658b0731bda9a15e/canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13696, 14457, 382, 1964, 10368, 12, 2890, 16, 508, 16, 677, 18396, 4672, 3536, 4376, 279, 13696, 261, 10590, 358, 326, 783, 1363, 622, 279, 10300, 1754, 8395, 1570, 273, 365, 6315, 3618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13696, 14457, 382, 1964, 10368, 12, 2890, 16, 508, 16, 677, 18396, 4672, 3536, 4376, 279, 13696, 261, 10590, 358, 326, 783, 1363, 622, 279, 10300, 1754, 8395, 1570, 273, 365, 6315, 3618, ...
'factory': getPythonPath(adapter[4][0])
'factory': path, 'factory_url': url
def getProvidedAdapters(self): """Get adapters where this interface is provided.""" service = zapi.getService(self.context, 'Adapters') context = removeAllProxies(self.context) adapters = [] for adapter in service.getRegisteredMatching(provided=context): adapters.append({ 'required': [getPythonPath(iface) for iface in ...
8473912e22d1506b9091ee78e7e1c2f1b2eab272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9672/8473912e22d1506b9091ee78e7e1c2f1b2eab272/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3570, 13548, 26620, 12, 2890, 4672, 3536, 967, 17272, 1625, 333, 1560, 353, 2112, 12123, 1156, 273, 998, 2425, 18, 588, 1179, 12, 2890, 18, 2472, 16, 296, 26620, 6134, 819, 273, 12787, 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, 3570, 13548, 26620, 12, 2890, 4672, 3536, 967, 17272, 1625, 333, 1560, 353, 2112, 12123, 1156, 273, 998, 2425, 18, 588, 1179, 12, 2890, 18, 2472, 16, 296, 26620, 6134, 819, 273, 12787, 2...
print "from win32com.client import DispatchBaseClass"
print >> self.file, "from win32com.client import DispatchBaseClass"
def checkWriteDispatchBaseClass(self): if not self.bHaveWrittenDispatchBaseClass: print "from win32com.client import DispatchBaseClass" self.bHaveWrittenDispatchBaseClass = 1
d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/d465d55b4c2e9a03e3b613dd6344bf0290ff0ff6/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 3067, 5325, 2171, 797, 12, 2890, 4672, 309, 486, 365, 18, 70, 17944, 12643, 5325, 2171, 797, 30, 1172, 1671, 365, 18, 768, 16, 315, 2080, 5657, 1578, 832, 18, 2625, 1930, 11552, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 3067, 5325, 2171, 797, 12, 2890, 4672, 309, 486, 365, 18, 70, 17944, 12643, 5325, 2171, 797, 30, 1172, 1671, 365, 18, 768, 16, 315, 2080, 5657, 1578, 832, 18, 2625, 1930, 11552, 2...
if task.name.startswith(_('CHECK: ')): newname = str(task.name).replace(_('CHECK: '), '')
if task_name.startswith(_('CHECK: ')): newname = str(task_name).replace(_('CHECK: '), '')
def default_get(self, cr, uid, fields, context=None): """ This function gets default values """ res = super(project_task_delegate, self).default_get(cr, uid, fields, context=context) if context is None: context = {} record_id = context and context.get('active_id', False) or False task_pool = self.pool.get('project.task...
bdb8814237c28f0b296cd7173dc580aa48e85b69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bdb8814237c28f0b296cd7173dc580aa48e85b69/project_task_delegate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 3536, 400, 273, 2240, 12, 4406, 67, 4146, 67, 22216, 16, 365, 2934, 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, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 3536, 1220, 445, 5571, 805, 924, 3536, 400, 273, 2240, 12, 4406, 67, 4146, 67, 22216, 16, 365, 2934, 18...
prints('Updating booklist:', i)
prints('Updating XML Cache:', i)
def update(self, booklists, collections_attributes): playlist_map = self.get_playlist_map()
02c3d52c3ea94969f2ec036d668a849f67abaa58 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/02c3d52c3ea94969f2ec036d668a849f67abaa58/sony_cache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6978, 9772, 16, 6980, 67, 4350, 4672, 16428, 67, 1458, 273, 365, 18, 588, 67, 1601, 1098, 67, 1458, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6978, 9772, 16, 6980, 67, 4350, 4672, 16428, 67, 1458, 273, 365, 18, 588, 67, 1601, 1098, 67, 1458, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if saveFileName: self.saveFileName = os.path.join( getConfig()['global']['workingDir'], saveFileName ) else: self.saveFileName = os.path.join(getConfig()['global']['workingDir'], getConfig()['global']['saveFile'])
if saveFileName: self.saveFileName = os.path.join( getConfig()['global']['workingDir'], saveFileName ) else: self.saveFileName = os.path.join(getConfig()['global']['workingDir'] , getConfig()['global']['saveFile'])
def __init__(self, saveFileName=None): u"""saveFileName: location where we store persistence data lastChecked: seconds since epoch when we last checked the threads downloads: a list of download links, so that we do not repeat ourselves minScanTime: a dictionary, keyed by rss link aka thread name, with values of tuples ...
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1923, 4771, 33, 7036, 4672, 582, 8395, 5688, 4771, 30, 2117, 1625, 732, 1707, 9756, 501, 1142, 11454, 30, 3974, 3241, 7632, 1347, 732, 1142, 5950, 326, 740...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 4771, 33, 7036, 4672, 582, 8395, 5688, 4771, 30, 2117, 1625, 732, 1707, 9756, 501, 1142, 11454, 30, 3974, 3241, 7632, 1347, 732, 1142, 5950, 326, 740...
saved_test_files = set() if len(self._test_files) == 1: saved_test_files = self._test_files
def _PrepareListsAndPrintOutput(self): """Create appropriate subsets of test lists and print test counts.
ed0fd57694bccb6d0dd3ed674a4957b018a1110b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/ed0fd57694bccb6d0dd3ed674a4957b018a1110b/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7543, 7432, 1876, 5108, 1447, 12, 2890, 4672, 3536, 1684, 5505, 30760, 434, 1842, 6035, 471, 1172, 1842, 6880, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7543, 7432, 1876, 5108, 1447, 12, 2890, 4672, 3536, 1684, 5505, 30760, 434, 1842, 6035, 471, 1172, 1842, 6880, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
[[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.18920711500272...], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I]
[[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.18920711500272...], [1.18920711500272... .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.1892071150027208]*I]
def complex_roots(self, prec, multiplicity): """ EXAMPLES: sage: x = polygen(ZZ) sage: cp = AA.common_polynomial(x^4 - 2) sage: cp.complex_roots(30, 1) [[1.1892071150027208 .. 1.1892071150027213], [-1.1892071150027213 .. -1.18920711500272...], [1.1892071150027208 .. 1.1892071150027213]*I, [-1.1892071150027213 .. -1.189...
96768745b135338755edcb6beef7717472dfca29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/96768745b135338755edcb6beef7717472dfca29/qqbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7233, 67, 22078, 12, 2890, 16, 13382, 16, 3309, 20458, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 619, 273, 2952, 4338, 275, 12, 27096, 13, 272, 410, 30, 3283, 273, 27343, 18, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7233, 67, 22078, 12, 2890, 16, 13382, 16, 3309, 20458, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 619, 273, 2952, 4338, 275, 12, 27096, 13, 272, 410, 30, 3283, 273, 27343, 18, 60...
self.duration = actor.getDuration(active) self.maxFrame = actor.getNumFrames(active) - 1 self.maxSeconds = self.offset + self.duration
if (self.fps == None): print "unable to get animation fps, zeroing out animation info" self.fps = 24 self.duration = 0 self.maxFrame = 0 self.maxSeconds = 0 else: self.duration = actor.getDuration(active) self.maxFrame = actor.getNumFrames(active) - 1 self.maxSeconds = self.offset + self.duration
def updateDisplay(self): actor = self['actor'] active = self['active'] self.fps = actor.getFrameRate(active) self.duration = actor.getDuration(active) self.maxFrame = actor.getNumFrames(active) - 1 self.maxSeconds = self.offset + self.duration # switch between showing frame counts and seconds if self.unitsVar.get() == ...
39b6b560f7ca1732839a0d6a5a2cf334a930012d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/39b6b560f7ca1732839a0d6a5a2cf334a930012d/AnimPanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 4236, 12, 2890, 4672, 8327, 273, 365, 3292, 3362, 3546, 2695, 273, 365, 3292, 3535, 3546, 365, 18, 74, 1121, 273, 8327, 18, 588, 3219, 4727, 12, 3535, 13, 309, 261, 2890, 18, 74,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 4236, 12, 2890, 4672, 8327, 273, 365, 3292, 3362, 3546, 2695, 273, 365, 3292, 3535, 3546, 365, 18, 74, 1121, 273, 8327, 18, 588, 3219, 4727, 12, 3535, 13, 309, 261, 2890, 18, 74,...
handlers.default = self.endTagOther handlers[name](name)
self.processEndTagHandler.default = self.endTagOther def addFormattingElement(self, name, attributes): self.parser.insertElement(name, attributes) self.parser.activeFormattingElements.append( self.parser.openElements[-1]) def processNonSpaceCharacters(self, data): self.parser.reconstructActiveFormattingElements()...
def processEndTag(self, name): handlers = utils.MethodDispatcher([ ("p",self.endTagP), ("body",self.endTagBody), ("html",self.endTagHtml), (("address", "blockquote", "center", "div", "dl", "fieldset", "listing", "menu", "ol", "pre", "ul"), self.endTagBlock), ("form", self.endTagForm), (("dd", "dt", "li"), self.endTagLi...
1efd742310ebd1a9de5849e26f0be8071d28aa07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/1efd742310ebd1a9de5849e26f0be8071d28aa07/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 508, 4672, 4919, 273, 2990, 18, 1305, 6681, 3816, 7566, 84, 3113, 2890, 18, 409, 1805, 52, 3631, 7566, 3432, 3113, 2890, 18, 409, 1805, 2250, 3631, 7566, 2620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 25633, 12, 2890, 16, 508, 4672, 4919, 273, 2990, 18, 1305, 6681, 3816, 7566, 84, 3113, 2890, 18, 409, 1805, 52, 3631, 7566, 3432, 3113, 2890, 18, 409, 1805, 2250, 3631, 7566, 2620,...
start_date = base_start_date and datetime.strptime(base_start_date[:10], "%Y-%m-%d") or False until_date = base_until_date and datetime.strptime(base_until_date[:10], "%Y-%m-%d") or False
start_date = base_start_date and datetime.strptime(base_start_date[:10]+ ' 00:00:00' , "%Y-%m-%d %H:%M:%S") or False until_date = base_until_date and datetime.strptime(base_until_date[:10]+ ' 23:59:59', "%Y-%m-%d %H:%M:%S") or False
def get_recurrent_ids(self, cr, uid, select, base_start_date, base_until_date, limit=100): """Gives virtual event ids for recurring events based on value of Recurrence Rule This method gives ids of dates that comes between start date and end date of calendar views @param self: The object pointer @param cr: the current ...
320cd68fdc4f104fc6ea867a0df22507c47c6b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/320cd68fdc4f104fc6ea867a0df22507c47c6b30/base_calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 266, 2972, 67, 2232, 12, 2890, 16, 4422, 16, 4555, 16, 2027, 16, 1026, 67, 1937, 67, 712, 16, 1026, 67, 12198, 67, 712, 16, 1800, 33, 6625, 4672, 3536, 43, 3606, 5024, 871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 266, 2972, 67, 2232, 12, 2890, 16, 4422, 16, 4555, 16, 2027, 16, 1026, 67, 1937, 67, 712, 16, 1026, 67, 12198, 67, 712, 16, 1800, 33, 6625, 4672, 3536, 43, 3606, 5024, 871, ...
'date_planned': fields.date('Scheduled date if fixed',help='Select a date if you have chosen Preferred Date to be fixed.'), 'reference': fields.char('Reference',size=128,required=1), 'mode': fields.many2one('payment.mode','Payment mode', select=True, required=1,help='Select the Payment Mode to be applied.'),
'date_planned': fields.date('Scheduled date if fixed', states={'done':[('readonly',True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'), 'reference': fields.char('Reference', size=128, required=1, states={'done':[('readonly',True)]}), 'mode': fields.many2one('payment.mode','Payment mode', selec...
def _total(self, cursor, user, ids, name, args, context=None): if not ids: return {} res = {} for order in self.browse(cursor, user, ids, context=context): if order.line_ids: res[order.id] = reduce(lambda x, y: x + y.amount, order.line_ids, 0.0) else: res[order.id] = 0.0 return res
b5a174257b9c128d80a7e19f2f868e19f87cc881 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b5a174257b9c128d80a7e19f2f868e19f87cc881/payment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4963, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 309, 486, 3258, 30, 327, 2618, 400, 273, 2618, 364, 1353, 316, 365, 18, 25731, 12, 9216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4963, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 309, 486, 3258, 30, 327, 2618, 400, 273, 2618, 364, 1353, 316, 365, 18, 25731, 12, 9216, ...
self.set_post_script("cacheconv.sh $RETURN %s %s" %(lalCache,qCache) )
self.set_post_script(os.getcwd()+"/cacheconv.sh %s %s" %(lalCache,qCache) )
def setup_qscan(self, job, cp, time, ifo, data_type): # 1s is substracted to the expected startTime to make sure the window # will be large enough. This is to be sure to handle the rouding to the # next sample done by qscan. type, channel = figure_out_type(time,ifo,data_type) self.set_type(type) self.q_time = float(cp....
2869ef397c55840877c2be60eb9ece759794479d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/2869ef397c55840877c2be60eb9ece759794479d/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 85, 9871, 12, 2890, 16, 1719, 16, 3283, 16, 813, 16, 21479, 16, 501, 67, 723, 4672, 468, 404, 87, 353, 2373, 25487, 358, 326, 2665, 8657, 358, 1221, 3071, 326, 2742, 468, 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, 3875, 67, 85, 9871, 12, 2890, 16, 1719, 16, 3283, 16, 813, 16, 21479, 16, 501, 67, 723, 4672, 468, 404, 87, 353, 2373, 25487, 358, 326, 2665, 8657, 358, 1221, 3071, 326, 2742, 468, 9...
if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT:
if st.getPlayer().isNoble() and count >= REQUESTED_AMOUNT:
def onEvent(self,event,st): htmltext = "<html><head><body>I have nothing to say you</body></html>" count=st.getQuestItemsCount(REQUESTED_ITEM) if event == "66667-clanOk.htm" : if st.getPlayer().isClanLeader() and st.getPlayer().getClan().getLevel()<8: if st.getPlayer().isNoble() and count > REQUESTED_AMOUNT: htmltext=e...
6721c2add5b3849b6771227ded55ed0cd5c88af5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/322/6721c2add5b3849b6771227ded55ed0cd5c88af5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1133, 12, 2890, 16, 2575, 16, 334, 4672, 1729, 955, 273, 3532, 2620, 4438, 1978, 4438, 3432, 34, 45, 1240, 5083, 358, 12532, 1846, 1757, 3432, 4695, 2620, 2984, 1056, 33, 334, 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, 603, 1133, 12, 2890, 16, 2575, 16, 334, 4672, 1729, 955, 273, 3532, 2620, 4438, 1978, 4438, 3432, 34, 45, 1240, 5083, 358, 12532, 1846, 1757, 3432, 4695, 2620, 2984, 1056, 33, 334, 18, ...
h_insrument = getFITSField(hdulist, 'YINSTRUMENT')
h_instrument = getFITSField(hdulist, 'YINSTRUMENT')
def run_ingestion(): """ Ingestion procedure of FITS images in the database """ global log, email, script_args, ingestionId, g, ittdata email = script_args['email'] user_id = script_args['user_id'] path = script_args['path'] ingestion_id = script_args['ingestion_id'] # parsing otherArgs duration_stime = time.time()...
b085eb6c7e8b70600e68cc82c5cef1db3b2c1fa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/b085eb6c7e8b70600e68cc82c5cef1db3b2c1fa3/ingestion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 310, 6868, 13332, 3536, 657, 75, 6868, 12131, 434, 478, 10158, 4602, 316, 326, 2063, 3536, 225, 2552, 613, 16, 2699, 16, 2728, 67, 1968, 16, 12152, 6868, 548, 16, 314, 16, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 310, 6868, 13332, 3536, 657, 75, 6868, 12131, 434, 478, 10158, 4602, 316, 326, 2063, 3536, 225, 2552, 613, 16, 2699, 16, 2728, 67, 1968, 16, 12152, 6868, 548, 16, 314, 16, 51...
return self._RunClu(context, result)
return self._RunUni(context, result)
def Run(self, context, result): """Actually run the target program."""
c4ee6c54163012b43b8825acdf6622da0cf84369 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8781/c4ee6c54163012b43b8825acdf6622da0cf84369/streamit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1939, 12, 2890, 16, 819, 16, 563, 4672, 3536, 2459, 3452, 1086, 326, 1018, 5402, 12123, 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, 1939, 12, 2890, 16, 819, 16, 563, 4672, 3536, 2459, 3452, 1086, 326, 1018, 5402, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return N.dot(nodalvar, sh.transpose())*inverse_jacobi
return N.dot(N.dot(nodalvar, sh.transpose()),inverse_jacobi)
def mapNodalVar(self, nodalvar, lcoord=None, deriv=False): """Interpolate the nodal variables to the point given in |lcoord| using the element shape function if |deriv| is True calculate the spatial derivative of nodalvar""" if lcoord != None: self.lcoord = lcoord if deriv: sh = self.shape.calcShapeDeriv(self.lcoord) #...
6572ce70d7274d9c148a83a321958e32116757e3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7248/6572ce70d7274d9c148a83a321958e32116757e3/Element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 50, 369, 287, 1537, 12, 2890, 16, 14003, 287, 1401, 16, 328, 5732, 33, 7036, 16, 9630, 33, 8381, 4672, 3536, 15665, 340, 326, 14003, 287, 3152, 358, 326, 1634, 864, 316, 571, 80, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 852, 50, 369, 287, 1537, 12, 2890, 16, 14003, 287, 1401, 16, 328, 5732, 33, 7036, 16, 9630, 33, 8381, 4672, 3536, 15665, 340, 326, 14003, 287, 3152, 358, 326, 1634, 864, 316, 571, 80, ...
self.last_row_clicked = None
self.files_table.allow_multiple()
def __init__(self, paths, base_dir): """ @type paths: list of strings @param paths: A list of local paths. """ InterfaceView.__init__(self, "createpatch", "CreatePatch")
7374be94ffec0bd83a80f1e682dbf33ccbe706a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/7374be94ffec0bd83a80f1e682dbf33ccbe706a8/createpatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2953, 16, 1026, 67, 1214, 4672, 3536, 225, 632, 723, 225, 2953, 30, 282, 666, 434, 2064, 632, 891, 2953, 30, 282, 432, 666, 434, 1191, 2953, 18, 225, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2953, 16, 1026, 67, 1214, 4672, 3536, 225, 632, 723, 225, 2953, 30, 282, 666, 434, 2064, 632, 891, 2953, 30, 282, 432, 666, 434, 1191, 2953, 18, 225, 3...
" Convert 'PlainLayout' to 'Plain Layout'"
" Revert 'PlainLayout' to 'Standard'"
def revert_plainlayout(document): " Convert 'PlainLayout' to 'Plain Layout'" i = 0 while True: i = find_token(document.body, '\\begin_layout PlainLayout', i) if i == -1: return # This will be incorrect for some document classes, since Standard is not always # the default. But (a) it is probably the best we can do and (...
5ef8c7bc54d8157c9afe8ec8565ae0f5e09a44d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/5ef8c7bc54d8157c9afe8ec8565ae0f5e09a44d0/lyx_1_6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7446, 6741, 12, 5457, 4672, 315, 868, 1097, 296, 13360, 3744, 11, 358, 296, 8336, 4970, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7446, 6741, 12, 5457, 4672, 315, 868, 1097, 296, 13360, 3744, 11, 358, 296, 8336, 4970, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 3718...
OWWidget.__init__(self, parent, signalManager, "AssociationRulesViewer")
OWWidget.__init__(self, parent, signalManager, "AssociationRulesViewer", wantMainArea=0)
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "AssociationRulesViewer")
342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/342c5c7a1be28b9c05dadefc8d2f5fbc7e82781f/OWAssociationRulesViewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 7174, 4478, 18415, 7923, 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, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 7174, 4478, 18415, 7923, 2, -10...
return self._bind((self._w, 'bind', tagOrId), sequence, func, add)
res = self._bind((self._w, 'bind', tagOrId), sequence, func, add) if sequence and func and res: if self._tagcommands is None: self._tagcommands = {} list = self._tagcommands.get(tagOrId) or [] self._tagcommands[tagOrId] = list list.append(res) return res
def tag_bind(self, tagOrId, sequence=None, func=None, add=None): return self._bind((self._w, 'bind', tagOrId), sequence, func, add)
eb354b31e5cd5bcd1aa1350799966b20778d9592 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/eb354b31e5cd5bcd1aa1350799966b20778d9592/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 4376, 12, 2890, 16, 1047, 1162, 548, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12443, 2890, 6315, 91, 16, 296, 4376, 2187, 1047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1047, 67, 4376, 12, 2890, 16, 1047, 1162, 548, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12443, 2890, 6315, 91, 16, 296, 4376, 2187, 1047, ...
real_item = self.data[model.get_path(iter)][data["column"]]
real_item = self.data[real_path][data["column"]]
def file_pixbuf(self, column, cell, model, iter, data=None): stock_id = None if data: real_item = self.data[model.get_path(iter)][data["column"]] kind = data["callback"](real_item) stock_id = gtk.STOCK_FILE if kind == "dir": stock_id = gtk.STOCK_DIRECTORY
d952056bfd63509c312f74c112161552757e4094 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/d952056bfd63509c312f74c112161552757e4094/widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 14861, 4385, 12, 2890, 16, 1057, 16, 2484, 16, 938, 16, 1400, 16, 501, 33, 7036, 4672, 12480, 67, 350, 273, 599, 309, 501, 30, 2863, 67, 1726, 273, 365, 18, 892, 63, 7688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 14861, 4385, 12, 2890, 16, 1057, 16, 2484, 16, 938, 16, 1400, 16, 501, 33, 7036, 4672, 12480, 67, 350, 273, 599, 309, 501, 30, 2863, 67, 1726, 273, 365, 18, 892, 63, 7688, ...
dependencies,
def __init__ (self, directory, rcsSubDir, rcsBaseUrl, rcs, dependencies, executable, generateDoc = True, alias = None):
86d1cb8f56b7616de04a48f2f3921ba30e9ded39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8259/86d1cb8f56b7616de04a48f2f3921ba30e9ded39/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1867, 16, 436, 2143, 1676, 1621, 16, 436, 2143, 14074, 16, 436, 2143, 16, 9070, 16, 2103, 1759, 273, 1053, 16, 2308, 273, 599, 4672, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1867, 16, 436, 2143, 1676, 1621, 16, 436, 2143, 14074, 16, 436, 2143, 16, 9070, 16, 2103, 1759, 273, 1053, 16, 2308, 273, 599, 4672, 2, -100, -100, -100...
self.ifoTypes = ['H1','H2','L1','H1H2','H1L1','H2L1','H1H2L1']
self.ifoTypes = ['H1','H2','L1','V1','H1H2','H1L1','H2L1','H1V1', \ 'H2V1','L1V1','H1H2L1','H1H2V1','H1L1V1', \ 'H2L1V1','H1H2L1V1']
def __init__(self, options,cp, currentPath): UserDict.__init__(self) self.dir = os.listdir(os.getcwd()) self.options = options self.types = ['TMPLTBANK', 'TRIGBANK', 'INSPIRAL-', \ 'INSPIRAL_H', 'THINCA-', 'THINCA_'] self.iniNames = ['tmpltbank-path', 'trigbank-path', 'first-inspiral-path', \ 'second-inspiral-path', 'f...
7ad3c5996f190db41e5ab4095d5d70613b0dd659 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/7ad3c5996f190db41e5ab4095d5d70613b0dd659/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 4057, 16, 18027, 4672, 2177, 5014, 16186, 2738, 972, 12, 2890, 13, 365, 18, 1214, 273, 1140, 18, 1098, 1214, 12, 538, 18, 588, 11089, 10756, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 4057, 16, 18027, 4672, 2177, 5014, 16186, 2738, 972, 12, 2890, 13, 365, 18, 1214, 273, 1140, 18, 1098, 1214, 12, 538, 18, 588, 11089, 10756, 365...
"Drum &amp; Bass", "Drum Solo", "Duet", "Easy Listening", "Electronic",
"Drum & Bass", "Drum Solo", "Duet", "Easy Listening", "Electronic",
def tags_win_genres(self): return ["", "A Cappella", "Acid", "Acid Jazz", "Acid Punk", "Acoustic", "Alt. Rock", "Alternative", "Ambient", "Anime", "Avantgarde", "Ballad", "Bass", "Beat", "Bebob", "Big Band", "Black Metal", "Bluegrass", "Blues", "Booty Bass", "BritPop", "Cabaret", "Celtic", "Chamber music", "Chanson", "...
62fe5df97e78d1b6315289a00367cd8b920f187b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/62fe5df97e78d1b6315289a00367cd8b920f187b/tagedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2342, 67, 8082, 67, 4507, 455, 12, 2890, 4672, 327, 8247, 3113, 315, 37, 385, 2910, 1165, 69, 3113, 315, 9988, 350, 3113, 315, 9988, 350, 804, 3638, 3113, 315, 9988, 350, 453, 1683, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2342, 67, 8082, 67, 4507, 455, 12, 2890, 4672, 327, 8247, 3113, 315, 37, 385, 2910, 1165, 69, 3113, 315, 9988, 350, 3113, 315, 9988, 350, 804, 3638, 3113, 315, 9988, 350, 453, 1683, 31...
return False
def has_added(self, path): statuses = self.status_with_cache(path, recurse=True)[:-1] for status in statuses: if status.data["text_status"] == pysvn.wc_status_kind.added: return True return False
83315ccd8ce36cba36ecaf03234b6334b1f2fd4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/83315ccd8ce36cba36ecaf03234b6334b1f2fd4d/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 9665, 12, 2890, 16, 589, 4672, 13516, 273, 365, 18, 2327, 67, 1918, 67, 2493, 12, 803, 16, 11502, 33, 5510, 13, 10531, 17, 21, 65, 225, 364, 1267, 316, 13516, 30, 309, 1267,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 9665, 12, 2890, 16, 589, 4672, 13516, 273, 365, 18, 2327, 67, 1918, 67, 2493, 12, 803, 16, 11502, 33, 5510, 13, 10531, 17, 21, 65, 225, 364, 1267, 316, 13516, 30, 309, 1267,...
""" Discover whether a user is privilged or not """
""" Discover whether a user is privileged or not """
def parseNetworkMessage(self, message): pos, self.code = 1, ord(message[0]) pos, self.something = self.getObject(message, types.IntType, pos) pos, self.user = self.getObject(message, types.StringType, pos) pos, self.searchid = self.getObject(message, types.IntType, pos) pos, self.searchterm = self.getObject(message, ty...
c41fe06d527031ac5ee480da53678b9e4c561ae8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/c41fe06d527031ac5ee480da53678b9e4c561ae8/slskmessages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 3906, 1079, 12, 2890, 16, 883, 4672, 949, 16, 365, 18, 710, 273, 404, 16, 4642, 12, 2150, 63, 20, 5717, 949, 16, 365, 18, 30289, 273, 365, 18, 588, 921, 12, 2150, 16, 1953, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 3906, 1079, 12, 2890, 16, 883, 4672, 949, 16, 365, 18, 710, 273, 404, 16, 4642, 12, 2150, 63, 20, 5717, 949, 16, 365, 18, 30289, 273, 365, 18, 588, 921, 12, 2150, 16, 1953, 1...
if pw:
if pw is not None:
def retry_http_basic_auth(self, host, req, realm): user,pw = self.passwd.find_user_password(realm, host) if pw: raw = "%s:%s" % (user, pw) auth = 'Basic %s' % base64.encodestring(raw).strip() if req.headers.get(self.auth_header, None) == auth: return None req.add_header(self.auth_header, auth) return self.parent.open(r...
8b3e871a19f414257b8f4a361d9c2c063a5f8015 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8b3e871a19f414257b8f4a361d9c2c063a5f8015/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 2505, 67, 13240, 67, 1944, 12, 2890, 16, 1479, 16, 1111, 16, 11319, 4672, 729, 16, 14921, 273, 365, 18, 24002, 18, 4720, 67, 1355, 67, 3664, 12, 24056, 16, 1479, 13, 309, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3300, 67, 2505, 67, 13240, 67, 1944, 12, 2890, 16, 1479, 16, 1111, 16, 11319, 4672, 729, 16, 14921, 273, 365, 18, 24002, 18, 4720, 67, 1355, 67, 3664, 12, 24056, 16, 1479, 13, 309, 8...
st = session.get(model.SubmissionType, stid)
st = session.get(model.submission.SubmissionType, stid)
def test_create(self): """Test creation of a Submission object""" self.model = 'submission.Submission'
41d9ae5f909a58b749142d2b3ba3cfd27cb58570 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/41d9ae5f909a58b749142d2b3ba3cfd27cb58570/test_submission.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 12, 2890, 4672, 3536, 4709, 6710, 434, 279, 2592, 3951, 733, 8395, 225, 365, 18, 2284, 273, 296, 12684, 18, 17865, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 12, 2890, 4672, 3536, 4709, 6710, 434, 279, 2592, 3951, 733, 8395, 225, 365, 18, 2284, 273, 296, 12684, 18, 17865, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
context_index) in inspect.trace(3)[1:]:
context_index) in original_trace:
def main(): parser = optparse.OptionParser(usage='usage: %prog [options] feed_filename', version='%prog '+transitfeed.__version__) parser.add_option('-n', '--noprompt', action='store_false', dest='manual_entry', help='do not prompt for feed location or load output in browser') parser.add_option('-o', '--output', dest='...
7ebaa53c1d98ad1106c73f21782f5ea8807f283e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6829/7ebaa53c1d98ad1106c73f21782f5ea8807f283e/feedvalidator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 2218, 9167, 30, 738, 14654, 306, 2116, 65, 4746, 67, 3459, 2187, 1177, 28713, 14654, 15126, 2338, 305, 7848, 16186, 1589, 972,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 2218, 9167, 30, 738, 14654, 306, 2116, 65, 4746, 67, 3459, 2187, 1177, 28713, 14654, 15126, 2338, 305, 7848, 16186, 1589, 972,...
'amount':line.debit
def onchange_partner_id(self, cr, uid, ids, partner_id, ttype, journal_id=False, context={}): """ Returns a dict that contains new values and context @param cr: A database cursor @param user: ID of the user currently logged in @param partner_id: latest value from user input for field partner_id @param args: other argu...
bf6f28068a75d64e45c8c384f74b759fbd4ebf5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bf6f28068a75d64e45c8c384f74b759fbd4ebf5b/voucher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 19170, 67, 350, 16, 27963, 16, 13001, 67, 350, 33, 8381, 16, 819, 12938, 4672, 3536, 2860, 279, 2065, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 19170, 67, 350, 16, 27963, 16, 13001, 67, 350, 33, 8381, 16, 819, 12938, 4672, 3536, 2860, 279, 2065, 716, ...
s, n, p, a, q, frag = urlparse(url) defrag = urlunparse((s, n, p, a, q, '')) return defrag, frag
if ' s, n, p, a, q, frag = urlparse(url) defrag = urlunparse((s, n, p, a, q, '')) return defrag, frag else: return url, ''
def urldefrag(url): """Removes any existing fragment from URL. Returns a tuple of the defragmented URL and the fragment. If the URL contained no fragments, the second element is the empty string. """ s, n, p, a, q, frag = urlparse(url) defrag = urlunparse((s, n, p, a, q, '')) return defrag, frag
5751a22ede6a1c40f3926439e6c8368889f9b8d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5751a22ede6a1c40f3926439e6c8368889f9b8d2/urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 536, 2458, 12, 718, 4672, 3536, 6220, 1281, 2062, 5481, 628, 1976, 18, 225, 2860, 279, 3193, 434, 326, 1652, 3520, 329, 1976, 471, 326, 5481, 18, 225, 971, 326, 1976, 7542, 1158, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 536, 2458, 12, 718, 4672, 3536, 6220, 1281, 2062, 5481, 628, 1976, 18, 225, 2860, 279, 3193, 434, 326, 1652, 3520, 329, 1976, 471, 326, 5481, 18, 225, 971, 326, 1976, 7542, 1158, ...
self.ceParameters.update(ceOptions)
self.ceParameters.update( ceOptions )
def setParameters(self,ceOptions): """ Add parameters from the given dictionary overriding the previous values """ self.ceParameters.update(ceOptions) for key in ceOptions: if key in INTEGER_PARAMETERS: self.ceParameters[key] = int(self.ceParameters[key]) if key in FLOAT_PARAMETERS: self.ceParameters[key] = float(self....
3d103a1ec7530dcfac38e6ccc642be862e663b73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3d103a1ec7530dcfac38e6ccc642be862e663b73/ComputingElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22556, 12, 2890, 16, 311, 1320, 4672, 3536, 1436, 1472, 628, 326, 864, 3880, 19488, 326, 2416, 924, 3536, 365, 18, 311, 2402, 18, 2725, 12, 5898, 1320, 262, 364, 498, 316, 5898, 1320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22556, 12, 2890, 16, 311, 1320, 4672, 3536, 1436, 1472, 628, 326, 864, 3880, 19488, 326, 2416, 924, 3536, 365, 18, 311, 2402, 18, 2725, 12, 5898, 1320, 262, 364, 498, 316, 5898, 1320, ...
test_support.run_doctest(test_itertools, verbose)
def test_main(verbose=None): import test_itertools suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestBasicOps)) test_support.run_suite(suite) test_support.run_doctest(test_itertools, verbose) # verify reference counting import sys if verbose and hasattr(sys, "gettotalrefcount"): counts = [] for i in xr...
2414d1b33b1bfd9cbc47901b1029aa4ec5a22da8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2414d1b33b1bfd9cbc47901b1029aa4ec5a22da8/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 12, 11369, 33, 7036, 4672, 1930, 1842, 67, 2165, 6642, 11371, 273, 2836, 3813, 18, 4709, 13587, 1435, 11371, 18, 1289, 4709, 12, 4873, 3813, 18, 6540, 13587, 12, 4709, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 12, 11369, 33, 7036, 4672, 1930, 1842, 67, 2165, 6642, 11371, 273, 2836, 3813, 18, 4709, 13587, 1435, 11371, 18, 1289, 4709, 12, 4873, 3813, 18, 6540, 13587, 12, 4709, 82...
return http.Response(stream = notebook.html_upload_data_window(self.worksheet, self.username))
return HTMLResponse(stream = notebook.html_upload_data_window(self.worksheet, self.username))
def render(self, ctx): return http.Response(stream = notebook.html_upload_data_window(self.worksheet, self.username))
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 273, 14718, 18, 2620, 67, 6327, 67, 892, 67, 5668, 12, 2890, 18, 1252, 8118, 16, 365, 18, 5053, 3719, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 12, 2890, 16, 1103, 4672, 327, 1062, 18, 1064, 12, 3256, 273, 14718, 18, 2620, 67, 6327, 67, 892, 67, 5668, 12, 2890, 18, 1252, 8118, 16, 365, 18, 5053, 3719, 2, -100, -100, -1...
parser = xml.sax.make_parser() handler = DecorationHandler() parser.setContentHandler(handler) parser.parse( atts.getValue("file") )
path = atts.getValue("file") if not os.path.isfile(path): console.log(LOG_ERROR, tr("File '%s' not found.\n") % (path)) return parser = xml.sax.make_parser() handler = DecorationHandler() parser.setContentHandler(handler) parser.parse(path)
def startElement( self, name, atts ): if name == "item": self.itemid = str(atts.getValue("id")); if atts.has_key("hue"): self.hue = int(hex2dec(str(atts.getValue("hue")))); else: self.hue = 0 if atts.has_key("amount"): self.amount = int(atts.getValue("amount")); else: self.amount = 0 self.statements = [] elif name == "...
f1ea0e888b6a61a0acd06ce5104aad9301e84bd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f1ea0e888b6a61a0acd06ce5104aad9301e84bd4/decoration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 365, 16, 508, 16, 15687, 262, 30, 309, 508, 422, 315, 1726, 6877, 365, 18, 17252, 273, 609, 12, 270, 3428, 18, 24805, 2932, 350, 7923, 1769, 309, 15687, 18, 5332, 67, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13591, 12, 365, 16, 508, 16, 15687, 262, 30, 309, 508, 422, 315, 1726, 6877, 365, 18, 17252, 273, 609, 12, 270, 3428, 18, 24805, 2932, 350, 7923, 1769, 309, 15687, 18, 5332, 67, 856, ...
def processCharacter(data):
def processCharacter(self, data):
def processCharacter(data): InBody(self.parser).processCharacter(data)
cd6770c4192d96f69d546fe7b0ad50281cd6f56c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/cd6770c4192d96f69d546fe7b0ad50281cd6f56c/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 7069, 12, 2890, 16, 501, 4672, 657, 2250, 12, 2890, 18, 4288, 2934, 2567, 7069, 12, 892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 7069, 12, 2890, 16, 501, 4672, 657, 2250, 12, 2890, 18, 4288, 2934, 2567, 7069, 12, 892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if width == -1: fill = 1 width = 4 if color == None: color = self.default_fg_color r = (x0, y0, x1-x0, y1-y0) c = (0, 0, 255, 5) if fill:
if width == -1 or fill: r,g,b,a = self._sdlcol(color) w = x1 - x0 h = y1 - y0 box = pygame.Surface((w, h), 0, 32) box.fill((r,g,b)) box.set_alpha(a) self.screen.blit(box, (x0, y0)) else: r = (x0, y0, x1-x0, y1-y0) c = self._sdlcol(color)
def drawbox(self, x0, y0, x1, y1, width=None, color=None, fill=0): print 'drawbox: %s 0x%08x %s' % (width, color, fill) if width == None: width = 1
b08195da6a7a1652e878da72994fe65485c5fe12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/b08195da6a7a1652e878da72994fe65485c5fe12/osd_sdl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 2147, 12, 2890, 16, 619, 20, 16, 677, 20, 16, 619, 21, 16, 677, 21, 16, 1835, 33, 7036, 16, 2036, 33, 7036, 16, 3636, 33, 20, 4672, 1172, 296, 9446, 2147, 30, 738, 87, 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, 3724, 2147, 12, 2890, 16, 619, 20, 16, 677, 20, 16, 619, 21, 16, 677, 21, 16, 1835, 33, 7036, 16, 2036, 33, 7036, 16, 3636, 33, 20, 4672, 1172, 296, 9446, 2147, 30, 738, 87, 374, ...
v = self.window.videobox.volume_slider.get_value() v = v + 0.05 v = min(v, 1.0) app.playback_manager.set_volume(v) self.window.videobox.volume_slider.set_value(v)
slider = self.window.videobox.volume_slider v = min(slider.get_value() + 0.05, 1.0) slider.set_value(v) self.on_volume_change(slider, v) self.on_volume_set(slider)
def up_volume(self): v = self.window.videobox.volume_slider.get_value() v = v + 0.05 v = min(v, 1.0) app.playback_manager.set_volume(v) self.window.videobox.volume_slider.set_value(v)
d6174dea0ea847dadf8896dd3dd4af632ca1730b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/d6174dea0ea847dadf8896dd3dd4af632ca1730b/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 731, 67, 9491, 12, 2890, 4672, 331, 273, 365, 18, 5668, 18, 6768, 27570, 18, 9491, 67, 28372, 18, 588, 67, 1132, 1435, 331, 273, 331, 397, 374, 18, 6260, 331, 273, 1131, 12, 90, 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, 731, 67, 9491, 12, 2890, 4672, 331, 273, 365, 18, 5668, 18, 6768, 27570, 18, 9491, 67, 28372, 18, 588, 67, 1132, 1435, 331, 273, 331, 397, 374, 18, 6260, 331, 273, 1131, 12, 90, 16, ...
Annotate(url, self.revision.value)
Annotate(url, self.revisions[0]["revision"].value)
def annotate(self, widget, data=None): url = self.caller.root_url + self.paths[0]
254cf90c673c32fc3faafcde068598e8de07eeee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/254cf90c673c32fc3faafcde068598e8de07eeee/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13795, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 880, 273, 365, 18, 16140, 18, 3085, 67, 718, 397, 365, 18, 4481, 63, 20, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13795, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 880, 273, 365, 18, 16140, 18, 3085, 67, 718, 397, 365, 18, 4481, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(os.path.exists(os.path.join(PANDASOURCE,"makepanda/makepanda.sln"))==0) or
def writefile(dest,desiredcontents): print "Generating file: "+dest sys.stdout.flush() try: wfile = open(dest, 'wb'); wfile.write(desiredcontents); wfile.close(); except: sys.exit("Cannot write to "+dest);
b8813eaf8177bd8f238d5d9e4f6f4a40b0d6e5c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/b8813eaf8177bd8f238d5d9e4f6f4a40b0d6e5c0/maketarball.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 768, 12, 10488, 16, 30458, 3980, 4672, 1172, 315, 21755, 585, 30, 13773, 10488, 2589, 18, 10283, 18, 11330, 1435, 775, 30, 341, 768, 273, 1696, 12, 10488, 16, 296, 9464, 8284, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 12, 10488, 16, 30458, 3980, 4672, 1172, 315, 21755, 585, 30, 13773, 10488, 2589, 18, 10283, 18, 11330, 1435, 775, 30, 341, 768, 273, 1696, 12, 10488, 16, 296, 9464, 8284, 341,...
(join(topdir, dysii_src_dir), options.prefix, options.prefix, \ options.prefix, options.prefix)) != 0:
(join(topdir, dysii_src_dir), gsl_install_dir, mpi_install_dir, \ boost_install_dir, dysii_install_dir)) != 0:
def progress(blocks, blocksize, total): ESC = chr(27); sys.stdout.write(ESC + '[2K' + ESC+'[G') text = " %i of %i bytes (%.0f percent) complete" % (blocks*blocksize, total, float(blocks*blocksize*100)/total) sys.stdout.write(text + '\x08'*len(text)) sys.stdout.flush()
dccd2f0b229bd9fadaa4d821000fdb6a41895290 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5491/dccd2f0b229bd9fadaa4d821000fdb6a41895290/getbuildtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 12, 7996, 16, 18440, 16, 2078, 4672, 512, 2312, 273, 4513, 12, 5324, 1769, 2589, 18, 10283, 18, 2626, 12, 41, 2312, 397, 5271, 22, 47, 11, 397, 512, 2312, 6797, 63, 43, 6134, 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, 4007, 12, 7996, 16, 18440, 16, 2078, 4672, 512, 2312, 273, 4513, 12, 5324, 1769, 2589, 18, 10283, 18, 2626, 12, 41, 2312, 397, 5271, 22, 47, 11, 397, 512, 2312, 6797, 63, 43, 6134, 9...
self.temp_re = re.compile(u'^\d+')
self.temp_re = re.compile(u'^-?\d+')
def __init__(self): HTMLParser.HTMLParser.__init__(self) self.ruler = 0 self.city_re = re.compile(u'\{.*\}') self.city = "" self.we = [] self.temp = "" self.temp_re = re.compile(u'^\d+') self.wind = "" self.daterange ="" self.result_list = []
06f80ba73c4fa9e8563cc90c66527bca8c4b6162 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10749/06f80ba73c4fa9e8563cc90c66527bca8c4b6162/weather.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3982, 2678, 18, 4870, 2678, 16186, 2738, 972, 12, 2890, 13, 365, 18, 86, 17040, 273, 374, 365, 18, 14240, 67, 266, 273, 283, 18, 11100, 12, 89, 8314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 3982, 2678, 18, 4870, 2678, 16186, 2738, 972, 12, 2890, 13, 365, 18, 86, 17040, 273, 374, 365, 18, 14240, 67, 266, 273, 283, 18, 11100, 12, 89, 8314, ...
self.label296 = gtk.Label(_("Show notification popup in tray after...\n(requires python-notify and notification-daemon)")) self.label296.set_alignment(0, 0.50) self.label296.show() self.vbox96.pack_start(self.label296, False, False, 0)
def __init__(self, create = True, accel_group = None, tooltips = None): if accel_group is None: self.accel_group = gtk.AccelGroup() else: self.accel_group = accel_group if tooltips is None: self.tooltips = gtk.Tooltips() else: self.tooltips = tooltips self.tooltips.enable() if create: self.EventsFrame = gtk.Window() se...
c820fc53988f714cc5bcd3641c49f3a8070b378a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/c820fc53988f714cc5bcd3641c49f3a8070b378a/settings_glade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 752, 273, 1053, 16, 15153, 67, 1655, 273, 599, 16, 358, 4397, 7146, 273, 599, 4672, 309, 15153, 67, 1655, 353, 599, 30, 365, 18, 30737, 67, 1655, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 752, 273, 1053, 16, 15153, 67, 1655, 273, 599, 16, 358, 4397, 7146, 273, 599, 4672, 309, 15153, 67, 1655, 353, 599, 30, 365, 18, 30737, 67, 1655, 273, ...
self._intgr_reso_high = correct.get_result('highest_resolution')
if not Flags.get_quick(): self.set_integrater_high_resolution( correct.get_result('highest_resolution')) else: self._intgr_reso_high = correct.get_result( 'highest_resolution')
def _integrate_finish(self): '''Finish off the integration by running correct.'''
7e06fb29c53b69937e4461483924556c87c1185c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/7e06fb29c53b69937e4461483924556c87c1185c/XDSIntegrater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14970, 5141, 67, 13749, 12, 2890, 4672, 9163, 11641, 3397, 326, 12040, 635, 3549, 3434, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14970, 5141, 67, 13749, 12, 2890, 4672, 9163, 11641, 3397, 326, 12040, 635, 3549, 3434, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
preferDate = False
preferDate = hideTime
def Draw (self, grid, dc, rect, (item, attributeName), isInSelection=False): """ Draw the date & time, somewhat in the style that Apple Mail does: Date left justified, time right justified. """ item = RecurrenceDialog.getProxy(u'ui', item, createNew=False)
d86bba90b060ddd061a87e3b172294e3e886f6ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d86bba90b060ddd061a87e3b172294e3e886f6ab/AttributeEditors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 261, 2890, 16, 3068, 16, 6744, 16, 4917, 16, 261, 1726, 16, 9734, 3631, 8048, 6233, 33, 8381, 4672, 3536, 10184, 326, 1509, 473, 813, 16, 18016, 11304, 316, 326, 2154, 716, 1716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10184, 261, 2890, 16, 3068, 16, 6744, 16, 4917, 16, 261, 1726, 16, 9734, 3631, 8048, 6233, 33, 8381, 4672, 3536, 10184, 326, 1509, 473, 813, 16, 18016, 11304, 316, 326, 2154, 716, 1716, ...
is `\[1, 2, 3, \dots , n\]`. for any base_of_group = `\[ pos_1, pos_2, \dots , pos_n\]`
is `[1, 2, 3, \dots , n]`. for any base_of_group = `[ pos_1, pos_2, \dots , pos_n]`
def strong_generating_system(self, base_of_group = None): """ Return a Strong Generating System of ``self`` according the given base for the right action of ``self`` on itself.
b987a525fb51fce3d9f80eea55265de5cc201883 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b987a525fb51fce3d9f80eea55265de5cc201883/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11773, 67, 3441, 1776, 67, 4299, 12, 2890, 16, 1026, 67, 792, 67, 1655, 273, 599, 4672, 3536, 2000, 279, 3978, 932, 3055, 1776, 2332, 434, 12176, 2890, 10335, 4888, 326, 864, 1026, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11773, 67, 3441, 1776, 67, 4299, 12, 2890, 16, 1026, 67, 792, 67, 1655, 273, 599, 4672, 3536, 2000, 279, 3978, 932, 3055, 1776, 2332, 434, 12176, 2890, 10335, 4888, 326, 864, 1026, 364, ...
__version__ = "
__version__ = "
def testMultiply(self): self.assertEquals((0 * 10), 0) self.assertEquals((5 * 8), 40)
d5105f2e10b0f5c6737fe4255a86582c9e00d989 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d5105f2e10b0f5c6737fe4255a86582c9e00d989/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 26040, 12, 2890, 4672, 365, 18, 11231, 8867, 12443, 20, 380, 1728, 3631, 374, 13, 365, 18, 11231, 8867, 12443, 25, 380, 1725, 3631, 8063, 13, 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, 1842, 26040, 12, 2890, 4672, 365, 18, 11231, 8867, 12443, 20, 380, 1728, 3631, 374, 13, 365, 18, 11231, 8867, 12443, 25, 380, 1725, 3631, 8063, 13, 2, -100, -100, -100, -100, -100, -100,...
class GraphicPrimitiveFactory_bar_chart(GraphicPrimitiveFactory):
def _reset(self): self.options={'width':0.02,'rgbcolor':(0, 0, 1)} def __repr__(self): """ Returns a string representation of this ArrowFactory object. TESTS: sage: arrow type arrow? for help and examples """ return "type arrow? for help and examples" def _from_xdata_ydata(self, xmin, ymin, xmax, ymax, options): g =...
def __call__(self, minpoint, maxpoint, **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) - xmin ymax = float(maxpoint[1]) - ymin return self._from_xdata_ydata(xmin, ymin, xmax, ymax, options=options)
6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6b95895fdb7bce98b7ce9c0d0f3bb184ac8fba3a/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1131, 1153, 16, 943, 1153, 16, 2826, 25577, 4672, 702, 273, 2065, 12, 2890, 18, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1131, 1153, 16, 943, 1153, 16, 2826, 25577, 4672, 702, 273, 2065, 12, 2890, 18, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, ...
"""Main BCF Menu""" def AppendToMenu(self,menu,window,data): subMenu = wx.Menu() menu.AppendMenu(-1,self.name,subMenu) for item in window.GetSelected(): if not isinstance(window.data[item],bosh.InstallerArchive): id = menu.FindItem(self.name) menu.Enable(id,False) break else: for link in self.links: link.AppendToMenu(...
"""Main BCF Menu""" def AppendToMenu(self,menu,window,data): subMenu = wx.Menu() menu.AppendMenu(-1,self.name,subMenu) for item in window.GetSelected(): if not isinstance(window.data[item],bosh.InstallerArchive): id = menu.FindItem(self.name) menu.Enable(id,False) break else: for link in self.links: link.AppendToMenu(...
def Execute(self,event): #--Generate allowable targets readTypes = '*%s' % ';*'.join(bosh.readExts) #--Select target archive destArchive = balt.askOpen(self.gTank,_('Select the BAIN\'ed Archive:'),self.data.dir,'', readTypes) if not destArchive: return #--Error Checking BCFArchive = destArchive = destArchive.tail if no...
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 468, 413, 4625, 30727, 5774, 855, 2016, 273, 14609, 9, 87, 11, 738, 12386, 4035, 18, 5701, 12, 70, 17636, 18, 896, 2482, 87, 13, 468, 413, 3391, 1018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 468, 413, 4625, 30727, 5774, 855, 2016, 273, 14609, 9, 87, 11, 738, 12386, 4035, 18, 5701, 12, 70, 17636, 18, 896, 2482, 87, 13, 468, 413, 3391, 1018, ...
req = req + " GROUP BY Destination"
req = req + " GROUP BY DestinationSite"
def getLCGPilotSummary(self,startdate='',enddate=''): """ Get summary of the pilot jobs status by site """ st_list = ['Aborted','Running','Done','Submitted','Ready','Scheduled','Waiting']
e8d29d3e7c351b2a08fb512b0aa920cf420c4e58 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/e8d29d3e7c351b2a08fb512b0aa920cf420c4e58/PilotAgentsDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9014, 39, 9681, 22797, 4733, 12, 2890, 16, 1937, 712, 2218, 2187, 409, 712, 2218, 11, 4672, 3536, 968, 4916, 434, 326, 293, 22797, 6550, 1267, 635, 2834, 3536, 384, 67, 1098, 273, 10228,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9014, 39, 9681, 22797, 4733, 12, 2890, 16, 1937, 712, 2218, 2187, 409, 712, 2218, 11, 4672, 3536, 968, 4916, 434, 326, 293, 22797, 6550, 1267, 635, 2834, 3536, 384, 67, 1098, 273, 10228,...
print "print_lbox: %r lbox attrs are %r" % (self,(self.bleft, self.bright, self.bbottom, self.btop))
print "print_lbox: %r lbox attrs are %r" % (self, (self.bleft, self.bright, self.bbottom, self.btop))
def draw(self): if self.print_lbox: print "print_lbox: %r lbox attrs are %r" % (self,(self.bleft, self.bright, self.bbottom, self.btop)) glPushMatrix() prior = None for a in self.drawables: if prior: # move from prior to a dy = prior.bbottom + self.gap + a.btop glTranslatef(0,-dy,0) # positive is up, but Column progres...
afe0e58b40691afe453f33e2e027fc6ff467f64b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/afe0e58b40691afe453f33e2e027fc6ff467f64b/Column.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 309, 365, 18, 1188, 67, 80, 2147, 30, 1172, 315, 1188, 67, 80, 2147, 30, 738, 86, 328, 2147, 3422, 854, 738, 86, 6, 738, 261, 2890, 16, 261, 2890, 18, 70, 448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 309, 365, 18, 1188, 67, 80, 2147, 30, 1172, 315, 1188, 67, 80, 2147, 30, 738, 86, 328, 2147, 3422, 854, 738, 86, 6, 738, 261, 2890, 16, 261, 2890, 18, 70, 448...
write('''<legend id="livesearchLegend">%s</legend>''' % ts.translate(legend_livesearch))
def write(s): output.append(safe_unicode(s))
b308688e07c57b221d285c0db10898e303828330 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10443/b308688e07c57b221d285c0db10898e303828330/livesearch_reply.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 87, 4672, 876, 18, 6923, 12, 4626, 67, 9124, 12, 87, 3719, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 87, 4672, 876, 18, 6923, 12, 4626, 67, 9124, 12, 87, 3719, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except:
except IOError:
def is_zipfile(filename): """Quickly see if file is a ZIP file by checking the magic number. Will not accept a ZIP archive with an ending comment. """ try: fpin = open(filename, "rb") fpin.seek(-22, 2) # Seek to end-of-file record endrec = fpin.read() fpin.close() if endrec[0:4] == "PK\005\006" and endre...
dab985b19343f08bfaf73f8f7d41b5e8352f4c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dab985b19343f08bfaf73f8f7d41b5e8352f4c53/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 4450, 768, 12, 3459, 4672, 3536, 13663, 715, 2621, 309, 585, 353, 279, 18277, 585, 635, 6728, 326, 8146, 1300, 18, 225, 9980, 486, 2791, 279, 18277, 5052, 598, 392, 11463, 2879,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 4450, 768, 12, 3459, 4672, 3536, 13663, 715, 2621, 309, 585, 353, 279, 18277, 585, 635, 6728, 326, 8146, 1300, 18, 225, 9980, 486, 2791, 279, 18277, 5052, 598, 392, 11463, 2879,...
for key, caption in columns:
for key, sort_name, sort_type, caption in columns:
def on_cleanup_ipod_activate(self, widget, *args): columns = ( ('title', _('Episode')), ('podcast', _('Podcast')), ('filesize', _('Size')), ('modified', _('Copied')), ('playcount', _('Play count')), ('released', _('Released')), )
d04c533b5d76014416b59855c0d2055d4c8f86c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/d04c533b5d76014416b59855c0d2055d4c8f86c1/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 16732, 67, 625, 369, 67, 10014, 12, 2890, 16, 3604, 16, 380, 1968, 4672, 2168, 273, 261, 7707, 2649, 2187, 389, 2668, 18918, 11802, 6134, 3631, 7707, 7832, 4155, 2187, 389, 2668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 16732, 67, 625, 369, 67, 10014, 12, 2890, 16, 3604, 16, 380, 1968, 4672, 2168, 273, 261, 7707, 2649, 2187, 389, 2668, 18918, 11802, 6134, 3631, 7707, 7832, 4155, 2187, 389, 2668...
u"""returns True if size is within size constraints specified by config file. False if not. takes the size (determined by getFileSize?) in bytes, threadName (to look in config), and downloadDict (parsed download<x> options).
u"""returns True if size is within size constraints specified by config file takes the size in bytes, threadName and downloadDict (parsed download<x>).
def checkFileSize(size, threadName, downloadDict): u"""returns True if size is within size constraints specified by config file. False if not. takes the size (determined by getFileSize?) in bytes, threadName (to look in config), and downloadDict (parsed download<x> options). """ returnValue = True logStatusMsg(u"checki...
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 15100, 12, 1467, 16, 2650, 461, 16, 4224, 5014, 4672, 582, 8395, 6154, 1053, 309, 963, 353, 3470, 963, 6237, 1269, 635, 642, 585, 5530, 326, 963, 316, 1731, 16, 2650, 461, 471, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15100, 12, 1467, 16, 2650, 461, 16, 4224, 5014, 4672, 582, 8395, 6154, 1053, 309, 963, 353, 3470, 963, 6237, 1269, 635, 642, 585, 5530, 326, 963, 316, 1731, 16, 2650, 461, 471, 42...
setViewPlus90ActionText = "<u><b>Rotate +90</b></u><br>"\
setViewPlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\
def createWhatsThis(self): ############################################## # File Toolbar ############################################## #### Open File #### fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)</b></p><br> "\ "<p><img source=\"fileopen\"><br> "\ "Opens a new file."\ "</p>" QMimeSourceFactory.default...
c9a25d437341caa5f0c88a4ab02c54ebb7627482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c9a25d437341caa5f0c88a4ab02c54ebb7627482/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 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, 752, 2888, 2323, 2503, 12, 2890, 4672, 225, 19709, 26487, 7, 468, 1387, 13288, 3215, 19709, 26487, 7, 225, 11849, 7, 3502, 1387, 11849, 7, 225, 585, 3678, 1528, 273, 3532, 89, 4438, 70, ...
'" --caption "'+title+'" --embed "'+winid+ '" --name "'+name+'" --icon "'+icon+
'" --caption "'+title+'" --attach '+winid+ ' --name "'+name+'" --icon "'+icon+
def KDE_GetOpenFilename(master, name, title, icon, **kw): ''' Calls KDE open file dialog. Parameteres: master - parent window name - application name title - dialog title **kw: initialdir - absolute path to initial dir filetypes - tuple of file types (see examples in the package) Returns: tuple of utf8 and system enco...
d31737597fbb730493701692500d5ead9854f190 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3123/d31737597fbb730493701692500d5ead9854f190/dialogmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1475, 1639, 67, 967, 3678, 5359, 12, 7525, 16, 508, 16, 2077, 16, 4126, 16, 2826, 9987, 4672, 9163, 23665, 1475, 1639, 1696, 585, 6176, 18, 5498, 281, 30, 4171, 300, 982, 2742, 508, 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, 1475, 1639, 67, 967, 3678, 5359, 12, 7525, 16, 508, 16, 2077, 16, 4126, 16, 2826, 9987, 4672, 9163, 23665, 1475, 1639, 1696, 585, 6176, 18, 5498, 281, 30, 4171, 300, 982, 2742, 508, 30...
start = self._angle - 90.0
start = self._angle - (self._fullcircle / 4.0)
def circle(self, radius, extent=None): if extent is None: extent = self._fullcircle x0, y0 = self._position xc = x0 - radius * sin(self._angle * self._invradian) yc = y0 - radius * cos(self._angle * self._invradian) if radius >= 0.0: start = self._angle - 90.0 else: start = self._angle + 90.0 extent = -extent if self._...
9221c22d6c6b431b17192173cf539900e3bec058 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/9221c22d6c6b431b17192173cf539900e3bec058/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12470, 12, 2890, 16, 5725, 16, 11933, 33, 7036, 4672, 309, 11933, 353, 599, 30, 11933, 273, 365, 6315, 2854, 18970, 619, 20, 16, 677, 20, 273, 365, 6315, 3276, 15192, 273, 619, 20, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12470, 12, 2890, 16, 5725, 16, 11933, 33, 7036, 4672, 309, 11933, 353, 599, 30, 11933, 273, 365, 6315, 2854, 18970, 619, 20, 16, 677, 20, 273, 365, 6315, 3276, 15192, 273, 619, 20, 300...
return data
return data
def execute(self, inputs, update = 0, last = 0): """ Created: 15.04.2006, KP Description: Execute the filter with given inputs and return the output """ if not ProcessingFilter.ProcessingFilter.execute(self, inputs): return None image = self.getInput(1)
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 4711, 18, 3028, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, 3...
def addColumnsFromDatabase(cls): for columnDef in cls._connection.columnsFromSchema(cls._table, cls):
def addColumnsFromDatabase(cls, connection=None): conn = connection or cls._connection for columnDef in conn.columnsFromSchema(cls._table, cls):
def addColumnsFromDatabase(cls): for columnDef in cls._connection.columnsFromSchema(cls._table, cls): alreadyExists = False for c in cls._columns: if c.name == columnDef.name: alreadyExists = True break if not alreadyExists: cls.addColumn(columnDef)
5095cfa4c32001226e31b16fc79027c429b12d8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/5095cfa4c32001226e31b16fc79027c429b12d8b/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3380, 1265, 4254, 12, 6429, 16, 1459, 33, 7036, 4672, 1487, 273, 1459, 578, 2028, 6315, 4071, 364, 1057, 3262, 316, 1487, 18, 5112, 1265, 3078, 12, 6429, 6315, 2121, 16, 2028, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3380, 1265, 4254, 12, 6429, 16, 1459, 33, 7036, 4672, 1487, 273, 1459, 578, 2028, 6315, 4071, 364, 1057, 3262, 316, 1487, 18, 5112, 1265, 3078, 12, 6429, 6315, 2121, 16, 2028, 4672,...
return urlencode(kw)
return quote(urlencode(kw))
def encodeResumptionToken(kw, cursor): kw = kw.copy() kw['cursor'] = str(cursor) from_ = kw.get('from_') if from_ is not None: kw['from_'] = datetime_to_datestamp(from_) until = kw.get('until') if until is not None: kw['until'] = datetime_to_datestamp(until) return urlencode(kw)
f3fe057403b740e096cbef32448a4cc4f71df5e2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14690/f3fe057403b740e096cbef32448a4cc4f71df5e2/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 607, 379, 375, 1345, 12, 9987, 16, 3347, 4672, 5323, 273, 5323, 18, 3530, 1435, 5323, 3292, 9216, 3546, 273, 609, 12, 9216, 13, 628, 67, 273, 5323, 18, 588, 2668, 2080, 4623, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 607, 379, 375, 1345, 12, 9987, 16, 3347, 4672, 5323, 273, 5323, 18, 3530, 1435, 5323, 3292, 9216, 3546, 273, 609, 12, 9216, 13, 628, 67, 273, 5323, 18, 588, 2668, 2080, 4623, 13,...
'quantity_purged' : fields.function(_quantity_purged_get,string='Purged Quantity',type="integer",method=True,readonly=True,
'quantity_purged': fields.function(_quantity_purged_get, string='Purged Quantity', type="integer", method=True, readonly=True,
def copy(self, cr, uid, id, default=None, context={}): if not default: default = {} segment_id = self.browse(cr, uid, id) if not default.get('name', False): default['name'] = segment_id.name + ' (Copy)' seg_copy_id = super(dm_campaign_proposition_segment, self).copy(cr, uid, id, default, context) return seg_copy_id
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 309, 486, 805, 30, 805, 273, 2618, 3267, 67, 350, 273, 365, 18, 25731, 12, 3353, 16, 4555, 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, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 309, 486, 805, 30, 805, 273, 2618, 3267, 67, 350, 273, 365, 18, 25731, 12, 3353, 16, 4555, 16, ...
s.appendExten("6","Goto(%s,s,1)" % self.ivr_6, self.pbx)
s.appendExten("6","Goto(%s,s,1)" % self.ivr_6, context)
def createAsteriskConfig(self): s = AstConf("extensions.conf") s.setSection(self.name) if self.pbx: pbx = self.pbx else: pbx = "phones" s.append("include=%s" % pbx) s.appendExten("s","Set(TIMEOUT(digit)=%d)" % self.digittimeout, self.pbx) if self.moh: s.appendExten("s","Setmusiconhold(%s)" % self.moh, self.pbx) s.appen...
e581660927aebaacc03692e1a06a4d11542ff6a3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2627/e581660927aebaacc03692e1a06a4d11542ff6a3/cfg_ivr_treenode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 272, 273, 16614, 3976, 2932, 9489, 18, 3923, 7923, 272, 18, 542, 5285, 12, 2890, 18, 529, 13, 309, 365, 18, 5733, 92, 30, 6386, 92, 273, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 37, 8190, 10175, 809, 12, 2890, 4672, 272, 273, 16614, 3976, 2932, 9489, 18, 3923, 7923, 272, 18, 542, 5285, 12, 2890, 18, 529, 13, 309, 365, 18, 5733, 92, 30, 6386, 92, 273, 36...
sage: ids = N.primes_of_degree_one_list(10); a
sage: ids = N.primes_of_degree_one_list(10); ids
def next(self): r""" Return a prime of absolute degree one of small prime norm.
9dbdd47be63d0c22e38ac608213f2502c7027a3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9dbdd47be63d0c22e38ac608213f2502c7027a3a/small_primes_of_degree_one.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 2890, 4672, 436, 8395, 2000, 279, 17014, 434, 4967, 10782, 1245, 434, 5264, 17014, 4651, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1024, 12, 2890, 4672, 436, 8395, 2000, 279, 17014, 434, 4967, 10782, 1245, 434, 5264, 17014, 4651, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if self.export_task.running: self.export_task.stop()
def stop(self): """ Stop the scheduler. """ # Stop our export task. if self.export_task.running: self.export_task.stop() with self.pending_circuit_cond: self.pending_circuit_cond.notify() self.terminated = True
e668dd1997b902ffc19c165d1400a98ee2e62938 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/e668dd1997b902ffc19c165d1400a98ee2e62938/scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 12, 2890, 4672, 3536, 5131, 326, 8129, 18, 3536, 468, 5131, 3134, 3359, 1562, 18, 1918, 365, 18, 9561, 67, 24987, 67, 10013, 30, 365, 18, 9561, 67, 24987, 67, 10013, 18, 12336, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2132, 12, 2890, 4672, 3536, 5131, 326, 8129, 18, 3536, 468, 5131, 3134, 3359, 1562, 18, 1918, 365, 18, 9561, 67, 24987, 67, 10013, 30, 365, 18, 9561, 67, 24987, 67, 10013, 18, 12336, 1...
trial_testers = [IPTester('trial', params=v) for v in trial_packages] runners.extend(zip(trial_packages, trial_testers))
nose_pkg_names.append('kernel') trial_pkg_names.append('kernel') nose_packages = ['IPython.%s' % m for m in nose_pkg_names ] trial_packages = ['IPython.%s' % m for m in trial_pkg_names ] runners = [ (v, IPTester('iptest', params=v)) for v in nose_packages ] runners.extend([ (v, IPTester('trial', params=v)) fo...
def make_runners(): """Define the top-level packages that need to be tested. """ nose_packages = ['config', 'core', 'extensions', 'frontend', 'lib', 'scripts', 'testing', 'utils', # Note that we list the kernel here, though the bulk of it # is twisted-based, because nose picks up doctests that # twisted doesn't. 'kern...
34dd139174a73549251f695dd08f2a9e3ababcf0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3900/34dd139174a73549251f695dd08f2a9e3ababcf0/iptest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2681, 9646, 13332, 3536, 11644, 326, 1760, 17, 2815, 5907, 716, 1608, 358, 506, 18432, 18, 3536, 225, 1158, 307, 67, 10308, 273, 10228, 1425, 2187, 296, 3644, 2187, 296, 9489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2681, 9646, 13332, 3536, 11644, 326, 1760, 17, 2815, 5907, 716, 1608, 358, 506, 18432, 18, 3536, 225, 1158, 307, 67, 10308, 273, 10228, 1425, 2187, 296, 3644, 2187, 296, 9489, ...
transform = elt._as_immutable except AttributeError: pass else: elt = transform() data[elt] = value
data[element] = value except TypeError: transform = getattr(element, "_as_temporary_immutable", None) if transform is None: raise data[transform()] = value
def update(self, iterable): """Add all values from an iterable (such as a list or file).""" data = self._data value = True for elt in iterable: try: transform = elt._as_immutable except AttributeError: pass else: elt = transform() data[elt] = value
afe9595634c6691d2ea48fc5971fcd2d0c549740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/afe9595634c6691d2ea48fc5971fcd2d0c549740/sets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6087, 4672, 3536, 986, 777, 924, 628, 392, 6087, 261, 87, 2648, 487, 279, 666, 578, 585, 13, 12123, 501, 273, 365, 6315, 892, 460, 273, 1053, 364, 11572, 316, 6087,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6087, 4672, 3536, 986, 777, 924, 628, 392, 6087, 261, 87, 2648, 487, 279, 666, 578, 585, 13, 12123, 501, 273, 365, 6315, 892, 460, 273, 1053, 364, 11572, 316, 6087,...
print " -> %s: %s v %s" % (k, result[i][k], self._friends[i][k]) changed = [i for i in range(num_result) if result[i] != self._friends[i]]
if result[i][k] != self._friends[i][k] and \ k != 'wall_count': has_changed = 1 if (has_changed == 1): for k in result[i].keys(): if (result[i][k] != self._friends[i][k]): print " -> %s: %s => %s" % (k, self._friends[i][k], result[i][k]) else: print " -> %s: %s" % (k, result[i][k]) print
def _got_friends(self, result): #data returned by facebook #{u'status': {u'message': u'is fuck Israel.', u'status_id': u'42439154725', #u'time': u'1231563128'}, u'wall_count': u'144', u'uid': u'507455752', #u'pic_square': u'http://profile.ak.facebook.com/v223/111/10/q507455752_2044.jpg', #u'pic_small': u'http://profile...
e61121c8d23bcb194e65d88949cf26e862457451 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8474/e61121c8d23bcb194e65d88949cf26e862457451/facebook-notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13212, 67, 74, 22259, 12, 2890, 16, 563, 4672, 468, 892, 2106, 635, 24620, 3735, 89, 1807, 88, 996, 4278, 288, 89, 17784, 615, 4278, 582, 11, 291, 284, 9031, 2585, 354, 292, 1093,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13212, 67, 74, 22259, 12, 2890, 16, 563, 4672, 468, 892, 2106, 635, 24620, 3735, 89, 1807, 88, 996, 4278, 288, 89, 17784, 615, 4278, 582, 11, 291, 284, 9031, 2585, 354, 292, 1093,...
sql = "select el from EventLog el left outer join fetch el.event ev " \ "where el.entityType in ('ome.model.core.Pixels', 'ome.model.core.Image', " \ "'ome.model.containers.Dataset', el.entityType='ome.model.containers.Project') " \ "and ev.experimenter.id=:uid and ev.time > :start and ev.time < :end" print len(q.findA...
sql1 = "select el from EventLog el left outer join fetch el.event ev " \ "where el.entityType in ('ome.model.core.Pixels', 'ome.model.core.Image', " \ "'ome.model.containers.Dataset', 'ome.model.containers.Project') " \ "and ev.id in (select id from Event where experimenter.id=:uid and time > :start and time < :end)" ...
def test1088(self): admin = self.root.sf.getAdminService() q = self.root.sf.getQueryService() cx = admin.getEventContext() p = omero.sys.Parameters() p.map = {} p.map["uid"] = omero.RLong(cx.userId) p.map['start'] = start = omero.RTime(1218529874000) p.map['end'] = end = omero.RTime(1221121874000)
9dabb6646bc965cb879b7e43f7ca1f953838656f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12409/9dabb6646bc965cb879b7e43f7ca1f953838656f/tickets2000.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2163, 5482, 12, 2890, 4672, 3981, 273, 365, 18, 3085, 18, 21668, 18, 588, 4446, 1179, 1435, 1043, 273, 365, 18, 3085, 18, 21668, 18, 588, 1138, 1179, 1435, 9494, 273, 3981, 18, 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, 1842, 2163, 5482, 12, 2890, 4672, 3981, 273, 365, 18, 3085, 18, 21668, 18, 588, 4446, 1179, 1435, 1043, 273, 365, 18, 3085, 18, 21668, 18, 588, 1138, 1179, 1435, 9494, 273, 3981, 18, 5...
output = pydoc.HTMLDoc().docmodule(module) return output.strip()
doc = pydoc.HTMLDoc() output = doc.docmodule(module) loc = doc.getdocloc(pydoc_mod) or "" if loc: loc = "<br><a href=\"" + loc + "\">Module Docs</a>" return output.strip(), loc
def get_pydoc_html(module): "Returns pydoc generated output as html" output = pydoc.HTMLDoc().docmodule(module) return output.strip()
3a7305ed14684a2fe2ed9ad7f91aae06dd81b520 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/3a7305ed14684a2fe2ed9ad7f91aae06dd81b520/test_pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2074, 2434, 67, 2620, 12, 2978, 4672, 315, 1356, 2395, 2434, 4374, 876, 487, 1729, 6, 997, 273, 2395, 2434, 18, 4870, 1759, 1435, 876, 273, 997, 18, 2434, 2978, 12, 2978, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2074, 2434, 67, 2620, 12, 2978, 4672, 315, 1356, 2395, 2434, 4374, 876, 487, 1729, 6, 997, 273, 2395, 2434, 18, 4870, 1759, 1435, 876, 273, 997, 18, 2434, 2978, 12, 2978, 13, ...
GET = request.autodelegate('GET_')
def GET(self): print "%s" % render_tabs()
c93704d739b2b268f2a8b5208fd0622f65fa7997 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4845/c93704d739b2b268f2a8b5208fd0622f65fa7997/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 4672, 1172, 2213, 87, 6, 738, 1743, 67, 16056, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 4672, 1172, 2213, 87, 6, 738, 1743, 67, 16056, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
errors.append("Package %s got installed!\n" % txmbr.po)
errors.append("Package %s was installed!\n" % txmbr.po)
def assertResult(self, pkgs, optional_pkgs=[]): """Check if "system" contains the given pkgs. pkgs must be present, optional_pkgs may be. Any other pkgs result in an error. Pkgs are present if they are in the rpmdb and are not REMOVEd or they are INSTALLed. """ errors = ["assertResult:\n"] pkgs = set(pkgs) optional_pkg...
f25f72993890e58ea961460b48b2d4f94d313b70 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/f25f72993890e58ea961460b48b2d4f94d313b70/testbase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1253, 12, 2890, 16, 16922, 16, 3129, 67, 25376, 33, 8526, 4672, 3536, 1564, 309, 315, 4299, 6, 1914, 326, 864, 16922, 18, 16922, 1297, 506, 3430, 16, 3129, 67, 25376, 2026, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1253, 12, 2890, 16, 16922, 16, 3129, 67, 25376, 33, 8526, 4672, 3536, 1564, 309, 315, 4299, 6, 1914, 326, 864, 16922, 18, 16922, 1297, 506, 3430, 16, 3129, 67, 25376, 2026, 506, ...
return self.round(cr, uid, currency, amount) < currency.rounding
return abs(self.round(cr, uid, currency, amount)) < currency.rounding
def is_zero(self, cr, uid, currency, amount): return self.round(cr, uid, currency, amount) < currency.rounding
554965b74eb8a5924cbeb31d40951e2982fd6366 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/554965b74eb8a5924cbeb31d40951e2982fd6366/res_currency.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 7124, 12, 2890, 16, 4422, 16, 4555, 16, 5462, 16, 3844, 4672, 327, 365, 18, 2260, 12, 3353, 16, 4555, 16, 5462, 16, 3844, 13, 411, 5462, 18, 17376, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 7124, 12, 2890, 16, 4422, 16, 4555, 16, 5462, 16, 3844, 4672, 327, 365, 18, 2260, 12, 3353, 16, 4555, 16, 5462, 16, 3844, 13, 411, 5462, 18, 17376, 2, -100, -100, -100, -100...