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
which at least one burst event's peak time is within self.coinc_peak_time_window of t.
which at least one burst event's peak time is within window seconds of t. This is not used to define any coincidences, only to provide a short list of coinc events for use in more costly comparison tests.
def coincs_near_peaktime(self, t): """ Return a list of the (coinc_event_id, event list) tuples in which at least one burst event's peak time is within self.coinc_peak_time_window of t. """ # FIXME: this test does not consider the time slide # offsets that should be applied to the coinc, but for now # injections are d...
1126ecd32ca491514cbed02a89dd809841dce610 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1126ecd32ca491514cbed02a89dd809841dce610/ligolw_binjfind.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13170, 2143, 67, 27862, 67, 10244, 957, 12, 2890, 16, 268, 4672, 3536, 2000, 279, 666, 434, 326, 261, 12645, 71, 67, 2575, 67, 350, 16, 871, 666, 13, 10384, 316, 1492, 622, 4520, 1245,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13170, 2143, 67, 27862, 67, 10244, 957, 12, 2890, 16, 268, 4672, 3536, 2000, 279, 666, 434, 326, 261, 12645, 71, 67, 2575, 67, 350, 16, 871, 666, 13, 10384, 316, 1492, 622, 4520, 1245,...
self.current_division = Division(self.current_id_within_column,self.current_column,self.current_time,self.make_url(),report_date,self.division_number)
self.current_division = Division(self.current_id_within_column,self.current_column,self.current_time,self.make_url(),self.report_date,self.division_number)
def parse_substance(self,contents,report_date,url):
392be97a0f9928862e73ceca51d21a10fb9a1fec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8428/392be97a0f9928862e73ceca51d21a10fb9a1fec/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1717, 593, 12, 2890, 16, 3980, 16, 6006, 67, 712, 16, 718, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1717, 593, 12, 2890, 16, 3980, 16, 6006, 67, 712, 16, 718, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def opening(self, node): s = u'' return s
def opening(s, node): r = u'' return r
def opening(self, node): s = u'' return s
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 327, 272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10890, 12, 2890, 16, 756, 4672, 272, 273, 582, 6309, 327, 272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
nattrdict = {} for key, val in attrdict.items(): res = qname.match(key) if res is not None: aprefix, key = res.group('prefix', 'local') if aprefix is None: aprefix = '' ans = None for t, d, nst in self.stack: if d.has_key(aprefix): ans = d[aprefix] if ans is None and aprefix != '': ans = self.__namespaces.get(aprefix) ...
if self.__use_namespaces: nattrdict = {} for key, val in attrdict.items(): res = qname.match(key) if res is not None: aprefix, key = res.group('prefix', 'local') if aprefix is None: aprefix = '' ans = None for t, d, nst in self.stack: if d.has_key(aprefix): ans = d[aprefix] if ans is None and aprefix != '': ans = self....
def parse_starttag(self, i): rawdata = self.rawdata # i points to start of tag end = endbracketfind.match(rawdata, i+1) if end is None: return -1 tag = starttagmatch.match(rawdata, i) if tag is None or tag.end(0) != end.end(0): self.syntax_error('garbage in starttag') return end.end(0) nstag = tagname = tag.group('tagn...
a7c04cbe5228de7b8fbdfbe8d7af56ab4da6a278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a7c04cbe5228de7b8fbdfbe8d7af56ab4da6a278/xmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1937, 2692, 12, 2890, 16, 277, 4672, 1831, 892, 273, 365, 18, 1899, 892, 468, 277, 3143, 358, 787, 434, 1047, 679, 273, 679, 21025, 4720, 18, 1916, 12, 1899, 892, 16, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1937, 2692, 12, 2890, 16, 277, 4672, 1831, 892, 273, 365, 18, 1899, 892, 468, 277, 3143, 358, 787, 434, 1047, 679, 273, 679, 21025, 4720, 18, 1916, 12, 1899, 892, 16, 277, ...
stringOrGlyphList = self.stringToGlyphNames(stringToGlyphNames)
stringOrGlyphList = self.stringToGlyphNames(stringOrGlyphList)
def process(self, stringOrGlyphList, script="latn", langSys=None, rightToLeft=False, case="unchanged", logger=None): if isinstance(stringOrGlyphList, basestring): stringOrGlyphList = self.stringToGlyphNames(stringToGlyphNames) if case != "unchanged": stringOrGlyphList = convertCase(case, stringOrGlyphList, self.cmap, s...
13d3cf95ebf93711d0510b9f1ea9c6f24d4ab802 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8849/13d3cf95ebf93711d0510b9f1ea9c6f24d4ab802/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 533, 1162, 15141, 682, 16, 2728, 1546, 4801, 82, 3113, 3303, 12712, 33, 7036, 16, 2145, 774, 3910, 33, 8381, 16, 648, 1546, 4384, 2330, 3113, 1194, 33, 7036, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 16, 533, 1162, 15141, 682, 16, 2728, 1546, 4801, 82, 3113, 3303, 12712, 33, 7036, 16, 2145, 774, 3910, 33, 8381, 16, 648, 1546, 4384, 2330, 3113, 1194, 33, 7036, 4672, ...
song.DisplayFilename = "Unknown Singer"
return
def OnFileSelected(self, event): """ Handles a file selected event (double-click). Will play directly (not add to playlist) if PlayFromSearchList is true, else it will add the file to the playlist.""" if self.KaraokeMgr.SongDB.Settings.PlayFromSearchList: # The SongStruct is stored as data - get it and pass to karaoke ...
7d6c2cead80b3d812ebc0d6027018fbc93b8714c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12653/7d6c2cead80b3d812ebc0d6027018fbc93b8714c/pykaraoke.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 812, 7416, 12, 2890, 16, 871, 4672, 3536, 27020, 279, 585, 3170, 871, 261, 9056, 17, 7475, 2934, 9980, 6599, 5122, 261, 902, 527, 358, 16428, 13, 309, 19592, 1265, 2979, 682, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 812, 7416, 12, 2890, 16, 871, 4672, 3536, 27020, 279, 585, 3170, 871, 261, 9056, 17, 7475, 2934, 9980, 6599, 5122, 261, 902, 527, 358, 16428, 13, 309, 19592, 1265, 2979, 682, 353, ...
n = min(el.numbonds, len(pl))
n = min(el.numbonds, len(pl))
def attach(self, el, singlet): if not el.numbonds: return (None, "%s makes no bonds; can't attach one to an open bond" % el.name) spot = self.findSpot(el, singlet) pl = [] rl = [] # real neighbors of singlets in pl [for bug 232 fix] mol = singlet.molecule cr = el.rcovalent
c7248c556f6a3d0e54dd2c0742264fb709ecdade /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c7248c556f6a3d0e54dd2c0742264fb709ecdade/depositMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 12, 2890, 16, 415, 16, 4864, 1810, 4672, 309, 486, 415, 18, 2107, 70, 4096, 30, 327, 261, 7036, 16, 2213, 87, 7297, 1158, 15692, 31, 848, 1404, 3306, 1245, 358, 392, 1696, 8427, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 12, 2890, 16, 415, 16, 4864, 1810, 4672, 309, 486, 415, 18, 2107, 70, 4096, 30, 327, 261, 7036, 16, 2213, 87, 7297, 1158, 15692, 31, 848, 1404, 3306, 1245, 358, 392, 1696, 8427, ...
exc = sys.exc_info()[1] raise exc
exc = sys.exc_info()[1] raise exc
def parseString( self, instring, parseAll=False ): """Execute the parse expression with the given string. This is the main interface to the client code, once the complete expression has been built.
a4c865e16fa42a2c4511290f6bcf5595dfd38b1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3693/a4c865e16fa42a2c4511290f6bcf5595dfd38b1d/pyparsing_py3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23659, 12, 365, 16, 316, 1080, 16, 1109, 1595, 33, 8381, 262, 30, 3536, 5289, 326, 1109, 2652, 598, 326, 864, 533, 18, 1220, 353, 326, 2774, 1560, 358, 326, 1004, 981, 16, 3647, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23659, 12, 365, 16, 316, 1080, 16, 1109, 1595, 33, 8381, 262, 30, 3536, 5289, 326, 1109, 2652, 598, 326, 864, 533, 18, 1220, 353, 326, 2774, 1560, 358, 326, 1004, 981, 16, 3647, 326, ...
lrsizer.Add(self.mimelist, 1, wx.ALL | wx.EXPAND | wx.ALIGN_CENTER, 4)
lrsizer.Add(self.mimelist, 1, wx.ALL | wx.EXPAND | wx.ALIGN_CENTER | wx.FIXED_SIZE, 4)
def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1)
af8ea558bac3dc86899b3cb41302ccf228656321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/af8ea558bac3dc86899b3cb41302ccf228656321/MimeTypesManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 613, 4672, 225, 365, 18, 1330, 273, 613, 225, 7075, 18, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 613, 4672, 225, 365, 18, 1330, 273, 613, 225, 7075, 18, 5537, 16186, 2738, 972, 12, 2890, 16, 982, 16, 300, 21, 13, 2, -100, -100, -100, -100,...
resource.__roles__ = self.__roles__
if hasattr(aq_base(self), '__roles__'): resource.__roles__ = self.__roles__
def get(self, name, default=_marker): path = self.context.path filename = os.path.join(path, name) isfile = os.path.isfile(filename) isdir = os.path.isdir(filename)
e3dcff0d0845d599344017a51e4bbd117151926c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/e3dcff0d0845d599344017a51e4bbd117151926c/resource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 508, 16, 805, 33, 67, 11145, 4672, 589, 273, 365, 18, 2472, 18, 803, 1544, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 508, 13, 8814, 273, 1140, 18, 803, 18, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 508, 16, 805, 33, 67, 11145, 4672, 589, 273, 365, 18, 2472, 18, 803, 1544, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 508, 13, 8814, 273, 1140, 18, 803, 18, 291,...
}, self.preferred_language)
}, lang=self.preferred_language)
def HandleBouncingAddress(self, addr, msg): """Disable or remove addr according to bounce_action setting.""" if self.automatic_bounce_action == 0: return elif self.automatic_bounce_action == 1: # Only send if call works ok. (succeeded, send) = self.DisableBouncingAddress(addr) did = "disabled" elif self.automatic_bounc...
7f16355cd6d7956dd6f7423c1138cae49b9e93d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7f16355cd6d7956dd6f7423c1138cae49b9e93d5/Bouncer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5004, 38, 465, 2822, 1887, 12, 2890, 16, 3091, 16, 1234, 4672, 3536, 11879, 578, 1206, 3091, 4888, 358, 324, 8386, 67, 1128, 3637, 12123, 309, 365, 18, 5854, 4941, 67, 70, 8386, 67, 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, 5004, 38, 465, 2822, 1887, 12, 2890, 16, 3091, 16, 1234, 4672, 3536, 11879, 578, 1206, 3091, 4888, 358, 324, 8386, 67, 1128, 3637, 12123, 309, 365, 18, 5854, 4941, 67, 70, 8386, 67, 11...
self._mayan_cb, _abacus_toolbar)
self._mayan_cb, abacus_toolbar)
def __init__(self, handle): """ Initiate activity. """ super(AbacusActivity,self).__init__(handle)
fd911751574e06f9f013eb80fbecdcda1b58afa5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7608/fd911751574e06f9f013eb80fbecdcda1b58afa5/AbacusActivity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 3536, 26615, 5728, 18, 3536, 2240, 12, 5895, 1077, 407, 6193, 16, 2890, 2934, 972, 2738, 972, 12, 4110, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1640, 4672, 3536, 26615, 5728, 18, 3536, 2240, 12, 5895, 1077, 407, 6193, 16, 2890, 2934, 972, 2738, 972, 12, 4110, 13, 2, -100, -100, -100, -100, -100, ...
'shop_id':fields.many2one('sale.shop', 'Shop', required=True, readonly=True, states={'draft':[('readonly',False)]}),
'shop_id': fields.many2one('sale.shop', 'Shop', required=True, readonly=True, states={'draft': [('readonly', False)]}),
def _get_order(self, cr, uid, ids, context={}): result = {} for line in self.pool.get('sale.order.line').browse(cr, uid, ids, context=context): result[line.order_id.id] = True return result.keys()
fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1019, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 563, 273, 2618, 364, 980, 316, 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1019, 18, 1369, 16063, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1019, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 563, 273, 2618, 364, 980, 316, 365, 18, 6011, 18, 588, 2668, 87, 5349, 18, 1019, 18, 1369, 16063, 25...
rth = None def __init__(self, domid):
def __init__(self, vif):
def commit(self): msg = os.read(self.msgfd.fileno(), 4) if msg != 'done': print 'Unknown message: %s' % msg
d7c9a2decc6f95efb4ab470ff6a9b336c618e246 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/d7c9a2decc6f95efb4ab470ff6a9b336c618e246/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 4672, 1234, 273, 1140, 18, 896, 12, 2890, 18, 3576, 8313, 18, 7540, 5764, 9334, 1059, 13, 309, 1234, 480, 296, 8734, 4278, 1172, 296, 4874, 883, 30, 738, 87, 11, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3294, 12, 2890, 4672, 1234, 273, 1140, 18, 896, 12, 2890, 18, 3576, 8313, 18, 7540, 5764, 9334, 1059, 13, 309, 1234, 480, 296, 8734, 4278, 1172, 296, 4874, 883, 30, 738, 87, 11, 738, ...
(token, numberOfUses) = result[ 'Value' ]
( token, numberOfUses ) = result[ 'Value' ]
def _getPilotOptions( self, taskQueueDict, pilotsToSubmit ):
65482708e833fd2f044badf2f7e0684898d23e4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/65482708e833fd2f044badf2f7e0684898d23e4b/PilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 52, 22797, 1320, 12, 365, 16, 1562, 3183, 5014, 16, 24970, 6968, 774, 11620, 262, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 52, 22797, 1320, 12, 365, 16, 1562, 3183, 5014, 16, 24970, 6968, 774, 11620, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if how_to_index:
if how_to_index is not None:
def build_indexes(verbose = False): """ Using the how_to_index annotations in the table class definitions, construct a set of indexes for the database at the current connection. """ cursor = DBTable_get_connection().cursor() for table_name in DBTable_table_names(): try: # FIXME: figure out how to do this extensibly ho...
06d0598dc7d184df10d28a267f7251a719c907c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3589/06d0598dc7d184df10d28a267f7251a719c907c7/dbtables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 11265, 12, 11369, 273, 1083, 4672, 3536, 11637, 326, 3661, 67, 869, 67, 1615, 5617, 316, 326, 1014, 667, 6377, 16, 4872, 279, 444, 434, 5596, 364, 326, 2063, 622, 326, 783, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 11265, 12, 11369, 273, 1083, 4672, 3536, 11637, 326, 3661, 67, 869, 67, 1615, 5617, 316, 326, 1014, 667, 6377, 16, 4872, 279, 444, 434, 5596, 364, 326, 2063, 622, 326, 783, 1...
if platform.startswith('win'): exe = ".exe" else: exe = '' binary = 'fiji-' + platform + exe if (host_platform == platform): shutil.copy('fiji' + exe, 'Fiji.app/' + binary) else: shutil.copy('precompiled/' + binary, 'Fiji.app/' + binary) chmod('Fiji.app/' + binary, 0755)
binary = 'fiji-' + platform + exe if (host_platform == platform): shutil.copy('fiji' + exe, 'Fiji.app/' + binary) else: shutil.copy('precompiled/' + binary, 'Fiji.app/' + binary) chmod('Fiji.app/' + binary, 0755)
def add_other_app(platform): if copy_jre: java_tree = find_java_tree(platform) java = java_tree.replace(':', '/').replace('origin/', '') os.system('git archive --prefix=Fiji.app/' + java + '/ ' \ + java_tree + ' | ' \ + 'tar xvf -') if platform.startswith('win'): exe = ".exe" else: exe = '' binary = 'fiji-' + platfo...
0a6c236840a9c6e5525e3e201e67426b305edf19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12827/0a6c236840a9c6e5525e3e201e67426b305edf19/make-app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3011, 67, 2910, 12, 9898, 4672, 309, 1610, 67, 78, 266, 30, 2252, 67, 3413, 273, 1104, 67, 6290, 67, 3413, 12, 9898, 13, 2252, 273, 2252, 67, 3413, 18, 2079, 2668, 30, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 3011, 67, 2910, 12, 9898, 4672, 309, 1610, 67, 78, 266, 30, 2252, 67, 3413, 273, 1104, 67, 6290, 67, 3413, 12, 9898, 13, 2252, 273, 2252, 67, 3413, 18, 2079, 2668, 30, 2187,...
result += "finally%s" % compress(node.finallyBlock)
result += "finally{%s}" % statements(node.finallyBlock)
def __try(node): result = "try%s" % compress(node.tryBlock) for catch in node: if catch.type == "catch": if hasattr(catch, "guard"): result += "catch(%s if %s)%s" % (compress(catch.exception), compress(catch.guard), compress(catch.block)) else: result += "catch(%s)%s" % (compress(catch.exception), compress(catch.block...
6f918967544cbf433546239d7804de160ec1130f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/6f918967544cbf433546239d7804de160ec1130f/Compressor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 698, 12, 2159, 4672, 563, 273, 315, 698, 9, 87, 6, 738, 8099, 12, 2159, 18, 698, 1768, 13, 225, 364, 1044, 316, 756, 30, 309, 1044, 18, 723, 422, 315, 14683, 6877, 309, 3859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 698, 12, 2159, 4672, 563, 273, 315, 698, 9, 87, 6, 738, 8099, 12, 2159, 18, 698, 1768, 13, 225, 364, 1044, 316, 756, 30, 309, 1044, 18, 723, 422, 315, 14683, 6877, 309, 3859, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 602) else quickfix.StringField.__init__(self, 602, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 3103, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 3103, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, ...
and string.lstrip(child.data)[:3] == ">>>":
and child.data.lstrip().startswith(">>>"):
def fixup_verbatims(doc): for verbatim in find_all_elements(doc, "verbatim"): child = verbatim.childNodes[0] if child.nodeType == TEXT \ and string.lstrip(child.data)[:3] == ">>>": set_tagName(verbatim, "interactive-session")
e1e96851d480a7d1acf8fd96abaeb00c195ae7b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e1e96851d480a7d1acf8fd96abaeb00c195ae7b1/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 16629, 270, 12097, 12, 2434, 4672, 364, 29526, 316, 1104, 67, 454, 67, 6274, 12, 2434, 16, 315, 16629, 22204, 6, 4672, 1151, 273, 29526, 18, 3624, 3205, 63, 20, 65, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 16629, 270, 12097, 12, 2434, 4672, 364, 29526, 316, 1104, 67, 454, 67, 6274, 12, 2434, 16, 315, 16629, 22204, 6, 4672, 1151, 273, 29526, 18, 3624, 3205, 63, 20, 65, 309,...
dsn_dict["port"] = str(port)
dsn_dict["port"] = port
def __init__(self, dsn=None, host=None, port=None, db=None, user=None, password=None, usePygresql=False, unicodeCols=False, **kw): global psycopg, pgdb self.usePygresql = usePygresql if usePygresql: if pgdb is None: import pgdb self.module = pgdb else: if psycopg is None: try: import psycopg2 as psycopg except ImportEr...
de0f6c897075131c5f71f471486c9f60b8d0540b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/de0f6c897075131c5f71f471486c9f60b8d0540b/pgconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 11676, 33, 7036, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 1319, 33, 7036, 16, 729, 33, 7036, 16, 2201, 33, 7036, 16, 999, 52, 4338, 455, 1217, 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, 1001, 2738, 972, 12, 2890, 16, 11676, 33, 7036, 16, 1479, 33, 7036, 16, 1756, 33, 7036, 16, 1319, 33, 7036, 16, 729, 33, 7036, 16, 2201, 33, 7036, 16, 999, 52, 4338, 455, 1217, 33, ...
raise except_orm(_('UnknownError'), str(e))
raise orm.except_orm(_('UnknownError'), str(e))
def create(self, cr, uid, vals, context={}): try: res = super(account_invoice, self).create(cr, uid, vals, context) return res except Exception,e: if '"journal_id" viol' in e.args[0]: raise except_orm(_('Configuration Error!'), _('There is no Accounting Journal of type Sale/Purchase defined!')) else: raise except_orm(_...
927cf3adf0e7cd4a6a64a7020c2d8065fcfa849e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/927cf3adf0e7cd4a6a64a7020c2d8065fcfa849e/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 12938, 4672, 775, 30, 400, 273, 2240, 12, 4631, 67, 16119, 16, 365, 2934, 2640, 12, 3353, 16, 4555, 16, 5773, 16, 819, 13, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 12938, 4672, 775, 30, 400, 273, 2240, 12, 4631, 67, 16119, 16, 365, 2934, 2640, 12, 3353, 16, 4555, 16, 5773, 16, 819, 13, 327, ...
("http://example/x%2Fy/z", "http://example/x%2Fy/abc", "abc")
("http://example/x%2Fy/z", "http://example/x%2Fy/abc", "abc"), ("http://example/x/abc.efg", "http://example/x/", "./")
def testPaths(self): cases = (("foo:xyz", "bar:abc", "bar:abc"), ('http://example/x/y/z', 'http://example/x/abc', '../abc'), ('http://example2/x/y/z', 'http://example/x/abc', 'http://example/x/abc'), ('http://ex/x/y/z', 'http://ex/x/r', '../r'), # ('http://ex/x/y/z', 'http://ex/r', '../../r'), # DanC had...
2a6409c01871a2d420b757564f5b653c4c86f562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/2a6409c01871a2d420b757564f5b653c4c86f562/uripath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4466, 12, 2890, 4672, 6088, 273, 261, 2932, 11351, 30, 17177, 3113, 315, 3215, 30, 18947, 3113, 315, 3215, 30, 18947, 6, 3631, 7707, 2505, 2207, 8236, 19, 92, 19, 93, 19, 94, 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, 1842, 4466, 12, 2890, 4672, 6088, 273, 261, 2932, 11351, 30, 17177, 3113, 315, 3215, 30, 18947, 3113, 315, 3215, 30, 18947, 6, 3631, 7707, 2505, 2207, 8236, 19, 92, 19, 93, 19, 94, 218...
for child in chain(children, executor.get_all_prerequisites()):
for child in chain(executor.get_all_prerequisites(), children):
def _find_next_ready_node(self): """ Finds the next node that is ready to be built.
80b8109f553893b6032c41e45d0ca0502821de41 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/80b8109f553893b6032c41e45d0ca0502821de41/Taskmaster.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 4285, 67, 1672, 67, 2159, 12, 2890, 4672, 3536, 4163, 87, 326, 1024, 756, 716, 353, 5695, 358, 506, 6650, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 4285, 67, 1672, 67, 2159, 12, 2890, 4672, 3536, 4163, 87, 326, 1024, 756, 716, 353, 5695, 358, 506, 6650, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self._v_cache={}
self._v_cache={}, IOBTree.Bucket()
def manage_advanced(self, key, max_rows, max_cache, cache_time,
820c7c14877fa771d21f5af3109279d4d99493aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/820c7c14877fa771d21f5af3109279d4d99493aa/DA.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 27080, 12, 2890, 16, 498, 16, 943, 67, 3870, 16, 943, 67, 2493, 16, 1247, 67, 957, 16, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10680, 67, 27080, 12, 2890, 16, 498, 16, 943, 67, 3870, 16, 943, 67, 2493, 16, 1247, 67, 957, 16, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if not item.anyTime: item.anyTime = True self.AttributeChanged() return oldValue = getattr(item, attributeName) try: time = DateTimeAttributeEditor.shortTimeFormat.parse( newValueString, referenceDate=oldValue) except ICUError, ValueError: self._changeTextQuietly(self.control, "%s ?" % newValueString) return value...
if iAmStart: if not item.anyTime: item.anyTime = True changed = True else: zeroTime = timedelta() if item.duration != zeroTime: item.duration = zeroTime changed = True forceReload = True else: oldValue = getattr(item, attributeName) try: time = DateTimeAttributeEditor.shortTimeFormat.parse( newValueString, reference...
def SetAttributeValue(self, item, attributeName, valueString): newValueString = valueString.replace('?','').strip() if len(newValueString) == 0: # Clearing an event's start or end time (removing the value in it, causing # it to show "HH:MM") will remove both time values (making it an # anytime event). if not item.anyTi...
e217f397e8cfcdf96f5227b51cde51fedc9ebfbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e217f397e8cfcdf96f5227b51cde51fedc9ebfbf/Detail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 14942, 12, 2890, 16, 761, 16, 9734, 16, 24998, 4672, 6129, 780, 273, 24998, 18, 2079, 2668, 35, 2187, 6309, 2934, 6406, 1435, 309, 562, 12, 2704, 620, 780, 13, 422, 374, 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, 1000, 14942, 12, 2890, 16, 761, 16, 9734, 16, 24998, 4672, 6129, 780, 273, 24998, 18, 2079, 2668, 35, 2187, 6309, 2934, 6406, 1435, 309, 562, 12, 2704, 620, 780, 13, 422, 374, 30, 468,...
if self.callback_process: self.callback_process(True, self, event)
if self.callback_process: self.callback_process(True, self, event)
def _on_key_press(self, editable, event): if event.keyval in (gtk.keysyms.Tab, gtk.keysyms.Escape, gtk.keysyms.Return): if self.mode_cmd: self.mode_cmd = False if self.callback_process: self.callback_process(False, self, event) self.stop_emission("key-press-event") return True elif event.keyval in (ord('+'),ord('-'),or...
10a2aa8769477cf1b618e02c7d7f932cccd795d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/10a2aa8769477cf1b618e02c7d7f932cccd795d0/date_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 265, 67, 856, 67, 1028, 12, 2890, 16, 13754, 16, 871, 4672, 309, 871, 18, 856, 1125, 316, 261, 4521, 79, 18, 2452, 93, 959, 18, 5661, 16, 22718, 18, 2452, 93, 959, 18, 8448, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 265, 67, 856, 67, 1028, 12, 2890, 16, 13754, 16, 871, 4672, 309, 871, 18, 856, 1125, 316, 261, 4521, 79, 18, 2452, 93, 959, 18, 5661, 16, 22718, 18, 2452, 93, 959, 18, 8448, 1...
passwd = _raw_input(prompt)
passwd = _raw_input(prompt, stream)
def unix_getpass(prompt='Password: '): """Prompt for a password, with echo turned off. Restore terminal settings at end. """ try: fd = sys.stdin.fileno() except: return default_getpass(prompt) old = termios.tcgetattr(fd) # a copy to save new = old[:] new[3] = new[3] & ~termios.ECHO # 3 == 'lflags' try: termios....
42477b4f8585f5cfd3d8dba2b8a5b0f74c5a13af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/42477b4f8585f5cfd3d8dba2b8a5b0f74c5a13af/getpass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9753, 67, 588, 5466, 12, 13325, 2218, 3913, 30, 296, 4672, 3536, 15967, 364, 279, 2201, 16, 598, 3376, 21826, 3397, 18, 225, 11197, 8651, 1947, 622, 679, 18, 3536, 225, 775, 30, 5194, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9753, 67, 588, 5466, 12, 13325, 2218, 3913, 30, 296, 4672, 3536, 15967, 364, 279, 2201, 16, 598, 3376, 21826, 3397, 18, 225, 11197, 8651, 1947, 622, 679, 18, 3536, 225, 775, 30, 5194, ...
:type user: integer (example 1) :param vals: dictionary for new record {'field_name': field_value, ...} :type vals: dictionary (example {'field_name': field_value, ...}) :param context(optional, highly recommended): context arguments, like lang, time zone :type context: dictionary (example {'lang': 'en_us', ...})
:type user: integer :param vals: field values for new record, e.g {'field_name': field_value, ...} :type vals: dictionary :param context: optional context arguments, e.g. {'lang': 'en_us', 'tz': 'UTC', ...} :type context: dictionary
def create(self, cr, user, vals, context=None): """ Create new record with specified value
422c0baf16b7859dc5c57bf051201f4443d583eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/422c0baf16b7859dc5c57bf051201f4443d583eb/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 1788, 394, 1409, 598, 1269, 460, 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, 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, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 1788, 394, 1409, 598, 1269, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return(array(deltas))
return(ravel(deltas))
def delta_rms(self, bs=[], w_length=True, w_stress=True): #{{{2 """ Calculate the root mean square (RMS) angle between observed and predicted orientations of failure, assuming the lineament is shifted in longitude by b radians from it's present location, with expected failure orientations determined by the L{StressCalc...
3ce7bee8800eba157d17edf5e5b124d917ff6021 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/3ce7bee8800eba157d17edf5e5b124d917ff6021/lineament.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3622, 67, 29716, 12, 2890, 16, 7081, 22850, 6487, 341, 67, 2469, 33, 5510, 16, 341, 67, 334, 663, 33, 5510, 4672, 3735, 12187, 22, 3536, 9029, 326, 1365, 3722, 8576, 261, 54, 3537, 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, 3622, 67, 29716, 12, 2890, 16, 7081, 22850, 6487, 341, 67, 2469, 33, 5510, 16, 341, 67, 334, 663, 33, 5510, 4672, 3735, 12187, 22, 3536, 9029, 326, 1365, 3722, 8576, 261, 54, 3537, 13,...
return re.compile(".*?application: (\w+)", re.DOTALL).match(result).group(1)
APP_REGEXP = ".*?application: ([\w\-]+)" return re.compile(APP_REGEXP, re.DOTALL).match(result).group(1)
def GetApplicationName(): file = open("app.yaml", "r") result = file.read() file.close() return re.compile(".*?application: (\w+)", re.DOTALL).match(result).group(1)
6a6a0a3d20a3d953c4ef6927a0a25d5dc5efd1ac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/6a6a0a3d20a3d953c4ef6927a0a25d5dc5efd1ac/rietveld.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3208, 461, 13332, 585, 273, 1696, 2932, 2910, 18, 9522, 3113, 315, 86, 7923, 563, 273, 585, 18, 896, 1435, 585, 18, 4412, 1435, 9146, 67, 28225, 273, 3552, 14, 35, 3685, 30, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 3208, 461, 13332, 585, 273, 1696, 2932, 2910, 18, 9522, 3113, 315, 86, 7923, 563, 273, 585, 18, 896, 1435, 585, 18, 4412, 1435, 9146, 67, 28225, 273, 3552, 14, 35, 3685, 30, 261, ...
r_mainauthortag = config.get(config.get("rank_method", "function"), "main_author_tag") r_coauthortag = config.get(config.get("rank_method", "function"), "coauthor_tag") r_extauthortag = config.get(config.get("rank_method", "function"), "extauthor_tag")
r_mainauthortag = config.get(config.get("rank_method", "function"), "first_author") r_coauthortag = config.get(config.get("rank_method", "function"), "additiona_author") r_extauthortag = config.get(config.get("rank_method", "function"), "extauthor")
def get_self_citations(new_record_list, citationdic, initial_selfcitdict, config): """Check which items have been cited by one of the authors of the citing item: go through id's in new_record_list, use citationdic to get citations, update "selfcites". Selfcites is originally initial_selfcitdict. Return selfcites. """ i...
6bd8928789e2be0641fc3eec567c56491b4ba708 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/6bd8928789e2be0641fc3eec567c56491b4ba708/bibrank_citation_indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2890, 67, 71, 18282, 12, 2704, 67, 3366, 67, 1098, 16, 21145, 15859, 16, 2172, 67, 2890, 71, 305, 1576, 16, 642, 4672, 3536, 1564, 1492, 1516, 1240, 2118, 276, 16261, 635, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2890, 67, 71, 18282, 12, 2704, 67, 3366, 67, 1098, 16, 21145, 15859, 16, 2172, 67, 2890, 71, 305, 1576, 16, 642, 4672, 3536, 1564, 1492, 1516, 1240, 2118, 276, 16261, 635, 124...
@inject(value=Data, annotation='old')
@inject(value=Data) @annotate(value='old')
def describe_a_child_inheriting_an_injected_method(): class Parent(object): @inject(value=Data, annotation='old') def set_parent_value(self, value): self.parent_value = value class Child(Parent): @inject(value=Data, annotation='new') def set_child_value(self, value): self.child_value = value instance = Injector(Modul...
6666468ab1a47b02bb06d2e0c749cae07283f8d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4277/6666468ab1a47b02bb06d2e0c749cae07283f8d6/inheritance_spec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6401, 67, 69, 67, 3624, 67, 6018, 310, 67, 304, 67, 267, 6059, 67, 2039, 13332, 667, 9520, 12, 1612, 4672, 632, 22170, 12, 1132, 33, 751, 13, 632, 18338, 340, 12, 1132, 2218, 1673, 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, 6401, 67, 69, 67, 3624, 67, 6018, 310, 67, 304, 67, 267, 6059, 67, 2039, 13332, 667, 9520, 12, 1612, 4672, 632, 22170, 12, 1132, 33, 751, 13, 632, 18338, 340, 12, 1132, 2218, 1673, 6...
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(1786772701928802632268715130455793,1059683225053915111058165141686995,1,1) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) <= n: self._precompute(n - len(self._b) + 1) return ...
class A083104(RecurrenceSequence2): def __init__(self): r""" Second-order linear recurrence sequence with $a(n) = a(n-1) + a(n-2)$. $a(0) = 331635635998274737472200656430763$, $a(1) = 1510028911088401971189590305498785$. This is the second-order linear recurrence sequence with $a(0)$ and $a(1)$ co-prime. It was found ...
def _precompute(self, how_many=10): try: f = self._f except AttributeError: self._f = recur_gen2(1786772701928802632268715130455793,1059683225053915111058165141686995,1,1) f = self._f self._b += [f.next() for i in range(how_many)]
7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1484, 9200, 12, 2890, 16, 3661, 67, 9353, 33, 2163, 4672, 775, 30, 284, 273, 365, 6315, 74, 1335, 6394, 30, 365, 6315, 74, 273, 8112, 67, 4507, 22, 12, 4033, 5292, 4700, 5324, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1484, 9200, 12, 2890, 16, 3661, 67, 9353, 33, 2163, 4672, 775, 30, 284, 273, 365, 6315, 74, 1335, 6394, 30, 365, 6315, 74, 273, 8112, 67, 4507, 22, 12, 4033, 5292, 4700, 5324, 1...
self.sock, host = clamav_conf.new_connection() self.wsock = clamav_conf.new_scansock(self.sock, host)
self.clamav_conf = clamav_conf self.sock, host = self.clamav_conf.new_connection() self.wsock = self.clamav_conf.new_scansock(self.sock, host)
def __init__ (self): """initialize clamd daemon process connection""" self.infected = [] self.errors = [] self.sock, host = clamav_conf.new_connection() self.wsock = clamav_conf.new_scansock(self.sock, host)
c1d07a5dae765cc144bb6ec68299de892bfde3ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/c1d07a5dae765cc144bb6ec68299de892bfde3ff/VirusFilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 4672, 3536, 11160, 927, 301, 72, 8131, 1207, 1459, 8395, 365, 18, 10625, 828, 273, 5378, 365, 18, 4324, 273, 5378, 365, 18, 15031, 16, 1479, 273, 927, 301, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 3536, 11160, 927, 301, 72, 8131, 1207, 1459, 8395, 365, 18, 10625, 828, 273, 5378, 365, 18, 4324, 273, 5378, 365, 18, 15031, 16, 1479, 273, 927, 301, ...
methods = zi.Attribute("""@cvar methods: returns an iterator over all of the ITestMethods this TestSuite's ITestRunner objects have generated during the test run @note: this attribute is dynamically generated. if you access it before the tests have been run, the results are undefined""")
methods = zi.Attribute( """@cvar methods: returns an iterator over all of the ITestMethods this TestSuite's ITestRunner objects have generated during the test run @note: this attribute is dynamically generated. if you access it before the tests have been run, the results are undefined""")
def tearDown(): """I am run after each method is run"""
0890a2331ecc0224902839aa0bfb229eaa875f68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/0890a2331ecc0224902839aa0bfb229eaa875f68/itrial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 13332, 3536, 45, 2125, 1086, 1839, 1517, 707, 353, 1086, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 268, 2091, 4164, 13332, 3536, 45, 2125, 1086, 1839, 1517, 707, 353, 1086, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
a difference should be before the adaptive refinement code considers it significant. See the documentation for plot() for more information.
a relative difference should be before the adaptive refinement code considers it significant; see documentation for generate_plot_points for more information. See the documentation for plot() for more information on how the adaptive refinement algorithm works.
def adaptive_refinement(f, p1, p2, adaptive_tolerance=0.01, adaptive_recursion=5, level=0): r""" The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: - ``f`` - a function of one variable - ``p1, p2`` - two points to refine between - `...
6ee09620a1c4006adbbc2bd5fab45654116ded1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ee09620a1c4006adbbc2bd5fab45654116ded1e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5855, 688, 67, 266, 926, 820, 12, 74, 16, 293, 21, 16, 293, 22, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 1801, 33, 20, 4672, 436, 8395, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5855, 688, 67, 266, 926, 820, 12, 74, 16, 293, 21, 16, 293, 22, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 1801, 33, 20, 4672, 436, 8395, 1...
b2 = OWGUI.widgetBox(self.controlArea, ' Show Predictions for All Examples ')
self.showGraphCheck = OWGUI.checkBox(self.controlArea, self, 'showPredictionsInProjection', 'Color the points using class predictions', box = "Show predictions in the projection", tooltip = "For all examples show the probabilities of correct class using color intensity of points in the projection", callback = self.tog...
def __init__(self,parent=None, signalManager = None, widget = None, graph = None): OWWidget.__init__(self, parent, signalManager, "Outlier Identification", wantGraph = 1, wantStatusBar = 1)
e3df9a05bf2a870202a624caa36c565c14683552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/e3df9a05bf2a870202a624caa36c565c14683552/OWkNNOptimization.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 3604, 273, 599, 16, 2667, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 3604, 273, 599, 16, 2667, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318,...
status, output = commands.getstatusoutput("""dellBiosUpdate -u -f %s""" % os.path.join(pkg.path, "bios.hdr"))
status, output = commands.getstatusoutput("""dellBiosUpdate -u -f %s""" % os.path.join(self.path, "bios.hdr"))
def install(self): ret = os.system("/sbin/modprobe dell_rbu") if ret: return (0, rbu_load_error) status, output = commands.getstatusoutput("""dellBiosUpdate -u -f %s""" % os.path.join(pkg.path, "bios.hdr")) if status: raise package.InstallError(bios_update_error % output) return 1
210f0d286a8edc307eb1ef3acfec91c220cd25d7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/36/210f0d286a8edc307eb1ef3acfec91c220cd25d7/dellbios.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 4672, 325, 273, 1140, 18, 4299, 2932, 19, 87, 4757, 19, 1711, 27230, 302, 1165, 67, 6731, 89, 7923, 309, 325, 30, 327, 261, 20, 16, 7138, 89, 67, 945, 67, 1636, 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, 3799, 12, 2890, 4672, 325, 273, 1140, 18, 4299, 2932, 19, 87, 4757, 19, 1711, 27230, 302, 1165, 67, 6731, 89, 7923, 309, 325, 30, 327, 261, 20, 16, 7138, 89, 67, 945, 67, 1636, 13, ...
needDNnode = False elif keyInfoNode: x509DNodes = keyInfoNode.getElementsByTagNameNS(keyInfoNS, 'X509Data') for x509DNode in x509DNodes: x509Subject = GetNodeData(x509DNode.getElementsByTagNameNS(keyInfoNS, 'X509SubjectName')) if x509Subject and FixDN(x509Subject) == certInfo['DN']: needDNnode = False break if needDN...
else: if not DNnode: DNnode = xmlDoc.createElementNS(namespace, 'DN')
def verifyFromCertInfo(xmlDoc, userIdentityNode, namespace, prefix): " Use localJobID and probeName to find cert info file and insert info into XML record" # Collect data needed by certinfo reader DebugPrint(4, "DEBUG: Get JobIdentity") JobIdentityNode = GetNode(xmlDoc.getElementsByTagNameNS(namespace, 'JobIdentity'))...
9e383afefc23f3d1379a66d96e3c0c59615d37ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/9e383afefc23f3d1379a66d96e3c0c59615d37ec/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 1265, 5461, 966, 12, 2902, 1759, 16, 729, 4334, 907, 16, 1981, 16, 1633, 4672, 315, 2672, 1191, 2278, 734, 471, 10695, 461, 358, 1104, 3320, 1123, 585, 471, 2243, 1123, 1368, 3167,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 1265, 5461, 966, 12, 2902, 1759, 16, 729, 4334, 907, 16, 1981, 16, 1633, 4672, 315, 2672, 1191, 2278, 734, 471, 10695, 461, 358, 1104, 3320, 1123, 585, 471, 2243, 1123, 1368, 3167,...
if DNET:
if 0 and DNET:
def set_promisc(s,iff,val=1): mreq = struct.pack("IHH8s", get_if_index(iff), PACKET_MR_PROMISC, 0, "") if val: cmd = PACKET_ADD_MEMBERSHIP else: cmd = PACKET_DROP_MEMBERSHIP s.setsockopt(SOL_PACKET, cmd, mreq)
f758300b4fd16186d617c29fdfd1bd4ded014243 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/f758300b4fd16186d617c29fdfd1bd4ded014243/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 17401, 291, 71, 12, 87, 16, 3048, 16, 1125, 33, 21, 4672, 312, 3658, 273, 1958, 18, 2920, 2932, 45, 17500, 28, 87, 3113, 336, 67, 430, 67, 1615, 12, 3048, 3631, 453, 17750, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 17401, 291, 71, 12, 87, 16, 3048, 16, 1125, 33, 21, 4672, 312, 3658, 273, 1958, 18, 2920, 2932, 45, 17500, 28, 87, 3113, 336, 67, 430, 67, 1615, 12, 3048, 3631, 453, 17750, ...
return StringIO(msgbuf)
if buf == '': break msgbuf.append(buf) return StringIO("".join(msgbuf))
def makefile(self, mode, bufsize=None): """Return a readable file-like object with data from socket.
dda7741de7f788964931d8179b1cc1d9a81194cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dda7741de7f788964931d8179b1cc1d9a81194cb/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 768, 12, 2890, 16, 1965, 16, 1681, 1467, 33, 7036, 4672, 3536, 990, 279, 7471, 585, 17, 5625, 733, 598, 501, 628, 2987, 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, 1221, 768, 12, 2890, 16, 1965, 16, 1681, 1467, 33, 7036, 4672, 3536, 990, 279, 7471, 585, 17, 5625, 733, 598, 501, 628, 2987, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
options.useRunPython = True
options.runLauncher = False if options.mode is None: options.modes = modes = ['release', 'debug'] for mode in modes: if not os.path.isdir(os.path.join(options.chandlerBin, mode)): options.modes.remove(mode) else: options.mode = options.mode.strip().lower() options.modes = [options.mode] if not os.path.isdir(os.pa...
def checkOptions(options): """ Sanity check options. Some options may be changed, and some combinations will be warned about while some combinations will result in program exit. >>> options = parseOptions() >>> checkOptions(options) >>> d = eval(str(options)) >>> keys = d.keys() >>> keys.sort() >>> for key in keys: .....
af34e6a7a2160f1862685baa804a3205994c1ff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/af34e6a7a2160f1862685baa804a3205994c1ff0/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1320, 12, 2116, 4672, 3536, 23123, 866, 702, 18, 10548, 702, 2026, 506, 3550, 16, 471, 2690, 17265, 903, 506, 1894, 329, 2973, 1323, 2690, 17265, 903, 563, 316, 5402, 2427, 18, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1320, 12, 2116, 4672, 3536, 23123, 866, 702, 18, 10548, 702, 2026, 506, 3550, 16, 471, 2690, 17265, 903, 506, 1894, 329, 2973, 1323, 2690, 17265, 903, 563, 316, 5402, 2427, 18, 225,...
str = _write_lp_hunk(self._out, s)
str_ = _write_lp_hunk(self._out, s)
def respond(self, body): _log("responding with: %s" % body) #_log("objects: %s" % self._objects) s = dumps(body) _log(`s`) str = _write_lp_hunk(self._out, s)
d5f17df58ca45e68ce1ad548f1d0ed25f44eae9b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/d5f17df58ca45e68ce1ad548f1d0ed25f44eae9b/saranwrap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6846, 12, 2890, 16, 1417, 4672, 389, 1330, 2932, 17863, 310, 598, 30, 738, 87, 6, 738, 1417, 13, 468, 67, 1330, 2932, 6911, 30, 738, 87, 6, 738, 365, 6315, 6911, 13, 272, 273, 6711, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6846, 12, 2890, 16, 1417, 4672, 389, 1330, 2932, 17863, 310, 598, 30, 738, 87, 6, 738, 1417, 13, 468, 67, 1330, 2932, 6911, 30, 738, 87, 6, 738, 365, 6315, 6911, 13, 272, 273, 6711, ...
stdout, stderr = convert(self, self.source_converter)
try: stdout, stderr = convert(self, self.source_converter) except (OSError, IOError): context = get_context() context.server.log_error(context) return u''
def to_text(self): stdout, stderr = convert(self, self.source_converter)
f0a6e39b74a46a79deb904888e16bbdc070f8edc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/f0a6e39b74a46a79deb904888e16bbdc070f8edc/binary.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 67, 955, 12, 2890, 4672, 3909, 16, 4514, 273, 1765, 12, 2890, 16, 365, 18, 3168, 67, 15747, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 358, 67, 955, 12, 2890, 4672, 3909, 16, 4514, 273, 1765, 12, 2890, 16, 365, 18, 3168, 67, 15747, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
re_val += "(?P<sta>\[\[)?%s(?(sta)\]\])?|" % (re.escape(val))
re_val += "(?P<sta>\[\[)%s(?(sta)\]\])|" % (re.escape(val))
def metatable_parseargs(request, args, get_all_keys=False, get_all_pages=False, checkAccess=True, include_unsaved=False): if not args: # If called from a macro such as MetaTable, # default to getting the current page req_page = request.page if get_all_pages or req_page is None or req_page.page_name is None: args = "" e...
763a7c86a70db2a144270dd2751763c13470d5a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/763a7c86a70db2a144270dd2751763c13470d5a5/editing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5100, 8163, 67, 2670, 1968, 12, 2293, 16, 833, 16, 336, 67, 454, 67, 2452, 33, 8381, 16, 336, 67, 454, 67, 7267, 33, 8381, 16, 28484, 33, 5510, 16, 2341, 67, 318, 14077, 33, 8381, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5100, 8163, 67, 2670, 1968, 12, 2293, 16, 833, 16, 336, 67, 454, 67, 2452, 33, 8381, 16, 336, 67, 454, 67, 7267, 33, 8381, 16, 28484, 33, 5510, 16, 2341, 67, 318, 14077, 33, 8381, ...
module = __import__("bootstrap_pci", globals(), locals(), [])
pymod = "firmwaretools.bootstrap_pci" module = __import__(pymod, globals(), locals(), []) for i in pymod.split(".")[1:]: module = getattr(module, i)
def BootstrapGenerator(): sysId = biosHdr.getSystemId() for i in [ "system_bios(ven_0x1028_dev_0x%04x)", "bmc_firmware(ven_0x1028_dev_0x%04x)" ]: p = package.Device( name = (i % sysId).lower() ) yield p # output all normal PCI bootstrap packages with system-specific name module = __import__("bootstrap_pci", globals()...
4a346c370ba3c502e2ef9448476f1907aab69814 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/36/4a346c370ba3c502e2ef9448476f1907aab69814/dellbios.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11830, 3908, 13332, 2589, 548, 273, 324, 7441, 14659, 18, 588, 3163, 548, 1435, 225, 364, 277, 316, 306, 315, 4299, 67, 70, 7441, 12, 3995, 67, 20, 92, 2163, 6030, 67, 5206, 67, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11830, 3908, 13332, 2589, 548, 273, 324, 7441, 14659, 18, 588, 3163, 548, 1435, 225, 364, 277, 316, 306, 315, 4299, 67, 70, 7441, 12, 3995, 67, 20, 92, 2163, 6030, 67, 5206, 67, 20, ...
'location_dest_id': production.location_src_id.id,
'location_dest_id': routing_loc or production.location_src_id.id,
def action_confirm(self, cr, uid, ids): picking_id=False for production in self.browse(cr, uid, ids): if not production.product_lines: self.action_compute(cr, uid, [production.id]) production = self.browse(cr, uid, [production.id])[0] picking_id = self.pool.get('stock.picking').create(cr, uid, { 'origin': (production.o...
dd7225cf1e5d75eb06863e5a66d93aa31d528792 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/dd7225cf1e5d75eb06863e5a66d93aa31d528792/mrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 6002, 310, 67, 350, 33, 8381, 364, 12449, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 486, 12449, 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, 1301, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 6002, 310, 67, 350, 33, 8381, 364, 12449, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 309, 486, 12449, 18, ...
_s = traceback.extract_tb(tb)
try: g_traceback_lock.acquire() _s = traceback.extract_tb(tb) finally: g_traceback_lock.release()
def my_extract_tb(tb): _s = traceback.extract_tb(tb) s = [] for (p, ln, fn, text) in _s: path = as_unicode(calc_frame_path(tb.tb_frame), sys.getfilesystemencoding()) if text == None: text = '' s.append((path, ln, as_unicode(fn), as_unicode(text))) tb = tb.tb_next if tb == None: break return s
3936cfe7191507813ad88daecdb00c41fdd1a2a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9402/3936cfe7191507813ad88daecdb00c41fdd1a2a6/rpdb2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 67, 8004, 67, 18587, 12, 18587, 4672, 775, 30, 314, 67, 21696, 67, 739, 18, 1077, 1039, 1435, 389, 87, 273, 10820, 18, 8004, 67, 18587, 12, 18587, 13, 225, 3095, 30, 314, 67, 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, 3399, 67, 8004, 67, 18587, 12, 18587, 4672, 775, 30, 314, 67, 21696, 67, 739, 18, 1077, 1039, 1435, 389, 87, 273, 10820, 18, 8004, 67, 18587, 12, 18587, 13, 225, 3095, 30, 314, 67, 2...
distrFlags=DISTR_FLAG_EXTENDEDREFERENCES
distrFlags=(DISTR_FLAG_EXTENDEDREFERENCES| DISTR_FLAG_EXTENDEDPIDSPORTS)
def __init__(self, netTickTime=60, shortNodeNames=1, cookie="", distrVersion=5, distrFlags=DISTR_FLAG_EXTENDEDREFERENCES ): self._netTickTime = netTickTime self._shortNodeNames = shortNodeNames self._cookie = cookie self._distrVersion = distrVersion self._distrFlags = distrFlags
daf40afcf6c4b3ae0c25aba3ebccbe543c8bfdfd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/daf40afcf6c4b3ae0c25aba3ebccbe543c8bfdfd/erl_opts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2901, 6264, 950, 33, 4848, 16, 3025, 907, 1557, 33, 21, 16, 3878, 1546, 3113, 1015, 313, 1444, 33, 25, 16, 1015, 313, 5094, 28657, 2565, 3902, 67, 9651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2901, 6264, 950, 33, 4848, 16, 3025, 907, 1557, 33, 21, 16, 3878, 1546, 3113, 1015, 313, 1444, 33, 25, 16, 1015, 313, 5094, 28657, 2565, 3902, 67, 9651, ...
XXX: I think it is, because the one who added it did not document it ;-) (mrtopf - 2003/07/20)
def isBinary(self): return True
6bf0b4d803f7a6c42f16af81053d806d99f67096 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12165/6bf0b4d803f7a6c42f16af81053d806d99f67096/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5905, 12, 2890, 4672, 327, 1053, 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, 353, 5905, 12, 2890, 4672, 327, 1053, 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, -10...
def plot_isih(spike_trains, bin_size=1, trial_num=None, axis=None, style='', **kwargs): """ Plot inter-spike interval histogram. """ import matplotlib.pyplot as plt
def calc_isih(spike_trains, bin_size=1, trial_num=None): """ Calculate inter-spike interval histogram. >>> spikes = [np.array([1,2,3]), np.array([2,5,8])] >>> calc_isih(spikes) (array([ 1., 1.]), array([ 1.5, 2.5])) """
def plot_psth(spike_trains, bin_size=1, trial_num=None, axis=None, style='', **kwargs): """ Plots PSTH of spike_trains. spike_trains: list of spike trains bin_size: bin size in ms trial_num: total number of trials axis: axis to draw on **kwargs: plt.plot arguments """ import matplotlib.pyplot as plt all_spikes = np.c...
1407da21fff05aaaab170d93e79e5d335e125ea7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7039/1407da21fff05aaaab170d93e79e5d335e125ea7/_thorns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 84, 20244, 12, 1752, 2547, 67, 313, 4167, 16, 4158, 67, 1467, 33, 21, 16, 12950, 67, 2107, 33, 7036, 16, 2654, 33, 7036, 16, 2154, 2218, 2187, 2826, 4333, 4672, 3536, 3008, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 84, 20244, 12, 1752, 2547, 67, 313, 4167, 16, 4158, 67, 1467, 33, 21, 16, 12950, 67, 2107, 33, 7036, 16, 2654, 33, 7036, 16, 2154, 2218, 2187, 2826, 4333, 4672, 3536, 3008, ...
os.chmod(self.port, self.mode)
try: os.chmod(self.port, self.mode) except: pass
def startListening(self): """Create and bind my socket, and begin listening on it.
b179b298195f5b78c8f637eca6973ab49e6d0b89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b179b298195f5b78c8f637eca6973ab49e6d0b89/unix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 31594, 12, 2890, 4672, 3536, 1684, 471, 1993, 3399, 2987, 16, 471, 2376, 13895, 603, 518, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 31594, 12, 2890, 4672, 3536, 1684, 471, 1993, 3399, 2987, 16, 471, 2376, 13895, 603, 518, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._lock = threading.Condition(threading.Lock())
self._lock = threading.Lock() self._pool_to_pool = threading.Condition(self._lock) self._pool_to_worker = threading.Condition(self._lock) self._worker_to_pool = threading.Condition(self._lock)
def __init__(self, num_workers, worker_class): """Constructor for worker pool.
53b1d12b5b5f675bc88c087d1832727190254aa1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/53b1d12b5b5f675bc88c087d1832727190254aa1/workerpool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 818, 67, 15625, 16, 4322, 67, 1106, 4672, 3536, 6293, 364, 4322, 2845, 18, 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, 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, 1001, 2738, 972, 12, 2890, 16, 818, 67, 15625, 16, 4322, 67, 1106, 4672, 3536, 6293, 364, 4322, 2845, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
pass
return inputdict
def selfPopulateAndPrep(jobpers): pop = jobpers.newPopulationTransaction() row = pop.insertTask("AABBCCDD") # a command with no input and one independent output (ready to go) pop.insertCmd(2, "ncap", "ncap -o %outf_indep.nc%") pop.insertInOut(2, "%outf_indep.nc%", "/tmp/temp1111outf_indep.nc", True, 1, False) # a comma...
aa6dbde9561cfb726097d6d2202601935b050184 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/aa6dbde9561cfb726097d6d2202601935b050184/ssdap_dbutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 365, 19097, 1876, 15543, 12, 4688, 10422, 4672, 1843, 273, 1719, 10422, 18, 2704, 31821, 3342, 1435, 1027, 273, 1843, 18, 6387, 2174, 2932, 37, 2090, 38, 6743, 5698, 7923, 468, 279, 1296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 365, 19097, 1876, 15543, 12, 4688, 10422, 4672, 1843, 273, 1719, 10422, 18, 2704, 31821, 3342, 1435, 1027, 273, 1843, 18, 6387, 2174, 2932, 37, 2090, 38, 6743, 5698, 7923, 468, 279, 1296, ...
def __init__(self, tableName, alias=None):
def __init__(self, table, alias=None): if hasattr(table, "sqlmeta"): tableName = table.sqlmeta.table else: tableName = table table = None
def __init__(self, tableName, alias=None): Table.__init__(self, tableName) if alias is None: self._alias_lock.acquire() try: AliasTable._alias_counter += 1 alias = "%s_alias%d" % (tableName, AliasTable._alias_counter) finally: self._alias_lock.release() self.alias = alias
0cdc172772cf96add0e0559ba28d6788a6cb6711 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/0cdc172772cf96add0e0559ba28d6788a6cb6711/sqlbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1014, 16, 2308, 33, 7036, 4672, 309, 3859, 12, 2121, 16, 315, 4669, 3901, 6, 4672, 4775, 273, 1014, 18, 4669, 3901, 18, 2121, 469, 30, 4775, 273, 1014, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1014, 16, 2308, 33, 7036, 4672, 309, 3859, 12, 2121, 16, 315, 4669, 3901, 6, 4672, 4775, 273, 1014, 18, 4669, 3901, 18, 2121, 469, 30, 4775, 273, 1014, ...
if AbstractMapping.subclass: return AbstractMapping.subclass(*args_, **kwargs_) else: return AbstractMapping(*args_, **kwargs_)
if AbstractSet.subclass: return AbstractSet.subclass(*args_, **kwargs_) else: return AbstractSet(*args_, **kwargs_)
def factory(*args_, **kwargs_): if AbstractMapping.subclass: return AbstractMapping.subclass(*args_, **kwargs_) else: return AbstractMapping(*args_, **kwargs_)
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3272, 30857, 1968, 67, 16, 2826, 4333, 67, 4672, 309, 4115, 3233, 18, 10678, 30, 327, 4115, 3233, 18, 10678, 30857, 1968, 67, 16, 2826, 4333, 67, 13, 469, 30, 327, 4115, 3233, 30857, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3272, 30857, 1968, 67, 16, 2826, 4333, 67, 4672, 309, 4115, 3233, 18, 10678, 30, 327, 4115, 3233, 18, 10678, 30857, 1968, 67, 16, 2826, 4333, 67, 13, 469, 30, 327, 4115, 3233, 30857, 1...
has_children = True
def get_all_selected_packages(self, tree_model, boolean_col = 0,\ name_col = 1): n = len(tree_model) names = [] has_children = False for row in tree_model: for child_row in row.iterchildren(): if child_row[boolean_col]: has_children = True names.append(child_row[name_col]) if not has_children and row[boolean_col]: nam...
6fda9953b581d2e4cdee0641352dd5e59e313735 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/6fda9953b581d2e4cdee0641352dd5e59e313735/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 454, 67, 8109, 67, 10308, 12, 2890, 16, 2151, 67, 2284, 16, 1250, 67, 1293, 273, 374, 17211, 508, 67, 1293, 273, 404, 4672, 290, 273, 562, 12, 3413, 67, 2284, 13, 225, 1257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 454, 67, 8109, 67, 10308, 12, 2890, 16, 2151, 67, 2284, 16, 1250, 67, 1293, 273, 374, 17211, 508, 67, 1293, 273, 404, 4672, 290, 273, 562, 12, 3413, 67, 2284, 13, 225, 1257,...
self._data[index] = long(getattr(self, name), self._data[index])
self._data[index] = long(getattr(self, name))
def pack(self): format = getattr(self, 'format_' + self.dev, None) if format: if callable(format): for index, value in format(): self._data[index] = long(value) else: for index, name in format: self._data[index] = long(getattr(self, name), self._data[index]) return struct.pack(trigger_base_format, *self._data)
59e85a7d0a59a0def87583b2f09cc68608a736c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/59e85a7d0a59a0def87583b2f09cc68608a736c1/infilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2890, 4672, 740, 273, 3869, 12, 2890, 16, 296, 2139, 4623, 397, 365, 18, 5206, 16, 599, 13, 309, 740, 30, 309, 4140, 12, 2139, 4672, 364, 770, 16, 460, 316, 740, 13332, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2890, 4672, 740, 273, 3869, 12, 2890, 16, 296, 2139, 4623, 397, 365, 18, 5206, 16, 599, 13, 309, 740, 30, 309, 4140, 12, 2139, 4672, 364, 770, 16, 460, 316, 740, 13332, 365...
'%s/devel/sage/sage/gsl'%SAGE_ROOT]
'%s/devel/sage/sage/gsl/'%SAGE_ROOT]
def cblas(): if os.environ.has_key('SAGE_CBLAS'): return os.environ['SAGE_CBLAS'] elif os.path.exists('/usr/lib/libcblas.dylib') or \ os.path.exists('/usr/lib/libcblas.so'): return 'cblas' elif os.path.exists('/usr/lib/libblas.dll.a'): # untested. return 'blas' else: # This is very slow (?), but *guaranteed* to be a...
2088d00827244d1d8dde8440e41bfdcc8c55199f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/2088d00827244d1d8dde8440e41bfdcc8c55199f/cython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 9521, 13332, 309, 1140, 18, 28684, 18, 5332, 67, 856, 2668, 55, 2833, 67, 8876, 2534, 55, 11, 4672, 327, 1140, 18, 28684, 3292, 55, 2833, 67, 8876, 2534, 55, 3546, 1327, 1140, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2875, 9521, 13332, 309, 1140, 18, 28684, 18, 5332, 67, 856, 2668, 55, 2833, 67, 8876, 2534, 55, 11, 4672, 327, 1140, 18, 28684, 3292, 55, 2833, 67, 8876, 2534, 55, 3546, 1327, 1140, 18...
return bugzilla_tracker_factory(bt)
bt_class = bugzilla_tracker_factory(bt)
def generate_bugzilla_tracker_classes(tracker_name=None): # If a tracker name was passed in then return the # specific sub-class for that tracker. if tracker_name: try: bt = customs.models.BugzillaTracker.all_trackers.get(project_name=tracker_name) return bugzilla_tracker_factory(bt) except mysite.customs.models.Bugzil...
a7e2fae6ce60e13d5d4367208cf844134c441806 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/a7e2fae6ce60e13d5d4367208cf844134c441806/bugzilla.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 925, 15990, 67, 16543, 67, 4701, 12, 16543, 67, 529, 33, 7036, 4672, 468, 971, 279, 9745, 508, 1703, 2275, 316, 1508, 327, 326, 468, 2923, 720, 17, 1106, 364, 716, 9745, 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, 2103, 67, 925, 15990, 67, 16543, 67, 4701, 12, 16543, 67, 529, 33, 7036, 4672, 468, 971, 279, 9745, 508, 1703, 2275, 316, 1508, 327, 326, 468, 2923, 720, 17, 1106, 364, 716, 9745, 18, ...
reuse_constant) | 1
socket.SO_REUSEADDR) | 1
def set_reuse_addr(self): # try to re-use a server port if possible try: # Windows SO_REUSEADDR is very broken (from a unixy perspective) if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR
9d499f2f96197b5a8deeff98228c667adb4b43e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9d499f2f96197b5a8deeff98228c667adb4b43e6/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 266, 1202, 67, 4793, 12, 2890, 4672, 468, 775, 358, 283, 17, 1202, 279, 1438, 1756, 309, 3323, 775, 30, 468, 8202, 7460, 67, 862, 8001, 14142, 353, 8572, 12933, 261, 2080, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 266, 1202, 67, 4793, 12, 2890, 4672, 468, 775, 358, 283, 17, 1202, 279, 1438, 1756, 309, 3323, 775, 30, 468, 8202, 7460, 67, 862, 8001, 14142, 353, 8572, 12933, 261, 2080, 279...
sage: s = \"""def hello(): ....: print 'hello' ....: \"""
sage: s = "def hello():\n print 'hello'\n"
sage: s = \"""def hello():
3ee10449eeddead5bcc592b9716f70b9b790d421 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3ee10449eeddead5bcc592b9716f70b9b790d421/cython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 272, 410, 30, 272, 273, 1239, 3660, 536, 19439, 13332, 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, 272, 410, 30, 272, 273, 1239, 3660, 536, 19439, 13332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
"""Show the preferences window."""
""" Shows the preferences window. Parameters: button -- reserved for GTK callbacks, don't use it explicitly. """
def OnPreferences(self, button): """Show the preferences window."""
fdad701ef3921349b1a997410400939cb276664e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/fdad701ef3921349b1a997410400939cb276664e/WelcomeDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 12377, 12, 2890, 16, 3568, 4672, 3536, 5706, 326, 12750, 2742, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2755, 12377, 12, 2890, 16, 3568, 4672, 3536, 5706, 326, 12750, 2742, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
cmd = base + "adp.shift_b_iso=20.0 selection='%s'"%str(selection_str)
cmd = base + 'adp.shift_b_iso=20.0 selection="%s"'%str(selection_str)
def run(file_name = "phe_e.pdb"): file_name = libtbx.env.find_in_repositories( relative_path="phenix_regression/pdb/%s"%file_name, test=os.path.isfile) output = "modified.pdb" xrsp_init = xray_structure_plus(file_name = file_name) base = \ "mmtbx.pdbtools %s output.pdb.file_name=%s --quiet "%(file_name, output) for sel...
d3b962327f9bfcab4633f0d80f058ec29ecde30b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/d3b962327f9bfcab4633f0d80f058ec29ecde30b/tst_pdbtools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 768, 67, 529, 273, 315, 84, 580, 67, 73, 18, 17414, 6, 4672, 585, 67, 529, 273, 2561, 18587, 92, 18, 3074, 18, 4720, 67, 267, 67, 26626, 12, 3632, 67, 803, 1546, 13819, 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, 1086, 12, 768, 67, 529, 273, 315, 84, 580, 67, 73, 18, 17414, 6, 4672, 585, 67, 529, 273, 2561, 18587, 92, 18, 3074, 18, 4720, 67, 267, 67, 26626, 12, 3632, 67, 803, 1546, 13819, 6...
env['CONTENT_TYPE'] = self.headers.type
if self.headers.typeheader is None: env['CONTENT_TYPE'] = self.headers.type else: env['CONTENT_TYPE'] = self.headers.typeheader
def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = string.rfind(rest, '?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = string.find(rest, '/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.tran...
8dcaed2e2b1bfe85d8f124e22c905a84d5343729 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8dcaed2e2b1bfe85d8f124e22c905a84d5343729/CGIHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 277, 273, 533, 18, 86, 4720, 12, 8792, 16, 6787, 13, 309, 277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19062, 12, 2890, 4672, 3536, 5289, 279, 385, 13797, 2728, 12123, 1577, 16, 3127, 273, 365, 18, 19062, 67, 1376, 277, 273, 533, 18, 86, 4720, 12, 8792, 16, 6787, 13, 309, 277,...
version = pickle.load(fo)
version = cPickle.load(fo)
def read (self, fo): version = pickle.load(fo) if version == DBVersion: self.Counter = pickle.load (fo) self.Jobs = pickle.load (fo) self.Workers = pickle.load (fo) self._refresh () #self.dump () else: raise Exception ("Database too old, erase the master_db file") self.clear ()
20fa391431a1b90b1c3b6ef9899a92a7762119ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1233/20fa391431a1b90b1c3b6ef9899a92a7762119ad/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 261, 2890, 16, 18261, 4672, 1177, 273, 276, 17968, 298, 18, 945, 12, 617, 13, 309, 1177, 422, 2383, 1444, 30, 365, 18, 4789, 273, 13379, 18, 945, 261, 617, 13, 365, 18, 7276, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 261, 2890, 16, 18261, 4672, 1177, 273, 276, 17968, 298, 18, 945, 12, 617, 13, 309, 1177, 422, 2383, 1444, 30, 365, 18, 4789, 273, 13379, 18, 945, 261, 617, 13, 365, 18, 7276, 27...
norun("slogin clamadm@www.iua.upf.edu mkdir -p %s" % targetWebDir ) norun("scp %s/* clamadm@www.iua.upf.edu:%s " % ( resultdir, targetWebDir) ) norun("slogin clamadm@www.iua.upf.edu scripts/regenerateDownloadDirsIndex.py")
run("slogin clamadm@www.iua.upf.edu mkdir -p %s" % targetWebDir ) run("scp %s/* clamadm@www.iua.upf.edu:%s " % ( resultdir, targetWebDir) ) run("slogin clamadm@www.iua.upf.edu scripts/regenerateDownloadDirsIndex.py")
def phase(desc) : print "\033[33m== ", desc, "\033[0m"
c5ffe4f0ee6b0683264e6bf4f670815d79970e65 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1456/c5ffe4f0ee6b0683264e6bf4f670815d79970e65/doDebianPackages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6855, 12, 5569, 13, 294, 1172, 1548, 15265, 63, 3707, 81, 631, 3104, 3044, 16, 1548, 15265, 63, 20, 81, 6, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6855, 12, 5569, 13, 294, 1172, 1548, 15265, 63, 3707, 81, 631, 3104, 3044, 16, 1548, 15265, 63, 20, 81, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.dicts[streamnum]['SWeight'] = weight
self.dicts[streamnum]['SWeight'] = int(weight)
def getNextEventFromSeishub(self, starttime, endtime): """ Updates dictionary with pick data for first event which origin time is between startime and endtime. Warning: * When using the stream starttime an interesting event may not be found because the origin time may be before the stream starttime! * If more than one ...
e8e8cadecc1017a1567649eedfd87b16cd4742c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/e8e8cadecc1017a1567649eedfd87b16cd4742c4/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6927, 1133, 1265, 1761, 1468, 373, 12, 2890, 16, 23437, 16, 31361, 4672, 3536, 15419, 3880, 598, 6002, 501, 364, 1122, 871, 1492, 4026, 813, 353, 3086, 787, 494, 471, 31361, 18, 9728, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6927, 1133, 1265, 1761, 1468, 373, 12, 2890, 16, 23437, 16, 31361, 4672, 3536, 15419, 3880, 598, 6002, 501, 364, 1122, 871, 1492, 4026, 813, 353, 3086, 787, 494, 471, 31361, 18, 9728, 30...
m.exdate, m.exrule from " + self._table + \
m.exdate, m.exrule, m.recurrent_id, m.recurrent_uid from " + self._table + \
def get_recurrent_ids(self, cr, uid, select, base_start_date, base_until_date, limit=100): """Gives virtual event ids for recurring events based on value of Recurrence Rule This method gives ids of dates that comes between start date and end date of calendar views @param self: The object pointer @param cr: the current ...
c8f907d5e5f7034a6f406676c31351087bb5f9ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c8f907d5e5f7034a6f406676c31351087bb5f9ee/base_calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 266, 2972, 67, 2232, 12, 2890, 16, 4422, 16, 4555, 16, 2027, 16, 1026, 67, 1937, 67, 712, 16, 1026, 67, 12198, 67, 712, 16, 1800, 33, 6625, 4672, 3536, 43, 3606, 5024, 871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 266, 2972, 67, 2232, 12, 2890, 16, 4422, 16, 4555, 16, 2027, 16, 1026, 67, 1937, 67, 712, 16, 1026, 67, 12198, 67, 712, 16, 1800, 33, 6625, 4672, 3536, 43, 3606, 5024, 871, ...
import pyPgSQL class PgSQLDatabase(Database) : def __init__(self,dbname) : from pyPgSQL import PgSQL self.connection = PgSQL.connect(database=dbname)
import pyPgSQL class PgSQLDatabase(Database) : def __init__(self,dbname) : from pyPgSQL import PgSQL self.connection = PgSQL.connect(database=dbname)
def get_dtds(self) : """ Return list of dtds """ # SELECT dtd FROM dtd" pass
29a6ea4f096502e912843ce3e87d9bd38a4b7e4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1319/29a6ea4f096502e912843ce3e87d9bd38a4b7e4a/DataLayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7510, 2377, 12, 2890, 13, 294, 3536, 2000, 666, 434, 3681, 2377, 3536, 468, 9111, 3681, 72, 4571, 3681, 72, 6, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7510, 2377, 12, 2890, 13, 294, 3536, 2000, 666, 434, 3681, 2377, 3536, 468, 9111, 3681, 72, 4571, 3681, 72, 6, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
path = site.references_address(self.urlname())
path = self.site().references_address(self.urlname())
def getReferences(self, follow_redirects=True, withTemplateInclusion=True, onlyTemplateInclusion=False, redirectsOnly=False): """ Yield all pages that link to the page. If you need a full list of referring pages, use this:
6d38335d0f3941d7e0f3a7c4e42adb60b51a36a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/6d38335d0f3941d7e0f3a7c4e42adb60b51a36a4/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 2980, 12, 2890, 16, 2805, 67, 22715, 33, 5510, 16, 598, 2283, 382, 15335, 33, 5510, 16, 1338, 2283, 382, 15335, 33, 8381, 16, 18064, 3386, 33, 8381, 4672, 3536, 31666, 777, 4689, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 2980, 12, 2890, 16, 2805, 67, 22715, 33, 5510, 16, 598, 2283, 382, 15335, 33, 5510, 16, 1338, 2283, 382, 15335, 33, 8381, 16, 18064, 3386, 33, 8381, 4672, 3536, 31666, 777, 4689, ...
options.append(option[0:pos])
myoptions.append(option[0:pos])
def get_whitelist_paths(self): """Return the whitelist of paths""" section = "whitelist/paths" if not self.config.has_section(section): return [] options = [] for option in sorted(self.config.options(section)): pos = option.find('_') if -1 == pos: continue options.append(option[0:pos]) values = [] for option in set(opt...
4fa8c2d03a7ecab17c0f99a1c47212168725837a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/4fa8c2d03a7ecab17c0f99a1c47212168725837a/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20409, 67, 4481, 12, 2890, 4672, 3536, 990, 326, 10734, 434, 2953, 8395, 2442, 273, 315, 20409, 19, 4481, 6, 309, 486, 365, 18, 1425, 18, 5332, 67, 3464, 12, 3464, 4672, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 20409, 67, 4481, 12, 2890, 4672, 3536, 990, 326, 10734, 434, 2953, 8395, 2442, 273, 315, 20409, 19, 4481, 6, 309, 486, 365, 18, 1425, 18, 5332, 67, 3464, 12, 3464, 4672, 327, ...
fn = pjoin(dir,'_rl_accel') return getVersionFromCCode(fn),os.stat(fn)[stat.ST_MTIME]
fn = pjoin(dir,'_rl_accel.c') try: return getVersionFromCCode(fn),os.stat(fn)[stat.ST_MTIME] except: return None
def _rl_accel_dir_info(dir): import stat fn = pjoin(dir,'_rl_accel') return getVersionFromCCode(fn),os.stat(fn)[stat.ST_MTIME]
91723270cc1f40636fa05151bc278315ee66f7d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/91723270cc1f40636fa05151bc278315ee66f7d9/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1321, 67, 30737, 67, 1214, 67, 1376, 12, 1214, 4672, 1930, 610, 2295, 273, 293, 5701, 12, 1214, 11189, 67, 1321, 67, 30737, 18, 71, 6134, 775, 30, 327, 8343, 1265, 39, 1085, 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, 389, 1321, 67, 30737, 67, 1214, 67, 1376, 12, 1214, 4672, 1930, 610, 2295, 273, 293, 5701, 12, 1214, 11189, 67, 1321, 67, 30737, 18, 71, 6134, 775, 30, 327, 8343, 1265, 39, 1085, 12, ...
self.assertEqual(handler.search([('url', URI.decode('http://slashdot.org/'))]), None)
self.assertEqual( handler.search([('url', URI.decode('http://slashdot.org/'))]),None)
def test_indexes_hit_in_one_row(self): data = TEST_DATA_1 resource = memory.File(data) handler = itools_csv.CSV() handler.columns = ['name', 'url', 'number', 'date'] handler.schema = {'name': Unicode, 'url': URI, 'number': Integer(index=True), 'date': Date(index=True)} handler.load_state(resource) self.assertEqual(len(...
d1c92817f2412181e68be715a2a81901cf1a83ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d1c92817f2412181e68be715a2a81901cf1a83ed/test_itools_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11265, 67, 15989, 67, 267, 67, 476, 67, 492, 12, 2890, 4672, 501, 273, 22130, 67, 4883, 67, 21, 1058, 273, 3778, 18, 812, 12, 892, 13, 1838, 273, 518, 8192, 67, 6715, 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, 11265, 67, 15989, 67, 267, 67, 476, 67, 492, 12, 2890, 4672, 501, 273, 22130, 67, 4883, 67, 21, 1058, 273, 3778, 18, 812, 12, 892, 13, 1838, 273, 518, 8192, 67, 6715, 18, ...
'percent' : i+i / 2})
'percent' : 10})
def ajax_getcredits(request): ret = [] if request.method == u'POST': for i in range(2,8): ret.append({'username' : "user" + str(i+1), 'percent' : i+i / 2}) print "returning ret: ", str(ret) json = simplejson.dumps(ret) print "json object is ", str(json) return HttpResponse(json, mimetype='application/json')
3fc2221572ae829f2dc4ff96975ebb6603ff1d3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/3fc2221572ae829f2dc4ff96975ebb6603ff1d3e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10733, 67, 588, 20610, 1282, 12, 2293, 4672, 325, 273, 5378, 309, 590, 18, 2039, 422, 582, 11, 3798, 4278, 364, 277, 316, 1048, 12, 22, 16, 28, 4672, 325, 18, 6923, 12590, 11, 5053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10733, 67, 588, 20610, 1282, 12, 2293, 4672, 325, 273, 5378, 309, 590, 18, 2039, 422, 582, 11, 3798, 4278, 364, 277, 316, 1048, 12, 22, 16, 28, 4672, 325, 18, 6923, 12590, 11, 5053, ...
debug(" domain %s is in user block-list", domain)
_debug(" domain %s is in user block-list", domain)
def domain_return_ok(self, domain, request): # Liberal check of. This is here as an optimization to avoid # having to load lots of MSIE cookie files unless necessary. req_host, erhn = eff_request_host(request) if not req_host.startswith("."): req_host = "."+req_host if not erhn.startswith("."): erhn = "."+erhn if not ...
7fde00696ae6c872310a407df8b8923ab907f247 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7fde00696ae6c872310a407df8b8923ab907f247/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 2463, 67, 601, 12, 2890, 16, 2461, 16, 590, 4672, 468, 10560, 11612, 866, 434, 18, 225, 1220, 353, 2674, 487, 392, 14850, 358, 4543, 468, 7999, 358, 1262, 328, 6968, 434, 490...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2461, 67, 2463, 67, 601, 12, 2890, 16, 2461, 16, 590, 4672, 468, 10560, 11612, 866, 434, 18, 225, 1220, 353, 2674, 487, 392, 14850, 358, 4543, 468, 7999, 358, 1262, 328, 6968, 434, 490...
print 'posible picking padre: ',sp_ids
def find_parent(self, cr, uid, ids): sc_line_obj = self.pool.get('stock.card.line') sp_obj = self.pool.get('stock.picking') scl_ids = self.find_return(cr, uid, ids) print 'devoluciones: ',scl_ids for scl in sc_line_obj.browse(cr,uid,scl_ids): nb =scl.picking_id.name[:scl.picking_id.name.lower().find('return')-1].strip(...
62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 2938, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 888, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3327, 18, 1369, 6134, 1694, 67, 2603, 273, 365, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 2938, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 4672, 888, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3327, 18, 1369, 6134, 1694, 67, 2603, 273, 365, 1...
if x < 0 or y < 0:
if i < 0 or j < 0:
def get_cell(self, x, y): ''' Return Cell at cell pos=(x,y).
ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3855, 12, 2890, 16, 619, 16, 677, 4672, 9163, 2000, 8614, 622, 2484, 949, 28657, 92, 16, 93, 2934, 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, 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, 336, 67, 3855, 12, 2890, 16, 619, 16, 677, 4672, 9163, 2000, 8614, 622, 2484, 949, 28657, 92, 16, 93, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
req.redirect(self.env.abs_href())
self._redirect_back(req)
def _do_login(self, req): if not req.remote_user: req.redirect(self.env.abs_href()) res = auth.LoginModule._do_login(self, req) if req.args.get('rememberme', '0') == '1': # Set the session to expire in 30 days (and not when to browser is # closed - what is the default). req.outcookie['trac_auth']['expires'] = 86400 * 3...
5fccd202358f8b17987d1494e8b1c06c943985b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6208/5fccd202358f8b17987d1494e8b1c06c943985b8/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 5819, 12, 2890, 16, 1111, 4672, 309, 486, 1111, 18, 7222, 67, 1355, 30, 365, 6315, 7590, 67, 823, 12, 3658, 13, 400, 273, 1357, 18, 5358, 3120, 6315, 2896, 67, 5819, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 67, 5819, 12, 2890, 16, 1111, 4672, 309, 486, 1111, 18, 7222, 67, 1355, 30, 365, 6315, 7590, 67, 823, 12, 3658, 13, 400, 273, 1357, 18, 5358, 3120, 6315, 2896, 67, 5819, 1...
def getDependencies(buildenv, module_name, history={}):
def getDependencies(buildenv, module_name, history=None): if not history: history = {}
def getDependencies(buildenv, module_name, history={}): module_path = buildenv['root'] + os.sep + module_name + os.sep + \ "__hardhat__.py" module = module_from_file(buildenv, module_path, module_name) for dependency in module.dependencies: if not history.has_key(dependency): getDependencies(buildenv, dependency, histo...
b742a841537f5ef9cb0e5bd786b5ea184b0783fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b742a841537f5ef9cb0e5bd786b5ea184b0783fd/hardhatlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29333, 12, 3510, 3074, 16, 1605, 67, 529, 16, 4927, 33, 7036, 4672, 309, 486, 4927, 30, 4927, 273, 2618, 1605, 67, 803, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29333, 12, 3510, 3074, 16, 1605, 67, 529, 16, 4927, 33, 7036, 4672, 309, 486, 4927, 30, 4927, 273, 2618, 1605, 67, 803, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 16...
import windows_ce_api windowsAPI = windows_ce_api
try: import windows_ce_api windowsAPI = windows_ce_api except: windowsAPI = None pass
def portablekill(pid): if ostype == 'Linux' or ostype == 'Darwin': try: os.kill(pid, signal.SIGTERM) except: pass try: os.kill(pid, signal.SIGKILL) except: pass elif ostype == 'Windows' or ostype == 'WindowsCE': # Use new api windowsAPI.killProcess(pid) else: raise UnsupportedSystemException, "Unsupported system typ...
011fb2940802c44b58cb5aca75489451054df611 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7272/011fb2940802c44b58cb5aca75489451054df611/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1756, 429, 16418, 12, 6610, 4672, 309, 320, 27273, 422, 296, 19475, 11, 578, 320, 27273, 422, 296, 40, 19992, 4278, 775, 30, 1140, 18, 16418, 12, 6610, 16, 4277, 18, 18513, 15176, 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, 1756, 429, 16418, 12, 6610, 4672, 309, 320, 27273, 422, 296, 19475, 11, 578, 320, 27273, 422, 296, 40, 19992, 4278, 775, 30, 1140, 18, 16418, 12, 6610, 16, 4277, 18, 18513, 15176, 13, ...
clusteredObjN[objN]=1 clusteredObjN[objN2]=1
def clusterObjects(self, objects): """ Create clustering of objects """ combine = [] clustered = {} clusteredObjN = {} for tp,objs in enumerate(objects): for i, (objN, (x,y,z), size) in enumerate(objs): for j, (objN2, (x2,y2,z2), size) in enumerate(objs): if objN == objN2: continue if objN in clusteredObjN: continue i...
b23cf9117065fb863e61cb5faab5ad9ae47fcd09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2877/b23cf9117065fb863e61cb5faab5ad9ae47fcd09/TestData.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2855, 4710, 12, 2890, 16, 2184, 4672, 3536, 1788, 18743, 434, 2184, 3536, 8661, 273, 5378, 2855, 329, 273, 2618, 2855, 329, 2675, 50, 273, 2618, 225, 364, 8071, 16, 18093, 316, 4241, 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, 2855, 4710, 12, 2890, 16, 2184, 4672, 3536, 1788, 18743, 434, 2184, 3536, 8661, 273, 5378, 2855, 329, 273, 2618, 2855, 329, 2675, 50, 273, 2618, 225, 364, 8071, 16, 18093, 316, 4241, 12,...
self.previous_left_width = app.widgetapp.window.splitter.get_left_width() app.widgetapp.window.splitter.set_left_width(0)
splitter = app.widgetapp.window.splitter self.previous_left_width = splitter.get_left_width() self.previous_left_widget = splitter.left splitter.remove_left() splitter.set_left_width(0)
def start_with_items(self, item_infos): self.video_display = VideoDisplay() self.video_display.connect('removed', self.on_display_removed) self.previous_left_width = app.widgetapp.window.splitter.get_left_width() app.widgetapp.window.splitter.set_left_width(0) app.display_manager.select_display(self.video_display) app....
3c3596a4ef58fc98f03fa3361736e467c15999a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/3c3596a4ef58fc98f03fa3361736e467c15999a2/playback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 1918, 67, 3319, 12, 2890, 16, 761, 67, 18227, 4672, 365, 18, 9115, 67, 5417, 273, 14030, 4236, 1435, 365, 18, 9115, 67, 5417, 18, 3612, 2668, 14923, 2187, 365, 18, 265, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 1918, 67, 3319, 12, 2890, 16, 761, 67, 18227, 4672, 365, 18, 9115, 67, 5417, 273, 14030, 4236, 1435, 365, 18, 9115, 67, 5417, 18, 3612, 2668, 14923, 2187, 365, 18, 265, 67, ...
approval[thattime] = 1
approval[timestamp] = 1
def group_membership_over_time(self, group_name="cla_done"): # This is the magic time (in microseconds since the UNIX Epoch) that # Toshio gave me where the end of the initial FAS2 import lies. Any # timestamps prior to this can't be trusted. # start_date = "2008-03-12 02:06:00" start_date = 1205305560000
6f15efb295174445e39c7bc0030fcfe287abd7f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/6f15efb295174445e39c7bc0030fcfe287abd7f1/fasconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 67, 19679, 67, 1643, 67, 957, 12, 2890, 16, 1041, 67, 529, 1546, 830, 69, 67, 8734, 6, 4672, 468, 1220, 353, 326, 8146, 813, 261, 267, 19967, 3241, 326, 23160, 512, 6127, 13, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1041, 67, 19679, 67, 1643, 67, 957, 12, 2890, 16, 1041, 67, 529, 1546, 830, 69, 67, 8734, 6, 4672, 468, 1220, 353, 326, 8146, 813, 261, 267, 19967, 3241, 326, 23160, 512, 6127, 13, 7...
O3D_PLUGIN_DESCRIPTION = '%s version: %s' % (O3D_PLUGIN_NAME,
O3D_PLUGIN_DESCRIPTION = '%s version:%s' % (O3D_PLUGIN_NAME,
def main(argv): try: files = FLAGS(argv) # Parse flags except gflags.FlagsError, e: print '%s.\nUsage: %s [<options>] [<input_file> <output_file>]\n%s' % \ (e, sys.argv[0], FLAGS) sys.exit(1) # Strip off argv[0] files = files[1:] # Get version string from o3d_version.py o3d_version_vars = {} if FLAGS.kill_switch: ex...
5618780a18c479624048243f01554c2dba4c5a26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/5618780a18c479624048243f01554c2dba4c5a26/version_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 775, 30, 1390, 273, 16993, 12, 19485, 13, 225, 468, 2884, 2943, 1335, 314, 7133, 18, 5094, 668, 16, 425, 30, 1172, 1995, 87, 8403, 82, 5357, 30, 738, 87, 306, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 775, 30, 1390, 273, 16993, 12, 19485, 13, 225, 468, 2884, 2943, 1335, 314, 7133, 18, 5094, 668, 16, 425, 30, 1172, 1995, 87, 8403, 82, 5357, 30, 738, 87, 306, ...
"""Uninstallation of files specified in installation log."""
"""Uninstallation of files listed in the installation log."""
def run(self): basename = 'gaupol-%s' % VERSION temp_dir = tempfile.gettempdir() test_dir = os.path.join(temp_dir, basename) # Remove build and test directories. for dir in ('build', 'dist', 'locale', test_dir): info('removing %s' % dir) for root, dirs, files in os.walk(dir, topdown=False): for name in files: os.remo...
81889475a41d52b6cb1972ded80f1bb6d56539d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/81889475a41d52b6cb1972ded80f1bb6d56539d3/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 225, 4882, 273, 296, 15833, 416, 355, 6456, 87, 11, 738, 8456, 1906, 67, 1214, 273, 13275, 18, 588, 5814, 1214, 1435, 1842, 67, 1214, 273, 1140, 18, 803, 18, 5701...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 225, 4882, 273, 296, 15833, 416, 355, 6456, 87, 11, 738, 8456, 1906, 67, 1214, 273, 13275, 18, 588, 5814, 1214, 1435, 1842, 67, 1214, 273, 1140, 18, 803, 18, 5701...
t1 = time.clock()
def readFile(self, infile, format = None, builder = None, debug_level = 0): import time if format is None: format = self.default_input_format format = self.registery.normalize(format)
c72d2ad11b7d5f8638994175583ae22d6a2f60df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/c72d2ad11b7d5f8638994175583ae22d6a2f60df/FormatIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10413, 12, 2890, 16, 14568, 16, 740, 273, 599, 16, 2089, 273, 599, 16, 1198, 67, 2815, 273, 374, 4672, 1930, 813, 309, 740, 353, 599, 30, 740, 273, 365, 18, 1886, 67, 2630, 67, 2139,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10413, 12, 2890, 16, 14568, 16, 740, 273, 599, 16, 2089, 273, 599, 16, 1198, 67, 2815, 273, 374, 4672, 1930, 813, 309, 740, 353, 599, 30, 740, 273, 365, 18, 1886, 67, 2630, 67, 2139,...
elif 'talos' in slavename or '-try' in slavename:
elif 'talos' in slavename or '-try' in slavename or 'r3' in slavename:
def get_default_options(slavename): d = {'slavename': quote_option(slavename)} header = DEFAULT_HEADER footer = DEFAULT_FOOTER basedir = None buildmaster_host = None if 'moz2' in slavename or 'xserve' in slavename or 'try-' in slavename or \ slavename.startswith('win32') or slavename.startswith('mw32'): if 'try-' in sl...
3a789af7bb85e54104a960ea70cf3617a65c33fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/3a789af7bb85e54104a960ea70cf3617a65c33fc/buildbot-tac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1886, 67, 2116, 12, 2069, 842, 1069, 4672, 302, 273, 13666, 2069, 842, 1069, 4278, 3862, 67, 3482, 12, 2069, 842, 1069, 16869, 1446, 273, 3331, 67, 7557, 9860, 273, 3331, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1886, 67, 2116, 12, 2069, 842, 1069, 4672, 302, 273, 13666, 2069, 842, 1069, 4278, 3862, 67, 3482, 12, 2069, 842, 1069, 16869, 1446, 273, 3331, 67, 7557, 9860, 273, 3331, 67, ...
if isinstance (value, unicode) : value = value.encode ('utf-8')
if isinstance(value, unicode): value = value.encode('utf-8')
def props_from_args(db, cl, args, itemid=None): """Construct a list of properties from the given arguments, and return them after validation.""" props = {} for arg in args: if arg.find('=') == -1: raise UsageError, 'argument "%s" not propname=value'%arg try : key, value = arg.split('=', 1) except ValueError : raise Us...
37fc212ce3ed0273d945b48c138775e3d85eb037 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1906/37fc212ce3ed0273d945b48c138775e3d85eb037/xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3458, 67, 2080, 67, 1968, 12, 1966, 16, 927, 16, 833, 16, 16862, 33, 7036, 4672, 3536, 7249, 279, 666, 434, 1790, 628, 326, 864, 1775, 16, 471, 327, 2182, 1839, 3379, 12123, 225, 3458,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3458, 67, 2080, 67, 1968, 12, 1966, 16, 927, 16, 833, 16, 16862, 33, 7036, 4672, 3536, 7249, 279, 666, 434, 1790, 628, 326, 864, 1775, 16, 471, 327, 2182, 1839, 3379, 12123, 225, 3458,...
def docmethod(self, object): """Produce text documentation for a method object.""" return self.document(object.im_func)
def docmethod(self, object): """Produce text documentation for a method object.""" return self.document(object.im_func)
66efbc74811f153a02728942adbbfc549bf10398 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/66efbc74811f153a02728942adbbfc549bf10398/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2039, 12, 2890, 16, 733, 4672, 3536, 25884, 977, 7323, 364, 279, 707, 733, 12123, 327, 365, 18, 5457, 12, 1612, 18, 381, 67, 644, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2039, 12, 2890, 16, 733, 4672, 3536, 25884, 977, 7323, 364, 279, 707, 733, 12123, 327, 365, 18, 5457, 12, 1612, 18, 381, 67, 644, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
_acquireLock() try: if wr in _handlerList: _handlerList.remove(wr) finally: _releaseLock()
if _acquireLock is not None: _acquireLock() try: if wr in _handlerList: _handlerList.remove(wr) finally: _releaseLock()
def _removeHandlerRef(wr): """ Remove a handler reference from the internal cleanup list. """ _acquireLock() try: if wr in _handlerList: _handlerList.remove(wr) finally: _releaseLock()
7a3f1384d2bbc37e9b122e83863db094c0a47996 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/7a3f1384d2bbc37e9b122e83863db094c0a47996/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 1503, 1957, 12, 91, 86, 4672, 3536, 3581, 279, 1838, 2114, 628, 326, 2713, 6686, 666, 18, 3536, 565, 309, 389, 1077, 1039, 2531, 353, 486, 599, 30, 389, 1077, 1039, 2531, 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, 389, 4479, 1503, 1957, 12, 91, 86, 4672, 3536, 3581, 279, 1838, 2114, 628, 326, 2713, 6686, 666, 18, 3536, 565, 309, 389, 1077, 1039, 2531, 353, 486, 599, 30, 389, 1077, 1039, 2531, 14...
if np.any(np.self.data[key] == self.columns[key].null):
if np.any(self.data[key] == self.columns[key].null):
def set_primary_key(self, key): ''' Set the name of the table column that should be used as a unique identifier for the record. This is the same as primary keys in SQL databases. A primary column cannot contain NULLs and must contain only unique quantities.
44685c51c0582a460049dd37f001eb6486f55ac2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13233/44685c51c0582a460049dd37f001eb6486f55ac2/basetable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8258, 67, 856, 12, 2890, 16, 498, 4672, 9163, 1000, 326, 508, 434, 326, 1014, 1057, 716, 1410, 506, 1399, 487, 279, 3089, 2756, 364, 326, 1409, 18, 1220, 353, 326, 1967, 487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8258, 67, 856, 12, 2890, 16, 498, 4672, 9163, 1000, 326, 508, 434, 326, 1014, 1057, 716, 1410, 506, 1399, 487, 279, 3089, 2756, 364, 326, 1409, 18, 1220, 353, 326, 1967, 487, ...
try: result = testing.db.execute(users.insert(), []) assert [] == list(result) except: assert False
"""test that execute() interprets [] as a list with no params""" result = testing.db.execute(users.insert().values(user_name=bindparam('name')), []) assert result.rowcount == 1
def test_empty_insert(self): try: result = testing.db.execute(users.insert(), []) assert [] == list(result) except: assert False
4597c678ac306094a15c5424759d4cc3dbad3d0c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/4597c678ac306094a15c5424759d4cc3dbad3d0c/execute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5531, 67, 6387, 12, 2890, 4672, 775, 30, 563, 273, 7769, 18, 1966, 18, 8837, 12, 5577, 18, 6387, 9334, 5378, 13, 1815, 5378, 422, 666, 12, 2088, 13, 1335, 30, 1815, 1083, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5531, 67, 6387, 12, 2890, 4672, 775, 30, 563, 273, 7769, 18, 1966, 18, 8837, 12, 5577, 18, 6387, 9334, 5378, 13, 1815, 5378, 422, 666, 12, 2088, 13, 1335, 30, 1815, 1083, 2...
(e.g. if ``anchor`` is passed as ``foo`` and the model URL is
(e.g. if ``_anchor`` is passed as ``foo`` and the model URL is
def route_url(route_name, request, *elements, **kw): """Generates a fully qualified URL for a named BFG route. Use the route's ``name`` as the first positional argument. Use a request object as the second positional argument. Additional positional arguments are appended to the URL as path segments after it is genera...
7a65f92404692a28929716a5e56a21d61670e868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/7a65f92404692a28929716a5e56a21d61670e868/url.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1946, 67, 718, 12, 5547, 67, 529, 16, 590, 16, 380, 6274, 16, 2826, 9987, 4672, 3536, 6653, 279, 7418, 9348, 1976, 364, 279, 4141, 605, 42, 43, 1946, 18, 225, 2672, 326, 1946, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1946, 67, 718, 12, 5547, 67, 529, 16, 590, 16, 380, 6274, 16, 2826, 9987, 4672, 3536, 6653, 279, 7418, 9348, 1976, 364, 279, 4141, 605, 42, 43, 1946, 18, 225, 2672, 326, 1946, 1807, ...
log.msg("stun: sane NAT for RTP/RTCP", system='rtp')
log.msg("stun: sane NAT for RTP/RTCP; rtp addr: %s" % (rtp,), system='rtp')
def setStunnedAddress(self, results): ''' Handle results of the rtp/rtcp STUN. We have to check that the results have the same IP and usable port numbers ''' log.msg("got NAT mapping back! %r"%(results), system='rtp') rtpres, rtcpres = results if rtpres[0] != defer.SUCCESS or rtcpres[0] != defer.SUCCESS: # barf out. lo...
b980685022f76288910b547fbd797ecded255b2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/b980685022f76288910b547fbd797ecded255b2a/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 510, 318, 11748, 1887, 12, 2890, 16, 1686, 4672, 9163, 5004, 1686, 434, 326, 436, 6834, 19, 3797, 4057, 2347, 2124, 18, 1660, 1240, 358, 866, 716, 326, 1686, 1240, 326, 1967, 2971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 510, 318, 11748, 1887, 12, 2890, 16, 1686, 4672, 9163, 5004, 1686, 434, 326, 436, 6834, 19, 3797, 4057, 2347, 2124, 18, 1660, 1240, 358, 866, 716, 326, 1686, 1240, 326, 1967, 2971, ...
time.sleep(DELAY)
t.ready.wait(10*DELAY) if not t.ready.isSet(): raise RuntimeError("Server not ready within a reasonable time")
def testloop(proto, servers, hdlrcls, testfunc): for svrcls in servers: addr = pickaddr(proto) if verbose: print "ADDR =", addr print "CLASS =", svrcls t = ServerThread(addr, svrcls, hdlrcls) if verbose: print "server created" t.start() if verbose: print "server running" for i in range(NREQ): time.sleep(DELAY) if verbo...
ec4e3d1e178e367662f1146d6ab7208c4d08aa62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ec4e3d1e178e367662f1146d6ab7208c4d08aa62/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6498, 12, 9393, 16, 7084, 16, 366, 5761, 86, 6429, 16, 1842, 644, 4672, 364, 5893, 86, 6429, 316, 7084, 30, 3091, 273, 6002, 4793, 12, 9393, 13, 309, 3988, 30, 1172, 315, 14142, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6498, 12, 9393, 16, 7084, 16, 366, 5761, 86, 6429, 16, 1842, 644, 4672, 364, 5893, 86, 6429, 316, 7084, 30, 3091, 273, 6002, 4793, 12, 9393, 13, 309, 3988, 30, 1172, 315, 14142, ...
lst.append(self.id)
if self.id in EventCollections.reservedWxIds: name, wId = self.newUnusedItemNames(0) else: wId = self.id lst.append(wId)
def addIds(self, lst): if self.id is not None: lst.append(self.id)
3e2f0c03cfd82f8a8c2d6034ea4066ffba0ae829 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3e2f0c03cfd82f8a8c2d6034ea4066ffba0ae829/BaseCompanions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2673, 12, 2890, 16, 9441, 4672, 309, 365, 18, 350, 353, 486, 599, 30, 9441, 18, 6923, 12, 2890, 18, 350, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2673, 12, 2890, 16, 9441, 4672, 309, 365, 18, 350, 353, 486, 599, 30, 9441, 18, 6923, 12, 2890, 18, 350, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
program_name = None
engine_name = None
def extract_text(self, pnmfiles): """Extract the text as an unprocessed stream (but as a string). Typically this will be the raw output from the OCR engine. """ raise NotImplementedError
7f35f7248ee1cdbe9c90e40251a8ace3b0906938 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9857/7f35f7248ee1cdbe9c90e40251a8ace3b0906938/ImageStripper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 955, 12, 2890, 16, 11059, 81, 2354, 4672, 3536, 4976, 326, 977, 487, 392, 26663, 1407, 261, 12885, 487, 279, 533, 2934, 30195, 333, 903, 506, 326, 1831, 876, 628, 326, 531, 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, 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, 955, 12, 2890, 16, 11059, 81, 2354, 4672, 3536, 4976, 326, 977, 487, 392, 26663, 1407, 261, 12885, 487, 279, 533, 2934, 30195, 333, 903, 506, 326, 1831, 876, 628, 326, 531, 5...
try: ignore = posix.fdopen except: raise AttributeError, 'dup() method unavailable'
if not hasattr(posix, 'fdopen'): raise AttributeError, 'dup() method unavailable'
def dup(self): import posix
ec3d3dc38ea45fd0e4dc63703e7d0c93b69ef985 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ec3d3dc38ea45fd0e4dc63703e7d0c93b69ef985/posixfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9417, 12, 2890, 4672, 1930, 16366, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9417, 12, 2890, 4672, 1930, 16366, 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, ...