rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if (SDK.has_key(version)):
if (version in SDK):
def SdkAutoDisableMax(): for version,key1,key2,subdir in MAXVERSIONINFO: if (PkgSkip(version)==0) and ((SDK.has_key(version)==0) or (SDK.has_key(version+"CS")==0)): if (sys.platform.startswith("win")): if (SDK.has_key(version)): WARNINGS.append("Your copy of "+version+" does not include the character studio SDK") else: WARNINGS.append("The registry does not appear to contain a pointer to "+version) WARNINGS.append("I have automatically added this command-line option: --no-"+version.lower()) PkgDisable(version)
fdcc1205b8a0b6802b88877ecb24913b8464ac72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/fdcc1205b8a0b6802b88877ecb24913b8464ac72/makepandacore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3426, 4965, 11879, 2747, 13332, 364, 1177, 16, 856, 21, 16, 856, 22, 16, 1717, 1214, 316, 4552, 5757, 5923, 30, 309, 261, 11264, 6368, 12, 1589, 13, 631, 20, 13, 471, 14015, 22625, 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, 3426, 4965, 11879, 2747, 13332, 364, 1177, 16, 856, 21, 16, 856, 22, 16, 1717, 1214, 316, 4552, 5757, 5923, 30, 309, 261, 11264, 6368, 12, 1589, 13, 631, 20, 13, 471, 14015, 22625, 18,...
choices.append(DV.l(DV.prefs.getp(p,'name'),warn=False))
choices.append(DV.prefs.getp(p,'name'))
def updatePrefPane(self,pane): self.prefpanesizer.Clear(True) # Delete all controls in prefpane for i in range(self.prefpanesizer.GetCols()): try: self.prefpanesizer.RemoveGrowableCol(i) except: pass for i in range(self.prefpanesizer.GetRows()): try: self.prefpanesizer.RemoveGrowableRow(i) except: pass self.pane=pane if pane[0:8].lower()=='special:': pane=pane[8:] if pane=='profileroot': txt=wx.StaticText(self.prefpane,-1,DV.l('locale:damnvid-profile-explanation')) txt.Wrap(max(self.prefpane.GetSize()[0],300)) self.prefpanesizer.Add(txt,(0,0),(1,1)) elif pane=='error': txt=wx.StaticText(self.prefpane,-1,DV.l('Error!')) txt.Wrap(max(self.prefpane.GetSize()[0],300)) self.prefpanesizer.Add(txt,(0,0),(1,1)) elif pane=='modules': topsizer=wx.BoxSizer(wx.VERTICAL) self.prefpanesizer.Add(topsizer,(0,0),(1,1),wx.EXPAND) self.prefpanesizer.AddGrowableCol(0,1) self.prefpanesizer.AddGrowableRow(0,1) # Construct module list self.modulelist=wx.ScrolledWindow(self.prefpane,-1,size=(460,3*(72+2*DV.border_padding))) self.modulelist.SetMinSize((460,3*(72+2*DV.border_padding))) modlistsizer=wx.BoxSizer(wx.VERTICAL) self.modulelist.SetSizer(modlistsizer) topsizer.Add(self.modulelist,1,wx.EXPAND) topsizer.Add((0,DV.control_vgap)) buttonsizer=wx.BoxSizer(wx.HORIZONTAL) topsizer.Add(buttonsizer,0,wx.ALIGN_RIGHT,border=1) if DV.os=='mac': topsizer.Add((0,2)) # Annoying glitch with the buttons # Construct module list scrollable window for mod in DamnIterModules(): modlistsizer.Add(self.buildModulePanel(self.modulelist,mod,withscrollbars=True),0,wx.EXPAND) self.modulelist.SetScrollbars(0,DV.control_vgap*DV.scroll_factor,0,0) # Construct buttons under module list install=wx.Button(self.prefpane,-1,DV.l('Install...')) install.Bind(wx.EVT_BUTTON,self.onModuleInstall) buttonsizer.Add(install) buttonsizer.Add((DV.control_hgap,0)) reset=wx.Button(self.prefpane,-1,DV.l('Reset all...')) reset.Bind(wx.EVT_BUTTON,self.onModuleAllReset) buttonsizer.Add(reset) buttonsizer.Add((DV.control_hgap,0)) update=wx.Button(self.prefpane,-1,DV.l('Check for updates')) update.Bind(wx.EVT_BUTTON,self.onModuleAllUpdate) buttonsizer.Add(update) else: prefprefix=pane profile=None module=None if prefprefix[0:16].lower()=='damnvid-profile-': prefprefix=prefprefix[0:15] profile=int(pane[16:]) elif prefprefix[0:15].lower()=='damnvid-module-': module=prefprefix[15:] prefprefix+=':' self.controls={} currentprefs=[] maxheight={str(DV.preference_type_video):0,str(DV.preference_type_audio):0,str(DV.preference_type_profile):0,str(DV.preference_type_misc):0} maxwidth={str(DV.preference_type_video):0,str(DV.preference_type_audio):0,str(DV.preference_type_profile):0,str(DV.preference_type_misc):0} count=0 availprefs=DV.prefs.lists(pane) for i in DV.preference_order[prefprefix[0:-1]]: if prefprefix+i in DV.preferences.keys() and i in availprefs: if not DV.preferences[prefprefix+i].has_key('noedit'): currentprefs.append(prefprefix+i) for i in availprefs: if prefprefix+i in DV.preferences.keys(): desc=DV.preferences[prefprefix+i] if not desc.has_key('noedit'): width=1 if prefprefix+i not in currentprefs: currentprefs.append(prefprefix+i) maxheight[str(desc['type'])]+=1 maxwidth[str(desc['type'])]=max((maxwidth[str(desc['type'])],self.getPrefWidth(prefprefix+i))) maxwidth[str(DV.preference_type_profile)]=max((maxwidth[str(DV.preference_type_misc)],maxwidth[str(DV.preference_type_profile)],maxwidth[str(DV.preference_type_video)]+maxwidth[str(DV.preference_type_audio)])) maxwidth[str(DV.preference_type_misc)]=maxwidth[str(DV.preference_type_profile)] count=0 currentprefsinsection={str(DV.preference_type_video):0,str(DV.preference_type_audio):0,str(DV.preference_type_profile):0,str(DV.preference_type_misc):0} for i in currentprefs: shortprefname=i[i.find(':')+1:] if profile==None: val=DV.prefs.gets(pane,shortprefname) else: val=DV.prefs.getp(profile,shortprefname) position=[int(module is not None),0] maxspan=[1,maxwidth[str(DV.preferences[i]['type'])]] if DV.preferences[i]['type']==DV.preference_type_audio: position[1]+=maxwidth[str(DV.preference_type_video)] elif DV.preferences[i]['type']==DV.preference_type_profile: position[0]+=max((maxheight[str(DV.preference_type_video)],maxheight[str(DV.preference_type_audio)])) elif DV.preferences[i]['type']==DV.preference_type_misc: position[0]+=maxheight[str(DV.preference_type_profile)]+max((maxheight[str(DV.preference_type_video)],maxheight[str(DV.preference_type_audio)])) position[0]+=currentprefsinsection[str(DV.preferences[i]['type'])] controlposition=(position[0],position[1]+1) controlspan=(1,maxwidth[str(DV.preferences[i]['type'])]-1) currentprefsinsection[str(DV.preferences[i]['type'])]+=1 if DV.preferences[i]['kind']!='bool': label=wx.StaticText(self.prefpane,-1,DV.l(DV.preferences[i]['name'])+':') self.prefpanesizer.Add(label,(position[0],position[1]),(1,1),wx.ALIGN_CENTER_VERTICAL|wx.ALIGN_RIGHT) if type(DV.preferences[i]['kind']) is type({}): choices=[self.defaultvalue] for f in DV.preferences[i]['order']: choices.append(DV.preferences[i]['kind'][f]) if not val: val=self.defaultvalue else: if val in DV.preferences[i]['kind']: val=DV.preferences[i]['kind'][val] self.controls[i]=self.makeList(DV.preferences[i]['strict'],choices,self.prefpane,val) # makeList takes care of the event binding self.prefpanesizer.Add(self.controls[i],controlposition,controlspan,wx.EXPAND|wx.ALIGN_CENTER_VERTICAL) elif DV.preferences[i]['kind'][0]=='%': self.controls[i]=self.makeSlider(self.prefpane,self.prefpanesizer,(controlposition,controlspan),int(100.0*float(val)/float(str(DV.preferences[i]['kind'][1:]))),0,200) elif DV.preferences[i]['kind']=='bool': if DV.preferences[i]['align']: self.controls[i]=wx.CheckBox(self.prefpane,-1) label=wx.StaticText(self.prefpane,-1,DV.l(DV.preferences[i]['name'])) label.Bind(wx.EVT_LEFT_UP,DamnCurry(self.onFakeCheckboxLabelClick,self.controls[i])) self.prefpanesizer.Add(self.controls[i],(position[0],position[1]),(1,1),wx.ALIGN_RIGHT) self.prefpanesizer.Add(label,(position[0],position[1]+1),(1,1),wx.EXPAND) else: self.controls[i]=wx.CheckBox(self.prefpane,-1,DV.l(DV.preferences[i]['name'])) self.prefpanesizer.Add(self.controls[i],(position[0],position[1]),(1,maxwidth[str(DV.preferences[i]['type'])]),wx.EXPAND) self.controls[i].SetValue(val=='True') self.Bind(wx.EVT_CHECKBOX,self.onPrefChange,self.controls[i]) elif DV.preferences[i]['kind'][0:3]=='int': choices=[self.defaultvalue] if DV.preferences[i]['kind'][0:5]=='intk:': for f in range(int(DV.preferences[i]['kind'][DV.preferences[i]['kind'].find(':')+1:DV.preferences[i]['kind'].find('-')]),int(DV.preferences[i]['kind'][DV.preferences[i]['kind'].find('-')+1:])): choices.append(str(pow(2,f))+'k') if not val: val=self.defaultvalue self.controls[i]=self.makeList(DV.preferences[i]['strict'],choices,self.prefpane,val) # makeList takes care of the event binding self.prefpanesizer.Add(self.controls[i],controlposition,controlspan,wx.EXPAND) elif DV.preferences[i]['kind'][0:4]=='int:': interval=(int(DV.preferences[i]['kind'][DV.preferences[i]['kind'].find(':')+1:DV.preferences[i]['kind'].find('-')]),int(DV.preferences[i]['kind'][DV.preferences[i]['kind'].find('-')+1:])) if not val: val='0' self.controls[i]=self.makeSlider(self.prefpane,self.prefpanesizer,(controlposition,controlspan),int(val),min(interval),max(interval)) elif DV.preferences[i]['kind']=='int': if not val: val=self.defaultvalue self.controls[i]=self.makeList(False,[self.defaultvalue],self.prefpane,val) self.prefpanesizer.Add(self.controls[i],controlposition,controlspan,wx.EXPAND) elif DV.preferences[i]['kind']=='dir': pathpanel=wx.Panel(self.prefpane,-1) pathsizer=wx.BoxSizer(wx.HORIZONTAL) pathpanel.SetSizer(pathsizer) self.prefpanesizer.Add(pathpanel,controlposition,controlspan,wx.EXPAND) self.controls[i]=wx.TextCtrl(pathpanel,-1,val) self.Bind(wx.EVT_TEXT,self.onPrefChange,self.controls[i]) pathsizer.Add(self.controls[i],1,wx.EXPAND) pathsizer.Add((DV.control_hgap,0)) browseButton=DamnBrowseDirButton(pathpanel,-1,DV.l('Browse...'),control=self.controls[i],title=DV.l('Select DamnVid\'s output directory.'),callback=self.onBrowseDir) self.Bind(wx.EVT_BUTTON,browseButton.onBrowse,browseButton) pathsizer.Add(browseButton,0) elif DV.preferences[i]['kind']=='text': self.controls[i]=wx.TextCtrl(self.prefpane,-1,val) self.Bind(wx.EVT_TEXT,self.onPrefChange,self.controls[i]) self.prefpanesizer.Add(self.controls[i],controlposition,controlspan,wx.EXPAND) elif DV.preferences[i]['kind']=='locale': langs=[] c=0 lang=0 for l in DV.languages.iterkeys(): if DV.lang==l: lang=c c+=1 langs.append(l) # Enventually translate here, but I'm not sure. Maybe both translated and untranslated? self.controls[i]=self.makeList(DV.preferences[i]['strict'],langs,self.prefpane,None) # makeList takes care of the event binding self.controls[i].SetSelection(lang) self.prefpanesizer.Add(self.controls[i],controlposition,controlspan,wx.EXPAND) elif DV.preferences[i]['kind']=='profile': if DV.prefs.profiles: choices=[] for p in range(-1,DV.prefs.profiles): choices.append(DV.l(DV.prefs.getp(p,'name'),warn=False)) self.controls[i]=self.makeList(DV.preferences[i]['strict'],choices,self.prefpane,None) # makeList takes care of the event binding self.controls[i].SetSelection(int(val)+1) # +1 to compensate for -1 -> (Do not encode) else: self.controls[i]=wx.StaticText(self.prefpane,-1,DV.l('No encoding profiles found!')) self.prefpanesizer.Add(self.controls[i],controlposition,controlspan,wx.EXPAND) count=count+1 self.prefpanesizer.Layout() cols=self.prefpanesizer.GetCols() totalwidth=float(self.prefpanesizer.GetMinSize()[0]-(cols-1)*self.prefpanesizer.GetHGap()) splitwidth=round(totalwidth/float(cols)-.5) lastrow=self.prefpanesizer.GetRows() for i in range(cols): try: self.prefpanesizer.AddGrowableCol(i) except: pass curwidth=splitwidth if i==cols-1: curwidth+=totalwidth-splitwidth*cols self.prefpanesizer.Add((int(curwidth),0),(lastrow,i),(1,1)) if module is not None: self.prefpanesizer.Add(self.buildModulePanel(self.prefpane,module,extended=True,buttons=False),(0,0),(1,self.prefpanesizer.GetCols()),wx.EXPAND) self.prefpanesizer.Layout() # Mandatory newsize=self.toppanel.GetBestSize() if newsize[0]>self.bestsize[0]: self.bestsize[0]=newsize[0] if newsize[1]>self.bestsize[1]: self.bestsize[1]=newsize[1] self.SetClientSize(newsize) self.SetClientSize(self.bestsize) self.Center()
0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 23218, 8485, 12, 2890, 16, 29009, 4672, 365, 18, 25724, 7355, 281, 1824, 18, 9094, 12, 5510, 13, 468, 2504, 777, 11022, 316, 11307, 29009, 364, 277, 316, 1048, 12, 2890, 18, 25724,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23218, 8485, 12, 2890, 16, 29009, 4672, 365, 18, 25724, 7355, 281, 1824, 18, 9094, 12, 5510, 13, 468, 2504, 777, 11022, 316, 11307, 29009, 364, 277, 316, 1048, 12, 2890, 18, 25724,...
data_dict['invesalius'] = {'orientation_label' : GetImageOrientationLabel(self.filepath)}
data_dict['invesalius'] = {'orientation_label' : label}
def run(self):
546ea0d2bb7cb5358e2c1a8107c904ef30ed1b87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/546ea0d2bb7cb5358e2c1a8107c904ef30ed1b87/dicom_reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
f.write(l)
f.write(l + '\n')
def generate_doc(fname, exampledir, outdir): """ generate a .txt based on a cmake file if the doc is not empty """ dest = os.path.join(outdir, os.path.basename(fname)) dest = dest.replace(".cmake", ".txt") docs = extract_doc_from_cmake(fname, exampledir) if len(docs) > 0: print "Generated:", dest with open(dest, "w") as f: for l in docs: f.write(l)
58e5719f8c1d5d076eb3b9af15ecc71594baba83 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13121/58e5719f8c1d5d076eb3b9af15ecc71594baba83/generate_doc_from_cmake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2434, 12, 12749, 16, 3454, 1214, 16, 15398, 4672, 3536, 2103, 279, 263, 5830, 2511, 603, 279, 5003, 911, 585, 309, 326, 997, 353, 486, 1008, 3536, 1570, 273, 1140, 18, 803, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 2434, 12, 12749, 16, 3454, 1214, 16, 15398, 4672, 3536, 2103, 279, 263, 5830, 2511, 603, 279, 5003, 911, 585, 309, 326, 997, 353, 486, 1008, 3536, 1570, 273, 1140, 18, 803, 1...
"ls -l non_existent_file ; exit 0"], stderr=subprocess.STDOUT)
... "ls -l non_existent_file ; exit 0"], ... stderr=subprocess.STDOUT)
def check_output(*popenargs, **kwargs): """Run command with arguments and return its output as a byte string. If the exit code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and output in the output attribute. The arguments are the same as for the Popen constructor. Example: >>> check_output(["ls", "-l", "/dev/null"]) 'crw-rw-rw- 1 root root 1, 3 Oct 18 2007 /dev/null\n' The stdout argument is not allowed as it is used internally. To capture standard error in the result, use stderr=subprocess.STDOUT. >>> check_output(["/bin/sh", "-c", "ls -l non_existent_file ; exit 0"], stderr=subprocess.STDOUT) 'ls: non_existent_file: No such file or directory\n' """ if 'stdout' in kwargs: raise ValueError('stdout argument not allowed, it will be overridden.') process = Popen(stdout=PIPE, *popenargs, **kwargs) output, unused_err = process.communicate() retcode = process.poll() if retcode: cmd = kwargs.get("args") if cmd is None: cmd = popenargs[0] raise CalledProcessError(retcode, cmd, output=output) return output
6ab5d083f20aa63d689ed095e7660aef4241cd22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/6ab5d083f20aa63d689ed095e7660aef4241cd22/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2844, 30857, 84, 3190, 1968, 16, 2826, 4333, 4672, 3536, 1997, 1296, 598, 1775, 471, 327, 2097, 876, 487, 279, 1160, 533, 18, 225, 971, 326, 2427, 981, 1703, 1661, 17, 7124, 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, 866, 67, 2844, 30857, 84, 3190, 1968, 16, 2826, 4333, 4672, 3536, 1997, 1296, 598, 1775, 471, 327, 2097, 876, 487, 279, 1160, 533, 18, 225, 971, 326, 2427, 981, 1703, 1661, 17, 7124, 5...
def update_status(self, test):
def reset(self): self.statusBar().showMessage('') self.statusBar().setStyleSheet('') def indicateSuccess(self): self.colorStatusBar(' total = self.result.n_success self.statusBar().showMessage("Ran %d tests. OK" % total) def indicateFailure(self): self.colorStatusBar(' res = self.result total = res.n_success + res.n_fail + res.n_error self.statusBar().showMessage( "Ran %d tests. %d failed, %d errors." % (total, res.n_fail, res.n_error) ) def colorStatusBar(self, color): self.statusBar().setStyleSheet("QStatusBar {\n" "background: %s;\n" "}" % color) def updateStatus(self, test):
def update_status(self, test): self.statusBar().showMessage(test)
958f10c55a04380a7b01daf5a841383cfd9f91bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14942/958f10c55a04380a7b01daf5a841383cfd9f91bd/qtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 2327, 5190, 7675, 4500, 1079, 2668, 6134, 365, 18, 2327, 5190, 7675, 542, 2885, 8229, 2668, 6134, 225, 1652, 10768, 4510, 12, 2890, 4672, 365, 18, 3266, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 2327, 5190, 7675, 4500, 1079, 2668, 6134, 365, 18, 2327, 5190, 7675, 542, 2885, 8229, 2668, 6134, 225, 1652, 10768, 4510, 12, 2890, 4672, 365, 18, 3266, 14...
"incoming|in": (incoming, [], 'hg incoming [SOURCE]'),
"incoming|in": (incoming, [('p', 'patch', None, 'show patch')], 'hg incoming [-p] [SOURCE]'),
def verify(ui, repo): """verify the integrity of the repository""" return repo.verify()
91f0b1cc17f517bbd0bdf0eb5e1fe86fa39ddfc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/91f0b1cc17f517bbd0bdf0eb5e1fe86fa39ddfc3/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 4881, 16, 3538, 4672, 3536, 8705, 326, 24425, 434, 326, 3352, 8395, 327, 3538, 18, 8705, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 12, 4881, 16, 3538, 4672, 3536, 8705, 326, 24425, 434, 326, 3352, 8395, 327, 3538, 18, 8705, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.date_time(), msg)
formatdate(), msg)
def emit(self, record): """ Emit a record.
b224047a3a3f8e47fc3b305b81ed08acaeb25f46 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b224047a3a3f8e47fc3b305b81ed08acaeb25f46/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if !thumbnailStore.setPixelsId(pixelsId):
if not thumbnailStore.setPixelsId(pixelsId):
def getThumbnail(thumbnailStore, pixelsId, length): """ Returns a thumbnail (as string) from the pixelsId, the longest side is 'length' @param thumbnailStore: The Omero thumbnail store @param pixelsId: The ID of the pixels. long @param length: Length of longest side. int @return: The thumbnail as a String, or None if not found (invalid image) """ if !thumbnailStore.setPixelsId(pixelsId): thumbnailStore.needDefaults() thumbnailStore.setPixelsId(pixelsId) try: return thumbnailStore.getThumbnailByLongestSide(rint(length)) # returns string (api says Ice::ByteSeq) except: return None
5156200eba5debd64d191cf183f16b08bdd90e7a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/5156200eba5debd64d191cf183f16b08bdd90e7a/imageUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 16270, 12, 14904, 2257, 16, 8948, 548, 16, 769, 4672, 3536, 2860, 279, 9134, 261, 345, 533, 13, 628, 326, 8948, 548, 16, 326, 12163, 4889, 353, 296, 2469, 11, 225, 632, 891, 9134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16270, 12, 14904, 2257, 16, 8948, 548, 16, 769, 4672, 3536, 2860, 279, 9134, 261, 345, 533, 13, 628, 326, 8948, 548, 16, 326, 12163, 4889, 353, 296, 2469, 11, 225, 632, 891, 9134,...
if len(sitelist)>1: logger.warning("Found more than one location for output dataset, will start subscription to aggregate data to %s. Locations are: %s" % (job.application.se_name,str(sitelist)))
seNames=job.application.se_name.split(" ") subscribedSite=seNames[0] if subscribedSite not in sitelist or len(sitelist)>1: if subscribedSite not in sitelist: logger.warning("location declared in application.se_name different from existing locations of %s. Subscribing dataset to requested location: %s" % (dset,subscribedSite)) elif len(sitelist)>1: logger.warning("Found more than one location for output dataset, will start subscription to aggregate data to %s. Locations are: %s" % (subscribedSite,str(sitelist)))
def fill(self, type=None, name=None, **options ): """Determine outputdata and outputsandbox locations of finished jobs and fill output variable""" from Ganga.GPIDev.Lib.Job import Job from GangaAtlas.Lib.ATLASDataset import filecheck job = self._getParent()
8173647c1db4e5b8b55f46c19595a5e97f474bcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/8173647c1db4e5b8b55f46c19595a5e97f474bcb/AthenaMCDatasets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 618, 33, 7036, 16, 508, 33, 7036, 16, 2826, 2116, 262, 30, 3536, 8519, 876, 892, 471, 6729, 9069, 7838, 434, 6708, 6550, 471, 3636, 876, 2190, 8395, 628, 611, 539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 12, 2890, 16, 618, 33, 7036, 16, 508, 33, 7036, 16, 2826, 2116, 262, 30, 3536, 8519, 876, 892, 471, 6729, 9069, 7838, 434, 6708, 6550, 471, 3636, 876, 2190, 8395, 628, 611, 539, ...
def get_publisher(self, entry): publisher = entry publitext = None for x in publisher.getiterator('dt'): if self.repub.match(x.text): publitext = x.getnext().text_content() break return unicode(publitext) def get_date(self, entry, verbose): date = entry d = '' for x in date.getiterator('dt'): if x.text == 'Date de parution': d = x.getnext().text_content() break if len(d) == 0: return None try: default = utcnow().replace(day=15) d = replace_monthsfr(d) d = parse_date(d, assume_utc=True, default=default) except: report(verbose) d = None return d def get_ISBN(self, entry): isbn = entry isbntext = None for x in isbn.getiterator('dt'): if x.text == 'ISBN': isbntext = x.getnext().text_content().replace('-', '') if not check_isbn(isbntext): return None break return unicode(isbntext) def get_language(self, entry): language = entry langtext = None for x in language.getiterator('dt'): if x.text == 'Langue': langtext = x.getnext().text_content() break return unicode(langtext)
def get_book_info(self, entry, mi): entry = entry.find("dl[@title='Informations sur le livre']") for x in entry.getiterator('dt'): if x.text == 'ISBN': isbntext = x.getnext().text_content().replace('-', '') if check_isbn(isbntext): mi.isbn = unicode(isbntext) elif self.repub.match(x.text): mi.publisher = unicode(x.getnext().text_content()) elif x.text == 'Langue': mi.language = unicode(x.getnext().text_content()) elif x.text == 'Date de parution': d = x.getnext().text_content() try: default = utcnow().replace(day=15) d = replace_monthsfr(d) d = parse_date(d, assume_utc=True, default=default) mi.pubdate = d except: report(verbose) return mi
4887bac205622d0c6fe486278286b7eecbc30acc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/4887bac205622d0c6fe486278286b7eecbc30acc/nicebooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3618, 67, 1376, 12, 2890, 16, 1241, 16, 12837, 4672, 1241, 273, 1241, 18, 4720, 2932, 5761, 14782, 2649, 2218, 25541, 1012, 5056, 884, 328, 427, 266, 3546, 7923, 364, 619, 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, 336, 67, 3618, 67, 1376, 12, 2890, 16, 1241, 16, 12837, 4672, 1241, 273, 1241, 18, 4720, 2932, 5761, 14782, 2649, 2218, 25541, 1012, 5056, 884, 328, 427, 266, 3546, 7923, 364, 619, 316, ...
return processElementTag(node)
return ''.join(processElementTag(node))
def doSerialize(node): """Serializes a node and its children, emitting PO messages along the way. node is the node to serialize, first indicates whether surrounding tags should be emitted as well. """ if ignoreNode(node): return '' elif not node.children: return node.serialize("utf-8") elif node.type == 'entity_ref': if isExternalGeneralParsedEntity(node): return node.serialize('utf-8') else: return stringForEntity(node) #content #content #serialize("utf-8") elif node.type == 'entity_decl': return node.serialize('utf-8') #'<%s>%s</%s>' % (startTagForNode(node), node.content, node.name) elif node.type == 'text': return node.serialize('utf-8') elif node.type == 'element': return processElementTag(node) else: child = node.children outtxt = '' while child: outtxt += doSerialize(child) child = child.next return outtxt
7df7f38ebfe0a2ba10334c996b94f4d81999bf11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11802/7df7f38ebfe0a2ba10334c996b94f4d81999bf11/xml2po.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 10343, 12, 2159, 4672, 3536, 20145, 279, 756, 471, 2097, 2325, 16, 3626, 1787, 13803, 2743, 7563, 326, 4031, 18, 225, 756, 353, 326, 756, 358, 4472, 16, 1122, 8527, 2856, 29071, 234...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10343, 12, 2159, 4672, 3536, 20145, 279, 756, 471, 2097, 2325, 16, 3626, 1787, 13803, 2743, 7563, 326, 4031, 18, 225, 756, 353, 326, 756, 358, 4472, 16, 1122, 8527, 2856, 29071, 234...
@match(r'^figlet(?:\s+list)?\s+fonts(?:\s+from\s+(\d+))?$')
@match(r'^list\s+figlet\s+fonts(?:\s+from\s+(\d+))?$')
def __init__(self, name): Processor.__init__(self, name) zip = ZipFile(self.fonts_zip) self.fonts = sorted(map(lambda n: os.path.splitext(os.path.split(n)[1])[0], zip.namelist()))
fd057e12552e1962b629874cc70ee223c869a667 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12048/fd057e12552e1962b629874cc70ee223c869a667/ascii.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 4672, 15476, 16186, 2738, 972, 12, 2890, 16, 508, 13, 3144, 273, 18364, 12, 2890, 18, 22052, 67, 4450, 13, 365, 18, 22052, 273, 3115, 12, 1458, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 4672, 15476, 16186, 2738, 972, 12, 2890, 16, 508, 13, 3144, 273, 18364, 12, 2890, 18, 22052, 67, 4450, 13, 365, 18, 22052, 273, 3115, 12, 1458, 12, ...
del lwtparser
def insert(self, arg): """ Insert some LIGO_LW xml data in the metadata database
15d95b3c8cf259e9d26119cf55dce8ab26dfffde /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/15d95b3c8cf259e9d26119cf55dce8ab26dfffde/LDBDServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 1501, 4672, 3536, 8040, 2690, 511, 3047, 51, 67, 48, 59, 2025, 501, 316, 326, 1982, 2063, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 1501, 4672, 3536, 8040, 2690, 511, 3047, 51, 67, 48, 59, 2025, 501, 316, 326, 1982, 2063, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.rapi.AddResponse("[ { \"id\": \"123\", \"uri\": \"\/2\/jobs\/123\" }," " { \"id\": \"124\", \"uri\": \"\2\/jobs\/124\" } ]")
self.rapi.AddResponse('[ { "id": "123", "uri": "\\/2\\/jobs\\/123" },' ' { "id": "124", "uri": "\\/2\\/jobs\\/124" } ]')
def testGetJobs(self): self.rapi.AddResponse("[ { \"id\": \"123\", \"uri\": \"\/2\/jobs\/123\" }," " { \"id\": \"124\", \"uri\": \"\2\/jobs\/124\" } ]") self.assertEqual([123, 124], self.client.GetJobs()) self.assertHandler(rlib2.R_2_jobs)
2004e673aafe48c16c67a58ff0ce67a6c11cd9bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/2004e673aafe48c16c67a58ff0ce67a6c11cd9bb/ganeti.rapi.client_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 7276, 12, 2890, 4672, 365, 18, 1266, 77, 18, 986, 1064, 2668, 63, 288, 315, 350, 6877, 315, 12936, 3113, 315, 1650, 6877, 1548, 6700, 22, 1695, 19, 10088, 1695, 19, 12936, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 7276, 12, 2890, 4672, 365, 18, 1266, 77, 18, 986, 1064, 2668, 63, 288, 315, 350, 6877, 315, 12936, 3113, 315, 1650, 6877, 1548, 6700, 22, 1695, 19, 10088, 1695, 19, 12936, 6...
def fl():
def flush():
def fl(): sys.stdout.flush()
1a0647b0e18d6de52c4c51bdae9fe97eb7441d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a0647b0e18d6de52c4c51bdae9fe97eb7441d05/sortperf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3663, 13332, 2589, 18, 10283, 18, 11330, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3663, 13332, 2589, 18, 10283, 18, 11330, 1435, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
(command, status, stdout)) return stdout
(command, status, stdio)) return stdio
def run_or_die(command): (status, stdout) = commands.getstatusoutput(command) if status != 0: raise Exception("command '%s' failed with exit status %d and output '%s'" % (command, status, stdout)) return stdout
b2b8dad96133a5c91d4df368807bac54595abc68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/b2b8dad96133a5c91d4df368807bac54595abc68/rpmlisting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 280, 67, 72, 1385, 12, 3076, 4672, 261, 2327, 16, 3909, 13, 273, 4364, 18, 588, 2327, 2844, 12, 3076, 13, 309, 1267, 480, 374, 30, 1002, 1185, 2932, 3076, 1995, 87, 11, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 280, 67, 72, 1385, 12, 3076, 4672, 261, 2327, 16, 3909, 13, 273, 4364, 18, 588, 2327, 2844, 12, 3076, 13, 309, 1267, 480, 374, 30, 1002, 1185, 2932, 3076, 1995, 87, 11, 253...
except AttributeError: pass else: raise TestFailed, 'expected AttributeError'
except AttributeError: pass else: raise TestFailed, 'expected AttributeError'
def b(): 'my docstring' pass
5fc07e929655dddee60731048496f3eef3148415 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5fc07e929655dddee60731048496f3eef3148415/test_funcattrs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 296, 4811, 14525, 11, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 296, 4811, 14525, 11, 1342, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Given a string s, strip all whitespace from s and return the resulting string.
Given a string s, strip leading whitespace from s and return the resulting string.
def notebook_lib(): s= r"""
cd076e05bf6598fc5ed37423f7b47338d1851bc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd076e05bf6598fc5ed37423f7b47338d1851bc2/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Z = imageS.diagonal() / imageR.diagonal()
Z = imageS_mat.diagonal() / imageR_mat.diagonal()
def resize_image(imageS, imageS_mat, imageR_mat): """ zoom_image = resize_image(imageS, imageS_mat, imageR_mat) Fractional resample source_image to reference_image size. The resample is implemented with 3D cubic spline. The source imageS_mat is the 4x4 voxel-to-physical conversion matrix. Parameters ---------- imageS: {ndarray} imageS is the source image to be resized. imageS_mat : {ndarray} the 4x4 transform of the source image that maps voxel to physical. imageR_mat : {ndarray} the 4x4 transform of the destination image that maps voxel to physical. Returns ------- zoom_image : {ndarray} Examples -------- >>> import _registration as reg >>> measures, image_anat, image_anat_mat, image_fmri_mat, fmri_series = reg.demo_MRI_coregistration() >>> resampled_fmri = reg.resize_image(fmri_series[10], image_fmri_mat, image_anat_mat) image 10 in the fmri_series is resampled from image_fmri_mat to image_anat coordinates """ # get the zoom Z = imageS.diagonal() / imageR.diagonal() # new volume dimensions (rounded). D, imageS and Z are 3D and this is a vector element product D = (imageS.shape * Z + 0.5).astype(np.int16) # for the test data, set the xyz voxel sizes for fMRI volume. M is a 4x4 matrix. M = np.diag(imageS.diagonal() / Z) image = np.empty((D[2],D[1],D[0]),np.uint8) mode = 2 scale = 0 reg.register_volume_resample(imageS, image, Z, scale, mode) return image, M
8ba3c3ee13ac48ee356ec8319930a6b0510f110b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/8ba3c3ee13ac48ee356ec8319930a6b0510f110b/_registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7041, 67, 2730, 12, 2730, 55, 16, 1316, 55, 67, 7373, 16, 1316, 54, 67, 7373, 4672, 3536, 7182, 67, 2730, 273, 7041, 67, 2730, 12, 2730, 55, 16, 1316, 55, 67, 7373, 16, 1316, 54, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7041, 67, 2730, 12, 2730, 55, 16, 1316, 55, 67, 7373, 16, 1316, 54, 67, 7373, 4672, 3536, 7182, 67, 2730, 273, 7041, 67, 2730, 12, 2730, 55, 16, 1316, 55, 67, 7373, 16, 1316, 54, 6...
self['SWIGFLAGS'] += " -I%s" % Dir(d)
d = Dir(d) d = r"\ ".join(re.split(r" ", str(d))) self['SWIGFLAGS'] += " -I%s" % d
def CheckSwig(self, language="python", ilang="C", ignoreWarnings=None, swigdir=None): """Adjust the construction environment to allow the use of swig; if swigdir is specified it's the path to the swig binary, otherwise the calling process' PATH is searched. Bindings are generated for LANGUAGE (e.g. "python") using implementation language ilang (e.g. "c") ignoreWarnings is a list of swig warnings to ignore (e.g. "317,362,389"); either a python list, or a space separated string """ if not swigdir: for d in os.environ['PATH'].split(os.pathsep): if os.path.isfile(os.path.join(d, "swig")): swigdir = d break if not swigdir: raise RuntimeError, "Failed to find swig executable" if swigdir not in self['ENV']['PATH'].split(os.pathsep): self['ENV']['PATH'] += os.pathsep + swigdir swigTool = Tool('swig'); swigTool(self) self['SWIGFLAGS'] = "" if ilang == "c" or ilang == "C": pass elif ilang == "c++" or ilang == "C++": self['SWIGFLAGS'] += " -c++" else: print >> sys.stderr, "Unknown input language %s" % ilang self['SWIGFLAGS'] += " -%s" % language if ignoreWarnings: self['SWIGFLAGS'] += " -w" + ",".join(Split(ignoreWarnings)) # # Allow swig to search all directories that the compiler sees # for d in self['CPPPATH']: if d: self['SWIGFLAGS'] += " -I%s" % Dir(d)
3a7437bc9c0ad546332c6d744a8cb9cad2e16e72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6561/3a7437bc9c0ad546332c6d744a8cb9cad2e16e72/SConsUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 55, 5837, 12, 2890, 16, 2653, 1546, 8103, 3113, 277, 4936, 1546, 39, 3113, 2305, 4312, 33, 7036, 16, 1352, 360, 1214, 33, 7036, 4672, 3536, 10952, 326, 16171, 3330, 358, 1699, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 55, 5837, 12, 2890, 16, 2653, 1546, 8103, 3113, 277, 4936, 1546, 39, 3113, 2305, 4312, 33, 7036, 16, 1352, 360, 1214, 33, 7036, 4672, 3536, 10952, 326, 16171, 3330, 358, 1699, 326,...
self._bounds = Qd.OffsetRect(self._possize(width, height), pl, pt)
self._bounds = Qd.OffsetRect(_intRect(self._possize(width, height)), pl, pt)
def _calcbounds(self): # calculate absolute bounds relative to the window origin from our # abstract _possize attribute, which is either a 4-tuple or a callable object oldbounds = self._bounds pl, pt, pr, pb = self._parent._bounds if callable(self._possize): # _possize is callable, let it figure it out by itself: it should return # the bounds relative to our parent widget. width = pr - pl height = pb - pt self._bounds = Qd.OffsetRect(self._possize(width, height), pl, pt) else: # _possize must be a 4-tuple. This is where the algorithm by Peter Kriens and # Petr van Blokland kicks in. (*** Parts of this algorithm are applied for # patents by Ericsson, Sweden ***) l, t, r, b = self._possize # depending on the values of l(eft), t(op), r(right) and b(ottom), # they mean different things: if l < -1: # l is less than -1, this mean it measures from the *right* of it's parent l = pr + l else: # l is -1 or greater, this mean it measures from the *left* of it's parent l = pl + l if t < -1: # t is less than -1, this mean it measures from the *bottom* of it's parent t = pb + t else: # t is -1 or greater, this mean it measures from the *top* of it's parent t = pt + t if r > 1: # r is greater than 1, this means r is the *width* of the widget r = l + r else: # r is less than 1, this means it measures from the *right* of it's parent r = pr + r if b > 1: # b is greater than 1, this means b is the *height* of the widget b = t + b else: # b is less than 1, this means it measures from the *bottom* of it's parent b = pb + b self._bounds = (l, t, r, b) if oldbounds and oldbounds <> self._bounds: self.adjust(oldbounds) for w in self._widgets: w._calcbounds()
8d97b9bd36ad3437c2594deecf8b778e5508b8c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8d97b9bd36ad3437c2594deecf8b778e5508b8c1/Wbase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12448, 10576, 12, 2890, 4672, 468, 4604, 4967, 4972, 3632, 358, 326, 2742, 4026, 628, 3134, 468, 8770, 389, 917, 1467, 1566, 16, 1492, 353, 3344, 279, 1059, 17, 8052, 578, 279, 4140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12448, 10576, 12, 2890, 4672, 468, 4604, 4967, 4972, 3632, 358, 326, 2742, 4026, 628, 3134, 468, 8770, 389, 917, 1467, 1566, 16, 1492, 353, 3344, 279, 1059, 17, 8052, 578, 279, 4140...
path = path.encode(ENCODING) return self._try_change(path,
return self._try_change(value,
def add_file(self, path): """sets new value for repositor""" path = path.encode(ENCODING) return self._try_change(path, "add_file", "update_files")
ceb5a60b600bb5b5e5c2af6af88dbb7130434557 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/ceb5a60b600bb5b5e5c2af6af88dbb7130434557/simple_facade.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 768, 12, 2890, 16, 589, 4672, 3536, 4424, 394, 460, 364, 283, 1724, 280, 8395, 327, 365, 6315, 698, 67, 3427, 12, 1132, 16, 315, 1289, 67, 768, 3113, 315, 2725, 67, 2354, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 768, 12, 2890, 16, 589, 4672, 3536, 4424, 394, 460, 364, 283, 1724, 280, 8395, 327, 365, 6315, 698, 67, 3427, 12, 1132, 16, 315, 1289, 67, 768, 3113, 315, 2725, 67, 2354, 79...
_FIELD_BULLET = '@\w+( +[\w\.]+)?:( +|$)'
_FIELD_BULLET = '@\w+( [^{}:\n]+)?:( +|$)'
def to_dom(self, doc): """ @return: a DOM representation of this C{Token}. @rtype: L{xml.dom.minidom.Element} """ e = doc.createElement(self.tag) e.appendChild(doc.createTextNode(self.contents)) return e
69baddf654f0154a0e1fd114433821b807fcb3de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/69baddf654f0154a0e1fd114433821b807fcb3de/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 9859, 12, 2890, 16, 997, 4672, 3536, 632, 2463, 30, 279, 4703, 4335, 434, 333, 385, 95, 1345, 5496, 632, 86, 723, 30, 511, 95, 2902, 18, 9859, 18, 1154, 350, 362, 18, 1046, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 9859, 12, 2890, 16, 997, 4672, 3536, 632, 2463, 30, 279, 4703, 4335, 434, 333, 385, 95, 1345, 5496, 632, 86, 723, 30, 511, 95, 2902, 18, 9859, 18, 1154, 350, 362, 18, 1046, ...
assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int32)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int32)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble), np.array(3, np.int32)), 16.)
self._check_ldexp(np.int8) self._check_ldexp(np.int16) self._check_ldexp(np.int32) self._check_ldexp('i') self._check_ldexp('l') def test_ldexp_overflow(self): imax = np.iinfo(np.dtype('l')).max imin = np.iinfo(np.dtype('l')).min assert_equal(ncu.ldexp(2., imax), np.inf) assert_equal(ncu.ldexp(2., imin), 0)
def test_ldexp(self): assert_almost_equal(ncu.ldexp(2., 3), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float32), np.array(3, np.int32)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.float64), np.array(3, np.int32)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble), np.array(3, np.int16)), 16.) assert_almost_equal(ncu.ldexp(np.array(2., np.longdouble), np.array(3, np.int32)), 16.)
93f7521dd0ac9edc0034eec5501a126cc4683b70 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/93f7521dd0ac9edc0034eec5501a126cc4683b70/test_umath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 80, 561, 84, 12, 2890, 4672, 1815, 67, 287, 10329, 67, 9729, 12, 82, 6319, 18, 80, 561, 84, 12, 22, 12990, 890, 3631, 225, 2872, 12998, 1815, 67, 287, 10329, 67, 9729, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 80, 561, 84, 12, 2890, 4672, 1815, 67, 287, 10329, 67, 9729, 12, 82, 6319, 18, 80, 561, 84, 12, 22, 12990, 890, 3631, 225, 2872, 12998, 1815, 67, 287, 10329, 67, 9729, 12, ...
def processPDB(file): bioPythonProps = parseWithBioPython(file) return parseWithMMLib(file, bioPythonProps) def decompressFile(src): tempfile = 'tmp/%s' % src dest = 'tmp/%s' % src[:-2]
""" Task that takes a list of pdbs and processes the files extracting geometry data from the files """ class ProcessPDBTask(Task): """ Work function - expects a list of pdb file prefixes. """ def _work(self, args): for pdb in args: filename = 'pdb%s.ent.Z' % pdb bioPythonProps = parseWithBioPython(filename) props = parseWithMMLib('%s/%s' % ('pdb', filename), bioPythonProps) print props[9] for id, residue_props in props: try: residue = Protein.residues.objects.get(chainIndex=code) except: residue = Residue() for key, value in residue_props: residue.__dict__[key] = value """ Uncompress using the UNIX uncompress command. The PDB files are stored used LZ algorithms i've tried will not decompress the files properly. For now use the linux decompress """ def uncompress(file, src_dir, dest_dir): tempfile = '%s/%s' % (dest_dir, file) dest = '%s/%s' % (dest_dir, file[:-2])
def processPDB(file): bioPythonProps = parseWithBioPython(file) #print 'props: %s' % bioPythonProps return parseWithMMLib(file, bioPythonProps)
0940838e5e869d7bb9f818c88f728b1e1c7b3d2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6163/0940838e5e869d7bb9f818c88f728b1e1c7b3d2c/ProcessPDBTask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 52, 2290, 12, 768, 4672, 25091, 15774, 5047, 273, 1109, 1190, 38, 1594, 15774, 12, 768, 13, 468, 1188, 296, 9693, 30, 738, 87, 11, 738, 25091, 15774, 5047, 327, 1109, 1190, 49, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 52, 2290, 12, 768, 4672, 25091, 15774, 5047, 273, 1109, 1190, 38, 1594, 15774, 12, 768, 13, 468, 1188, 296, 9693, 30, 738, 87, 11, 738, 25091, 15774, 5047, 327, 1109, 1190, 49, 1...
JSDebug.JSScript.Native : "native", JSDebug.JSScript.Extension : "extension", JSDebug.JSScript.Normal : "normal"
JSDebug.Script.Native : "native", JSDebug.Script.Extension : "extension", JSDebug.Script.Normal : "normal"
def typename(self): NAMES = { JSDebug.JSScript.Native : "native", JSDebug.JSScript.Extension : "extension", JSDebug.JSScript.Normal : "normal" }
5ae6a9b32bea5d1f32fc61bcb082ee8d52d88abc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5451/5ae6a9b32bea5d1f32fc61bcb082ee8d52d88abc/PyV8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26735, 12, 2890, 4672, 6048, 55, 273, 288, 6756, 2829, 18, 3651, 18, 9220, 294, 315, 13635, 3113, 6756, 2829, 18, 3651, 18, 3625, 294, 315, 6447, 3113, 6756, 2829, 18, 3651, 18, 5506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26735, 12, 2890, 4672, 6048, 55, 273, 288, 6756, 2829, 18, 3651, 18, 9220, 294, 315, 13635, 3113, 6756, 2829, 18, 3651, 18, 3625, 294, 315, 6447, 3113, 6756, 2829, 18, 3651, 18, 5506, ...
('- (id)initWithPID:(pid_t)pid', 'kASTargetPID', '[NSNumber numberWithUnsignedLong: pid]'),
('- (id)initWithPID:(pid_t)pid', 'kASTargetPID', '[NSNumber numberWithInteger: pid]'),
def render_application(self, src): src.newglue('ApplicationGlue') src.importmacro('<PREFIX>ConstantGlue.h') src.importmacro('<PREFIX>ReferenceGlue.h') src.newclass('<PREFIX>Application', '<PREFIX>Reference') # private initialiser src.comment('note: clients shouldn\'t need to call -initWithTargetType:data: themselves') src.newmethod('- (id)initWithTargetType:(ASTargetType)targetType_ data:(id)targetData_') src += ' ASAppData *appData;\n' src += ' appData = [[ASAppData alloc] initWithApplicationClass: [AEMApplication class]' src += ' constantClass: [<PREFIX>Constant class]' src += ' referenceClass: [<PREFIX>Reference class]' src += ' targetType: targetType_' src += ' targetData: targetData_];' src += ' self = [super initWithAppData: appData aemReference: AEMApp];' src += '' src += ' if (!self) return self;' if self._osaxloader: src += self._osaxloader src += ' return self;' src.endmethod() # public constructors src.comment('initialisers') src.newmethod('+ (id)application') src += ' return [[[self alloc] init] autorelease];' src.endmethod() for name, call in [ ('+ (id)applicationWithName:(NSString *)name', 'initWithName: name'), ('+ (id)applicationWithBundleID:(NSString *)bundleID', 'initWithBundleID: bundleID'), ('+ (id)applicationWithURL:(NSURL *)url', 'initWithURL: url'), ('+ (id)applicationWithPID:(pid_t)pid', 'initWithPID: pid'), ('+ (id)applicationWithDescriptor:(NSAppleEventDescriptor *)desc', 'initWithDescriptor: desc')]: src.newmethod(name) src += ' return [[[self alloc] %s] autorelease];' % call src.endmethod() src.newmethod('- (id)init') src += ' return [self initWithTargetType: kASTargetCurrent data: nil];' src.endmethod() for name, target, data in [ ('- (id)initWithName:(NSString *)name', 'kASTargetName', 'name'), ('- (id)initWithBundleID:(NSString *)bundleID', 'kASTargetBundleID', 'bundleID'), ('- (id)initWithURL:(NSURL *)url', 'kASTargetURL', 'url'), ('- (id)initWithPID:(pid_t)pid', 'kASTargetPID', '[NSNumber numberWithUnsignedLong: pid]'), ('- (id)initWithDescriptor:(NSAppleEventDescriptor *)desc', 'kASTargetDescriptor', 'desc')]: src.newmethod(name) src += ' return [self initWithTargetType: %s data: %s];' % (target, data) src.endmethod() src.comment('misc') src.newmethod('- (<PREFIX>Reference *)AS_referenceWithObject:(id)object') src += ' if ([object isKindOfClass: [<PREFIX>Reference class]])' src += ' return [[[<PREFIX>Reference alloc] initWithAppData: AS_appData' src += ' aemReference: [object AS_aemReference]] autorelease];' src += ' else if ([object isKindOfClass: [AEMQuery class]])' src += ' return [[[<PREFIX>Reference alloc] initWithAppData: AS_appData' src += ' aemReference: object] autorelease];' src += ' else if (!object)' src += ' return [[[<PREFIX>Reference alloc] initWithAppData: AS_appData' src += ' aemReference: AEMApp] autorelease];' src += ' else' src += ' return [[[<PREFIX>Reference alloc] initWithAppData: AS_appData' src += ' aemReference: AEMRoot(object)] autorelease];' src.endmethod() src.endclass()
895334772e731f980de83b397887c1cd4836ee61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10961/895334772e731f980de83b397887c1cd4836ee61/objcappscript.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3685, 12, 2890, 16, 1705, 4672, 1705, 18, 2704, 7043, 344, 2668, 3208, 21308, 344, 6134, 1705, 18, 5666, 26448, 2668, 32, 6307, 34, 6902, 21308, 344, 18, 76, 6134, 1705, 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, 1743, 67, 3685, 12, 2890, 16, 1705, 4672, 1705, 18, 2704, 7043, 344, 2668, 3208, 21308, 344, 6134, 1705, 18, 5666, 26448, 2668, 32, 6307, 34, 6902, 21308, 344, 18, 76, 6134, 1705, 18, ...
if env.GetOption("clean") or env.GetOption("no_exec"):
if env.GetOption("clean") or env.GetOption("no_exec") or env.GetOption("help") :
def IsGcc(context): context.Message("Checking if CC is really gcc...") result = context.TryAction(["%s --help | grep gcc" % env['CC']])[0] context.Result(result) return result
50ba4e889e3d144aba422fb2a117a16bf0be3173 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6561/50ba4e889e3d144aba422fb2a117a16bf0be3173/SConsUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 43, 952, 12, 2472, 4672, 819, 18, 1079, 2932, 14294, 309, 225, 16525, 353, 8654, 314, 952, 7070, 13, 563, 273, 819, 18, 7833, 1803, 3816, 28385, 87, 1493, 5201, 571, 23366, 314, ...
MelFid('SNAM','sound'),
MelGroup('destructable', MelBase('DEST','header'), MelStruct('DEST','IhH','health','count','flags'), MelGroups('stages', MelStruct('DSTD','=4B4I','health','index','damageStage','flags', 'selfDamagePerSecond',(FID,'explosion',None),(FID,'debris',None),'debrisCount'), MelString('DMDL','model'), MelBase('DMDT','dmdt'), MelBase('DSTF','footer'), ), ), MelFid('SNAM','soundLooping'), MelFid('VNAM','soundActivation'), MelFid('RNAM','radioStation'), MelFid('WNAM','waterType'),
def getEffectsSummary(self,mgef_school=None,mgef_name=None): """Return a text description of magic effects.""" mgef_school = mgef_school or bush.mgef_school mgef_name = mgef_name or bush.mgef_name buff = cStringIO.StringIO() avEffects = bush.actorValueEffects aValues = bush.actorValues buffWrite = buff.write if self.effects: school = mgef_school[self.effects[0].name] buffWrite(bush.actorValues[20+school] + '\n') for index,effect in enumerate(self.effects): if effect.scriptEffect: effectName = effect.scriptEffect.full or 'Script Effect' else: effectName = mgef_name[effect.name] if effect.name in avEffects: effectName = re.sub(_('(Attribute|Skill)'),aValues[effect.actorValue],effectName) buffWrite('o+*'[effect.recipient]+' '+effectName) if effect.magnitude: buffWrite(' '+`effect.magnitude`+'m') if effect.area: buffWrite(' '+`effect.area`+'a') if effect.duration > 1: buffWrite(' '+`effect.duration`+'d') buffWrite('\n') return buff.getvalue()
6bd5a53acf99e85e527eb9e4ebec85b20c6dd97c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/6bd5a53acf99e85e527eb9e4ebec85b20c6dd97c/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4774, 3736, 87, 4733, 12, 2890, 16, 81, 908, 74, 67, 28204, 1371, 33, 7036, 16, 81, 908, 74, 67, 529, 33, 7036, 4672, 3536, 990, 279, 977, 2477, 434, 8146, 16605, 12123, 312, 908, 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, 4774, 3736, 87, 4733, 12, 2890, 16, 81, 908, 74, 67, 28204, 1371, 33, 7036, 16, 81, 908, 74, 67, 529, 33, 7036, 4672, 3536, 990, 279, 977, 2477, 434, 8146, 16605, 12123, 312, 908, 74...
self.file.write('\n' + '\n'*blankline)
self.file.write('\n'*blankline)
def send_paragraph(self, blankline): self.file.write('\n' + '\n'*blankline) self.col = 0 self.atbreak = 0
372571f80f5a88f99051e65ce46f4b86b9e005c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/372571f80f5a88f99051e65ce46f4b86b9e005c0/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 22445, 12, 2890, 16, 7052, 1369, 4672, 365, 18, 768, 18, 2626, 2668, 64, 82, 11, 14, 12111, 1369, 13, 365, 18, 1293, 273, 374, 365, 18, 270, 8820, 273, 374, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 67, 22445, 12, 2890, 16, 7052, 1369, 4672, 365, 18, 768, 18, 2626, 2668, 64, 82, 11, 14, 12111, 1369, 13, 365, 18, 1293, 273, 374, 365, 18, 270, 8820, 273, 374, 2, -100, -100, ...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0060text(self): ''' Test Text. ''' text1_id = self.text.create({ 'text': 'Test', }, CONTEXT) self.assert_(text1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 4848, 955, 12, 2890, 4672, 9163, 7766, 3867, 18, 9163, 977, 21, 67, 350, 273, 365, 18, 955, 18, 2640, 12590, 296, 955, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, 1123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 4848, 955, 12, 2890, 4672, 9163, 7766, 3867, 18, 9163, 977, 21, 67, 350, 273, 365, 18, 955, 18, 2640, 12590, 296, 955, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, 18, 1123...
M = self.weighted_adjacency_matrix(boundary_first=boundary_first)
M = self.weighted_adjacency_matrix(**kwds)
def kirchhoff_matrix(self, weighted=None, boundary_first=False): """ Returns the Kirchhoff matrix (a.k.a. the Laplacian) of the graph.
1ca6f66137d47879244a15a66558f82f865333e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/1ca6f66137d47879244a15a66558f82f865333e3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 481, 343, 76, 3674, 67, 5667, 12, 2890, 16, 13747, 33, 7036, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 1475, 481, 343, 76, 3674, 3148, 261, 69, 18, 79, 18, 69, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 481, 343, 76, 3674, 67, 5667, 12, 2890, 16, 13747, 33, 7036, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 1475, 481, 343, 76, 3674, 3148, 261, 69, 18, 79, 18, 69, 18, ...
self.body.append('\\section{%s\label{%s}}\n' % (s1, s2))
self.body.append('\\section{%s\\label{%s}}\n' % (s1, s2))
def visit_title(self, node): #self.pdebug('%% [(visit_title) section_level: %d node: "%s"]\n' % \ # (self.section_level, node.astext().lower())) if self.section_level == 0: self.title_before_section = 1 if self.seealso: self.body.append('\\end{seealso}\n') self.seealso = 0 if node.astext().lower() == 'see also': self.body.append('\\begin{seealso}\n') self.seealso = 1 raise nodes.SkipNode else: if self.section_level == 0: # It's the document title before any section. self.title = self.encode(node.astext()) else: # It's a title for a section in-side the document. self.body.append('\n\n') self.body.append('%' + '_' * 75) self.body.append('\n\n') s1 = self.encode(node.astext()) s2 = self.string_to_label(node.astext()) if (self.section_level == 1): self.body.append('\\section{%s\label{%s}}\n' % (s1, s2)) elif (self.section_level == 2): self.body.append('\\subsection{%s\label{%s}}\n' % (s1, s2)) elif (self.section_level == 3): self.body.append('\\subsubsection{%s\label{%s}}\n' % (s1, s2)) elif (self.section_level == 4): self.body.append('\\paragraph{%s\label{%s}}\n' % (s1, s2)) else: self.body.append('\\subparagraph{%s\label{%s}}\n' % (s1, s2)) raise nodes.SkipNode
ed688792a0f4c20b7802333819981a0ad813078d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/ed688792a0f4c20b7802333819981a0ad813078d/python_latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2649, 12, 2890, 16, 756, 4672, 468, 2890, 18, 84, 4148, 2668, 11438, 306, 12, 11658, 67, 2649, 13, 2442, 67, 2815, 30, 738, 72, 225, 756, 30, 2213, 87, 11929, 64, 82, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2649, 12, 2890, 16, 756, 4672, 468, 2890, 18, 84, 4148, 2668, 11438, 306, 12, 11658, 67, 2649, 13, 2442, 67, 2815, 30, 738, 72, 225, 756, 30, 2213, 87, 11929, 64, 82, 11, ...
self.botsfile = impl.createDocument(None, "xeps", None)
self.botsFile = impl.createDocument(None, "xeps", None)
def __init__(self, filename, shortXMLfilename): self.filename = filename self.shortXMLfilename = shortXMLfilename try: self.tableFile = parse(filename) except: impl = getDOMImplementation() self.tableFile = impl.createDocument(None, "table", None) self.tableFile.getElementsByTagName("table")[0].setAttribute("class", "sortable") self.tableFile.getElementsByTagName("table")[0].setAttribute("id", "xeplist") self.tableFile.getElementsByTagName("table")[0].setAttribute("cellspacing", "0") self.tableFile.getElementsByTagName("table")[0].setAttribute("cellpadding", "3") self.tableFile.getElementsByTagName("table")[0].setAttribute("border", "1") header = parseString(
0764d2c59c30332b8da0e5f55eba7e63043a98ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3519/0764d2c59c30332b8da0e5f55eba7e63043a98ff/gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 3025, 4201, 3459, 4672, 365, 18, 3459, 273, 1544, 365, 18, 6620, 4201, 3459, 273, 3025, 4201, 3459, 225, 775, 30, 365, 18, 2121, 812, 273, 1109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 3025, 4201, 3459, 4672, 365, 18, 3459, 273, 1544, 365, 18, 6620, 4201, 3459, 273, 3025, 4201, 3459, 225, 775, 30, 365, 18, 2121, 812, 273, 1109...
operandStr += "%08X" % self.Displacement
operandStr += "%X" % self.Displacement
def OpText(self): size = 0 retVal = '' retVal += " %08X: " % self.Address for i in self.Instruction.Opcode: retVal += "%02X " % i size += 1 if self.ModRM: retVal += "%02X " % self.ModRM.SaveToByte() size += 1 if self.ModRM.HasSIB(): retVal += "%02X " % self.SIB size += 1 disp = self.ModRM.GetDisplacementSize() if disp == 1: retVal += "%02X " % self.Displacement size += 1 elif disp == 4: #TODO: FIX retVal += "%02X %02X %02X %02X " % ( self.Displacement, self.Displacement, self.Displacement, self.Displacement,) size += 4 if self.Instruction.HasDisplacement: #TODO: FIX retVal += "%02X %02X %02X %02X " % ( self.Displacement, self.Displacement, self.Displacement, self.Displacement,) size += 4 if self.Instruction.HasImmediate: #TODO: FIX retVal += "%02X %02X %02X %02X " % ( self.Immediate, self.Immediate, self.Immediate, self.Immediate,) size += 4 retVal += " " * (8-size)
8284a7c3d5fbb6eb0da3a7e45050e3589ddf02f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11637/8284a7c3d5fbb6eb0da3a7e45050e3589ddf02f9/x86inst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6066, 1528, 12, 2890, 4672, 963, 273, 374, 12197, 273, 875, 225, 12197, 1011, 315, 225, 738, 6840, 60, 30, 315, 738, 365, 18, 1887, 364, 277, 316, 365, 18, 11983, 18, 22808, 30, 12197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6066, 1528, 12, 2890, 4672, 963, 273, 374, 12197, 273, 875, 225, 12197, 1011, 315, 225, 738, 6840, 60, 30, 315, 738, 365, 18, 1887, 364, 277, 316, 365, 18, 11983, 18, 22808, 30, 12197,...
newItem.setUniqueID()
newItem.setUniqueID(True)
def insertSibling(self, text=_defaultTitle, inAfter=False): """Add new sibling before or after self - return new item on success""" if not self.parent: return None pos = self.parent.childPos(self) if inAfter: pos += 1 newFormat = self.parent.nodeFormat().childType if newFormat not in globalref.docRef.treeFormats: newFormat = self.formatName newItem = TreeItem(self.parent, newFormat, text, True) newItem.setUniqueID() self.parent.childList.insert(pos, newItem) globalref.docRef.modified = True return newItem
6884c15a9efd246726e5be1da5031b6ad8a9721d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3087/6884c15a9efd246726e5be1da5031b6ad8a9721d/treeitem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 10291, 12, 2890, 16, 977, 33, 67, 1886, 4247, 16, 316, 4436, 33, 8381, 4672, 3536, 986, 394, 10841, 1865, 578, 1839, 365, 300, 327, 394, 761, 603, 2216, 8395, 309, 486, 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, 2243, 10291, 12, 2890, 16, 977, 33, 67, 1886, 4247, 16, 316, 4436, 33, 8381, 4672, 3536, 986, 394, 10841, 1865, 578, 1839, 365, 300, 327, 394, 761, 603, 2216, 8395, 309, 486, 365, 18, ...
self.watercleaningitem.connect("button_press_event", gcompris.utils.item_event_focus)
gcompris.utils.item_focus_init(self.watercleaningitem, None)
def start(self): self.gcomprisBoard.level=1 self.gcomprisBoard.maxlevel=1 self.gcomprisBoard.sublevel=1 self.gcomprisBoard.number_of_sublevel=1
43391a08b217b2de454c37878789a4913b8c75ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11306/43391a08b217b2de454c37878789a4913b8c75ad/watercycle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 365, 18, 75, 832, 683, 291, 22233, 18, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 1896, 2815, 33, 21, 365, 18, 75, 832, 683, 291, 22233, 18, 87, 1255...
def mergefiles(outfile,myroot,mystart):
def mergefiles(outfile,mystart):
def mergefiles(outfile,myroot,mystart): mycurpath=os.getcwd() myfiles=os.listdir(mycurpath) for x in myfiles: floc=pathstrip(os.path.normpath(mycurpath+"/"+x),myroot,mystart) if os.path.islink(x): myto=os.readlink(x) if os.path.exists(floc[0]): if os.path.isdir(floc[0]): print "!!!",floc[0],"->",myto else: os.unlink(floc[0]) try: os.symlink(myto,floc[0]) print "<<<",floc[0],"->",myto outfile.write("sym "+floc[1]+" -> "+myto+" "+getmtime(floc[0])+"\n") except: print "!!!",floc[0],"->",myto elif os.path.isdir(x): mystat=os.stat(x) if not os.path.exists(floc[0]): os.mkdir(floc[0]) os.chmod(floc[0],mystat[0]) os.chown(floc[0],mystat[4],mystat[5]) print "<<<",floc[0]+"/" else: print "---",floc[0]+"/" #mtime doesn't mean much for directories -- we don't store it outfile.write("dir "+floc[1]+"\n") mywd=os.getcwd() os.chdir(x) mergefiles(outfile,myroot,mystart) os.chdir(mywd) elif os.path.isfile(x): mymd5=md5(mycurpath+"/"+x) if movefile(x,pathstrip(mycurpath,myroot,mystart)[0]+"/"+x): zing="<<<" else: zing="!!!" print zing+" "+floc[0] print "md5",mymd5 outfile.write("obj "+floc[1]+" "+mymd5+" "+getmtime(floc[0])+"\n") elif isfifo(x): zing="!!!" if not os.path.exists(pathstrip(mycurpath,myroot,mystart)[0]+"/"+x): if movefile(x,pathstrip(mycurpath,myroot,mystart)[0]+"/"+x): zing="<<<" elif isfifo(pathstrip(mycurpath,myroot,mystart)[0]+"/"+x): os.unlink(pathstrip(mycurpath,myroot,mystart)[0]+"/"+x) if movefile(x,pathstrip(mycurpath,myroot,mystart)[0]+"/"+x): zing="<<<" print zing+" "+floc[0] outfile.write("fif "+floc[1]+"\n") else: if movefile(x,pathstrip(mycurpath,myroot,mystart)[0]+"/"+x): zing="<<<" else: zing="!!!" print zing+" "+floc[0] outfile.write("dev "+floc[1]+"\n")
01f4a9c4d0b331efdfed1bd9585e56e10c758791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/01f4a9c4d0b331efdfed1bd9585e56e10c758791/portage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 2354, 12, 26050, 16, 81, 1094, 485, 4672, 3399, 1397, 803, 33, 538, 18, 588, 11089, 1435, 3399, 2354, 33, 538, 18, 1098, 1214, 12, 4811, 1397, 803, 13, 364, 619, 316, 3399, 2354,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 2354, 12, 26050, 16, 81, 1094, 485, 4672, 3399, 1397, 803, 33, 538, 18, 588, 11089, 1435, 3399, 2354, 33, 538, 18, 1098, 1214, 12, 4811, 1397, 803, 13, 364, 619, 316, 3399, 2354,...
x = 0 y = 0 z = 0
def parseWsc( file, map ): warnings = '' count = 0 while 1: line = file.readline() if not line: break # Replace \r and \n's line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) # SECTION WORLDITEM : 17 byte if line[:17] == 'SECTION WORLDITEM': item = {} while 1: line = file.readline() if not line or len( line ) == 0 or line[0] == '}': break if line[0] == '{': continue line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) if line.find( ' ' ) == -1: continue # Space has to be in there ( key, value ) = line.split( ' ', 1 ) item[ key ] = value # Check if we can import this item serial = 'Unset' if item.has_key( 'SERIAL' ): serial = hex( int( item[ 'SERIAL' ] ) ) if not item.has_key( 'ID' ): warnings += 'Item (%s) has no ID property. Skipping.<br>' % ( serial ) continue id = int( item['ID'] ) if not item.has_key( 'X' ) or not item.has_key( 'Y' ): warnings += 'Item (Serial: %s, ID: %x) has no X or Y property. Skipping.<br>' % ( serial, id ) continue x = 0 y = 0 z = 0 if item.has_key('X'): x = int( item['X'] ) if item.has_key('Y'): y = int( item['Y'] ) if item.has_key('Z'): z = int( item['Z'] ) color = 0 if item.has_key( 'COLOR' ): color = int( item[ 'COLOR' ] ) if item.has_key( 'CONT' ) and item[ 'CONT' ] != '-1': # warnings += 'Item (Serial: %s, ID: %x) is contained in container %s. Skipping' % ( serial, id, item[ 'CONT' ] ) continue amount = 1 if item.has_key( 'AMOUNT' ): amount = int( item[ 'AMOUNT' ] ) name = '#' if item.has_key( 'NAME' ): name = item[ 'NAME' ] #print 'Item %x, Color %x, Pos %i,%i,%i<br>' % ( id, color, x, y, z ) # REMEMBER: Set them to nodecay!!! newitem = wolfpack.additem( "%x" % hex2dec( id ) ) # Generate a new serial for us if not newitem: newitem = wolfpack.newitem( 1 ) # Generate a new serial for us newitem.decay = 0 newitem.color = color newitem.id = id newitem.amount = amount if name != "#": newitem.name = name newitem.moveto( x, y, z, map ) newitem.update() count += 1 elif line[:17] == 'SECTION WORLDCHAR': warning += "Found character in import file. Importing characters is not allowed.<br>" return ( count, warnings )
31e394cf58ebbec20845e8144250830cd5c8d496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/31e394cf58ebbec20845e8144250830cd5c8d496/import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 59, 1017, 12, 585, 16, 852, 262, 30, 5599, 273, 875, 1056, 273, 374, 225, 1323, 404, 30, 980, 273, 585, 18, 896, 1369, 1435, 225, 309, 486, 980, 30, 898, 225, 468, 6910, 521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 59, 1017, 12, 585, 16, 852, 262, 30, 5599, 273, 875, 1056, 273, 374, 225, 1323, 404, 30, 980, 273, 585, 18, 896, 1369, 1435, 225, 309, 486, 980, 30, 898, 225, 468, 6910, 521, ...
op, coll, name, uuid = data op = {"add": "add", "remove":"discard"}.get (op, None) if op is not None: getattr (self._pendingNewEvents, op) (uuid) self.blockItem.markDirty()
blockItem = self.blockItem if self.haveAllAddEvents: op, coll, name, uuid = data if op == "refresh": if blockItem.find (uuid) in blockItem.contents: op = "add" else: op = "remove" if op == "add": getattr (self._pendingNewEvents, op) (uuid) elif op != "changed": self._pendingNewEvents = set() self.haveAllAddEvents = False blockItem.markDirty()
def onItemNotification(self, notificationType, data): if (notificationType == 'collectionChange'): op, coll, name, uuid = data op = {"add": "add", "remove":"discard"}.get (op, None) if op is not None: getattr (self._pendingNewEvents, op) (uuid) self.blockItem.markDirty()
d8e97b1979e294f95118bdab9d363e482d0f5cba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/d8e97b1979e294f95118bdab9d363e482d0f5cba/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 1180, 4386, 12, 2890, 16, 3851, 559, 16, 501, 4672, 309, 261, 9927, 559, 422, 296, 5548, 3043, 11, 4672, 1061, 16, 4508, 16, 508, 16, 3822, 273, 501, 1061, 273, 12528, 1289, 6877,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1180, 4386, 12, 2890, 16, 3851, 559, 16, 501, 4672, 309, 261, 9927, 559, 422, 296, 5548, 3043, 11, 4672, 1061, 16, 4508, 16, 508, 16, 3822, 273, 501, 1061, 273, 12528, 1289, 6877,...
href = 'http://www.pegasosppc.com/'
href = 'http://www.genesi-usa.com/'
def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['home'], href=makeURL( '.', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '%(ROOT)simages/englishlogo.png', width = 16, height = 10), A( 'English', href='%(BASE)s.' )]), P ( contents = [ Img( src = '%(ROOT)simages/czechlogo.png', width = 16, height = 10), A( '&#268;esky', href='%(BASE)scs/' )]), P ( contents = [ Img( src = '%(ROOT)simages/germanylogo.png', width = 16, height = 10), A( 'Deutsch', href='%(BASE)sde/' )]), P ( contents = [ Img( src = '%(ROOT)simages/greecelogo.png', width = 16, height = 10), A( '&#917;&#955;&#955;&#951;&#965;&#953;&#954;&#940;', href='%(BASE)sel/' )]), P ( contents = [ Img( src = '%(ROOT)simages/francelogo.png', width = 16, height = 10), A( 'Fran&#231;ais', href='%(BASE)sfr/' )]), P ( contents = [ Img( src = '%(ROOT)simages/italylogo.png', width = 16, height = 10), A( 'Italiano', href='%(BASE)sit/' )]), P ( contents = [ Img( src = '%(ROOT)simages/netherlandslogo.png', width = 16, height = 10), A( 'Nederlands', href='%(BASE)snl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/polandlogo.png', width = 16, height = 10), A( 'Polski', href='%(BASE)spl/' )]), P ( contents = [ Img( src = '%(ROOT)simages/portugallogo.png', width = 16, height = 10), A( 'Portugu&#234;s', href='%(BASE)spt/' )]), P ( contents = [ Img( src = '%(ROOT)simages/russialogo.png', width = 16, height = 10), A( '&#1056;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;', href='%(BASE)sru/' )]), P ( contents = [ Img( src = '%(ROOT)simages/spanishlogo.png', width = 16, height = 10), A( 'Espa&#241ol', href='%(BASE)ses/' )]), P ( contents = [ Img( src = '%(ROOT)simages/finlandlogo.png', width = 16, height = 10), A( 'Suomi', href='%(BASE)sfi/' )]), P ( contents = [ Img( src = '%(ROOT)simages/swedenlogo.png', width = 16, height = 10), A( 'Svenska', href='%(BASE)ssv/' )]) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['news'], href=makeURL( 'news/', lang ) )]), Tree ( A( _N['archive'], href=makeURL( 'news/archive/', lang ) ) ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['introduction'], href=makeURL( 'introduction/', lang ) ) ]), Tree \ ( [ A( _N['status'], href=makeURL('introduction/status/everything', lang ) ), A( _N['screenshots'], href=makeURL( 'pictures/screenshots/', lang) ), A( _N['ports'], href=makeURL( 'introduction/ports', lang ) ), A( _N['license'], href='%(BASE)slicense.html' ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['download'], href=makeURL( 'download', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['documentation'] ]), Tree \ ( [ A( _N['users'], href=makeURL( 'documentation/users/', lang ) ), Tree \ ( [ A( _N['installation'], href=makeURL( 'documentation/users/installation', lang ) ), A( _N['using'], href=makeURL( 'documentation/users/using', lang ) ), A( _N['shell'], href=makeURL( 'documentation/users/shell/index', lang ) ), A( _N['applications'], href=makeURL( 'documentation/users/applications/index', lang ) ), A( _N['faq'], href=makeURL( 'documentation/users/faq', lang ) ), #_N['ports'], #A( _N['links'], href=makeURL( 'documentation/users/links', lang ) ) ] ), A( _N['developers'], href=makeURL( 'documentation/developers/index', lang ) ), Tree \ ( [ A( _N['contribute'], href=makeURL( 'documentation/developers/contribute', lang ) ), A( _N['roadmap'], href=makeURL( 'documentation/developers/roadmap', lang ) ), A( _N['bug-tracker'], href='http://sourceforge.net/tracker/?atid=439463&group_id=43586&func=browse' ), A( _N['working-with-subversion'], href=makeURL( 'documentation/developers/svn', lang ) ), A( _N['compiling'], href=makeURL( 'documentation/developers/compiling', lang ) ), A( _N['application-development-manual'], href=makeURL( 'documentation/developers/app-dev/index', lang ) ), A( _N['zune-application-development-manual'], href=makeURL( 'documentation/developers/zune-dev/index', lang ) ), A( _N['system-development-manual'], href=makeURL( 'documentation/developers/sys-dev/index', lang ) ), A( _N['debugging-manual'], href=makeURL( 'documentation/developers/debugging', lang ) ), A( _N['reference'], href=makeURL( 'documentation/developers/autodocs/index', lang ) ), A( _N['specifications'], href=makeURL( 'documentation/developers/specifications/', lang ) ), A( _N['ui-style-guide'], href=makeURL( 'documentation/developers/ui', lang ) ), A( _N['documenting'], href=makeURL( 'documentation/developers/documenting', lang ) ), A( _N['porting'], href=makeURL( 'documentation/developers/porting', lang ) ), A( _N['translating'], href=makeURL( 'documentation/developers/translating', lang ) ), A( _N['summaries'], href=makeURL( 'documentation/developers/summaries/', lang ) ), A( _N['links'], href=makeURL( 'documentation/developers/links', lang ) ) ] ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['contact'], href=makeURL( 'contact', lang ) )]), Tree \ ( [ A( _N['mailing-lists'], href=makeURL( 'contact', lang, 'mailing-lists' ) ), #A( _N['forums'], href=makeURL( 'contact', lang, 'forums' ) ), A( _N['irc-channels'], href=makeURL( 'contact', lang, 'irc-channels' ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['credits'], href=makeURL( 'credits', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['acknowledgements'], href=makeURL( 'acknowledgements', lang ) )]), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), _N['pictures']]), Tree \ ( [ A( _N['developers'], href=makeURL( 'pictures/developers/', lang ) ), A( _N['developers-together'], href=makeURL( 'pictures/developers-together/', lang ) ) ] ), BR(), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['sponsors'], href=makeURL( 'sponsors', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['linking'], href=makeURL( 'linking', lang ) )]), P ( contents = [ Img( src = '%(ROOT)simages/pointer.png' ), A( _N['links'], href=makeURL( 'links', lang ) )]) ] ) counter = Img( src = 'http://www.hepe.com/cgi-bin/wwwcount.cgi?df=aros.dat&dd=E&ft=0' ) sponsors = Table\ ( cellspacing = 5, cellpadding = 0, contents = [ TR ( TD ( A ( Img( src = '%(ROOT)simages/trustec-small.png', border = 0 ), href = 'http://www.trustsec.de/' ) ) ), TR ( TD ( A ( Img( src = '%(ROOT)simages/genesi-small.gif', border = 0 ), href = 'http://www.pegasosppc.com/' ) ) ), TR ( TD ( A \ ( Img \ ( src = 'http://sflogo.sourceforge.net/sflogo.php?group_id=43586&type=10', width = 88, height = 16, border = 0, alt = 'Get AROS Research Operating System at SourceForge.net. ' 'Fast, secure and Free Open Source software downloads' ), href = 'http://sourceforge.net/projects/aros/' ) ) ) ] ) bar = Table( border = 0, cellpadding = 2, cellspacing = 2, width = 171, valign = 'top', contents = [ TR( valign = 'top', contents = [ TD( rowspan = 8, width=15 ), TD() ] ), TR( valign = 'top', contents = TD( navigation ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = counter ) ), TR( TD(), height=15 ), TR( valign = 'top', contents = TD( align = 'center', contents = sponsors ) ), TR( TD(), height=30 ), TR \ ( valign = 'top', contents = TD \ ( align = 'center', contents = A \ ( Img \ ( src = '%(ROOT)simages/noeupatents-small.png', border = 0 ), href = 'http://stopsoftwarepatents.eu/' ) ) ) ] ) statsPHP = ''' <?php //define("_BBC_PAGE_NAME", "my page title"); define("_BBCLONE_DIR", "%(ROOT)smybbclone/"); define("COUNTER", _BBCLONE_DIR."index.php"); if (file_exists(COUNTER)) include_once(COUNTER); ?> ''' statsPHP2 = ''' <?php echo date("m.d.y"); ?> ''' statsPHP3 = ''' <?php echo "<map name=\\"map\\">"; echo "<area shape=\\"rect\\" coords=\\"25,78,85,95\\" alt=\\"http://www.aros.org\\" href=\\"http://www.aros.org\\">"; echo "<area shape=\\"rect\\" coords=\\"100,78,168,95\\" alt=\\"AROS-Exec\\" href=\\"http://www.aros-exec.org\\">"; echo "<area shape=\\"rect\\" coords=\\"180,78,240,95\\" alt=\\"AROS-Exec Archives\\" href=\\"http://archives.aros-exec.org\\">"; echo "<area shape=\\"rect\\" coords=\\"260,78,350,95\\" alt=\\"Power2People\\" href=\\"http://www.power2people.org\\">"; echo "</map>"; ?> ''' statsPHP4 = ''' <?php echo "<table width=\\"100%%\\"><tr><td>"; echo "<div style=\\"text-align: right;\\">"; echo "<font color=\\"#aaaaaa\\">"; ?> ''' statsPHP6 = ''' <?php echo "</font></div>"; echo "</p></tr></td></table>"; ?> ''' statsPHP5= ''' <?php include( '%(ROOT)srsfeed/browserdetect.php'); $win_ie56 = (browser_detection('browser') == 'ie' ) && (browser_detection('number') >= 5 ) && (browser_detection('number') < 7 ); if ($win_ie56) { echo \"<img src=\\"/images/kittymascot.gif\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.gif\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } else { echo \"<img src=\\"/images/kittymascot.png\\" style=\\"float:right\\" border=\\"0\\"></img><img src=\\"/images/toplogomenu.png\\" border=\\"0\\" usemap=\\"#map\\"></img>"; } ?> ''' page = HTML( [ Head( [ Charset( charset ), Title( 'AROS Research Operating System' ), Link( href = '%(ROOT)saros.css', type = 'text/css', rel = 'stylesheet' ), Meta( name = 'keywords', content = 'AROS, OS, operating system, research, open source, portage' ) ] ), Body( style = 'margin: 0px;', bgcolor = '#ffffff', contents = [ statsPHP3, Table( border = 0, cellspacing = 0, cellpadding = 0, width = '100%%', contents = [ TR( [ TD( halign = 'top', width = '100%%', height = 109, background='%(ROOT)simages/backgroundtop.png' ,rowspan = 4, contents = statsPHP5)
5ef18979fda0361031978311951e5818b19dcb92 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4747/5ef18979fda0361031978311951e5818b19dcb92/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1964, 12, 389, 56, 16, 389, 50, 16, 389, 49, 16, 490, 7937, 2784, 55, 67, 4883, 16, 3303, 16, 4856, 262, 30, 10394, 273, 4902, 521, 261, 306, 453, 261, 2939, 273, 306, 2221, ...
exts.append(kde_kwallet_module)
win32_crypto_module = Extension('win32_crypto', libraries = ['crypt32'], sources = ['keyring/backends/win32_crypto.c'],) exts.append(win32_crypto_module)
def build_extensions(self): exts = [] self.extensions = exts platform = self.get_platform()
b7833302c61c609bff809dc94f1a484787560106 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5209/b7833302c61c609bff809dc94f1a484787560106/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 12, 2890, 4672, 20793, 273, 5378, 365, 18, 9489, 273, 20793, 4072, 273, 365, 18, 588, 67, 9898, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 9489, 12, 2890, 4672, 20793, 273, 5378, 365, 18, 9489, 273, 20793, 4072, 273, 365, 18, 588, 67, 9898, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
replacement_word = h;
replacement_word = trim(h);
def javascript(): s = r"""
81dc5f988fe5a88dd1a6e92466f139e7857baeb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/81dc5f988fe5a88dd1a6e92466f139e7857baeb8/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return ks.handler.packages.instLange
if hasattr(ks.handler.packages, "instLangs"): return ks.handler.packages.instLangs return ""
def inst_langs(ks): return ks.handler.packages.instLange
3b638f774797d476793f692371492818b6f9bff7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9342/3b638f774797d476793f692371492818b6f9bff7/kickstart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1804, 67, 4936, 87, 12, 7904, 4672, 309, 3859, 12, 7904, 18, 4176, 18, 10308, 16, 315, 8591, 7275, 87, 6, 4672, 327, 11654, 18, 4176, 18, 10308, 18, 8591, 7275, 87, 327, 1408, 225, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1804, 67, 4936, 87, 12, 7904, 4672, 309, 3859, 12, 7904, 18, 4176, 18, 10308, 16, 315, 8591, 7275, 87, 6, 4672, 327, 11654, 18, 4176, 18, 10308, 18, 8591, 7275, 87, 327, 1408, 225, 2...
if 1: test() else: import IsolatedDebugger dc = IsolatedDebugger.DebuggerController() id = dc.createServer() conn = IsolatedDebugger.DebuggerConnection(dc, id) conn.run('test()', globals(), locals()) for n in range(3):
if 1: test() else: import IsolatedDebugger dc = IsolatedDebugger.DebuggerController() id = dc.createServer() conn = IsolatedDebugger.DebuggerConnection(dc, id) conn.run('test()', globals(), locals()) for n in range(3): print conn.getInteractionUpdate() conn.set_step_over() for n in range(6): print conn.getInteractionUpdate() conn.set_step()
def test(): print 'Hello' print 'World!' for n in range(1000): pass print 'Message:' test1() print 'Bye.' raise 'I refuse to finish!' print 'yeah.'
aabc0304dba9a4b2f0bfa086660e9ba45eaf8af0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aabc0304dba9a4b2f0bfa086660e9ba45eaf8af0/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1172, 296, 18601, 11, 1172, 296, 18071, 5124, 364, 290, 316, 1048, 12, 18088, 4672, 1342, 1172, 296, 1079, 2497, 1842, 21, 1435, 1172, 296, 858, 73, 1093, 1002, 296, 45, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 13332, 1172, 296, 18601, 11, 1172, 296, 18071, 5124, 364, 290, 316, 1048, 12, 18088, 4672, 1342, 1172, 296, 1079, 2497, 1842, 21, 1435, 1172, 296, 858, 73, 1093, 1002, 296, 45, 127...
for partId in partPackages: packages = partPackages[partId] if searchId in packages: relevantParts.append(partId) relevantPackages.extend(packages[:packages.index(searchId)])
for part in parts.values(): pkges = part.packages if searchId in pkges: relevantParts.append(part.name) relevantPackages.extend(pkges[:pkges.index(searchId)])
def _getPreviousCommonPackage(self, searchId, partPackages, packageUsers): relevantParts = [] relevantPackages = []
b1dd5c93f0d75604db233288a90b120bcf0450ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/b1dd5c93f0d75604db233288a90b120bcf0450ed/PartBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 8351, 6517, 2261, 12, 2890, 16, 1623, 548, 16, 1087, 11425, 16, 2181, 6588, 4672, 9368, 4305, 273, 5378, 9368, 11425, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 8351, 6517, 2261, 12, 2890, 16, 1623, 548, 16, 1087, 11425, 16, 2181, 6588, 4672, 9368, 4305, 273, 5378, 9368, 11425, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -1...
CleanerML.load_cleaners()
bleachbit.CleanerML.load_cleaners()
def __init__(self): import bleachbit.RecognizeCleanerML RecognizeCleanerML.RecognizeCleanerML() import bleachbit.CleanerML CleanerML.load_cleaners() self.create_window() gobject.threads_init() if options.get("first_start") and sys.platform == 'linux2': pref = PreferencesDialog(self.window, self.cb_refresh_operations) pref.run() options.set('first_start', False) if online_update_notification_enabled and options.get("check_online_updates"): self.check_online_updates()
172134923f18cf7e444d183a0a73ebddceee0fa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/172134923f18cf7e444d183a0a73ebddceee0fa3/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1930, 24706, 497, 3682, 18, 22931, 554, 7605, 264, 1495, 7776, 4198, 554, 7605, 264, 1495, 18, 22931, 554, 7605, 264, 1495, 1435, 1930, 24706, 497, 3682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1930, 24706, 497, 3682, 18, 22931, 554, 7605, 264, 1495, 7776, 4198, 554, 7605, 264, 1495, 18, 22931, 554, 7605, 264, 1495, 1435, 1930, 24706, 497, 3682, ...
cal.__parent__ = Person(title="Da Boss")
person = Person(title="Da Boss") setPath(person, '/persons/boss') cal.__parent__ = person
def test_render(self): from schooltool.browser.cal import MonthlyCalendarView from schooltool.cal import CalendarEvent, Calendar from schooltool.model import Person
f47e0727e3f4b5a0dfa15b230f0922687a6f68cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/f47e0727e3f4b5a0dfa15b230f0922687a6f68cd/test_cal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5902, 12, 2890, 4672, 628, 18551, 1371, 6738, 18, 11213, 18, 771, 1930, 10337, 715, 7335, 1767, 628, 18551, 1371, 6738, 18, 771, 1930, 5542, 1133, 16, 5542, 628, 18551, 1371, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 12, 2890, 4672, 628, 18551, 1371, 6738, 18, 11213, 18, 771, 1930, 10337, 715, 7335, 1767, 628, 18551, 1371, 6738, 18, 771, 1930, 5542, 1133, 16, 5542, 628, 18551, 1371, 6...
for idx in range(bnd_descr.NumberOfModuleForwarderRefs):
for idx in xrange(bnd_descr.NumberOfModuleForwarderRefs):
def parse_directory_bound_imports(self, rva, size): """""" bnd_descr = Structure(self.__IMAGE_BOUND_IMPORT_DESCRIPTOR_format__) bnd_descr_size = bnd_descr.sizeof() start = rva bound_imports = [] while True:
21cbdaf9ea57ad8ceb3b39cbd606211597c127d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/213/21cbdaf9ea57ad8ceb3b39cbd606211597c127d9/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 5149, 67, 3653, 67, 21350, 12, 2890, 16, 5633, 69, 16, 963, 4672, 3536, 8395, 225, 324, 4880, 67, 28313, 273, 13348, 12, 2890, 16186, 13603, 67, 19318, 67, 20445, 67, 1639, 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, 1109, 67, 5149, 67, 3653, 67, 21350, 12, 2890, 16, 5633, 69, 16, 963, 4672, 3536, 8395, 225, 324, 4880, 67, 28313, 273, 13348, 12, 2890, 16186, 13603, 67, 19318, 67, 20445, 67, 1639, 2...
pass
continue try: if (flags & poll.POLLIN): obj.handle_read_event() if (flags & poll.POLLOUT): obj.handle_write_event() except ExitNow: raise ExitNow except: obj.handle_error()
def poll2 (timeout=0.0, map=None): import poll if map is None: map=socket_map if timeout is not None: # timeout is in milliseconds timeout = int(timeout*1000) if map: l = [] for fd, obj in map.items(): flags = 0 if obj.readable(): flags = poll.POLLIN if obj.writable(): flags = flags | poll.POLLOUT if flags: l.append ((fd, flags)) r = poll.poll (l, timeout) for fd, flags in r: try: obj = map[fd] try: if (flags & poll.POLLIN): obj.handle_read_event() if (flags & poll.POLLOUT): obj.handle_write_event() except ExitNow: raise ExitNow except: obj.handle_error() except KeyError: pass
6ec9a36faf1d29062539bc654358e730395c377e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6ec9a36faf1d29062539bc654358e730395c377e/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 261, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 1930, 7672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 309, 2021, 353, 486, 599, 30, 468, 2021, 353, 316, 10993, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 22, 261, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 1930, 7672, 309, 852, 353, 599, 30, 852, 33, 7814, 67, 1458, 309, 2021, 353, 486, 599, 30, 468, 2021, 353, 316, 10993, ...
return [_User(self, userid=rawuser['id'], real_name=rawuser['real_name'], email=rawuser['email'], name=rawuser['name'], can_login=rawuser['can_login'])
return [_User(self, userid=rawuser['id'], name=rawuser['name'], real_name=rawuser.get('real_name', ''), email=rawuser.get('email', rawuser['name']), can_login=rawuser.get('can_login', False))
def searchusers(self, pattern): '''Return a bugzilla User for the given list of patterns
28e9be667eab00f94e7d6720a359970f21848175 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5050/28e9be667eab00f94e7d6720a359970f21848175/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 5577, 12, 2890, 16, 1936, 4672, 9163, 990, 279, 7934, 15990, 2177, 364, 326, 864, 666, 434, 6884, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 5577, 12, 2890, 16, 1936, 4672, 9163, 990, 279, 7934, 15990, 2177, 364, 326, 864, 666, 434, 6884, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.pkg_data = neon_stats[0]
self.pkg_data = copy.deepcopy(neon_stats[0])
def CheckpkgTest(self): self.pkg_data = neon_stats[0] self.pkg_data["pkgmap"].append({ "class": "none", "type": "f", "line": "", "user": "root", "group": "bin", "mode": '0755', "path": "/opt/csw/share/doc/alien/random_file", })
21125b0b6f9fe81882a7200666d079dd9c091766 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3137/21125b0b6f9fe81882a7200666d079dd9c091766/package_checks_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 10657, 4709, 12, 2890, 4672, 365, 18, 10657, 67, 892, 273, 1610, 18, 16589, 3530, 12, 4644, 265, 67, 5296, 63, 20, 5717, 365, 18, 10657, 67, 892, 9614, 10657, 1458, 6, 8009, 6923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 10657, 4709, 12, 2890, 4672, 365, 18, 10657, 67, 892, 273, 1610, 18, 16589, 3530, 12, 4644, 265, 67, 5296, 63, 20, 5717, 365, 18, 10657, 67, 892, 9614, 10657, 1458, 6, 8009, 6923...
self.quick_error("Your Audioscrobbler login data is incorrect, so you must re-enter it before any songs will be submitted.\n\nThis message will not be shown again.")
self.quick_dialog("Your Audioscrobbler login data is incorrect, so you must re-enter it before any songs will be submitted.\n\nThis message will not be shown again.", gtk.MESSAGE_ERROR)
def submit_song_helper(self): enabled = getattr(self, 'PMEnFlag', False) if enabled and self.disabled: print "Plugin re-enabled - accepting new songs." self.disabled = False if self.submission_tid != -1: gobject.source_remove(self.submission_tid); self.submission_tid = -1 elif not enabled and not self.disabled: #if we've already printed print "Plugin disabled - not accepting any new songs." self.disabled = True if len(self.queue) > 0: self.submission_tid = gobject.timeout_add(120 * 1000, self.submit_song_helper) print "Attempts will continue to submit the last %d songs." % len(self.queue)
2370bf2e3faa6a570880e6644b18436a90e05433 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/2370bf2e3faa6a570880e6644b18436a90e05433/qlscrobbler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 67, 816, 75, 67, 4759, 12, 2890, 4672, 3696, 273, 3869, 12, 2890, 16, 296, 12728, 664, 4678, 2187, 1083, 13, 309, 3696, 471, 365, 18, 9278, 30, 1172, 315, 3773, 283, 17, 5745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 67, 816, 75, 67, 4759, 12, 2890, 4672, 3696, 273, 3869, 12, 2890, 16, 296, 12728, 664, 4678, 2187, 1083, 13, 309, 3696, 471, 365, 18, 9278, 30, 1172, 315, 3773, 283, 17, 5745, ...
entry['link'] = unQuoteReQuote( entry['enclosures'][0]['href'] )
entry['link']=unQuoteReQuote(entry['enclosures'][0]['href'])
def rssparse(tName): u"""loops through the rss feed, searching for downloadable files""" page = None try: page = downloader(getConfig()['threads'][tName]['link']) except (urllib2.HTTPError, urllib2.URLError, httplib.HTTPException, ), m: logging.critical( unicodeC(m) + os.linesep + u'error grabbing url %s' % getConfig()['threads'][tName]['link'] ) return None if not page: logging.critical( u"failed to grab url %s" % getConfig()['threads'][tName]['link']) return None pr = page.read() try: ppage = feedparser.parse(pr) except Exception, m: # feedparser does not seem to throw exceptions properly, is a dictionary of some kind logging.critical( unicodeC(m) + os.linesep + u"page grabbed was not a parseable rss feed") return None if 'ttl' in ppage['feed'] and ppage['feed']['ttl'] != '' and not ( getConfig()['threads'][tName]['scanMins'] > int(ppage['feed']['ttl'])): logging.debug(u"setting ttl") getSaved().minScanTime[tName] = (time.time(), int(ppage['feed']['ttl'])) elif getConfig()['threads'][tName]['scanMins']: getSaved().minScanTime[tName] = (time.time(), getConfig()['threads'][tName]['scanMins'] ) if getConfig()['threads'][tName]['noSave']: for entry in ppage['entries']: if ( 'enclosures' in entry and len(entry['enclosures']) and 'href' in entry['enclosures'][0] #and not getConfig()['threads'][tName]['preferLink'] # proposed configuration option ): entry['link'] = unQuoteReQuote( entry['enclosures'][0]['href'] ) else: entry['link'] = unQuoteReQuote( entry['link'] ) getSaved().downloads.append(entry['link']) else: for i in range(len(ppage['entries'])): # deals with feedparser bug with not properly uri unquoting/xml unescaping links from some feeds ppage['entries'][i]['oldlink'] = ppage['entries'][i]['link'] if ( 'enclosures' in ppage['entries'][i] and len(ppage['entries'][i]['enclosures']) and 'href' in ppage['entries'][i]['enclosures'][0] #and not getConfig()['threads'][tName]['preferLink'] # proposed configuration option ): ppage['entries'][i]['link'] = unQuoteReQuote( ppage['entries'][i]['enclosures'][0]['href'] ) else: ppage['entries'][i]['link'] = unQuoteReQuote( ppage['entries'][i]['link'] ) #if we have downloaded before, just skip (but what about e.g. multiple rips of about same size/type we might download multiple times) if ppage['entries'][i]['link'] in getSaved().downloads: logging.debug(u"already downloaded %s" % ppage['entries'][i]['link']) continue # if it failed before, no reason to believe it will work now, plus it's already queued up if searchFailed( ppage['entries'][i]['link'] ): logging.debug(u"link was in failedDown") continue dirDict = checkRegEx(tName, ppage['entries'][i]) if not dirDict: continue userFunctArgs = downloadFile(ppage['entries'][i]['link'], tName, ppage['entries'][i], dirDict) if userFunctArgs == None: continue # size was inappropriate == None elif userFunctArgs == False: # was supposed to download, but failed logging.debug(u"adding to failedDown: %s" % ppage['entries'][i]['link'] ) getSaved().failedDown.append( FailedItem(ppage['entries'][i]['link'], tName, ppage['entries'][i], dirDict) ) elif userFunctArgs: # should have succeeded logging.debug(u"adding to saved downloads: %s" % ppage['entries'][i]['link'] ) getSaved().downloads.append( ppage['entries'][i]['link'] ) if isinstance(dirDict, DownloadItemConfig) and dirDict['Function']: callUserFunction( dirDict['Function'], *userFunctArgs ) elif getConfig()['threads'][tName]['postDownloadFunction']: callUserFunction( getConfig()['threads'][tName]['postDownloadFunction'], *userFunctArgs ) if getConfig()['threads'][tName]['postScanFunction']: callUserFunction( getConfig()['threads'][tName]['postScanFunction'], pr, ppage, page.geturl(), tName )
aa11d3f8fe168518d7313c399977dafe31dfa605 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/aa11d3f8fe168518d7313c399977dafe31dfa605/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18817, 2670, 12, 88, 461, 4672, 582, 8395, 383, 4473, 3059, 326, 18817, 4746, 16, 15300, 364, 4224, 429, 1390, 8395, 1363, 273, 599, 775, 30, 1363, 273, 28122, 12, 588, 809, 1435, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18817, 2670, 12, 88, 461, 4672, 582, 8395, 383, 4473, 3059, 326, 18817, 4746, 16, 15300, 364, 4224, 429, 1390, 8395, 1363, 273, 599, 775, 30, 1363, 273, 28122, 12, 588, 809, 1435, 3292, ...
self.initialize(1)
self.initialize(True)
def loadFromXML(self, template): self.initialize(1) self.OutfitName.clear() racename = '' classname = '' self.outfitlist = [] self.outfitnumbering = 1 self.currentOutfit = 0 self.itemnumbering = 1 itemdefault = self.itemattrlist.copy() for child in template.childNodes: if child.nodeType == Node.TEXT_NODE: continue if child.tagName == 'Name': self.CharName.setText(XMLHelper.getText(child.childNodes)) elif child.tagName == 'Class': self.charclass = XMLHelper.getText(child.childNodes) elif child.tagName == 'Race': racename = XMLHelper.getText(child.childNodes) elif child.tagName == 'Realm': self.realm = XMLHelper.getText(child.childNodes) elif child.tagName == 'Level': self.CharLevel.setText(XMLHelper.getText(child.childNodes)) elif child.tagName == 'Notes': self.noteText = XMLHelper.getText(child.childNodes) elif child.tagName == 'SCItem': newItem = Item(realm=self.realm) newItem.loadFromXML(child,str(self.itemnumbering)) if newItem.TemplateIndex == -1: newItem.TemplateIndex = self.itemIndex self.itemIndex += 1 else: self.itemIndex = max(newItem.TemplateIndex + 1, self.itemIndex) if newItem.next: if newItem.next.TemplateIndex == -1: newItem.next.TemplateIndex = self.itemIndex self.itemIndex += 1 else: self.itemIndex = max(newItem.next.TemplateIndex + 1, self.itemIndex)
cdc9cf773cf0c254cf668f14ba48aa9d538724e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6671/cdc9cf773cf0c254cf668f14ba48aa9d538724e6/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24935, 4201, 12, 2890, 16, 1542, 4672, 365, 18, 11160, 12, 5510, 13, 365, 18, 1182, 7216, 461, 18, 8507, 1435, 767, 71, 1069, 273, 875, 7479, 273, 875, 365, 18, 659, 7216, 1098, 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, 24935, 4201, 12, 2890, 16, 1542, 4672, 365, 18, 11160, 12, 5510, 13, 365, 18, 1182, 7216, 461, 18, 8507, 1435, 767, 71, 1069, 273, 875, 7479, 273, 875, 365, 18, 659, 7216, 1098, 273, ...
meta = '\n <meta name="aesop" content="%s">'
meta = '<meta name="aesop" content="%s">\n ' % self.aesop_type
def get_header(self): s = HEAD % self.variables if self.uplink: if self.uptitle: link = ('<link rel="up" href="%s" title="%s">' % (self.uplink, self.uptitle)) else: link = '<link rel="up" href="%s">' % self.uplink repl = " %s\n</head>" % link s = s.replace("</head>", repl, 1) if self.aesop_type: meta = '\n <meta name="aesop" content="%s">' # Insert this in the middle of the head that's been # generated so far, keeping <meta> and <link> elements in # neat groups: s = s.replace("<link ", meta + "<link ", 1) return s
33411ce685a5a992dd895ae9f82908e38a9aa11d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/33411ce685a5a992dd895ae9f82908e38a9aa11d/support.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3374, 12, 2890, 4672, 272, 273, 14792, 738, 365, 18, 7528, 309, 365, 18, 89, 20157, 30, 309, 365, 18, 3648, 1280, 30, 1692, 273, 7707, 32, 1232, 1279, 1546, 416, 6, 3897, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3374, 12, 2890, 4672, 272, 273, 14792, 738, 365, 18, 7528, 309, 365, 18, 89, 20157, 30, 309, 365, 18, 3648, 1280, 30, 1692, 273, 7707, 32, 1232, 1279, 1546, 416, 6, 3897, 11...
self.attrShapeCombo = OWGUI.comboBox(self.GeneralTab, self, "attrShape", "Shape", callback = self.updateGraph, sendSelectedValue=1, valueType = str, emptyString = "(Same shape)")
self.attrShapeCombo = OWGUI.comboBox(box, self, "attrShape", label = "Point shape:", callback = self.updateGraph, sendSelectedValue=1, valueType = str, emptyString = "(Same shape)", indent = 10)
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Scatter Plot", TRUE)
067282b63a653595095eebe32ec342b08f0f88b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/067282b63a653595095eebe32ec342b08f0f88b0/OWScatterPlot.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, 1541, 9293, 15211, 3113, 5383, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1541, 9293, 15211, 3113, 5383, ...
``$SAGE_ROOT/devel/sage/``.
``$SAGE_ROOT/devel/sage/``. In the command-line interface, each line of the results has the form ``filename:num:line of code``, where ``num`` is the line number in ``filename`` and ``line of code`` is the line that matched your search terms.
def search_src(string, extra1='', extra2='', extra3='', extra4='', extra5='', interact=True, path_re='', module='sage'): r""" Search Sage library source code for lines containing ``string``. The search is not case sensitive. INPUT: - ``string`` - a string to find in the Sage source code. - ``extra1``, ..., ``extra5`` - additional strings to require when searching. Lines must match all of these, as well as ``string``. - ``interact`` (optional, default ``True``) - if ``False``, return a string with all the matches. Otherwise, this function returns ``None``, and the results are displayed appropriately, according to whether you are using the notebook or the command-line interface. You should not ordinarily need to use this. - ``path_re`` (optional, default '') - regular expression which the filename (including the path) must match. - ``module`` (optional, default 'sage') - the module in which to search. The default is 'sage', the entire Sage library. If ``module`` doesn't start with "sage", then the links in the notebook output may not function. The file paths in the output are relative to ``$SAGE_ROOT/devel/sage/``. The ``string`` and ``extraN`` arguments are treated as regular expressions, as is ``path_re``, and errors will be raised if they are invalid. The matches will always be case-insensitive. .. note:: The ``extraN`` parameters are present only because ``search_src(string, *extras, interact=False)`` is not parsed correctly by Python 2.6; see http://bugs.python.org/issue1909. EXAMPLES: First note that without using ``interact=False``, this function produces no output, while with ``interact=False``, the output is a string. These examples almost all use this option. You can search for "matrix" by typing ``search_src("matrix")``. This particular search will produce many results:: sage: len(search_src("matrix", interact=False).splitlines()) # random # long time 9522 You can restrict to the Sage calculus code with ``search_src("matrix", module="sage.calculus")``, and this produces many fewer results:: sage: len(search_src("matrix", module="sage.calculus", interact=False).splitlines()) # random 26 Note that you can do tab completion on the ``module`` string. Another way to accomplish a similar search:: sage: len(search_src("matrix", path_re="calc", interact=False).splitlines()) # random 26 The following produces an error because the string 'fetch(' is a malformed regular expression:: sage: print search_src(" fetch(", "def", interact=False) Traceback (most recent call last): ... error: unbalanced parenthesis To fix this, *escape* the parenthesis with a backslash:: sage: print search_src(" fetch\(", "def", interact=False) # random # long time matrix/matrix0.pyx: cdef fetch(self, key): matrix/matrix0.pxd: cdef fetch(self, key) sage: print search_src(" fetch\(", "def", "pyx", interact=False) # random # long time matrix/matrix0.pyx: cdef fetch(self, key): A little recursive narcissism: let's do a doctest that searches for this function's doctests. Note that you can't put "sage:" in the doctest string because it will get replaced by the Python ">>>" prompt. :: sage: print search_src('^ *sage[:] .*search_src\(', interact=False) # long time misc/sagedoc.py: ... print search_src(" fetch(", "def", interact=False) misc/sagedoc.py: ... print search_src(" fetch\(", "def", interact=False) # random # long time misc/sagedoc.py: ... print search_src(" fetch\(", "def", "pyx", interact=False) # random # long time misc/sagedoc.py: ... print search_src('^ *sage[:] .*search_src\(', interact=False) # long time misc/sagedoc.py: ... len(search_src("matrix", interact=False).splitlines()) > 9000 # long time misc/sagedoc.py: ... print search_src('matrix', 'column', 'row', 'sub', 'start', 'index', interact=False) # random # long time TESTS: As of this writing, there are about 9500 lines in the Sage library that contain "matrix"; it seems safe to assume we'll continue to have over 9000 such lines:: sage: len(search_src("matrix", interact=False).splitlines()) > 9000 # long time True Check that you can pass 5 parameters:: sage: print search_src('matrix', 'column', 'row', 'sub', 'start', 'index', interact=False) # random # long time matrix/matrix0.pyx:598: Get The 2 x 2 submatrix of M, starting at row index and column matrix/matrix0.pyx:607: Get the 2 x 3 submatrix of M starting at row index and column index matrix/matrix0.pyx:924: Set the 2 x 2 submatrix of M, starting at row index and column matrix/matrix0.pyx:933: Set the 2 x 3 submatrix of M starting at row index and column """ return _search_src_or_doc('src', string, extra1=extra1, extra2=extra2, extra3=extra3, extra4=extra4, extra5=extra5, interact=interact, path_re=path_re, module=module)
5e7b167c4801a7e6d8f8bbd7c6c716de90f78d85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/5e7b167c4801a7e6d8f8bbd7c6c716de90f78d85/sagedoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4816, 12, 1080, 16, 2870, 21, 2218, 2187, 2870, 22, 2218, 2187, 2870, 23, 2218, 2187, 2870, 24, 2218, 2187, 2870, 25, 2218, 2187, 16592, 33, 5510, 16, 589, 67, 266, 2218, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4816, 12, 1080, 16, 2870, 21, 2218, 2187, 2870, 22, 2218, 2187, 2870, 23, 2218, 2187, 2870, 24, 2218, 2187, 2870, 25, 2218, 2187, 16592, 33, 5510, 16, 589, 67, 266, 2218, 218...
writestr += fix_capitals(expanded)
writestr += expanded
def process_str(allstr): newstr = allstr.lower() writestr = _head struct = parse_structure(newstr) # return a (sorted) list of tuples for each function or subroutine # each tuple is the start and end of a subroutine or function to be expanded oldend = 0 for sub in struct: writestr += fix_capitals(newstr[oldend:sub[0]]) expanded = expand_sub(newstr[sub[0]:sub[1]],get_line_header(newstr,sub[0])) writestr += fix_capitals(expanded) oldend = sub[1] writestr += fix_capitals(newstr[oldend:]) return writestr
f42b743431beed95b0b354e091133b66aecd50f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/f42b743431beed95b0b354e091133b66aecd50f0/from_template.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 701, 12, 454, 701, 4672, 394, 701, 273, 777, 701, 18, 8167, 1435, 7262, 313, 273, 389, 1978, 225, 1958, 273, 1109, 67, 7627, 12, 2704, 701, 13, 468, 225, 327, 279, 261, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 701, 12, 454, 701, 4672, 394, 701, 273, 777, 701, 18, 8167, 1435, 7262, 313, 273, 389, 1978, 225, 1958, 273, 1109, 67, 7627, 12, 2704, 701, 13, 468, 225, 327, 279, 261, 103...
if not mod.certificate:
if not mod.certificateor or not mod.certificate.isdigit():
def check(self, cr, uid, ids, context=None): logger = netsvc.Logger() for mod in self.browse(cr, uid, ids, context=context): if not mod.description: logger.notifyChannel("init", netsvc.LOG_WARNING, 'module %s: description is empty !' % (mod.name,))
744ed56871c23e41760a35f36f4424bb374253b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/744ed56871c23e41760a35f36f4424bb374253b1/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 364, 681, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 364, 681, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33...
if runner is not None: default_builder.runner = getattr(default_builder, runner)
def setup(builder=None, default=None, runner=None, **kwargs): """ Setup the default Builder (or an instance of given builder if "builder" is not None) with the same keyword arguments as for Builder(). Also: "default" is the name of the default function to run when the build script is run with no command line arguments. "runner" is None to use the default smart runner, otherwise the name of the runner function to use, for example 'always_runner'. """ global default_builder, default_command if builder is not None: default_builder = builder() if default is not None: default_command = default default_builder.__init__(**kwargs) if runner is not None: default_builder.runner = getattr(default_builder, runner)
35a4c940cd25ac86249d9109056febf30a36afd7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7381/35a4c940cd25ac86249d9109056febf30a36afd7/fabricate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 9574, 33, 7036, 16, 805, 33, 7036, 16, 8419, 33, 7036, 16, 2826, 4333, 4672, 3536, 10939, 326, 805, 5008, 261, 280, 392, 791, 434, 864, 2089, 309, 315, 9574, 6, 353, 486, 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, 3875, 12, 9574, 33, 7036, 16, 805, 33, 7036, 16, 8419, 33, 7036, 16, 2826, 4333, 4672, 3536, 10939, 326, 805, 5008, 261, 280, 392, 791, 434, 864, 2089, 309, 315, 9574, 6, 353, 486, 5...
"""
r"""
def FuzzyBallGraph(self, partition, q): """ Construct a Fuzzy Ball graph with the integer partition ``partition`` and ``q`` extra vertices.
bc77de9d8a98331408f7c80e4369cfcbc2896fa2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/bc77de9d8a98331408f7c80e4369cfcbc2896fa2/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 13903, 38, 454, 4137, 12, 2890, 16, 3590, 16, 1043, 4672, 436, 8395, 14291, 279, 478, 13903, 605, 454, 2667, 598, 326, 3571, 3590, 12176, 10534, 10335, 471, 12176, 85, 10335, 2870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 478, 13903, 38, 454, 4137, 12, 2890, 16, 3590, 16, 1043, 4672, 436, 8395, 14291, 279, 478, 13903, 605, 454, 2667, 598, 326, 3571, 3590, 12176, 10534, 10335, 471, 12176, 85, 10335, 2870, ...
except ValueError: print "Cannot extract second residue number in residue range." r_range.append([chain_first,residue_number_first, chain_second,residue_number_second])
except: raise ValueError, "Cannot extract second residue number in residue range: %s\n %s"%( file_name, rec) return [] if(chain_first.strip() == chain_second.strip() and residue_number_first > residue_number_second): raise ValueError, \ "residue_number_first > residue_number_second, %s\n%s"%( file_name,rec) return [] if([residue_number_first,residue_number_second].count(None) == 0): r_range.append([chain_first,residue_number_first, chain_second,residue_number_second])
def extract_tls_parameters(remark_3_records):
c7414c7bd0f10baaa7d702b1454c3d4335e68afe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/c7414c7bd0f10baaa7d702b1454c3d4335e68afe/remark_3_interpretation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 17116, 67, 3977, 12, 2764, 1313, 67, 23, 67, 7094, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 17116, 67, 3977, 12, 2764, 1313, 67, 23, 67, 7094, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
sizer.Add(gridSizer, 1, wxEXPAND, 0)
sizer.Add(gridSizer, 0, wxALL, 0)
def __init__(self, parent, title): wxDialog.__init__(self, parent, -1, title)
1d19ce5cb35cf6ceaf0d05c89edb9c29531b82e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10056/1d19ce5cb35cf6ceaf0d05c89edb9c29531b82e7/dialoglineup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 4672, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 16, 2077, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 2077, 4672, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 16, 2077, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
basicsize = h + l + p + l + p + usize * (len(s) + 1)
basicsize = size(h + 'PPlP') + usize * (len(s) + 1)
def test_specialtypes(self): i = self.i l = self.l p = self.p h = self.headersize # dict self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p)) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p)) # list self.check_sizeof([], h + l + p + l) self.check_sizeof([1, 2, 3], h + l + p + l + 3*l) # unicode usize = len(u'\0'.encode('unicode-internal')) samples = [u'', u'1'*100] # we need to test for both sizes, because we don't know if the string # has been cached for s in samples: basicsize = h + l + p + l + p + usize * (len(s) + 1) self.check_sizeof(s, basicsize,\ size2=basicsize + sys.getsizeof(str(s))) # XXX trigger caching encoded version as Python string s = samples[1] try: getattr(sys, s) except AttributeError: pass finally: self.check_sizeof(s, basicsize + sys.getsizeof(str(s)))
9cbed723c019f67adc5f76d1f21ed8d14c9df22c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/9cbed723c019f67adc5f76d1f21ed8d14c9df22c/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 2352, 12, 2890, 4672, 277, 273, 365, 18, 77, 328, 273, 365, 18, 80, 293, 273, 365, 18, 84, 366, 273, 365, 18, 2485, 554, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9371, 2352, 12, 2890, 4672, 277, 273, 365, 18, 77, 328, 273, 365, 18, 80, 293, 273, 365, 18, 84, 366, 273, 365, 18, 2485, 554, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23...
for i in all_inc_macros:
for i in it.all_inc_macros:
def verify(): all_errors_found = 0
9e249a6dacfafcde61ac83d5cd8becc030ac159f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13644/9e249a6dacfafcde61ac83d5cd8becc030ac159f/eagle3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 13332, 777, 67, 4324, 67, 7015, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 13332, 777, 67, 4324, 67, 7015, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if not new_password:
if new_password is None:
def block_account(conn): if not options.account_host: verbose("Will act on all hosts for user %s" % options.account_user) cursor = conn.cursor(MySQLdb.cursors.DictCursor) query = "SELECT user,host,password FROM mysql.user WHERE user='%s'" % options.account_user if options.account_host: query += " AND host='%s'" % options.account_host query += " ORDER BY user,host" cursor.execute(query) for row in cursor.fetchall(): try: user = row['user'] host = row['host'] password = row['password'] new_password = None if is_new_password(password): password_format = "new" else: password_format = "old" verbose("password for '%s'@'%s' is in %s format" % (user, host, password_format)) if options.block: new_password = blocked_password(password) if not new_password: print_error("Account is already blocked") if options.release: new_password = released_password(password) if not new_password: print_error("Account is already released") if new_password: update_query = "SET PASSWORD FOR '%s'@'%s' = '%s'" % (user, host, new_password) act_final_query(update_query, "Successfuly updated password") except Exception, err: print "-- Cannot change password for %s: %s" % (user, err) cursor.close()
979a3e49b4889833a695a6c9420d683ee3f9778a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10338/979a3e49b4889833a695a6c9420d683ee3f9778a/oak-block-account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1203, 67, 4631, 12, 4646, 4672, 309, 486, 702, 18, 4631, 67, 2564, 30, 3988, 2932, 13670, 1328, 603, 777, 7206, 364, 729, 738, 87, 6, 738, 702, 18, 4631, 67, 1355, 13, 225, 3347, 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, 1203, 67, 4631, 12, 4646, 4672, 309, 486, 702, 18, 4631, 67, 2564, 30, 3988, 2932, 13670, 1328, 603, 777, 7206, 364, 729, 738, 87, 6, 738, 702, 18, 4631, 67, 1355, 13, 225, 3347, 273...
elif canv._pagesize != doc.pagesize:
elif cp != dp:
def checkPageSize(self,canv,doc): '''This gets called by the template framework''' if canv._pagesize != self.pagesize: if self.pagesize: canv.setPageSize(self.pagesize) elif canv._pagesize != doc.pagesize: canv.setPageSize(doc.pagesize)
5768eee302fd8f69f45f55735f45656ba2302bb8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/5768eee302fd8f69f45f55735f45656ba2302bb8/doctemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 24035, 12, 2890, 16, 4169, 90, 16, 2434, 4672, 9163, 2503, 5571, 2566, 635, 326, 1542, 8257, 26418, 309, 848, 90, 6315, 7267, 554, 480, 365, 18, 7267, 554, 30, 309, 365, 18, 7267,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24035, 12, 2890, 16, 4169, 90, 16, 2434, 4672, 9163, 2503, 5571, 2566, 635, 326, 1542, 8257, 26418, 309, 848, 90, 6315, 7267, 554, 480, 365, 18, 7267, 554, 30, 309, 365, 18, 7267,...
cname = {} cname['name'] = ch['name']
cname = {} cname['name'] = ch['name'][:18]
def radar(self, **kw): item_ids = kw.get('ids') item_ids = item_ids and eval(str(item_ids)) parent_name = kw.get('factor_name') parent_name = parent_name.replace('@', '&') proxy_factor = rpc.RPCProxy('comparison.factor') child_name = [] child_ids = [] if parent_name == 'Summary': list = proxy_factor.search([('parent_id', '=', False)]) ch_ids = proxy_factor.read(list, ['name']) for ch in ch_ids: cname = {} cname['name'] = ch['name'] child_ids += [ch['id']] child_name += [cname] else : if '/' in parent_name: parent_name = parent_name.rsplit('/')[1] parent_list = proxy_factor.search([('name', '=', parent_name)]) child_ids = proxy_factor.read(parent_list, ['child_ids']) child_ids = child_ids[0].get('child_ids') child_list = proxy_factor.read(child_ids, ['name']) for ch in child_list: cname = {} cname['name'] = ch['name'] child_name += [cname] elem = [] elements = {} elements["elements"] = [] #Required elements["title"] = {} #Optional elements["radar_axis"] = {} #Required elements["tooltip"] = {} #Depend On Choice elements["bg_colour"] = "#ffffff" #Optional ChartColors = ['#c4a000', '#ce5c00', '#8f5902', '#4e9a06', '#204a87', '#5c3566', '#a40000', '#babdb6', '#2e3436']; proxy_item = rpc.RPCProxy('comparison.item') item_name = proxy_item.read(item_ids, ['name']) proxy_res = rpc.RPCProxy('comparison.factor.result') rids = proxy_res.search([('factor_id', 'in', child_ids)]) factor_res = proxy_res.read(rids) value = [] for item in item_name: val = [] for factor in factor_res: if factor.get('item_id')[1] == item['name']: val += [factor.get('result')/10.0] value += [val] for n, j in enumerate(item_name): if n%2==0: elem.append({'type': 'line_hollow', "values": value[n], "halo_size": 2, "width": 1, "dot-size": 2, "colour": ChartColors[n], "text": str(j['name']), "font-size": 12, "loop": True}) else: elem.append({"type": "line_dot", "values": value[n], "halo_size": 2, "width": 1, "dot-size": 2, "colour": ChartColors[n], "text": str(j['name']), "font-size": 12, "loop": True}) elements["elements"] = elem elements["title"] = {"text": parent_name, "style": "{font-size: 15px; color: #50284A; text-align: left; font-weight: bold;}"} elements["radar_axis"] = { "max":10, "colour": "#DAD5E0", "grid-colour":"#DAD5E0", "labels": { "labels": [], "colour": "#9F819F" }, "spoke-labels": { "labels": [ch['name'] for ch in child_name], "colour": "#5c3566" } }
1dc6849ae772e7a0a627bb7e87befb45f0bd596f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/1dc6849ae772e7a0a627bb7e87befb45f0bd596f/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6719, 297, 12, 2890, 16, 2826, 9987, 4672, 225, 761, 67, 2232, 273, 5323, 18, 588, 2668, 2232, 6134, 761, 67, 2232, 273, 761, 67, 2232, 471, 5302, 12, 701, 12, 1726, 67, 2232, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6719, 297, 12, 2890, 16, 2826, 9987, 4672, 225, 761, 67, 2232, 273, 5323, 18, 588, 2668, 2232, 6134, 761, 67, 2232, 273, 761, 67, 2232, 471, 5302, 12, 701, 12, 1726, 67, 2232, 3719, ...
AND %s_wf_category != '' GROUP BY %s_wf_category ORDER BY blocks_sum DESC LIMIT 10""" \ % (4 * (self.__vendor_name,))
AND %s_wf_category != ''""" % (3 * (self.__vendor_name,)) if host: query = query + " AND hname = %s" elif user: query = query + " AND uid = %s" query += """\ GROUP BY %s_wf_category ORDER BY blocks_sum DESC LIMIT 10\ """ % self.__vendor_name
def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None
23256af1e8e77c746a31d94ef7f2cab0675707b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/23256af1e8e77c746a31d94ef7f2cab0675707b6/untangle_base_webfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -1...
allEvents, end, 'recurrenceEnd', endIndex,
masterEvents, end, 'recurrenceEnd', endIndex,
def recurringEventsInRange(view, start, end, filterColl = None, dayItems = True, timedItems = True): """ Yield all recurring events between start and end that appear in filterColl. """ tzprefs = schema.ns('osaf.app', view).TimezonePrefs if tzprefs.showUI: startIndex = 'effectiveStart' endIndex = 'recurrenceEnd' else: startIndex = 'effectiveStartNoTZ' endIndex = 'recurrenceEndNoTZ' pim_ns = schema.ns("osaf.pim", view) allEvents = pim_ns.events masterEvents = pim_ns.masterEvents keys = getKeysInRange(view, start, 'effectiveStartTime', startIndex, allEvents, end, 'recurrenceEnd', endIndex, masterEvents, filterColl, '__adhoc__') for key in keys: masterEvent = view[key] for event in masterEvent.getOccurrencesBetween(start, end): # One or both of dayItems and timedItems must be # True. If both, then there's no need to test the # item's day-ness. If only one is True, then # dayItems' value must match the return of # isDayItem. if ((event.occurrenceFor is not None) and ((dayItems and timedItems) or isDayItem(event) == dayItems)): yield event
1a48e38823ec1a58d6216ddea1e419cff6ee2ede /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/1a48e38823ec1a58d6216ddea1e419cff6ee2ede/Calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26043, 3783, 25277, 12, 1945, 16, 787, 16, 679, 16, 1034, 13535, 273, 599, 16, 2548, 3126, 273, 1053, 16, 7491, 3126, 273, 1053, 4672, 3536, 31666, 777, 26043, 2641, 3086, 787, 471, 679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26043, 3783, 25277, 12, 1945, 16, 787, 16, 679, 16, 1034, 13535, 273, 599, 16, 2548, 3126, 273, 1053, 16, 7491, 3126, 273, 1053, 4672, 3536, 31666, 777, 26043, 2641, 3086, 787, 471, 679,...
ba <a|w|e> <1|2|4|8> <address> [thread] - set hardware breakpoint
[~thread] ba <a|w|e> <1|2|4|8> <address> - set hardware breakpoint
def do_ba(self, arg): """ ba <a|w|e> <1|2|4|8> <address> [thread] - set hardware breakpoint """ if not self.lastEvent: raise CmdError, "no process is being debugged" debug = self.lastEvent.debug token_list = self.split_tokens(arg, 3, 4) access = token_list[0].lower() size = token_list[1] address = token_list[2] if access == 'a': access = debug.BP_BREAK_ON_ACCESS elif access == 'w': access = debug.BP_BREAK_ON_WRITE elif access == 'e': access = debug.BP_BREAK_ON_EXECUTION else: raise CmdError, "bad access type: %s" % token_list[0] if size == '1': size = debug.BP_WATCH_BYTE elif size == '2': size = debug.BP_WATCH_WORD elif size == '4': size = debug.BP_WATCH_DWORD elif size == '8': size = debug.BP_WATCH_QWORD else: raise CmdError, "bad breakpoint size: %s" % size if len(token_list) > 4: tid = self.input_thread(token_list[4]) pid = debug.system.get_thread(tid).get_pid() else: pid = self.lastEvent.get_pid() tid = self.lastEvent.get_tid() address = self.input_address(address, pid) if debug.has_hardware_breakpoint(tid, address): debug.erase_hardware_breakpoint(tid, address) debug.define_hardware_breakpoint(tid, address, access, size) debug.enable_hardware_breakpoint(tid, address)
95edb553305e95a1ded0ce46aa595556f55c8dbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/95edb553305e95a1ded0ce46aa595556f55c8dbe/pdebug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 12124, 12, 2890, 16, 1501, 4672, 3536, 306, 98, 5930, 65, 9846, 411, 69, 96, 91, 96, 73, 34, 411, 21, 96, 22, 96, 24, 96, 28, 34, 411, 2867, 34, 300, 444, 16251, 18820, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 12124, 12, 2890, 16, 1501, 4672, 3536, 306, 98, 5930, 65, 9846, 411, 69, 96, 91, 96, 73, 34, 411, 21, 96, 22, 96, 24, 96, 28, 34, 411, 2867, 34, 300, 444, 16251, 18820, ...
snmpNotifyFilterEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyFilterEntry') tblIdx3 = snmpNotifyFilterProfileEntry.getInstIdFromIndices(profileName)
if filterSubtree: snmpNotifyFilterEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyFilterEntry') tblIdx3 = snmpNotifyFilterEntry.getInstIdFromIndices( profileName, filterSubtree ) else: snmpNotifyFilterEntry = tblIdx3 = None
def __cookNotificationTargetInfo(snmpEngine, notificationName, paramsName): snmpNotifyEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyEntry') tblIdx1 = snmpNotifyEntry.getInstIdFromIndices( notificationName ) snmpNotifyFilterProfileEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyFilterProfileEntry') tblIdx2 = snmpNotifyFilterProfileEntry.getInstIdFromIndices( paramsName ) profileName = '%s-filter' % notificationName snmpNotifyFilterEntry, = snmpEngine.msgAndPduDsp.mibInstrumController.mibBuilder.importSymbols('SNMP-NOTIFICATION-MIB', 'snmpNotifyFilterEntry') tblIdx3 = snmpNotifyFilterProfileEntry.getInstIdFromIndices(profileName) return ( snmpNotifyEntry, tblIdx1, snmpNotifyFilterProfileEntry, tblIdx2, profileName, snmpNotifyFilterEntry, tblIdx3 )
7dfad80e5e6161ff385f2a932b0de0b0bc82af59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/7dfad80e5e6161ff385f2a932b0de0b0bc82af59/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 29854, 4386, 2326, 966, 12, 26527, 4410, 16, 3851, 461, 16, 859, 461, 4672, 15366, 9168, 1622, 16, 273, 15366, 4410, 18, 3576, 1876, 52, 2544, 40, 1752, 18, 81, 495, 382, 701, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29854, 4386, 2326, 966, 12, 26527, 4410, 16, 3851, 461, 16, 859, 461, 4672, 15366, 9168, 1622, 16, 273, 15366, 4410, 18, 3576, 1876, 52, 2544, 40, 1752, 18, 81, 495, 382, 701, 37...
done = 0 incoming = '' while not done: c = self.read(1, local_timeout)
while 1: c = self.read(1, timeout)
def expect_eof(self, local_timeout = None): '''This reads from the child until the end of file is found. A timeout exception may be thrown. ''' try: done = 0 incoming = '' while not done: c = self.read(1, local_timeout) incoming = incoming + c except EOF, e: pass
a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 67, 9339, 12, 2890, 16, 1191, 67, 4538, 273, 599, 4672, 9163, 2503, 6838, 628, 326, 1151, 3180, 326, 679, 434, 585, 353, 1392, 18, 432, 2021, 1520, 2026, 506, 6718, 18, 9163, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 67, 9339, 12, 2890, 16, 1191, 67, 4538, 273, 599, 4672, 9163, 2503, 6838, 628, 326, 1151, 3180, 326, 679, 434, 585, 353, 1392, 18, 432, 2021, 1520, 2026, 506, 6718, 18, 9163, 775...
"Compile a call to the given display list. Note: most error checking and any extra tracking is responsibility of caller."
""" Compile a call to the given display list. Note: most error checking and any extra tracking is responsibility of caller. """
def glCallList(self, listname): "Compile a call to the given display list. Note: most error checking and any extra tracking is responsibility of caller." ##e in future, could merge successive calls into one call of multiple lists ## assert not self.compiling_displist # redundant with OpenGL only if we have no bugs in maintaining it, so worth checking # above was WRONG -- what was I thinking? This is permitted, and we'll need it whenever one displist can call another. # (And I'm surprised I didn't encounter it before -- did I still never try an MT with displists?) # (Did I mean to put this into some other method? or into only certain uses of this method?? # For now, do an info print, in case sometimes this does indicate an error, and since it's useful # for analyzing whether nested displists are behaving as expected. [bruce 070203] if self.compiling_displist and debug_pref("GLPane: print nested displist compiles?", Choice_boolean_False, prefs_key = True): print "debug: fyi: displist %r is compiling a call to displist %r" % (self.compiling_displist, listname) assert listname # redundant with following? glCallList(listname) return
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5118, 1477, 682, 12, 2890, 16, 666, 529, 4672, 3536, 16143, 279, 745, 358, 326, 864, 2562, 666, 18, 3609, 30, 4486, 555, 6728, 471, 1281, 2870, 11093, 353, 29353, 434, 4894, 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, 5118, 1477, 682, 12, 2890, 16, 666, 529, 4672, 3536, 16143, 279, 745, 358, 326, 864, 2562, 666, 18, 3609, 30, 4486, 555, 6728, 471, 1281, 2870, 11093, 353, 29353, 434, 4894, 18, 3536, ...
quotedString = re.compile("[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"")
def doProduction(lhs): global branchTable if lhs is BNF.void: print "\nvoid" return if lhs is BNF.eof: print "\nEOF" return if isinstance(lhs, Literal): literalTerminals[lhs.value()] = 1
a069dbeddd5ec63ef002105ed0c2481a29043eff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a069dbeddd5ec63ef002105ed0c2481a29043eff/predictiveParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 31590, 12, 80, 4487, 4672, 2552, 3803, 1388, 309, 8499, 353, 605, 26473, 18, 6459, 30, 1172, 1548, 82, 6459, 6, 327, 309, 8499, 353, 605, 26473, 18, 9339, 30, 1172, 1548, 82, 1270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31590, 12, 80, 4487, 4672, 2552, 3803, 1388, 309, 8499, 353, 605, 26473, 18, 6459, 30, 1172, 1548, 82, 6459, 6, 327, 309, 8499, 353, 605, 26473, 18, 9339, 30, 1172, 1548, 82, 1270...
u'Redirect target %s is also a redirect! Won\'t delete anything.' % targetPage.aslink())
u'Redirect target %s is also a redirect! Won\'t delete anything.' % targetPage.aslink())
def delete_1_broken_redirect(self, redir_name, reason): redir_page = wikipedia.Page(self.site, redir_name) # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % redir_page.title()) try: targetPage = redir_page.getRedirectTarget() except wikipedia.IsNotRedirectPage: wikipedia.output(u'%s is not a redirect.' % redir_page.title()) except wikipedia.NoPage: wikipedia.output(u'%s doesn\'t exist.' % redir_page.title()) else: try: targetPage.get() except wikipedia.NoPage: if self.prompt(u'Redirect target %s does not exist. Do you want to delete %s?' % (targetPage.aslink(), redir_page.aslink())): try: redir_page.delete(reason, prompt = False) except wikipedia.NoUsername: if targetPage.site().lang in sd_template and targetPage.site().lang in sd_tagging_sum: wikipedia.output("No sysop in user-config.py, put page to speedy deletion.") content = redir_page.get(get_redirect=True) content = wikipedia.translate(targetPage.site().lang,sd_template)+"\n"+content summary = wikipedia.translate(targetPage.site().lang,sd_tagging_sum) redir_page.put(content, summary)
c499f5c4d7eb66e6b361af0a88786c3f2ea91f11 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/c499f5c4d7eb66e6b361af0a88786c3f2ea91f11/redirect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 21, 67, 70, 19906, 67, 7590, 12, 2890, 16, 283, 1214, 67, 529, 16, 3971, 4672, 283, 1214, 67, 2433, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 283, 1214, 67, 529, 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, 1430, 67, 21, 67, 70, 19906, 67, 7590, 12, 2890, 16, 283, 1214, 67, 529, 16, 3971, 4672, 283, 1214, 67, 2433, 273, 21137, 18, 1964, 12, 2890, 18, 4256, 16, 283, 1214, 67, 529, 13, ...
p = NLP(self.f, p0, maxIter = 1e3, maxFunEvals = 1e3, h=self.h, A=Alt, b=blt, df=self.df, dh=self.dh)
p = NLP(self.f, p0, maxIter = 1e3, maxFunEvals = 1e3, h=self.h, df=self.df, dh=self.dh, ftol = 1e-4, xtol = 1e-4, contol=1e-4)
def runOptimization(self, plot=True): """Start/run optimization procedure and the optimum.""" grid = self.get_grid() model = self.get_model() # Initial try p0 = self.get_p0() # Less than (-0.5 < u < 1) # TODO: These are currently hard coded. They shouldn't be. NLT = len(grid) Alt = N.zeros( (NLT, len(p0)) ) Alt[:len(grid), len(grid) * model.getModelSize():] = N.eye(len(grid)) blt = 0.75*N.ones(NLT) # Get OpenOPT handler p = NLP(self.f, p0, maxIter = 1e3, maxFunEvals = 1e3, h=self.h, A=Alt, b=blt, df=self.df, dh=self.dh) #p = NLP(self.f, p0, maxIter = 1e2, maxFunEvals = 1e3, h=self.h) """Notes: * Using only (f) optimization seems to work. * Using both (f) and (df) seems to work partly. However, a lot slower and converges extremely slow. """ if plot: p.plot = 1 p.iprint = 1 # Uncomment these to check gradients against finite difference # quotients #p.checkdf(maxViolation=0.05) #p.checkdh() #return opt = p.solve('ralg') if plot: plot_control_solutions(model, grid, opt.xf) return opt.xf
9fedf8f7b4ec6c72d7d4c7b78cfe8c5a9b004fb5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/9fedf8f7b4ec6c72d7d4c7b78cfe8c5a9b004fb5/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13930, 1588, 12, 2890, 16, 3207, 33, 5510, 4672, 3536, 1685, 19, 2681, 14850, 12131, 471, 326, 2153, 2422, 12123, 3068, 273, 365, 18, 588, 67, 5222, 1435, 938, 273, 365, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13930, 1588, 12, 2890, 16, 3207, 33, 5510, 4672, 3536, 1685, 19, 2681, 14850, 12131, 471, 326, 2153, 2422, 12123, 3068, 273, 365, 18, 588, 67, 5222, 1435, 938, 273, 365, 18, 588, ...
sage: gap.eval('LoadPackage("hap")') 'true'
def cohomology(self, n, p = 0): r""" Computes the group cohomology H_n(G, F), where F = Z if p=0 and F = Z/pZ if p >0 is a prime. Wraps HAP's GroupHomology function, written by Graham Ellis.
7e70470bef4bac672ba9ce6e3a3dcc9c3e341499 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/7e70470bef4bac672ba9ce6e3a3dcc9c3e341499/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1825, 17125, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 1825, 17125, 4676, 670, 67, 82, 12, 43, 16, 478, 3631, 1625, 478, 273, 2285, 309, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1825, 17125, 4676, 12, 2890, 16, 290, 16, 293, 273, 374, 4672, 436, 8395, 14169, 281, 326, 1041, 1825, 17125, 4676, 670, 67, 82, 12, 43, 16, 478, 3631, 1625, 478, 273, 2285, 309, 293, ...
if self.transparency and self.image.mode not in ("LA", "RGBA"): self.image.putalpha(Image.new("L", self.image_size, 255));
def __init__ (self, name, file = None, filebounds = "-180,-90,180,90", transparency = False, scaling = "nearest", **kwargs): import Image MetaLayer.__init__(self, name, **kwargs) self.file = file self.filebounds = map(float,filebounds.split(",")) self.image = Image.open(self.file) self.image_size = self.image.size self.image_res = [(self.filebounds[2] - self.filebounds[0]) / self.image_size[0], (self.filebounds[3] - self.filebounds[1]) / self.image_size[1] ] self.scaling = scaling.lower() if isinstance(transparency, str): transparency = transparency.lower() in ("true", "yes", "1") self.transparency = transparency
0f87fd59bddc3f108a2ded46b8c934ba63e54035 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6188/0f87fd59bddc3f108a2ded46b8c934ba63e54035/Layer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 508, 16, 585, 273, 599, 16, 585, 10576, 273, 3701, 18278, 16, 17, 9349, 16, 18278, 16, 9349, 3113, 27472, 273, 1083, 16, 10612, 273, 315, 25785, 3113, 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, 1001, 2738, 972, 261, 2890, 16, 508, 16, 585, 273, 599, 16, 585, 10576, 273, 3701, 18278, 16, 17, 9349, 16, 18278, 16, 9349, 3113, 27472, 273, 1083, 16, 10612, 273, 315, 25785, 3113, 2...
self.__tracker.gain -= 1
self.__tracker.gain -= 5
def onKeyUp(self, Event): if Event.keystring == "a": self.__tracker.threshold += 1 print "Threshold: ", self.__tracker.threshold elif Event.keystring == "y": self.__tracker.threshold -= 1 print "Threshold: ", self.__tracker.threshold elif Event.keystring == "s": self.__tracker.brightness += 5 print "Brightness: ", self.__tracker.brightness elif Event.keystring == "x": self.__tracker.brightness -= 5 print "Brightness: ", self.__tracker.brightness elif Event.keystring == "d": self.__tracker.exposure += 1 print "Exposure: ", self.__tracker.exposure elif Event.keystring == "c": self.__tracker.exposure -= 1 print "Exposure: ", self.__tracker.exposure elif Event.keystring == "f": self.__tracker.shutter += 1 print "Shutter: ", self.__tracker.shutter elif Event.keystring == "v": self.__tracker.shutter -= 1 print "Shutter: ", self.__tracker.shutter elif Event.keystring == "g": self.__tracker.gain += 1 print "Gain: ", self.__tracker.gain elif Event.keystring == "b": self.__tracker.gain -= 1 print "Gain: ", self.__tracker.gain
32c6d30b38b70a4a13cdb2c0fe854dd158aeaa21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7300/32c6d30b38b70a4a13cdb2c0fe854dd158aeaa21/TestTracking.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 653, 1211, 12, 2890, 16, 2587, 4672, 309, 2587, 18, 856, 1080, 422, 315, 69, 6877, 365, 16186, 16543, 18, 8699, 1011, 404, 1172, 315, 7614, 30, 3104, 365, 16186, 16543, 18, 8699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 653, 1211, 12, 2890, 16, 2587, 4672, 309, 2587, 18, 856, 1080, 422, 315, 69, 6877, 365, 16186, 16543, 18, 8699, 1011, 404, 1172, 315, 7614, 30, 3104, 365, 16186, 16543, 18, 8699, ...
for k, v in [('Detect Language', 'auto'), ('Gaelic', 'ga'), ('Chinese (Traditional)', 'zh-TW'), ('Chinese (Simplified)', 'zh-CN')]: d[k] = v
name_code.update([('Detect Language', 'auto'), ('Chinese', 'zh-CN'), ('Gaelic', 'ga'), ('Korean', 'ko')])
def update_languages(self): ''' Naively try to determine if new languages are available by scraping http://translate.google.com '''
7b0bb72c6a8b513b9417016274c5d446dca7bd3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9947/7b0bb72c6a8b513b9417016274c5d446dca7bd3b/traduisons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 14045, 12, 2890, 4672, 9163, 16350, 4492, 775, 358, 4199, 309, 394, 8191, 854, 2319, 635, 888, 1266, 310, 1062, 2207, 13929, 18, 9536, 18, 832, 9163, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 14045, 12, 2890, 4672, 9163, 16350, 4492, 775, 358, 4199, 309, 394, 8191, 854, 2319, 635, 888, 1266, 310, 1062, 2207, 13929, 18, 9536, 18, 832, 9163, 2, -100, -100, -100, -100,...
self.assert_(msg.get_sequences() == ['flagged', 'foobar'])
self.assertEqual(msg.get_sequences(), ['flagged', 'foobar'])
def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') self.assertEqual(msg.get_sequences(), ['unseen']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.add_sequence('flagged') self.assert_(msg.get_sequences() == ['unseen', 'flagged']) msg.remove_sequence('unseen') self.assertEqual(msg.get_sequences(), ['flagged']) msg.add_sequence('foobar') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.remove_sequence('replied') self.assert_(msg.get_sequences() == ['flagged', 'foobar']) msg.set_sequences(['foobar', 'replied']) self.assert_(msg.get_sequences() == ['foobar', 'replied'])
ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17190, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 8463, 1234, 273, 14187, 18, 49, 44, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, 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, 1842, 67, 17190, 12, 2890, 4672, 468, 968, 16, 444, 16, 1233, 16, 471, 8851, 8463, 1234, 273, 14187, 18, 49, 44, 1079, 24899, 6358, 67, 2150, 13, 365, 18, 11231, 5812, 12, 3576, 18, ...
print 'Failed to download TiersOfATLASCache.py'
logger.warning('Failed to download TiersOfATLASCache.py')
def getTiersOfATLASCache(): """Download TiersOfATLASCache.py""" url = 'http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/project/ddm/releases/TiersOfATLASCache.py' local = os.path.join(os.environ['PWD'],'TiersOfATLASCache.py') try: urllib.urlretrieve(url, local) except IOError: print 'Failed to download TiersOfATLASCache.py' try: tiersofatlas = imp.load_source('',local) except SyntaxError: print 'Error loading TiersOfATLASCache.py' sys.exit(EC_UNSPEC) return tiersofatlas
ad984b56cdc008f13cd574a924fd1ecab2076a7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/ad984b56cdc008f13cd574a924fd1ecab2076a7d/NG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 20778, 951, 789, 2534, 55, 1649, 13332, 3536, 7109, 399, 20778, 951, 789, 2534, 55, 1649, 18, 2074, 8395, 225, 880, 273, 296, 2505, 2207, 270, 9521, 18, 4875, 18, 14770, 18, 343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3181, 20778, 951, 789, 2534, 55, 1649, 13332, 3536, 7109, 399, 20778, 951, 789, 2534, 55, 1649, 18, 2074, 8395, 225, 880, 273, 296, 2505, 2207, 270, 9521, 18, 4875, 18, 14770, 18, 343, ...
self.__buf = ''
self.__buf = _StringIO()
def reset(self): self.__buf = ''
29e09f2f7b2b2dd2a5752b80f232162592e5fc26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/29e09f2f7b2b2dd2a5752b80f232162592e5fc26/xdrlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 16186, 4385, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2715, 12, 2890, 4672, 365, 16186, 4385, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.stop()
reactor.callFromThread(self.stop)
def _run(self): """This should only be called from a pool thread""" self.runlock.acquire() try: if self.subject.run(): # can stop by returning false if self.running: reactor.callFromThread(self.reschedule) else: self.stop() finally: self.runlock.release()
98ed3cf358897a13e6cf7adbf42aa7746e4f0c35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/98ed3cf358897a13e6cf7adbf42aa7746e4f0c35/startup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 12, 2890, 4672, 3536, 2503, 1410, 1338, 506, 2566, 628, 279, 2845, 2650, 8395, 365, 18, 2681, 739, 18, 1077, 1039, 1435, 775, 30, 309, 365, 18, 7857, 18, 2681, 13332, 468, 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, 389, 2681, 12, 2890, 4672, 3536, 2503, 1410, 1338, 506, 2566, 628, 279, 2845, 2650, 8395, 365, 18, 2681, 739, 18, 1077, 1039, 1435, 775, 30, 309, 365, 18, 7857, 18, 2681, 13332, 468, 8...
patchFile("scripts/postflight.patch-profile", fn) os.chmod(fn, 0755)
patchScript("scripts/postflight.patch-profile", fn)
def main(): # First parse options and check if we can perform our work parseOptions() checkEnvironment() os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.3' if os.path.exists(WORKDIR): shutil.rmtree(WORKDIR) os.mkdir(WORKDIR) # Then build third-party libraries such as sleepycat DB4. buildLibraries() # Now build python itself buildPython() buildPythonDocs() fn = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(getVersion(),), "Update Shell Profile.command") patchFile("scripts/postflight.patch-profile", fn) os.chmod(fn, 0755) folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%( getVersion(),)) os.chmod(folder, 0755) setIcon(folder, "../Icons/Python Folder.icns") # Create the installer buildInstaller() # And copy the readme into the directory containing the installer patchFile('resources/ReadMe.txt', os.path.join(WORKDIR, 'installer', 'ReadMe.txt')) # Ditto for the license file. shutil.copy('../../LICENSE', os.path.join(WORKDIR, 'installer', 'License.txt')) fp = open(os.path.join(WORKDIR, 'installer', 'Build.txt'), 'w') print >> fp, "# BUILD INFO" print >> fp, "# Date:", time.ctime() print >> fp, "# By:", pwd.getpwuid(os.getuid()).pw_gecos fp.close() # Custom icon for the DMG, shown when the DMG is mounted. shutil.copy("../Icons/Disk Image.icns", os.path.join(WORKDIR, "installer", ".VolumeIcon.icns")) os.system("/Developer/Tools/SetFile -a C %s"%( os.path.join(WORKDIR, "installer", ".VolumeIcon.icns"))) # And copy it to a DMG buildDMG()
3da2212820b49f5f0c2025c97ef1b529debb807c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/3da2212820b49f5f0c2025c97ef1b529debb807c/build-installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5783, 1109, 702, 471, 866, 309, 732, 848, 3073, 3134, 1440, 1109, 1320, 1435, 866, 5494, 1435, 225, 1140, 18, 28684, 3292, 10875, 4618, 60, 67, 1639, 22971, 3212, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5783, 1109, 702, 471, 866, 309, 732, 848, 3073, 3134, 1440, 1109, 1320, 1435, 866, 5494, 1435, 225, 1140, 18, 28684, 3292, 10875, 4618, 60, 67, 1639, 22971, 3212, 67, 1...
raise NotImplementedError('%s should implement redirect.' % self.__class__)
form = self.form_class(initial=self.get_initial(*args, **kwargs), **self.form_args) c = RequestContext(request, { 'form': form, 'success_message': self.success_message, 'pagemenu': self.pagemenu, }) return render_to_response(self.template_name, c) def get_success_message(self, *args, **kwargs): return None
def redirect(self, request, *args, **kwargs): raise NotImplementedError('%s should implement redirect.' % self.__class__)
34a2e9c7044829a5a6cdb3f63c9be5a103290f99 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12648/34a2e9c7044829a5a6cdb3f63c9be5a103290f99/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 12, 2890, 16, 590, 16, 380, 1968, 16, 2826, 4333, 4672, 646, 273, 365, 18, 687, 67, 1106, 12, 6769, 33, 2890, 18, 588, 67, 6769, 30857, 1968, 16, 2826, 4333, 3631, 2826, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 12, 2890, 16, 590, 16, 380, 1968, 16, 2826, 4333, 4672, 646, 273, 365, 18, 687, 67, 1106, 12, 6769, 33, 2890, 18, 588, 67, 6769, 30857, 1968, 16, 2826, 4333, 3631, 2826, 2890, ...
self.sendTask(plugin_api.get_task())
task = plugin_api.get_ui().get_task() self.sendTask(task)
def task_cb(self, widget, plugin_api): self.sendTask(plugin_api.get_task())
5e6fb402fb33286aae28aa13494dec55cd437832 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/5e6fb402fb33286aae28aa13494dec55cd437832/hamster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 7358, 12, 2890, 16, 3604, 16, 1909, 67, 2425, 4672, 1562, 273, 1909, 67, 2425, 18, 588, 67, 4881, 7675, 588, 67, 4146, 1435, 365, 18, 4661, 2174, 12, 4146, 13, 282, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1562, 67, 7358, 12, 2890, 16, 3604, 16, 1909, 67, 2425, 4672, 1562, 273, 1909, 67, 2425, 18, 588, 67, 4881, 7675, 588, 67, 4146, 1435, 365, 18, 4661, 2174, 12, 4146, 13, 282, 2, -100...
nav_category = models.ForeignKey(NavBarCategory)
nav_category = models.ForeignKey(NavBarCategory, default=NavBarCategory.default)
def get_by_path__name(self, path, name): # This writes to file_db, and caches the *data retrieval* # It exists because the kernel filesystem caches are possibly better # for retrieving large (>=4KB) data chunks than PostgreSQL # See Mike Axiak's email to esp-webmasters@mit.edu on 2008-09-27 (around 12:35) # No user ID --- this caches simple DB access, so user-invariant file_id = qsd_cache_key(path, name, None) retVal = self.get_by_id(file_id) if retVal is not None: return retVal try: obj = self.filter(path=path, name=name).order_by('-create_date')[:1][0] self.obj_to_file(obj) return obj except IndexError: raise QuasiStaticData.DoesNotExist("No QSD found.")
acba273b56ed9a6ec662e58783a8a5602018088a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/acba273b56ed9a6ec662e58783a8a5602018088a/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1637, 67, 803, 972, 529, 12, 2890, 16, 589, 16, 508, 4672, 468, 1220, 7262, 358, 585, 67, 1966, 16, 471, 12535, 326, 380, 892, 22613, 14, 468, 2597, 1704, 2724, 326, 5536, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1637, 67, 803, 972, 529, 12, 2890, 16, 589, 16, 508, 4672, 468, 1220, 7262, 358, 585, 67, 1966, 16, 471, 12535, 326, 380, 892, 22613, 14, 468, 2597, 1704, 2724, 326, 5536, 6...
if not (xc >= self.x + self.m_BorderLeft):
if xc < self.m_BorderLeft:
def value_from_x(self, xc):
8266f3e7a480eb6b62c06787a109e6d21a27c094 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/8266f3e7a480eb6b62c06787a109e6d21a27c094/transfer_function_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 2080, 67, 92, 12, 2890, 16, 15192, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 460, 67, 2080, 67, 92, 12, 2890, 16, 15192, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return int(volume*10)
return int((volume*100) / self.max_playbin_volume)
def get_volume_playbin(self): """ playbin volume is a double from 0.0 - 10.0 """ volume = self.sink.get_property('volume') return int(volume*10)
0fc5f370207fa1828fce237ae25cf479914de8e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/0fc5f370207fa1828fce237ae25cf479914de8e6/gstreamer_renderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9491, 67, 1601, 4757, 12, 2890, 4672, 3536, 6599, 4757, 3940, 353, 279, 1645, 628, 374, 18, 20, 300, 1728, 18, 20, 3536, 3940, 273, 365, 18, 17074, 18, 588, 67, 4468, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9491, 67, 1601, 4757, 12, 2890, 4672, 3536, 6599, 4757, 3940, 353, 279, 1645, 628, 374, 18, 20, 300, 1728, 18, 20, 3536, 3940, 273, 365, 18, 17074, 18, 588, 67, 4468, 2668, ...
@rtype: C{Deferred} @return: The callback of the C{Deferred} that is returned will be passed a string that represents the IP address of the specified name, or the errback will be called if the lookup times out. If multiple types of address records are associated with the name, A6 records will be returned in preference to AAAA records, which will be returned in preference to A records. If there are multiple records of the type to be returned, one will be selected at random.
@rtype: L{twisted.internet.defer.Deferred} @return: The callback of the Deferred that is returned will be passed a string that represents the IP address of the specified name, or the errback will be called if the lookup times out. If multiple types of address records are associated with the name, A6 records will be returned in preference to AAAA records, which will be returned in preference to A records. If there are multiple records of the type to be returned, one will be selected at random.
def getHostByName(self, name, timeout = 10): """Resolve the domain name C{name} into an IP address.
61b27ac6b2779aeb25ead8677978334e2f000f50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/61b27ac6b2779aeb25ead8677978334e2f000f50/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8580, 5911, 12, 2890, 16, 508, 16, 2021, 273, 1728, 4672, 3536, 8460, 326, 2461, 508, 385, 95, 529, 97, 1368, 392, 2971, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8580, 5911, 12, 2890, 16, 508, 16, 2021, 273, 1728, 4672, 3536, 8460, 326, 2461, 508, 385, 95, 529, 97, 1368, 392, 2971, 1758, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.first_month != sys.maxint:
if self.first_month == sys.maxint: self._first_month = year * 12 + 1 else:
def add_year(self, year, data): if self.first_month != sys.maxint: # We have data already, so we may need to pad with missing months # Note: This assumes the series is a whole number of years. gap = year - self.last_year - 1 if gap > 0: self._series.extend([MISSING] * gap * 12) start_month = year * 12 + 1 self._first_month = min(self.first_month, start_month) for v in data: if invalid(v): self._series.append(MISSING) else: self._good_start_idx = min(self._good_start_idx, len(self._series)) self._series.append(v) self._good_end_idx = max(self._good_end_idx, len(self._series))
83af3c60150aa563cfe55dc03e4746bd010145e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6890/83af3c60150aa563cfe55dc03e4746bd010145e9/giss_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 6874, 12, 2890, 16, 3286, 16, 501, 4672, 309, 365, 18, 3645, 67, 7496, 422, 2589, 18, 1896, 474, 30, 365, 6315, 3645, 67, 7496, 273, 3286, 380, 2593, 397, 404, 469, 30, 468,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 6874, 12, 2890, 16, 3286, 16, 501, 4672, 309, 365, 18, 3645, 67, 7496, 422, 2589, 18, 1896, 474, 30, 365, 6315, 3645, 67, 7496, 273, 3286, 380, 2593, 397, 404, 469, 30, 468,...
self.dump_data(taskData)
def mark_active(listid, depth): """ Mark an item as active along with its depends (calls itself recursively) """
72924052cb7fb5a826b58a6fe3a60554ab53293e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/72924052cb7fb5a826b58a6fe3a60554ab53293e/runqueue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2267, 67, 3535, 12, 1098, 350, 16, 3598, 4672, 3536, 6622, 392, 761, 487, 2695, 7563, 598, 2097, 10935, 261, 12550, 6174, 8536, 13, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 2267, 67, 3535, 12, 1098, 350, 16, 3598, 4672, 3536, 6622, 392, 761, 487, 2695, 7563, 598, 2097, 10935, 261, 12550, 6174, 8536, 13, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -10...
results = self.otherClass.select(getattr(self.otherClass.q, pythonColumn) == inst.id)
results = self.otherClass.select( getattr(self.otherClass.q, pythonColumn) == inst.id, connection=conn )
def performJoin(self, inst): pythonColumn = self.soClass.sqlmeta.style.dbColumnToPythonAttr(self.joinColumn) results = self.otherClass.select(getattr(self.otherClass.q, pythonColumn) == inst.id) if results.count() == 0: if not self.makeDefault: return None else: kw = {pythonColumn[:-2]: inst} # skipping the ID (from foreignkeyID) return self.otherClass(**kw) # instanciating the otherClass with all # values to their defaults, except the foreign key # TODO I don't think this is the best way to know the column as foreignKey # reather than foreignKeyID, but I don't found a sqlmeta.style function # to do the work, if there isn't such function, I must create it. else: return results[0]
dad3b2974733ab27ba3da94460567dd9b7ca0cf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/dad3b2974733ab27ba3da94460567dd9b7ca0cf8/joins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 4572, 12, 2890, 16, 1804, 4672, 5790, 1494, 273, 365, 18, 2048, 797, 18, 4669, 3901, 18, 4060, 18, 1966, 1494, 774, 15774, 3843, 12, 2890, 18, 5701, 1494, 13, 1686, 273, 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, 3073, 4572, 12, 2890, 16, 1804, 4672, 5790, 1494, 273, 365, 18, 2048, 797, 18, 4669, 3901, 18, 4060, 18, 1966, 1494, 774, 15774, 3843, 12, 2890, 18, 5701, 1494, 13, 1686, 273, 365, 18,...
0, 0,
int(debugWindowSize.x), int(debugWindowSize.y),
def __init__(self, appClass, resolution): self._AppClass = appClass resolution = Point2D(resolution)
741494451774ec47a318d3f5a271298de58e7dea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7300/741494451774ec47a318d3f5a271298de58e7dea/AVGAppStarter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 595, 797, 16, 7861, 4672, 365, 6315, 3371, 797, 273, 595, 797, 7861, 273, 4686, 22, 40, 12, 19182, 13, 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, 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, 1001, 2738, 972, 12, 2890, 16, 595, 797, 16, 7861, 4672, 365, 6315, 3371, 797, 273, 595, 797, 7861, 273, 4686, 22, 40, 12, 19182, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
this = apply(_quickfix.new_ContraBroker, args)
this = _quickfix.new_ContraBroker(*args)
def __init__(self, *args): this = apply(_quickfix.new_ContraBroker, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 442, 2033, 11194, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 442, 2033, 11194, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
<td><input name="organisation"></td></tr>
<td><input name="organisation" value="%(organisation)s"></td></tr>
def login(self, message=None): self.pagehead('Login to roundup', message) self.write('''
085d354e85b8a858c41fdab4c799f10cf069bdd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/085d354e85b8a858c41fdab4c799f10cf069bdd2/cgi_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 12, 2890, 16, 883, 33, 7036, 4672, 365, 18, 2433, 1978, 2668, 5358, 358, 3643, 416, 2187, 883, 13, 365, 18, 2626, 2668, 6309, 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, 3925, 12, 2890, 16, 883, 33, 7036, 4672, 365, 18, 2433, 1978, 2668, 5358, 358, 3643, 416, 2187, 883, 13, 365, 18, 2626, 2668, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...