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
def __del__(self, *args): print "ClassAttrSpecific_DataDescriptor.__del__ is about to assert 0 -- could this be causing those weird exceptions?" assert 0, "__del__ is not yet supported in this abstract class"
def __delete__(self, *args): print "note: ClassAttrSpecific_DataDescriptor.__delete__ is about to assert 0" assert 0, "__delete__ is not yet supported in this abstract class"
def __del__(self, *args): ### I bet this should be __delete__ or something ###@@@@ print "ClassAttrSpecific_DataDescriptor.__del__ is about to assert 0 -- could this be causing those weird exceptions?" ####@@@@ did i name the method correctly? guess: no. assert 0, "__del__ is not yet supported in this abstract class"
681b75d395818614eea70912ebd5e60f2c6d0ff0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/681b75d395818614eea70912ebd5e60f2c6d0ff0/ExprsMeta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 16, 380, 1968, 4672, 11849, 467, 2701, 333, 1410, 506, 1001, 3733, 972, 578, 5943, 11849, 30989, 30989, 1172, 315, 797, 3843, 9969, 67, 751, 3187, 16186, 3771, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3771, 972, 12, 2890, 16, 380, 1968, 4672, 11849, 467, 2701, 333, 1410, 506, 1001, 3733, 972, 578, 5943, 11849, 30989, 30989, 1172, 315, 797, 3843, 9969, 67, 751, 3187, 16186, 3771, ...
else: pagemove = (u'%s%s%s' % (self.pagestart, page.title(), self.pageend)) if self.always == False: ask2 = wikipedia.input(u'Change the page title to "%s"? [(Y)es, (N)o, (Q)uit]' % pagemove) if ask2 in ['y', 'Y']: self.moveOne(page,pagemove,self.delete) elif ask2 in ['q', 'Q']: sys.exit() elif ask2 in ['n', 'N']: pass...
def treat(self,page): pagetitle = page.title() wikipedia.output(u'\n>>>> %s <<<<' % pagetitle) if self.prefix: pagetitle = page.titleWithoutNamespace() pagemove = (u'%s%s' % (self.prefix, pagetitle)) if self.always == False: ask2 = wikipedia.input(u'Change the page title to "%s"? [(Y)es, (N)o, (Q)uit]' % pagemove) if a...
bd3514937b98bef29f1bfde1f2a14a9940dcaf84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/bd3514937b98bef29f1bfde1f2a14a9940dcaf84/movepages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10116, 12, 2890, 16, 2433, 4672, 4262, 278, 1280, 273, 1363, 18, 2649, 1435, 21137, 18, 2844, 12, 89, 8314, 82, 9778, 9778, 738, 87, 14360, 32, 11, 738, 4262, 278, 1280, 13, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10116, 12, 2890, 16, 2433, 4672, 4262, 278, 1280, 273, 1363, 18, 2649, 1435, 21137, 18, 2844, 12, 89, 8314, 82, 9778, 9778, 738, 87, 14360, 32, 11, 738, 4262, 278, 1280, 13, 309, 365, ...
def tests_heteroatom_organics_CH3SiH2CH3(self): StructureTest(dir="heteroatom_organics", test="CH3SiH2CH3") def tests_heteroatom_organics_CH3SiH3(self): StructureTest(dir="heteroatom_organics", test="CH3SiH3") def tests_heteroatom_organics_P_ADAM_C3v(self): StructureTest(dir="heteroatom_organics", test="P_ADAM_C3v")
def tests_heteroatom_organics_CH3SiH2CH3(self): StructureTest(dir="heteroatom_organics", test="CH3SiH2CH3")
1b04cff6e27f660e98e628b425c09e2c157b0350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1b04cff6e27f660e98e628b425c09e2c157b0350/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7434, 67, 76, 847, 83, 7466, 67, 22543, 2102, 67, 1792, 23, 55, 77, 44, 22, 1792, 23, 12, 2890, 4672, 13348, 4709, 12, 1214, 1546, 76, 847, 83, 7466, 67, 22543, 2102, 3113, 1842, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7434, 67, 76, 847, 83, 7466, 67, 22543, 2102, 67, 1792, 23, 55, 77, 44, 22, 1792, 23, 12, 2890, 4672, 13348, 4709, 12, 1214, 1546, 76, 847, 83, 7466, 67, 22543, 2102, 3113, 1842, 154...
obj_ = self.mixedclass_(MixedContainer.CategoryComplex, MixedContainer.TypeNone, 'set', obj_) self.content_.append(obj_) if hasattr(self, 'add_set'): self.add_set(obj_.value) elif hasattr(self, 'set_set'): self.set_set(obj_.value) if not from_subclass and child_.tail is not None: obj_ = self.mixedclass_(MixedContainer....
self.set.append(obj_)
def buildChildren(self, child_, nodeName_, from_subclass=False): if nodeName_ == 'node': type_name_ = child_.attrib.get('{http://www.w3.org/2001/XMLSchema-instance}type') if type_name_ is None: type_name_ = child_.attrib.get('type') if type_name_ is not None: type_names_ = type_name_.split(':') if len(type_names_) == 1...
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 2159, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 309, 7553, 67, 422, 296, 2159, 4278, 618, 67, 529, 67, 273, 1151, 27799, 14588, 18, 588, 2668, 9...
("Registers", self.registers_cb),
def create_ui(self, title, icon): hbox1 = gtk.HBox() stop = gtk.ToggleButton("Stopped") stop.set_active(True) stop.connect("toggled", self.stop_cb) hbox1.add(stop)
a839da0699cb05f1e3add20b29be66d8dc90680a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/a839da0699cb05f1e3add20b29be66d8dc90680a/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4881, 12, 2890, 16, 2077, 16, 4126, 4672, 366, 2147, 21, 273, 22718, 18, 44, 3514, 1435, 2132, 273, 22718, 18, 17986, 3616, 2932, 15294, 7923, 2132, 18, 542, 67, 3535, 12, 551...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4881, 12, 2890, 16, 2077, 16, 4126, 4672, 366, 2147, 21, 273, 22718, 18, 44, 3514, 1435, 2132, 273, 22718, 18, 17986, 3616, 2932, 15294, 7923, 2132, 18, 542, 67, 3535, 12, 551...
if timestamp: timestamp >>= 32 timestamp -= ntp_basetime from time import gmtime, strftime b = strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime(timestamp)) else: b = 'None'
def i2repr(self, pkt, val): if val is None: return "--" val = self.i2h(pkt,val) if val < _NTP_BASETIME: return val return time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime(val-_NTP_BASETIME)) def any2i(self, pkt, val): if type(val) is str: return int(time.mktime(time.strptime(val))) + _NTP_BASETIME + 3600 retur...
def getfield(self, pkt, s): s,timestamp = BitField.getfield(self, pkt, s)
9d09b28d5287bac631834e0092a511c0ebe8eefd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7311/9d09b28d5287bac631834e0092a511c0ebe8eefd/ntp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1518, 12, 2890, 16, 11536, 16, 272, 4672, 272, 16, 5508, 273, 6539, 974, 18, 588, 1518, 12, 2890, 16, 11536, 16, 272, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1518, 12, 2890, 16, 11536, 16, 272, 4672, 272, 16, 5508, 273, 6539, 974, 18, 588, 1518, 12, 2890, 16, 11536, 16, 272, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
CylPanel.className_ = _moose.cvar.CylPanel_className_
def getType(*args): """getType(self) -> string""" return _moose.CylPanel_getType(*args)
1961c35f540060f41023dcf804a850794a39f350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2961/1961c35f540060f41023dcf804a850794a39f350/moose.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3130, 30857, 1968, 4672, 3536, 588, 559, 12, 2890, 13, 317, 533, 8395, 327, 389, 8683, 2584, 18, 17992, 80, 5537, 67, 588, 559, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3130, 30857, 1968, 4672, 3536, 588, 559, 12, 2890, 13, 317, 533, 8395, 327, 389, 8683, 2584, 18, 17992, 80, 5537, 67, 588, 559, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -100, ...
else
else:
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 385) else quickfix.CharField.__init__(self, 385, 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, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 890, 7140, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 890, 7140, 13, 469, 30, 9549, 904, 18, 2156, 974, 16186, 273...
self.children = None
self.__children = None
def __init__(self, string = None): """Create using an optional string of code. If no string is given, an empty, valid element "()" is created. Throws ValueError if there is a problem with the passed string.""" if string == None: return
19e2a3fa16d7c2269ac1ad9a96e45f49b9adb63a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7008/19e2a3fa16d7c2269ac1ad9a96e45f49b9adb63a/GGP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 533, 273, 599, 4672, 3536, 1684, 1450, 392, 3129, 533, 434, 981, 18, 971, 1158, 533, 353, 864, 16, 392, 1008, 16, 923, 930, 315, 10031, 353, 2522, 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, 1001, 2738, 972, 12, 2890, 16, 533, 273, 599, 4672, 3536, 1684, 1450, 392, 3129, 533, 434, 981, 18, 971, 1158, 533, 353, 864, 16, 392, 1008, 16, 923, 930, 315, 10031, 353, 2522, 18, ...
resp = self.shortcmd('IHAVE ' + id) if resp[0] != '3': raise NNTPReplyError(resp) while 1: line = f.readline() if not line: break if line[-1] == '\n': line = line[:-1] if line[:1] == '.': line = '.' + line self.putline(line) self.putline('.') return self.getresp()
return self._post('IHAVE {0}'.format(id), f)
def ihave(self, id, f): """Process an IHAVE command. Arguments: - id: message-id of the article - f: file containing the article Returns: - resp: server response if successful Note that if the server refuses the article an exception is raised."""
9bd2973908ef080e31fd8a2b44c929188a135cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9bd2973908ef080e31fd8a2b44c929188a135cb0/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18456, 836, 12, 2890, 16, 612, 16, 284, 4672, 3536, 2227, 392, 467, 19191, 3412, 1296, 18, 225, 13599, 30, 300, 612, 30, 883, 17, 350, 434, 326, 7559, 300, 284, 30, 225, 585, 4191, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18456, 836, 12, 2890, 16, 612, 16, 284, 4672, 3536, 2227, 392, 467, 19191, 3412, 1296, 18, 225, 13599, 30, 300, 612, 30, 883, 17, 350, 434, 326, 7559, 300, 284, 30, 225, 585, 4191, 3...
self.mplayer.signals['stdout'].connect(self._handle_mplayer_debug) self.mplayer.signals['stderr'].connect(self._handle_mplayer_debug)
self.mplayer.signals['read'].connect(self._handle_mplayer_debug)
def __init__(self, thumbnailer): self.jobs = [] self._current = None self.notify_client = thumbnailer.notify_client self.create_failed = thumbnailer.create_failed self.mplayer = kaa.Process(['mplayer', '-nosound', '-vo', 'png:z=2', '-benchmark', '-frames', '10', '-osdlevel', '0', '-nocache', '-zoom', '-ss' ]) self.mpla...
aec2f48653ca4a1cbd5c158efb431c06bf66f7ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11703/aec2f48653ca4a1cbd5c158efb431c06bf66f7ee/videothumb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9134, 264, 4672, 365, 18, 10088, 273, 5378, 365, 6315, 2972, 273, 599, 365, 18, 12336, 67, 2625, 273, 9134, 264, 18, 12336, 67, 2625, 365, 18, 2640, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9134, 264, 4672, 365, 18, 10088, 273, 5378, 365, 6315, 2972, 273, 599, 365, 18, 12336, 67, 2625, 273, 9134, 264, 18, 12336, 67, 2625, 365, 18, 2640, 67, ...
finally: md.pop(1)
finally: md._pop(1)
def tpRender(self, md, section, args): data=[] try: # see if we are being run as a sub-document root=md['tree-root-url'] url=md['tree-item-url'] state=md['tree-state'] or md['state'] substate=md['-tree-substate-'] colspan=md['tree-colspan'] level=md['tree-level'] except KeyError: # Check for collapse all, expand all, ...
4bfabee08bc58b7d857ce85c5add2cdd6cc571dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4bfabee08bc58b7d857ce85c5add2cdd6cc571dd/TreeTag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8071, 3420, 12, 2890, 16, 3481, 16, 2442, 16, 833, 4672, 501, 33, 8526, 225, 775, 30, 468, 2621, 309, 732, 854, 3832, 1086, 487, 279, 720, 17, 5457, 1365, 33, 1264, 3292, 3413, 17, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8071, 3420, 12, 2890, 16, 3481, 16, 2442, 16, 833, 4672, 501, 33, 8526, 225, 775, 30, 468, 2621, 309, 732, 854, 3832, 1086, 487, 279, 720, 17, 5457, 1365, 33, 1264, 3292, 3413, 17, 3...
ids=orderpoint_obj.search(cr,uid,[],offset=offset,limit=100)
procurement_obj = pooler.get_pool(cr.dbname).get('mrp.procurement') ids = procurement_obj.search(cr, uid, [('state', '=', 'exception')], order='date_planned')
def _procure_confirm(self, cr, uid, schedule_cycle=1.0, po_cycle=1.0,\ po_lead=1.0, security_lead=50.0, picking_lead=1.0, user_id=False,\ use_new_cursor=False, context=None): ''' use_new_cursor: False or the dbname ''' if not context: context={} if use_new_cursor: cr = pooler.get_db(use_new_cursor).cursor() wf_service...
c29ec3cfbc3d651b19ef6d2bdae4e0e0d6222ab2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/c29ec3cfbc3d651b19ef6d2bdae4e0e0d6222ab2/schedulers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9381, 594, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 4788, 67, 13946, 33, 21, 18, 20, 16, 8275, 67, 13946, 33, 21, 18, 20, 17211, 8275, 67, 24429, 33, 21, 18, 20, 16, 4373,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9381, 594, 67, 10927, 12, 2890, 16, 4422, 16, 4555, 16, 4788, 67, 13946, 33, 21, 18, 20, 16, 8275, 67, 13946, 33, 21, 18, 20, 17211, 8275, 67, 24429, 33, 21, 18, 20, 16, 4373,...
if os.path.isfile(self.__current_file): name = read_string(self.__current_file) else: return None
name = self._get_field('current')
def get_current(self): """Return the name of the topmost patch, or None if there is no such patch.""" if os.path.isfile(self.__current_file): name = read_string(self.__current_file) else: return None if name == '': return None else: return name
8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2972, 12, 2890, 4672, 3536, 990, 326, 508, 434, 326, 1760, 10329, 4729, 16, 578, 599, 309, 1915, 353, 1158, 4123, 4729, 12123, 508, 273, 365, 6315, 588, 67, 1518, 2668, 2972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2972, 12, 2890, 4672, 3536, 990, 326, 508, 434, 326, 1760, 10329, 4729, 16, 578, 599, 309, 1915, 353, 1158, 4123, 4729, 12123, 508, 273, 365, 6315, 588, 67, 1518, 2668, 2972, ...
), \
),
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 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, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16,...
(user_id_field, email_field, homedir_field, maildir_field, users_table, email_field, db.escape_string(args.d)))
(user_id_field, email_field, homedir_field, maildir_field, users_table, email_field, db.escape_string(to_address)))
def main(): #Parse out the command line args parser = argparse.ArgumentParser() parser.add_argument("-c", help='Config file', metavar="<conf>") parser.add_argument("-d", help='Delivery mode for this user', metavar="<user>", required=True) parser.add_argument("-f", help='Email file', metavar="<file>") args = parser.pa...
1790937640b34b77e13262613b18033610b79251 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13617/1790937640b34b77e13262613b18033610b79251/dystill.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 3201, 596, 326, 1296, 980, 833, 2082, 273, 12436, 18, 1379, 2678, 1435, 2082, 18, 1289, 67, 3446, 2932, 17, 71, 3113, 2809, 2218, 809, 585, 2187, 15050, 1546, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 468, 3201, 596, 326, 1296, 980, 833, 2082, 273, 12436, 18, 1379, 2678, 1435, 2082, 18, 1289, 67, 3446, 2932, 17, 71, 3113, 2809, 2218, 809, 585, 2187, 15050, 1546, 32, ...
Called by handles to update the item's properties all at once.
Called by the item model to update our appearance.
def _update(self, **kw): ''' Called by handles to update the item's properties all at once. ''' # Alter the apparent Z-order of the item self.scene().resort_item(self)
ae2db5832ef19ca21fa7b0003d192cf02e760b52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10170/ae2db5832ef19ca21fa7b0003d192cf02e760b52/canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 2826, 9987, 4672, 9163, 11782, 635, 326, 761, 938, 358, 1089, 3134, 9788, 1359, 18, 9163, 468, 2262, 387, 326, 29614, 2285, 17, 1019, 434, 326, 761, 365, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 2826, 9987, 4672, 9163, 11782, 635, 326, 761, 938, 358, 1089, 3134, 9788, 1359, 18, 9163, 468, 2262, 387, 326, 29614, 2285, 17, 1019, 434, 326, 761, 365, 18, 2...
if base_name == "libc" and "uClibc" not in ldlib:
if base_name == "libc":
def version(vers): print "mklibs: version ",vers print ""
cc965623e0fdfa17682017b151e3731079dcb523 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/326/cc965623e0fdfa17682017b151e3731079dcb523/mklibs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 12, 2496, 4672, 1172, 315, 24816, 21571, 30, 1177, 3104, 2496, 1172, 1408, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 1177, 12, 2496, 4672, 1172, 315, 24816, 21571, 30, 1177, 3104, 2496, 1172, 1408, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if xyz[1]<0.0:
if xyz[1] < 0.0:
def calc_cell(self, xyz): """Returns the cell integer 3-Tuple where the xyz fractional coordinates are located. """ if xyz[0]<0.0: cx = int(xyz[0] - 1.0) else: cx = int(xyz[0] + 1.0) if xyz[1]<0.0: cy = int(xyz[1] - 1.0) else: cy = int(xyz[1] + 1.0)
657a0fa458b88d14958d396920748c66a75850e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/657a0fa458b88d14958d396920748c66a75850e7/UnitCell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 3855, 12, 2890, 16, 14779, 4672, 3536, 1356, 326, 2484, 3571, 890, 17, 9038, 1625, 326, 14779, 20462, 5513, 854, 13801, 18, 3536, 309, 14779, 63, 20, 65, 32, 20, 18, 20, 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, 7029, 67, 3855, 12, 2890, 16, 14779, 4672, 3536, 1356, 326, 2484, 3571, 890, 17, 9038, 1625, 326, 14779, 20462, 5513, 854, 13801, 18, 3536, 309, 14779, 63, 20, 65, 32, 20, 18, 20, 30, ...
print "checking", file, "...",
print("checking", file, "...", end=' ')
def check(file): if os.path.isdir(file) and not os.path.islink(file): if verbose: print "listing directory", file names = os.listdir(file) for name in names: fullname = os.path.join(file, name) if ((recurse and os.path.isdir(fullname) and not os.path.islink(fullname)) or name.lower().endswith(".py")): check(fullname) r...
84b442fcd23eee856cc7a76aeb9955452c619e64 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/84b442fcd23eee856cc7a76aeb9955452c619e64/reindent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 768, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 768, 13, 471, 486, 1140, 18, 803, 18, 291, 1232, 12, 768, 4672, 309, 3988, 30, 1172, 315, 21228, 1867, 3113, 585, 1257, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 768, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 768, 13, 471, 486, 1140, 18, 803, 18, 291, 1232, 12, 768, 4672, 309, 3988, 30, 1172, 315, 21228, 1867, 3113, 585, 1257, 273...
flags = [ flag ]
flags = [ (flag, deps.FLAG_SENSE_REQUIRED) ]
def _brokenItemsToSet(cu, depIdList): # this only works for databases (not repositories) if not depIdList: return []
d8eec0182d9ad52fb380b32523cb93fe410ce92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/d8eec0182d9ad52fb380b32523cb93fe410ce92b/deptable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 70, 19906, 3126, 25208, 12, 6319, 16, 5993, 22117, 4672, 468, 333, 1338, 6330, 364, 16358, 261, 902, 14531, 13, 309, 486, 5993, 22117, 30, 327, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 70, 19906, 3126, 25208, 12, 6319, 16, 5993, 22117, 4672, 468, 333, 1338, 6330, 364, 16358, 261, 902, 14531, 13, 309, 486, 5993, 22117, 30, 327, 5378, 2, -100, -100, -100, -100, -100...
if int(platform.release().split('.')[0]) <= 8:
if int(platform.release().split('.')[0]) < 8:
def checkEnvironment(): """ Check that we're running on a supported system. """ if platform.system() != 'Darwin': fatal("This script should be run on a Mac OS X 10.4 (or later) system") if int(platform.release().split('.')[0]) <= 8: fatal("This script should be run on a Mac OS X 10.4 (or later) system") if not os.pa...
209d4c3151df0affb96fafc6826d24fc68fc3a15 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/209d4c3151df0affb96fafc6826d24fc68fc3a15/build-installer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5494, 13332, 3536, 2073, 716, 732, 4565, 3549, 603, 279, 3260, 2619, 18, 3536, 225, 309, 4072, 18, 4299, 1435, 480, 296, 40, 19992, 4278, 10081, 2932, 2503, 2728, 1410, 506, 1086, 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, 866, 5494, 13332, 3536, 2073, 716, 732, 4565, 3549, 603, 279, 3260, 2619, 18, 3536, 225, 309, 4072, 18, 4299, 1435, 480, 296, 40, 19992, 4278, 10081, 2932, 2503, 2728, 1410, 506, 1086, 6...
content[-1] += build_start_tag_link(stream, tag_name, attributes)
content[-1] += build_start_tag(tag_name, attributes)
def compute_paragraph(stream, elt_tag_name, elt_attributes, pdf_stylesheet=None): content = [] cpt = 0 end_tag = False has_content = False is_table = elt_tag_name in ('td', 'th') story = [] tag_stack = [] while True: event, value, line_number = stream_next(stream) if event == None: break #### START ELEMENT #### if even...
d5c3d51eb9e0cb6c0f317501007d0b2ccb300a98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/d5c3d51eb9e0cb6c0f317501007d0b2ccb300a98/rml2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 22445, 12, 3256, 16, 11572, 67, 2692, 67, 529, 16, 11572, 67, 4350, 16, 8169, 67, 19403, 33, 7036, 4672, 913, 273, 5378, 29141, 273, 374, 679, 67, 2692, 273, 1083, 711, 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, 3671, 67, 22445, 12, 3256, 16, 11572, 67, 2692, 67, 529, 16, 11572, 67, 4350, 16, 8169, 67, 19403, 33, 7036, 4672, 913, 273, 5378, 29141, 273, 374, 679, 67, 2692, 273, 1083, 711, 67, ...
if cn1 > 0 and cn2 > 0:
if n1 > 0 or n2 > 0:
def __compare_node( self, node1, node2, callback ): """Compare two nodes."""
93b2dc695fe501f9e0252ae41d6dd540e118d8cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13212/93b2dc695fe501f9e0252ae41d6dd540e118d8cd/diff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9877, 67, 2159, 12, 365, 16, 756, 21, 16, 756, 22, 16, 1348, 262, 30, 3536, 8583, 2795, 2199, 12123, 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, 1001, 9877, 67, 2159, 12, 365, 16, 756, 21, 16, 756, 22, 16, 1348, 262, 30, 3536, 8583, 2795, 2199, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
"""Testing the reviewrequests/unstar API"""
"""Testing the reviewrequests/<id>/?action=unstar API"""
def testReviewRequestUnstar(self): """Testing the reviewrequests/unstar API""" # First, star it. self.testReviewRequestStar()
154ec92ec3bf19718348491a2c6d8aad9e4e21d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/154ec92ec3bf19718348491a2c6d8aad9e4e21d4/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9159, 691, 984, 10983, 12, 2890, 4672, 3536, 22218, 326, 10725, 11420, 28177, 350, 16893, 35, 1128, 33, 318, 10983, 1491, 8395, 468, 5783, 16, 10443, 518, 18, 365, 18, 3813, 9159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 9159, 691, 984, 10983, 12, 2890, 4672, 3536, 22218, 326, 10725, 11420, 28177, 350, 16893, 35, 1128, 33, 318, 10983, 1491, 8395, 468, 5783, 16, 10443, 518, 18, 365, 18, 3813, 9159, ...
'old': {'path': common,
'old': {'path': common, 'href': None,
def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * '&nbsp; ' + mod * '&nbsp;'
7144b52b7c0f27e67b95b4de10defc8d6287db25 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/7144b52b7c0f27e67b95b4de10defc8d6287db25/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1729, 1164, 12, 1916, 4672, 3739, 16, 681, 273, 26105, 12, 1897, 12, 1916, 18, 1655, 12, 20, 13, 3631, 576, 13, 327, 3739, 380, 5183, 10600, 31, 296, 397, 681, 380, 5183, 10600, 4359, ...
if _isString(dbtype):
if _isString(dbtype) and not val == None:
def sqlStringAndValue(self, val, attr, dbtype): newval = self.typeCheckAndConvert(val, attr, dbtype) if _isString(dbtype): newval = "'" + _escape(str(newval)) + "'" return str(newval), None
4df0f99a23284da17a1eddef4c6b31348b072378 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/4df0f99a23284da17a1eddef4c6b31348b072378/postconn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1847, 780, 30154, 12, 2890, 16, 1244, 16, 1604, 16, 1319, 723, 4672, 394, 1125, 273, 365, 18, 723, 1564, 1876, 2723, 12, 1125, 16, 1604, 16, 1319, 723, 13, 309, 389, 291, 780, 12, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1847, 780, 30154, 12, 2890, 16, 1244, 16, 1604, 16, 1319, 723, 4672, 394, 1125, 273, 365, 18, 723, 1564, 1876, 2723, 12, 1125, 16, 1604, 16, 1319, 723, 13, 309, 389, 291, 780, 12, 19...
Query for sql database: /Users/ekirkm/sage/data//graphs/graphs.db
Query for sql database: ...graphs.db
def __repr__(self): """ Overrides the print output to display useful info regarding the query.
a938df7076953e1f3cea93f308a216354fd3025c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a938df7076953e1f3cea93f308a216354fd3025c/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 531, 9857, 326, 1172, 876, 358, 2562, 5301, 1123, 29012, 326, 843, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 531, 9857, 326, 1172, 876, 358, 2562, 5301, 1123, 29012, 326, 843, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
new_column = self.__create_column(" ", 0)
new_column = self.__create_column(" ", 0, None, True)
def __init__(self, ampache_conn, audio_engine, db_session): """Constructor for the AmpacheGUI Class. Takes an AmpacheSession Object, an AudioEngine Object and a DatabaseSession Object.""" ################################# # Set Variables ################################# self.audio_engine = audio_engine self.ampache_co...
6da71b6c033549432907af16818123b3b63d0d8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11350/6da71b6c033549432907af16818123b3b63d0d8a/AmpacheGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 16946, 807, 67, 4646, 16, 7447, 67, 8944, 16, 1319, 67, 3184, 4672, 3536, 6293, 364, 326, 432, 1291, 807, 43, 5370, 1659, 18, 23004, 392, 432, 1291, 807,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16946, 807, 67, 4646, 16, 7447, 67, 8944, 16, 1319, 67, 3184, 4672, 3536, 6293, 364, 326, 432, 1291, 807, 43, 5370, 1659, 18, 23004, 392, 432, 1291, 807,...
face = self.map.faceAt(Vector2(x, y))
face = self._map.faceAt(Vector2(x, y))
def mousePressed(self, x, y, button): if button != qt.Qt.LeftButton: return face = self.map.faceAt(Vector2(x, y)) oldClass = self.foreground[face.label()] newClass = self.classes[(self.classes.index(oldClass) + 1) % 3] self.foreground[face.label()] = newClass self.manual[face.label()] = newClass print "manually changed...
65254bc446b7c353066fe806e0424030a38d558d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/65254bc446b7c353066fe806e0424030a38d558d/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 24624, 12, 2890, 16, 619, 16, 677, 16, 3568, 4672, 309, 3568, 480, 25672, 18, 23310, 18, 3910, 3616, 30, 327, 7945, 273, 365, 6315, 1458, 18, 865, 861, 12, 5018, 22, 12, 92, 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, 7644, 24624, 12, 2890, 16, 619, 16, 677, 16, 3568, 4672, 309, 3568, 480, 25672, 18, 23310, 18, 3910, 3616, 30, 327, 7945, 273, 365, 6315, 1458, 18, 865, 861, 12, 5018, 22, 12, 92, 16...
self._permalink_link = make_label(_("Permalink"), self.handle_permalink, info.permalink)
self._permalink_link = make_label(_("Permalink"), self.handle_permalink, info.permalink)
def rebuild_video_details(self): # this removes the child widget if there is one self.remove()
c31cb27865042de3c85675cd19cfff0171c7a3b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/c31cb27865042de3c85675cd19cfff0171c7a3b6/video.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 67, 9115, 67, 6395, 12, 2890, 4672, 468, 333, 7157, 326, 1151, 3604, 309, 1915, 353, 1245, 365, 18, 4479, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 67, 9115, 67, 6395, 12, 2890, 4672, 468, 333, 7157, 326, 1151, 3604, 309, 1915, 353, 1245, 365, 18, 4479, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
"Interpreter (PDF)" : 8,
"PDF Interpreter" : 8,
def BuildLog(log_date_command): import os, regex, string reading_description = 0 reading_tags = 0 description = [] log = [] tag_pattern = regex.compile("^ \([^:]+\): \([0-9.]+\)\n$") for line in os.popen(log_date_command, 'r').readlines(): if line[:5] == '=====' or line[:5] == '-----': if description != []: try: my_t...
59f055fadfc580adbbcabe8dbb54fe1fec145be3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/59f055fadfc580adbbcabe8dbb54fe1fec145be3/cvs2hist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 1343, 12, 1330, 67, 712, 67, 3076, 4672, 1930, 1140, 16, 3936, 16, 533, 225, 6453, 67, 3384, 273, 374, 6453, 67, 4156, 273, 374, 2477, 273, 5378, 613, 273, 5378, 1047, 67, 4951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 1343, 12, 1330, 67, 712, 67, 3076, 4672, 1930, 1140, 16, 3936, 16, 533, 225, 6453, 67, 3384, 273, 374, 6453, 67, 4156, 273, 374, 2477, 273, 5378, 613, 273, 5378, 1047, 67, 4951, ...
return self.noupdate or (data_node and self.nodeattr2bool(data_node, 'noupdate', False))
return self.noupdate or (len(data_node) and self.nodeattr2bool(data_node, 'noupdate', False))
def isnoupdate(self, data_node=None): return self.noupdate or (data_node and self.nodeattr2bool(data_node, 'noupdate', False))
eef8d5c78831ddd56215d42fee7dbd93294fd0b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/eef8d5c78831ddd56215d42fee7dbd93294fd0b0/convert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 2135, 2725, 12, 2890, 16, 501, 67, 2159, 33, 7036, 4672, 327, 365, 18, 2135, 2725, 578, 261, 892, 67, 2159, 471, 365, 18, 2159, 1747, 22, 6430, 12, 892, 67, 2159, 16, 296, 2135,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 2135, 2725, 12, 2890, 16, 501, 67, 2159, 33, 7036, 4672, 327, 365, 18, 2135, 2725, 578, 261, 892, 67, 2159, 471, 365, 18, 2159, 1747, 22, 6430, 12, 892, 67, 2159, 16, 296, 2135,...
return for s in pool:
i = 0 for s in self.pool:
def test_deps(self): return for s in pool: print s show_dep( "Provides", s.provides()) show_dep( "Requires", s.requires()) show_dep( "Obsoletes", s.obsoletes()) show_dep( "Conflicts", s.conflicts())
5da0b00f1b3ba7a3e6ecb1aa1ac4bd208e0e1932 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14459/5da0b00f1b3ba7a3e6ecb1aa1ac4bd208e0e1932/solvable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14877, 12, 2890, 4672, 277, 273, 374, 364, 272, 316, 365, 18, 6011, 30, 1172, 272, 2405, 67, 15037, 12, 315, 17727, 3113, 272, 18, 685, 13427, 10756, 2405, 67, 15037, 12, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14877, 12, 2890, 4672, 277, 273, 374, 364, 272, 316, 365, 18, 6011, 30, 1172, 272, 2405, 67, 15037, 12, 315, 17727, 3113, 272, 18, 685, 13427, 10756, 2405, 67, 15037, 12, 315...
"\n\n(Currently using %r)") % (version, e.args[0])
"\n\n(Currently using %r)\n" % (version, e.args[0]))
def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir, download_delay=15, no_fake=False): # making sure we use the absolute path to_dir = os.path.abspath(to_dir) was_imported = 'pkg_resources' in sys.modules or \ 'setuptools' in sys.modules try: try: import pkg_resources if not hasattr...
7785ccade4b92867c492f573e9b548c1ba612cd7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/495/7785ccade4b92867c492f573e9b548c1ba612cd7/distribute_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 542, 30693, 12, 1589, 33, 5280, 67, 5757, 16, 4224, 67, 1969, 33, 5280, 67, 1785, 16, 358, 67, 1214, 33, 538, 18, 1397, 1214, 16, 4224, 67, 10790, 33, 3600, 16, 1158, 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, 999, 67, 542, 30693, 12, 1589, 33, 5280, 67, 5757, 16, 4224, 67, 1969, 33, 5280, 67, 1785, 16, 358, 67, 1214, 33, 538, 18, 1397, 1214, 16, 4224, 67, 10790, 33, 3600, 16, 1158, 67, ...
eps -- character
$\epsilon$ -- character
def CO_delta(r,p,N,eps): """ Compute the delta function in the paper of Cohen and Oesterle on dimension formulas. INPUT: r -- positive integer p -- a prime N -- positive integer eps -- character OUTPUT: element of the base ring of the character EXAMPLES: sage: G.<eps> = DirichletGroup(7) sage: sage.modular.dims.CO_d...
231200694940d44e11baa531020b171931c64488 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/231200694940d44e11baa531020b171931c64488/dims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7910, 67, 9878, 12, 86, 16, 84, 16, 50, 16, 13058, 4672, 3536, 8155, 326, 3622, 445, 316, 326, 15181, 434, 7695, 76, 275, 471, 531, 7654, 298, 603, 4968, 646, 24857, 18, 225, 12943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7910, 67, 9878, 12, 86, 16, 84, 16, 50, 16, 13058, 4672, 3536, 8155, 326, 3622, 445, 316, 326, 15181, 434, 7695, 76, 275, 471, 531, 7654, 298, 603, 4968, 646, 24857, 18, 225, 12943, ...
requirements = ("revlogv1", "store") else: requirements = ("revlogv1")
requirements.append("store") self.opener("00changelog.i", "a").write( '\0\0\0\2' ' dummy changelog to prevent using the old repo layout' )
def __init__(self, parentui, path=None, create=0): repo.repository.__init__(self) if not path: p = os.getcwd() while not os.path.isdir(os.path.join(p, ".hg")): oldp = p p = os.path.dirname(p) if p == oldp: raise repo.RepoError(_("There is no Mercurial repository" " here (.hg not found)")) path = p
a916f13af4c84ba52ad155003aaf788abe9273a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/a916f13af4c84ba52ad155003aaf788abe9273a8/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4881, 16, 589, 33, 7036, 16, 752, 33, 20, 4672, 3538, 18, 9071, 16186, 2738, 972, 12, 2890, 13, 309, 486, 589, 30, 293, 273, 1140, 18, 588, 11089,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 4881, 16, 589, 33, 7036, 16, 752, 33, 20, 4672, 3538, 18, 9071, 16186, 2738, 972, 12, 2890, 13, 309, 486, 589, 30, 293, 273, 1140, 18, 588, 11089,...
self._instances[window].deactivate() del self._instances[window]
if window in self._instances: self._instances[window].deactivate() del self._instances[window]
def deactivate(self, window): widgets = [window] + window.get_views() for widget in widgets: handler_ids = widget.get_data(self.id_name) if handler_ids is not None: for handler_id in handler_ids: widget.disconnect(handler_id) widget.set_data(self.id_name, None)
a5dd362ab206c001a21114d2bb5c099cbf02c1c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/a5dd362ab206c001a21114d2bb5c099cbf02c1c0/rabbitvcs-plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18790, 12, 2890, 16, 2742, 4672, 10965, 273, 306, 5668, 65, 397, 2742, 18, 588, 67, 7061, 1435, 364, 3604, 316, 10965, 30, 1838, 67, 2232, 273, 3604, 18, 588, 67, 892, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18790, 12, 2890, 16, 2742, 4672, 10965, 273, 306, 5668, 65, 397, 2742, 18, 588, 67, 7061, 1435, 364, 3604, 316, 10965, 30, 1838, 67, 2232, 273, 3604, 18, 588, 67, 892, 12, 2890, 18, ...
np_root = os.listdir(lio_root + "/" + iqn + "/tpgt_" + tpgt + "/np") for np in np_root: np_val = [iqn,tpgt,np] lio_target_del_np(None, None, np_val, None) nacl_root = os.listdir(lio_root + "/" + iqn + "/tpgt_" + tpgt + "/acls") for nacl in nacl_root: nacl_val = [iqn,tpgt,nacl] lio_target_del_nodeacl(None, None, nacl...
def __lio_target_del_iqn(option, opt_str, value, parser, delete_tpg_md): iqn = str(value); iqn = iqn.lower();
ea3761ed38da7ac34381d247f75ab501a307aa08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/ea3761ed38da7ac34381d247f75ab501a307aa08/lio_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 549, 83, 67, 3299, 67, 3771, 67, 77, 15785, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 16, 1430, 67, 6834, 75, 67, 1264, 4672, 277, 15785, 273, 609, 12, 1132, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 549, 83, 67, 3299, 67, 3771, 67, 77, 15785, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 16, 1430, 67, 6834, 75, 67, 1264, 4672, 277, 15785, 273, 609, 12, 1132, 1769, 277, ...
print items[i]; i+=1
b = items[i]; i+=1
def tightloop_example(): items = range(0, 3) try: i = 0 while 1: print items[i]; i+=1 except IndexError: pass
84f2a558f8d114786c89e5b8c3bca4c18df3a78c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/84f2a558f8d114786c89e5b8c3bca4c18df3a78c/test_trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26066, 6498, 67, 8236, 13332, 1516, 273, 1048, 12, 20, 16, 890, 13, 775, 30, 277, 273, 374, 1323, 404, 30, 324, 273, 1516, 63, 77, 15533, 277, 15, 33, 21, 1335, 10195, 30, 1342, 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, 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, 26066, 6498, 67, 8236, 13332, 1516, 273, 1048, 12, 20, 16, 890, 13, 775, 30, 277, 273, 374, 1323, 404, 30, 324, 273, 1516, 63, 77, 15533, 277, 15, 33, 21, 1335, 10195, 30, 1342, 225,...
def __init__(self, server, share, username, password, domain=None, resolve_order=None, port=None, ip=None, terminal_code=None, buffer_size=None, debug_level=None, config_file=None, logdir=None, netbios_name=None):
def __init__(self, server, share, username=None, password=None, domain=None, resolve_order=None, port=None, ip=None, terminal_code=None, buffer_size=None, debug_level=None, config_file=None, logdir=None, netbios_name=None, kerberos=False): self._unlink = os.unlink
def __init__(self, server, share, username, password, domain=None, resolve_order=None, port=None, ip=None, terminal_code=None, buffer_size=None, debug_level=None, config_file=None, logdir=None, netbios_name=None): self.path = '//%s/%s' % (server, share) smbclient_cmd = ['smbclient', self.path] if resolve_order: smbclie...
0cc9ce95c8d6240dc05a18ea433fbaa139c946dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5944/0cc9ce95c8d6240dc05a18ea433fbaa139c946dc/smbclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 7433, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 2461, 33, 7036, 16, 2245, 67, 1019, 33, 7036, 16, 1756, 33, 7036, 16, 2359, 33, 7036, 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, 1001, 2738, 972, 12, 2890, 16, 1438, 16, 7433, 16, 2718, 33, 7036, 16, 2201, 33, 7036, 16, 2461, 33, 7036, 16, 2245, 67, 1019, 33, 7036, 16, 1756, 33, 7036, 16, 2359, 33, 7036, 16, ...
or ordinary_args[-1] != call.starargs.name):
or node.args.vararg != call.starargs.name):
def visit_lambda(self, node): """check whether or not the lambda is suspicious """ # if the body of the lambda is a call expression with the same # argument list as the lambda itself, then the lambda is # possibly unnecessary and at least suspicious. if node.args.defaults: # If the arguments of the lambda include defau...
c77323ce1430c8a37dfce3b1dfe4d549c786be1a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/928/c77323ce1430c8a37dfce3b1dfe4d549c786be1a/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 14661, 12, 2890, 16, 756, 4672, 3536, 1893, 2856, 578, 486, 326, 3195, 353, 11375, 84, 28728, 3536, 468, 309, 326, 1417, 434, 326, 3195, 353, 279, 745, 2652, 598, 326, 1967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 14661, 12, 2890, 16, 756, 4672, 3536, 1893, 2856, 578, 486, 326, 3195, 353, 11375, 84, 28728, 3536, 468, 309, 326, 1417, 434, 326, 3195, 353, 279, 745, 2652, 598, 326, 1967, ...
words = split(str, pat, 1)
words = splitx(str, pat)
def capwords(str, pat): import string words = split(str, pat, 1) for i in range(0, len(words), 2): words[i] = string.capitalize(words[i]) return string.joinfields(words, "")
7a7d5d8fcf5ac8f9eaf8016da04984687e43dae3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/7a7d5d8fcf5ac8f9eaf8016da04984687e43dae3/regsub.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3523, 3753, 12, 701, 16, 9670, 4672, 1930, 533, 4511, 273, 1416, 92, 12, 701, 16, 9670, 13, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 3753, 3631, 576, 4672, 4511, 63, 77, 65, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3523, 3753, 12, 701, 16, 9670, 4672, 1930, 533, 4511, 273, 1416, 92, 12, 701, 16, 9670, 13, 364, 277, 316, 1048, 12, 20, 16, 562, 12, 3753, 3631, 576, 4672, 4511, 63, 77, 65, 273, ...
''' display an item ''' if self.user in ('admin', self.db.user.get(self.nodeid, 'username')): self.shownode(message) else:
'''Display a user page for editing. Make sure the user is allowed to edit this node, and also check for password changes. ''' if self.user == 'anonymous':
def showuser(self, message=None): ''' display an item ''' if self.user in ('admin', self.db.user.get(self.nodeid, 'username')): self.shownode(message) else: raise Unauthorised
eefa56ffe30ec68716804654903256c037e11c83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/eefa56ffe30ec68716804654903256c037e11c83/cgi_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1355, 12, 2890, 16, 883, 33, 7036, 4672, 9163, 4236, 279, 729, 1363, 364, 15755, 18, 4344, 3071, 326, 729, 353, 2935, 358, 3874, 333, 756, 16, 471, 2546, 866, 364, 2201, 3478, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1355, 12, 2890, 16, 883, 33, 7036, 4672, 9163, 4236, 279, 729, 1363, 364, 15755, 18, 4344, 3071, 326, 729, 353, 2935, 358, 3874, 333, 756, 16, 471, 2546, 866, 364, 2201, 3478, 18...
def getattr(self,path): st = self.getattr_(path) now = time.time() limit = now+1000 assert st.st_atime>limit/2 assert st.st_atime<limit assert st.st_mtime>limit/2 assert st.st_mtime<limit assert st.st_ctime>limit/2 assert st.st_ctime<limit return st
def getattr(self,path): st = self.getattr_(path) now = time.time() limit = now+1000 assert st.st_atime>limit/2 assert st.st_atime<limit assert st.st_mtime>limit/2 assert st.st_mtime<limit assert st.st_ctime>limit/2 assert st.st_ctime<limit return st
65ab0457cf6e931cfd53b05334d23b48cbfb5e68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5937/65ab0457cf6e931cfd53b05334d23b48cbfb5e68/archivefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3869, 12, 2890, 16, 803, 4672, 384, 273, 365, 18, 588, 1747, 67, 12, 803, 13, 2037, 273, 813, 18, 957, 1435, 1800, 273, 2037, 15, 18088, 1815, 384, 18, 334, 67, 270, 494, 34, 3595, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3869, 12, 2890, 16, 803, 4672, 384, 273, 365, 18, 588, 1747, 67, 12, 803, 13, 2037, 273, 813, 18, 957, 1435, 1800, 273, 2037, 15, 18088, 1815, 384, 18, 334, 67, 270, 494, 34, 3595, ...
dataset = ''
def runPandaBrokerage(job): # get locations when site==AUTO if job.backend.site == "AUTO": libdslocation = [] if job.backend.libds: try: libdslocation = Client.getLocations(job.backend.libds,[],job.backend.requirements.cloud,False,False) except exceptions.SystemExit: raise BackendError('Panda','Error in Client.getLoca...
3f526908c9f22ead6d732694154b735c755d32c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/3f526908c9f22ead6d732694154b735c755d32c5/Panda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 52, 464, 69, 11194, 410, 12, 4688, 4672, 468, 336, 7838, 1347, 2834, 631, 18909, 225, 309, 1719, 18, 9993, 18, 4256, 422, 315, 18909, 6877, 2561, 2377, 3562, 273, 5378, 309, 1719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 52, 464, 69, 11194, 410, 12, 4688, 4672, 468, 336, 7838, 1347, 2834, 631, 18909, 225, 309, 1719, 18, 9993, 18, 4256, 422, 315, 18909, 6877, 2561, 2377, 3562, 273, 5378, 309, 1719, ...
self.assertEqual(self.errorState, 2)
self.assertEqual(self.errorState, 2, "Expected call to onerror function did not happen.")
def test_on_error(self): self.errorState = 0 os.mkdir(TESTFN) self.childpath = os.path.join(TESTFN, 'a') f = open(self.childpath, 'w') f.close() old_dir_mode = os.stat(TESTFN).st_mode old_child_mode = os.stat(self.childpath).st_mode # Make unwritable. os.chmod(self.childpath, stat.S_IREAD) os.chmod(TESTFN, stat.S_IREAD...
6cd995c93d9db4d926bd2bc7899c3314971b4ad2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6cd995c93d9db4d926bd2bc7899c3314971b4ad2/test_shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 265, 67, 1636, 12, 2890, 4672, 365, 18, 1636, 1119, 273, 374, 1140, 18, 26686, 12, 16961, 19793, 13, 365, 18, 3624, 803, 273, 1140, 18, 803, 18, 5701, 12, 16961, 19793, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 265, 67, 1636, 12, 2890, 4672, 365, 18, 1636, 1119, 273, 374, 1140, 18, 26686, 12, 16961, 19793, 13, 365, 18, 3624, 803, 273, 1140, 18, 803, 18, 5701, 12, 16961, 19793, 16, ...
anArgumentTuple = tuple( self.theDirectoryName ) + (sim,) + (data,)
anArgumentTuple = ( self.theDirectoryName, sim , data )
def createInstance( self, sim, data, parent=None ): aConstructor = self.theModule.__dict__[self.theName] anArgumentTuple = tuple( self.theDirectoryName ) + (sim,) + (data,) apply( aConstructor, anArgumentTuple )
4626d974b9ee7a7bc23d48f134bfb72c2f45f016 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4626d974b9ee7a7bc23d48f134bfb72c2f45f016/Plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20075, 12, 365, 16, 3142, 16, 501, 16, 982, 33, 7036, 262, 30, 279, 6293, 273, 365, 18, 5787, 3120, 16186, 1576, 972, 63, 2890, 18, 5787, 461, 65, 392, 1379, 9038, 273, 261, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20075, 12, 365, 16, 3142, 16, 501, 16, 982, 33, 7036, 262, 30, 279, 6293, 273, 365, 18, 5787, 3120, 16186, 1576, 972, 63, 2890, 18, 5787, 461, 65, 392, 1379, 9038, 273, 261, 365, 18,...
sys.stdout = self.stdout_backup
sys.stderr= self.stderr_backup
def tearDown(self): sys.stdout = self.stdout_backup
ddf21e206a3be38788eb385d5fcf57bfca3bac20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/ddf21e206a3be38788eb385d5fcf57bfca3bac20/zonemgr_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 2589, 18, 10283, 273, 365, 18, 10283, 67, 9572, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 2589, 18, 10283, 273, 365, 18, 10283, 67, 9572, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "%s doesn't exist. Creating it"
print "%s doesn't exist. Creating it" % output_dir
def prepare(): for rf in required_files: if not osp.lexists(rf): print " Couldn't found required template: %s " % (rf, ) exit() if osp.lexists(output_dir): if not osp.isdir(output_dir): print "I have found %s and it is not a directory. May me you launch me from incorrect directory" % (output_dir,) exit() try : print...
5cbb4f7ba7b56cf5eddb34a8b2d9aaf3e77cf950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1701/5cbb4f7ba7b56cf5eddb34a8b2d9aaf3e77cf950/newplugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 13332, 364, 9075, 316, 1931, 67, 2354, 30, 309, 486, 23660, 18, 4149, 1486, 12, 5809, 4672, 1172, 315, 14312, 82, 1404, 1392, 1931, 1542, 30, 738, 87, 315, 738, 261, 5809, 16, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 13332, 364, 9075, 316, 1931, 67, 2354, 30, 309, 486, 23660, 18, 4149, 1486, 12, 5809, 4672, 1172, 315, 14312, 82, 1404, 1392, 1931, 1542, 30, 738, 87, 315, 738, 261, 5809, 16, 26...
script_review_top.__doc__=_("Moves the review cursor to the top line of the current navigator object")
script_review_top.__doc__=_("Moves the review cursor to the top line of the current navigator object and speaks it")
def script_review_top(self,keyPress): info=globalVars.reviewPosition.obj.makeTextInfo(textHandler.POSITION_FIRST) globalVars.reviewPosition=info.copy() info.expand(textHandler.UNIT_LINE) speech.speakMessage(_("top")) speech.speakFormattedText(info)
e71a52fd4a4b47af55b85211140c5deabbe03c2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/e71a52fd4a4b47af55b85211140c5deabbe03c2b/_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 16041, 67, 3669, 12, 2890, 16, 856, 11840, 4672, 1123, 33, 6347, 5555, 18, 16041, 2555, 18, 2603, 18, 6540, 1528, 966, 12, 955, 1503, 18, 15258, 67, 15354, 13, 2552, 5555, 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, 2728, 67, 16041, 67, 3669, 12, 2890, 16, 856, 11840, 4672, 1123, 33, 6347, 5555, 18, 16041, 2555, 18, 2603, 18, 6540, 1528, 966, 12, 955, 1503, 18, 15258, 67, 15354, 13, 2552, 5555, 18...
__slots__ = ("a", "b")
__slots__ = ("_a", "_b")
def __repr__(self): return "(%s / %s)" % (repr(self.a), repr(self.b))
b6bc55326d79b64f2048b486159e78b329f2b9ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/624/b6bc55326d79b64f2048b486159e78b329f2b9ca/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 7751, 9, 87, 342, 738, 87, 2225, 738, 261, 12715, 12, 2890, 18, 69, 3631, 8480, 12, 2890, 18, 70, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 327, 7751, 9, 87, 342, 738, 87, 2225, 738, 261, 12715, 12, 2890, 18, 69, 3631, 8480, 12, 2890, 18, 70, 3719, 2, -100, -100, -100, -100, -100, -100, ...
def lead(p): return p.lexLead() reductors=Polynomial(1)
reductors=Polynomial(1).set()
def lead(p): return p.lexLead()
06a9f6ca9741467ec77ffd30a94903bf0ac6a603 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2046/06a9f6ca9741467ec77ffd30a94903bf0ac6a603/ll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5871, 12, 84, 4672, 327, 293, 18, 4149, 9678, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5871, 12, 84, 4672, 327, 293, 18, 4149, 9678, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
fields_desc = [ ShortEnumField("algo", 0, ["open", "sharedkey"]),
fields_desc = [ LEShortEnumField("algo", 0, ["open", "sharedkey"]),
def mysummary(self): if self.ID == 0: return "SSID=%s"%repr(self.info),[Dot11] else: return ""
9e997e264462646e694ada714420b482033b3cd6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/9e997e264462646e694ada714420b482033b3cd6/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 7687, 12, 2890, 4672, 309, 365, 18, 734, 422, 374, 30, 327, 315, 1260, 734, 5095, 87, 28385, 12715, 12, 2890, 18, 1376, 3631, 63, 10412, 2499, 65, 469, 30, 327, 1408, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3399, 7687, 12, 2890, 4672, 309, 365, 18, 734, 422, 374, 30, 327, 315, 1260, 734, 5095, 87, 28385, 12715, 12, 2890, 18, 1376, 3631, 63, 10412, 2499, 65, 469, 30, 327, 1408, 2, -100, ...
self.root=root=DummyModel(self.outfileName)
self.root=root=DummyModel(self.outfilename)
def parseAndGenerate(self):
6b7f3cabb82196cafdc67e109e1e8d5fb43665bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/6b7f3cabb82196cafdc67e109e1e8d5fb43665bf/ArchetypesGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1876, 4625, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1876, 4625, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.send_document(path, html.escape( 'Problem in %s - %s' % (value.filename, value.args)))
self.send_document(path, html.escape(str(value)))
def do_GET(self): path = self.path if path[-5:] == '.html': path = path[:-5] if path[:1] == '/': path = path[1:] if path and path != '.': try: p, x = locate(path) except DocImportError, value: self.send_document(path, html.escape( 'Problem in %s - %s' % (value.filename, value.args))) return if x: self.send_document(des...
a8b37d1a3238fb85be760a30db03672525e8f591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a8b37d1a3238fb85be760a30db03672525e8f591/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 589, 273, 365, 18, 803, 309, 589, 18919, 25, 26894, 422, 2418, 2620, 4278, 589, 273, 589, 10531, 17, 25, 65, 309, 589, 10531, 21, 65, 422, 2023, 30, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3264, 12, 2890, 4672, 589, 273, 365, 18, 803, 309, 589, 18919, 25, 26894, 422, 2418, 2620, 4278, 589, 273, 589, 10531, 17, 25, 65, 309, 589, 10531, 21, 65, 422, 2023, 30, 58...
self.__init_from_reg_key__( key, name )
self.__init_from_reg_key__(key, name)
def __init__( self, key, name = None ): if( not name and len( key ) == struct.calcsize( self.format ) ): self.__init_from_bytes__( key ) else: self.__init_from_reg_key__( key, name )
59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 498, 16, 508, 273, 599, 262, 30, 309, 12, 486, 508, 471, 562, 12, 498, 262, 422, 1958, 18, 12448, 1467, 12, 365, 18, 2139, 262, 262, 30, 365, 16186, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 365, 16, 498, 16, 508, 273, 599, 262, 30, 309, 12, 486, 508, 471, 562, 12, 498, 262, 422, 1958, 18, 12448, 1467, 12, 365, 18, 2139, 262, 262, 30, 365, 16186, 2...
self.timeshift = pyshift.pyshift_init(config.TIMESHIFT_BUFFER,config.TIMESHIFT_BUFFER_SIZE * 1024*1024) pyshift.pyshift_write(self.timeshift,self.tsinput.read(1024*1024* TIMESHIFT_READAHEAD))
self.timeshift = pyshift.pyshift_init(config.TIMESHIFT_BUFFER, config.TIMESHIFT_BUFFER_SIZE * 1024*1024) pyshift.pyshift_write(self.timeshift, self.tsinput.read(1024*1024* TIMESHIFT_READAHEAD))
def run(self): while 1: if self.mode == 'idle': self.mode_flag.wait() self.mode_flag.clear() elif self.mode == 'play': # The DXR3 device cannot be shared between our SDL session # and MPlayer. if (osd.sdl_driver == 'dxr3'): if DEBUG: print "Stopping Display for Video Playback on DXR3" osd.stopdisplay() if DEBUG: print...
e498694c7f9818552297d29fd2eefb96419cc196 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e498694c7f9818552297d29fd2eefb96419cc196/timeshift.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 309, 365, 18, 3188, 422, 296, 20390, 4278, 365, 18, 3188, 67, 6420, 18, 7048, 1435, 365, 18, 3188, 67, 6420, 18, 8507, 1435, 225, 1327, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1323, 404, 30, 309, 365, 18, 3188, 422, 296, 20390, 4278, 365, 18, 3188, 67, 6420, 18, 7048, 1435, 365, 18, 3188, 67, 6420, 18, 8507, 1435, 225, 1327, 365, 18, ...
q = qimage2ndarray.array2qimage(yxImage)
q = qimage2ndarray.array2qimage(yxImage, normalize)
def qimage(self, normalize = True): """ Convert this image to a Qt QImage (mainly for display purposes). The present image must have 1, 2, 3, or 4 channels, and the resulting QImage will have QImage.Format_Indexed8 iff there was only one channel and QImage.Format_[A]RGB32 otherwise (with the last of 2/4 channels being ...
acf671d5bc775f705e10192b67cc164b7cf03e3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12582/acf671d5bc775f705e10192b67cc164b7cf03e3e/arraytypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 2730, 12, 2890, 16, 3883, 273, 1053, 4672, 3536, 4037, 333, 1316, 358, 279, 7354, 2238, 2040, 261, 5254, 715, 364, 2562, 13694, 2934, 1021, 3430, 1316, 1297, 1240, 404, 16, 576, 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, 1043, 2730, 12, 2890, 16, 3883, 273, 1053, 4672, 3536, 4037, 333, 1316, 358, 279, 7354, 2238, 2040, 261, 5254, 715, 364, 2562, 13694, 2934, 1021, 3430, 1316, 1297, 1240, 404, 16, 576, 16...
5: I INT 1
5: L LONG 1
def __init__(self, value): self.value = value
6d262a40cfc4ca756204ddc89b33a303dfa3d216 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/6d262a40cfc4ca756204ddc89b33a303dfa3d216/pickletools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 4672, 365, 18, 1132, 273, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 4672, 365, 18, 1132, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
eventlisttmp = [time.strftime('%Y%m%d'), time.strftime('%H%M'), self.GetProcessName(event), str(event.Window), os.getenv('USERNAME'), str(event.WindowName).replace(self.settings['General']['Log File Field Separator'], '[sep_key]')]
eventlisttmp = [time.strftime('%Y%m%d'), time.strftime('%H%M'), self.GetProcessName(event).replace(self.settings['General']['Log File Field Separator'], '[sep_key]'), str(event.Window), unicode(os.getenv('USERNAME'), 'latin-1').replace(self.settings['General']['Log File Field Separator'], '[sep_key]'), unicode(event.Wi...
def run(self): '''This is the main workhorse function. Keeps popping events off the queue, and processing them, until program quits ''' ## line format: ## date; time (1 minute resolution); fullapppath; hwnd; username; window title; eventdata ## ## if we are logging keystroke count, that field becomes the penultimate fi...
9fc00e0f77899b22f4d3227d98afdc7fbcb0f077 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3638/9fc00e0f77899b22f4d3227d98afdc7fbcb0f077/logwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 9163, 2503, 353, 326, 2774, 1440, 76, 23035, 445, 18, 10498, 87, 1843, 1382, 2641, 3397, 326, 2389, 16, 471, 4929, 2182, 16, 3180, 5402, 719, 1282, 9163, 7541, 980,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9163, 2503, 353, 326, 2774, 1440, 76, 23035, 445, 18, 10498, 87, 1843, 1382, 2641, 3397, 326, 2389, 16, 471, 4929, 2182, 16, 3180, 5402, 719, 1282, 9163, 7541, 980,...
root.append(blockette.getXML(xseed_version=version))
sub.append(blockette.getXML(xseed_version=version)) if version == '1.0': SubElement(doc, utils.toTag('Timespan Control Header')) SubElement(doc, utils.toTag('Data Records'))
def getXSEED(self, version=DEFAULT_XSEED_VERSION, split_stations=False): """ Returns a XML representation of all headers of a SEED volume.
92ca6c6a5f622775d2315fbc075a01a83fec844b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/92ca6c6a5f622775d2315fbc075a01a83fec844b/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6538, 1090, 2056, 12, 2890, 16, 1177, 33, 5280, 67, 60, 1090, 2056, 67, 5757, 16, 1416, 67, 31478, 33, 8381, 4672, 3536, 2860, 279, 3167, 4335, 434, 777, 1607, 434, 279, 3174, 2056, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6538, 1090, 2056, 12, 2890, 16, 1177, 33, 5280, 67, 60, 1090, 2056, 67, 5757, 16, 1416, 67, 31478, 33, 8381, 4672, 3536, 2860, 279, 3167, 4335, 434, 777, 1607, 434, 279, 3174, 2056, 39...
if self.source:
if self.source is not None:
def _ensureQueryIsCurrent (self): """ Make sure that we update the queryString if the rule is stale, then let our superclass handle its part. """ if self.ruleIsStale: args = {} newQueryString = self._rule if self.source: if newQueryString: newQueryString = "union (" + newQueryString + ", for i in $0 where True)" else: ...
f019b4b7fa0d34a07523d3b8cef10dcf46bb98c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f019b4b7fa0d34a07523d3b8cef10dcf46bb98c4/ItemCollection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15735, 1138, 2520, 3935, 261, 2890, 4672, 3536, 4344, 3071, 716, 732, 1089, 326, 11337, 309, 326, 1720, 353, 14067, 16, 1508, 2231, 3134, 12098, 1640, 2097, 1087, 18, 3536, 309, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15735, 1138, 2520, 3935, 261, 2890, 4672, 3536, 4344, 3071, 716, 732, 1089, 326, 11337, 309, 326, 1720, 353, 14067, 16, 1508, 2231, 3134, 12098, 1640, 2097, 1087, 18, 3536, 309, 365, ...
if m1 != m2 and move: status += " and moved one chunk" m1.rot(Q(a1.posn()-s1.posn(), s2.posn()-a2.posn())) m1.move(s2.posn()-s1.posn())
if m1 != m2 and move: def ok_to_move(mol1, mol2): "ok to move mol1 if we're about to bond it to mol2?" return mol1.externs == [] if ok_to_move(m1,m2): status += ", and moved %r to match" % m1.name m1.rot(Q(a1.posn()-s1.posn(), s2.posn()-a2.posn())) m1.move(s2.posn()-s1.posn()) else: status += " (bu...
def do_error(status, error_details): if print_error_details and error_details: print "BUG: bond_at_singlets:", error_details print "Doing nothing (but further bugs may be caused by this)." print_compact_stack() if error_details: # i.e. if it's an error flag = 2 else: flag = 1 status = status or "can't bond here" return...
9b1b330abac535663d750943858465a92f111d1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/9b1b330abac535663d750943858465a92f111d1f/chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1636, 12, 2327, 16, 555, 67, 6395, 4672, 309, 1172, 67, 1636, 67, 6395, 471, 555, 67, 6395, 30, 1172, 315, 4827, 30, 8427, 67, 270, 67, 2470, 17307, 2773, 16, 555, 67, 6395,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1636, 12, 2327, 16, 555, 67, 6395, 4672, 309, 1172, 67, 1636, 67, 6395, 471, 555, 67, 6395, 30, 1172, 315, 4827, 30, 8427, 67, 270, 67, 2470, 17307, 2773, 16, 555, 67, 6395,...
raise unittest.SkipTest("Locale support on MacOSX is minimal")
import os tlocs = ("en_US.UTF-8", "en_US.ISO8859-1", "en_US") if int(os.uname()[2].split('.')[0]) < 10: raise unittest.SkipTest("Locale support on MacOSX is minimal")
def get_enUS_locale(): global enUS_locale if sys.platform == 'darwin': raise unittest.SkipTest("Locale support on MacOSX is minimal") if sys.platform.startswith("win"): tlocs = ("En", "English") else: tlocs = ("en_US.UTF-8", "en_US.US-ASCII", "en_US") oldlocale = locale.setlocale(locale.LC_NUMERIC) for tloc in tlocs: t...
69916116420ab7128dc169af8552c3f9251fa4ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/69916116420ab7128dc169af8552c3f9251fa4ea/test_locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 275, 3378, 67, 6339, 13332, 2552, 570, 3378, 67, 6339, 309, 2589, 18, 9898, 422, 296, 28076, 4278, 1930, 1140, 268, 24323, 273, 7566, 275, 67, 3378, 18, 5159, 17, 28, 3113, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 275, 3378, 67, 6339, 13332, 2552, 570, 3378, 67, 6339, 309, 2589, 18, 9898, 422, 296, 28076, 4278, 1930, 1140, 268, 24323, 273, 7566, 275, 67, 3378, 18, 5159, 17, 28, 3113, 31...
self = plugin_manager.instance_get(cls)
if not cls.multi_instance: self = plugin_manager.instance_get(cls)
def __new__(cls, *args, **kwargs): """ Returns a class instance, If it already instantiated, return it otherwise return new instance """ if issubclass(cls, PluginManager): # If we also a PluginManager, just create and return self = super(Plugin, cls).__new__(cls) self.plugin_manager = self return self
2f8d7eaa285b0b759dcf572fd64a433c279d4cbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/2f8d7eaa285b0b759dcf572fd64a433c279d4cbc/com.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2860, 279, 667, 791, 16, 971, 518, 1818, 17651, 16, 327, 518, 3541, 327, 394, 791, 3536, 309, 14664, 12, 6429, 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, 1001, 2704, 972, 12, 6429, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2860, 279, 667, 791, 16, 971, 518, 1818, 17651, 16, 327, 518, 3541, 327, 394, 791, 3536, 309, 14664, 12, 6429, 16,...
sources = ['cobyla.pyf','cobyla2.f']
sources = ['cobyla.pyf','cobyla2.f','trstlp.f']
def configuration(parent_package='',parent_path=None): package = 'optimize' config = default_config_dict(package, parent_package) local_path = get_path(__name__,parent_path) minpack = ('minpack',{'sources': glob(os.path.join(local_path,'minpack','*.f'))}) sources = ['_minpackmodule.c'] sources = [os.path.join(local_p...
18a46f16217dd63b1e83e0fb5f152d7fa3839db0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/18a46f16217dd63b1e83e0fb5f152d7fa3839db0/setup_optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 2187, 2938, 67, 803, 33, 7036, 4672, 2181, 273, 296, 29155, 11, 642, 273, 805, 67, 1425, 67, 1576, 12, 5610, 16, 982, 67, 5610, 13, 1191, 67, 803, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 2187, 2938, 67, 803, 33, 7036, 4672, 2181, 273, 296, 29155, 11, 642, 273, 805, 67, 1425, 67, 1576, 12, 5610, 16, 982, 67, 5610, 13, 1191, 67, 803, 273...
token.value = int(input[token.start:self.cursor])
token.value = eval(input[token.start:self.cursor])
def lexZeroNumber(self, ch): token = self.token input = self.source token.type = "number"
ffa49fea078c22673063a368e43ed9c4132a563b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/ffa49fea078c22673063a368e43ed9c4132a563b/Tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5275, 7170, 1854, 12, 2890, 16, 462, 4672, 1147, 273, 365, 18, 2316, 810, 273, 365, 18, 3168, 1147, 18, 723, 273, 315, 2696, 6, 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, 5275, 7170, 1854, 12, 2890, 16, 462, 4672, 1147, 273, 365, 18, 2316, 810, 273, 365, 18, 3168, 1147, 18, 723, 273, 315, 2696, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
msg = 'Section "%s" created successfully. Now you can <a href="%s">add a menu item now</a> or configure section options below.' % (obj.name, reverse('dashboard_add_menu', args=['item']) + '?q=%d' % (obj.id),)
msg = 'Section "%s" created successfully. Now you can <a href="%s">add a menu item now</a> or configure section options below.' % (obj.name, reverse('dashboard_add_menu', args=['item']) + '?pk=%d' % (obj.id),)
def add_edit_menu(request, object_type, object_id=None): model = get_model('core', object_type) form_dict = { 'section': SectionForm, 'item': get_item_form(request.site) } instance = None form_class = form_dict[object_type] if object_id is not None: instance = get_object_or_404(model, id=object_id) if instance and inst...
47b5179d4413b0f8ab16d22694cecc6649e39e33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9903/47b5179d4413b0f8ab16d22694cecc6649e39e33/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 4619, 67, 5414, 12, 2293, 16, 733, 67, 723, 16, 733, 67, 350, 33, 7036, 4672, 938, 273, 336, 67, 2284, 2668, 3644, 2187, 733, 67, 723, 13, 646, 67, 1576, 273, 288, 296, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4619, 67, 5414, 12, 2293, 16, 733, 67, 723, 16, 733, 67, 350, 33, 7036, 4672, 938, 273, 336, 67, 2284, 2668, 3644, 2187, 733, 67, 723, 13, 646, 67, 1576, 273, 288, 296, 34...
def strbase(self, l): """Probably not the best way of doing it but this function returns a common base string in a list of strings (for tab completion).""" if not l: return '' elif len(l) == 1: return l[0] sl = sorted(l, key=len) for i, c in enumerate(l[-1]): if not reduce(lambda x, y: (x and y) or False, (k.star...
def tab(self): """Process the tab key being hit. If there's only whitespace in the line or the line is blank then process a normal tab, otherwise attempt to autocomplete to the best match of possible choices in the match list."""
2c8612f9cbc0abb05f90d9f3e3493782a5417581 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6932/2c8612f9cbc0abb05f90d9f3e3493782a5417581/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3246, 12, 2890, 4672, 3536, 2227, 326, 3246, 498, 3832, 6800, 18, 971, 1915, 1807, 1338, 7983, 316, 326, 980, 578, 326, 980, 353, 7052, 1508, 1207, 279, 2212, 3246, 16, 3541, 4395, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3246, 12, 2890, 4672, 3536, 2227, 326, 3246, 498, 3832, 6800, 18, 971, 1915, 1807, 1338, 7983, 316, 326, 980, 578, 326, 980, 353, 7052, 1508, 1207, 279, 2212, 3246, 16, 3541, 4395, 358, ...
pass
def migrate_project(old, old_parent, new_parent, f): new = None if callable(old.id): obj_id = old.id() else: obj_id = old.id portal_types = parent.portal_types portal_types.constructContent('Project', new_parent, obj_id) print old.Title() new = new_parent[obj_id] # set fields new.update(title=old.title) new.setBasin(ol...
a7515b372064702005964c649711105373e02dc7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6024/a7515b372064702005964c649711105373e02dc7/migrate_projects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 67, 4406, 12, 1673, 16, 1592, 67, 2938, 16, 394, 67, 2938, 16, 284, 4672, 394, 273, 599, 309, 4140, 12, 1673, 18, 350, 4672, 1081, 67, 350, 273, 1592, 18, 350, 1435, 469, 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, 13187, 67, 4406, 12, 1673, 16, 1592, 67, 2938, 16, 394, 67, 2938, 16, 284, 4672, 394, 273, 599, 309, 4140, 12, 1673, 18, 350, 4672, 1081, 67, 350, 273, 1592, 18, 350, 1435, 469, 30, ...
file.Write(" uint32 data_size = ComputeImmediateDataSize(" "immediate_data_size, 1, sizeof(%s), %d);\n" % (func.info.data_type, func.info.count))
code = """ uint32 data_size; if (!ComputeDataSize(1, sizeof(%s), %d, &data_size)) { return error::kOutOfBounds; } """ file.Write(code % (func.info.data_type, func.info.count)) if func.is_immediate: file.Write(" if (data_size > immediate_data_size) {\n") file.Write(" return error::kOutOfBounds;\n") file.Write(" }\...
def WriteGetDataSizeCode(self, func, file): """Overrriden from TypeHandler.""" file.Write(" uint32 data_size = ComputeImmediateDataSize(" "immediate_data_size, 1, sizeof(%s), %d);\n" % (func.info.data_type, func.info.count))
1f35d386075e8cecf4b328e98191a11effa0fd1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/1f35d386075e8cecf4b328e98191a11effa0fd1a/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 8155, 22651, 29414, 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, 2598, 967, 29414, 1085, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 585, 18, 3067, 2932, 225, 2254, 1578, 501, 67, 1467, 273, 8155, 22651, 29414, 2...
cmd = cmd + ' "' + THIRDPARTY + 'ssl/lib/ssleay32.lib"' cmd = cmd + ' "' + THIRDPARTY + 'ssl/lib/libeay32.lib"'
cmd = cmd + ' ' + THIRDPARTY + 'ssl/lib/ssleay32.lib' cmd = cmd + ' ' + THIRDPARTY + 'ssl/lib/libeay32.lib'
def CompileLink(dll=0, obj=[], opts=[], xdep=[]): if (dll==0): sys.exit("Syntax error in CompileLink directive") if (COMPILER=="MSVC7"): ALLTARGETS.append(PREFIX+"/bin/"+dll) lib = PREFIX+"/lib/"+dll[:-4]+".lib" dll = PREFIX+"/bin/"+dll wobj = [] for x in obj: suffix = x[-4:] if (suffix==".obj"): wobj.append(PREFIX+...
e743cb25c4127c99b6bf2de385cf618b18e32531 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e743cb25c4127c99b6bf2de385cf618b18e32531/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 33, 20, 16, 1081, 22850, 6487, 1500, 22850, 6487, 619, 15037, 33, 8526, 4672, 309, 261, 27670, 631, 20, 4672, 2589, 18, 8593, 2932, 8070, 555, 316, 16143, 2098, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 2098, 12, 27670, 33, 20, 16, 1081, 22850, 6487, 1500, 22850, 6487, 619, 15037, 33, 8526, 4672, 309, 261, 27670, 631, 20, 4672, 2589, 18, 8593, 2932, 8070, 555, 316, 16143, 2098, 8...
if err.code == 403 and uri.startwith('http://en.wikipedia.org/'):
if err.code == 403 and uri.startswith('http://en.wikipedia.org/'):
def resolve(self, uri): try: f = urlopen(uri) f.close() except HTTPError, err: if err.code == 403 and uri.startwith('http://en.wikipedia.org/'): # Wikipedia blocks requests from urllib User-Agent return 0 return (2, str(err)) except Exception, err: return (2, str(err)) if f.url.rstrip('/') == uri.rstrip('/'): return (0...
460d3fdbb756287906add15dd8b45754fb7ccab4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/460d3fdbb756287906add15dd8b45754fb7ccab4/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 2003, 4672, 775, 30, 284, 273, 19613, 12, 1650, 13, 284, 18, 4412, 1435, 1335, 14415, 16, 393, 30, 309, 393, 18, 710, 422, 14393, 471, 2003, 18, 17514, 1918, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 2003, 4672, 775, 30, 284, 273, 19613, 12, 1650, 13, 284, 18, 4412, 1435, 1335, 14415, 16, 393, 30, 309, 393, 18, 710, 422, 14393, 471, 2003, 18, 17514, 1918, 2668, ...
H -- list of elements in ZZ of a subgroup of (Z/NZ)*
H -- list of elements in $\ZZ$ of a subgroup of $(\ZZ/N\ZZ)^*$
def nuinfHreg(N,H): r""" Number of regular cusps for the group $\Gamma_H(N)$ INPUT: N -- an integer H -- list of elements in ZZ of a subgroup of (Z/NZ)* OUTPUT: Integer EXAMPLES: sage: sage.modular.dims.nuinfHreg(33, GammaH(33,[2])._list_of_elements_in_H()) 0 sage: sage.modular.dims.nuinfHreg(7, GammaH(7,[2])._list_o...
2d5430f87d71c70bab3397c63a6cf10def24c15d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2d5430f87d71c70bab3397c63a6cf10def24c15d/dims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9244, 10625, 44, 1574, 12, 50, 16, 44, 4672, 436, 8395, 3588, 434, 6736, 27964, 1121, 364, 326, 1041, 271, 64, 31300, 67, 44, 12, 50, 21877, 225, 12943, 30, 423, 1493, 392, 3571, 670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9244, 10625, 44, 1574, 12, 50, 16, 44, 4672, 436, 8395, 3588, 434, 6736, 27964, 1121, 364, 326, 1041, 271, 64, 31300, 67, 44, 12, 50, 21877, 225, 12943, 30, 423, 1493, 392, 3571, 670, ...
self.failIf(int(mo.group('dm')) not in range(1,31))
self.failIf(int(mo.group('dm')) not in range(1,32))
def test_date(self): """ Validate date format Date format hould be compliant with RFC822, we do not support 'military' format """ date_str = r"^((?P<day>\w{3}),\s*)*(?P<dm>\d{2})\s+" \ r"(?P<month>\w{3})\s+(?P<year>200\d)\s+" \ r"(?P<hour>\d{2}):(?P<min>[0-5][0-9])" \ r"(:(?P<sec>[0-5][0-9]))*\s" \ r"((?P<tz>\w{2,3})|(...
c32e94520a1636b192f1961ea23f108b06b7cb88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/c32e94520a1636b192f1961ea23f108b06b7cb88/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 712, 12, 2890, 4672, 3536, 3554, 1509, 740, 2167, 740, 366, 1006, 506, 24820, 598, 8372, 24532, 16, 732, 741, 486, 2865, 296, 81, 330, 305, 814, 11, 740, 3536, 1509, 67, 701,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 712, 12, 2890, 4672, 3536, 3554, 1509, 740, 2167, 740, 366, 1006, 506, 24820, 598, 8372, 24532, 16, 732, 741, 486, 2865, 296, 81, 330, 305, 814, 11, 740, 3536, 1509, 67, 701,...
mime_type = self.get_string("output-mime-type")
def set_widget_initial_values(self, glade): self.quality_tabs.set_show_tabs(False) if self.get_int("same-folder-as-input"): w = glade.get_widget("same_folder_as_input") else: w = glade.get_widget("into_selected_folder") w.set_active(True) self.target_folder_chooser.set_filename( self.get_string("selected-folder")) s...
fb263caf044aa99ff978564e088e8ab6a2b54428 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2369/fb263caf044aa99ff978564e088e8ab6a2b54428/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6587, 67, 6769, 67, 2372, 12, 2890, 16, 5118, 2486, 4672, 225, 365, 18, 16495, 67, 16056, 18, 542, 67, 4500, 67, 16056, 12, 8381, 13, 225, 309, 365, 18, 588, 67, 474, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6587, 67, 6769, 67, 2372, 12, 2890, 16, 5118, 2486, 4672, 225, 365, 18, 16495, 67, 16056, 18, 542, 67, 4500, 67, 16056, 12, 8381, 13, 225, 309, 365, 18, 588, 67, 474, 2932, ...
if dtype is None: dtype = data.dtype kwargs['dtype'] = dtype
if dtype is not None: kwargs['dtype'] = dtype
def mov_sum(data, span, dtype=None): """Calculates the moving sum of a series.
86b48c840b475928675ea22e4fc3f751d391539e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/86b48c840b475928675ea22e4fc3f751d391539e/moving_funcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5730, 67, 1364, 12, 892, 16, 4548, 16, 3182, 33, 7036, 4672, 3536, 10587, 326, 12499, 2142, 434, 279, 4166, 18, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5730, 67, 1364, 12, 892, 16, 4548, 16, 3182, 33, 7036, 4672, 3536, 10587, 326, 12499, 2142, 434, 279, 4166, 18, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
channel.tcp_client_key = addr
if channel.tcp_connect (addr, timeout): return channel return
def tcp_client (self, addr): try: return self.tcp_client_channels[addr] except KeyError: channel = self.tcp_client_channel (addr) channel.tcp_client_key = addr
f19266ef2fa4ea7abefd4a83bebaddf370d50620 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/f19266ef2fa4ea7abefd4a83bebaddf370d50620/tcp_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9658, 67, 2625, 261, 2890, 16, 3091, 4672, 775, 30, 327, 365, 18, 14832, 67, 2625, 67, 9114, 63, 4793, 65, 225, 1335, 4999, 30, 1904, 273, 365, 18, 14832, 67, 2625, 67, 4327, 261, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9658, 67, 2625, 261, 2890, 16, 3091, 4672, 775, 30, 327, 365, 18, 14832, 67, 2625, 67, 9114, 63, 4793, 65, 225, 1335, 4999, 30, 1904, 273, 365, 18, 14832, 67, 2625, 67, 4327, 261, 47...
args.extend(self._GetTestsFromName(name))
args.extend(self._ImportTestsFromName(name))
def _LoadTestNamesFrom(self, filename): modules= PyUITest.EvalDataFrom(filename) platform = sys.platform if PyUITest.IsChromeOS(): # check if it's chromeos platform = 'chromeos' assert platform in self._platform_map, '%s unsupported' % platform all_names = modules.get('all', []) + \ modules.get(self._platform_map[plat...
acb10270e823c9642805757c0060ee77239a8a17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/acb10270e823c9642805757c0060ee77239a8a17/pyauto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2563, 4709, 1557, 1265, 12, 2890, 16, 1544, 4672, 4381, 33, 4707, 57, 1285, 395, 18, 13904, 751, 1265, 12, 3459, 13, 4072, 273, 2589, 18, 9898, 309, 4707, 57, 1285, 395, 18, 2520,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2563, 4709, 1557, 1265, 12, 2890, 16, 1544, 4672, 4381, 33, 4707, 57, 1285, 395, 18, 13904, 751, 1265, 12, 3459, 13, 4072, 273, 2589, 18, 9898, 309, 4707, 57, 1285, 395, 18, 2520,...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def randomMove(x, y): '''Pass parental information fields to offspring''' # shift right with high concentration of alleles... off_x = random.normalvariate((x[0]+x[1])/2., 0.1) off_y = random.normalvariate((y[0]+y[1])/2., 0.1) return off_x, off_y
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2744, 7607, 12, 92, 16, 677, 4672, 9163, 6433, 982, 287, 1779, 1466, 358, 21174, 11638, 26418, 468, 4654, 2145, 598, 3551, 20570, 8230, 367, 434, 24634, 2777, 3397, 67, 92, 273, 2744, 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, 2744, 7607, 12, 92, 16, 677, 4672, 9163, 6433, 982, 287, 1779, 1466, 358, 21174, 11638, 26418, 468, 4654, 2145, 598, 3551, 20570, 8230, 367, 434, 24634, 2777, 3397, 67, 92, 273, 2744, 18...
tags.update({'source':'lukr', 'source:date':'2010-09-18'})
tags.update({'source':'lukr', 'source:date':'2010-09-17'})
def translateAttributes(attrs): if not attrs: return tags = {} #tags on all paths tags.update({'source':'lukr', 'source:date':'2010-09-18'}) tags.update({'lukr:raw':str(attrs).replace("&apos", "")}) #all lukr original tags, including the unique ObjectId. tags.update({'lukr:highway':'footway'}) #remove the lukr: prefi...
546c3f9f0a7ba8bc0f50f4e0b764b72f3dcbd129 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14003/546c3f9f0a7ba8bc0f50f4e0b764b72f3dcbd129/lukr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 2498, 12, 7039, 4672, 309, 486, 3422, 30, 327, 225, 2342, 273, 2618, 225, 468, 4156, 603, 777, 2953, 2342, 18, 2725, 12590, 11, 3168, 11, 2497, 80, 19445, 86, 2187, 296, 3168, 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, 4204, 2498, 12, 7039, 4672, 309, 486, 3422, 30, 327, 225, 2342, 273, 2618, 225, 468, 4156, 603, 777, 2953, 2342, 18, 2725, 12590, 11, 3168, 11, 2497, 80, 19445, 86, 2187, 296, 3168, 30...
if profilers.present(): profilers.start(self) utils.system(vars + ' ./Run ' + args) profilers.stop(self) profilers.report(self)
os.chdir(self.srcdir) utils.system(vars + ' ./Run ' + args)
def execute(self, iterations = 1, args = '', stepsecs=0): vars = ('TMPDIR=\"%s\" RESULTDIR=\"%s\"' % (self.tmpdir, self.resultsdir)) profilers = self.job.profilers keyval = open(self.resultsdir + '/keyval', 'w') self.err = None if stepsecs: # change time per subtest from unixbench's defaults of # 10 secs for small te...
62a055909f5c82daab963911315bcafcd04f78d8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/62a055909f5c82daab963911315bcafcd04f78d8/unixbench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 11316, 273, 404, 16, 833, 273, 10226, 2235, 21317, 33, 20, 4672, 4153, 273, 7707, 28259, 4537, 5189, 9, 87, 2412, 17210, 4537, 5189, 9, 87, 2412, 11, 738, 261, 2890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 11316, 273, 404, 16, 833, 273, 10226, 2235, 21317, 33, 20, 4672, 4153, 273, 7707, 28259, 4537, 5189, 9, 87, 2412, 17210, 4537, 5189, 9, 87, 2412, 11, 738, 261, 2890...
class ContinuousChar(GeneratedsSuper):
class AbstractMapping(Base): """The AbstractMapping type is the superclass for an ambiguity mapping. In an instance document, a subclass of this type will look like <member state="st1"/>, i.e. an element called "member" with an attribute called "state" whose value is an id reference that refers to an element that subcl...
def buildChildren(self, child_, nodeName_, from_subclass=False): pass
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, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4212, 12, 2890, 16, 1151, 67, 16, 7553, 67, 16, 628, 67, 10678, 33, 8381, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.http = ProxyConnection(host)
if proxy: self.http = ProxyConnection(host, proxy) else: self.http = httplib.HTTPConnection(host)
def __init__(self, host, username, password, path='/gallery/gallery_remote2.php'): self.host = host self.path = path self.cookies = {} self.http = ProxyConnection(host) self.login(username, password)
56e4874e187f2d09715c3c28c2bc3a967717ae39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/56e4874e187f2d09715c3c28c2bc3a967717ae39/gallery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 16, 2718, 16, 2201, 16, 589, 2218, 19, 21454, 19, 21454, 67, 7222, 22, 18, 2684, 11, 4672, 365, 18, 2564, 273, 1479, 365, 18, 803, 273, 589, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1479, 16, 2718, 16, 2201, 16, 589, 2218, 19, 21454, 19, 21454, 67, 7222, 22, 18, 2684, 11, 4672, 365, 18, 2564, 273, 1479, 365, 18, 803, 273, 589, 365,...
if must_quote_body:
if is_base64: line = line + 'base64\n' elif must_quote_body:
def mimify_part(ifile, ofile, is_mime): '''Convert an 8bit part of a MIME mail message to quoted-printable.''' has_cte = is_qp = 0 multipart = None must_quote_body = must_quote_header = has_iso_chars = 0 header = [] header_end = '' message = [] message_end = '' # read header hfile = HeaderFile(ifile) while 1: line = h...
7b5de9d620238c21b1b53805808b92f36b38335f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b5de9d620238c21b1b53805808b92f36b38335f/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 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, 20369, 1164, 67, 2680, 12, 430, 398, 16, 434, 398, 16, 353, 67, 11757, 4672, 9163, 2723, 392, 1725, 3682, 1087, 434, 279, 13195, 4791, 883, 358, 9298, 17, 1188, 429, 1093, 6309, 711, 6...
print 'File has SHA1 hash %s'%hash()
print 'File has SHA1 hash %s'%hash
def write_version_file(self, builder, args): force = False while args: word = args[0] args = args[1:] if word in ('-f', '-force'): force = True elif word.startswith('-'): print "Unexpected switch '%s'"%word self.print_syntax() return 2 else: print "Unexpected '%s'"%word self.print_syntax() return 2
59f7ca004baa26814312930a617a413f4bebd1f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4427/59f7ca004baa26814312930a617a413f4bebd1f4/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1589, 67, 768, 12, 2890, 16, 2089, 16, 833, 4672, 2944, 273, 1083, 1323, 833, 30, 2076, 273, 833, 63, 20, 65, 833, 273, 833, 63, 21, 26894, 309, 2076, 316, 7707, 17, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1589, 67, 768, 12, 2890, 16, 2089, 16, 833, 4672, 2944, 273, 1083, 1323, 833, 30, 2076, 273, 833, 63, 20, 65, 833, 273, 833, 63, 21, 26894, 309, 2076, 316, 7707, 17, 74, ...
if not ymin:
if ymin is None:
def __init__(self, v, xmin=None, xmax=None, ymin=None, ymax=None, **kwds): w = [] for x in v: if not isinstance(x, plot.Graphics): x = plot.plot(x, xmin=xmin, xmax=xmax) w.append(x) if len(w) == 0: w = [plot.Graphics()] self.__frames = w G = w[0] if not xmin: xmin = G.xmin() if not xmax: xmax = G.xmax() if not ymin: ym...
9c81fcd897d50f9a2961371139896f44cf249289 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/9c81fcd897d50f9a2961371139896f44cf249289/animate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 331, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 2826, 25577, 4672, 341, 273, 5378, 364, 619, 316, 331, 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, 1001, 2738, 972, 12, 2890, 16, 331, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 2826, 25577, 4672, 341, 273, 5378, 364, 619, 316, 331, 30, ...
print path
def getRootPath(): path = os.path.dirname(os.path.abspath(__file__)) if os.path.isdir(os.path.join(path, "media")): print path return path path = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),"..\\..")) if os.path.isdir(os.path.join(path, "media")): print path return path
1464f29b0b316177573c8b2d1f8c3b5df5ec9bbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/808/1464f29b0b316177573c8b2d1f8c3b5df5ec9bbf/svn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18863, 13332, 589, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18863, 13332, 589, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 803, ...
share.put(updateCallback=callback)
try: share.put(updateCallback=callback) except: share.destroy() raise
def publish(collection, account, classesToInclude=None, publishType = 'collection', attrsToExclude=None, displayName=None, updateCallback=None): """ Publish a collection, automatically determining which conduits/formats to use, and how many @type collection: pim.ContentCollection @param collection: The collection to p...
d9474db5a0ac357a1917cdaae757e14b63c31bda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d9474db5a0ac357a1917cdaae757e14b63c31bda/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 5548, 16, 2236, 16, 3318, 774, 8752, 33, 7036, 16, 3808, 559, 273, 296, 5548, 2187, 3422, 774, 12689, 33, 7036, 16, 16218, 33, 7036, 16, 1089, 2428, 33, 7036, 4672, 3536, 976...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 12, 5548, 16, 2236, 16, 3318, 774, 8752, 33, 7036, 16, 3808, 559, 273, 296, 5548, 2187, 3422, 774, 12689, 33, 7036, 16, 16218, 33, 7036, 16, 1089, 2428, 33, 7036, 4672, 3536, 976...
for unit in queryset.iterator():
for unit in queryset[:64].iterator():
def get_current_units(request, step_queryset, units_queryset): """returns current active unit, and in case of POST previously active unit""" edit_unit = None prev_unit = None pager = None # GET gets priority if 'unit' in request.GET: # load a specific unit in GET try: edit_id = int(request.GET['unit']) edit_unit = step...
e4e5205275389aa7e6928b6077d275d21cc79c3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/e4e5205275389aa7e6928b6077d275d21cc79c3d/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2972, 67, 7705, 12, 2293, 16, 2235, 67, 21729, 16, 4971, 67, 21729, 4672, 3536, 6154, 783, 2695, 2836, 16, 471, 316, 648, 434, 5485, 7243, 2695, 2836, 8395, 3874, 67, 4873, 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, 336, 67, 2972, 67, 7705, 12, 2293, 16, 2235, 67, 21729, 16, 4971, 67, 21729, 4672, 3536, 6154, 783, 2695, 2836, 16, 471, 316, 648, 434, 5485, 7243, 2695, 2836, 8395, 3874, 67, 4873, 27...
self.ressource = (model, obj_id)
self.resource = (model, obj_id)
def __init__(self, model, obj_id, parent): self.glade = glade.XML(GLADE, 'win_attach', gettext.textdomain()) self.win = self.glade.get_widget('win_attach') self.win.set_icon(TRYTON_ICON) self.win.set_transient_for(parent) self.parent = parent self.ressource = (model, obj_id)
bac16d4eaf047074802febdef71309d975cf8061 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/bac16d4eaf047074802febdef71309d975cf8061/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 938, 16, 1081, 67, 350, 16, 982, 4672, 365, 18, 7043, 2486, 273, 5118, 2486, 18, 4201, 12, 43, 2534, 1639, 16, 296, 8082, 67, 7331, 2187, 24972, 18, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 938, 16, 1081, 67, 350, 16, 982, 4672, 365, 18, 7043, 2486, 273, 5118, 2486, 18, 4201, 12, 43, 2534, 1639, 16, 296, 8082, 67, 7331, 2187, 24972, 18, 95...
return self.CALL_FUNCTION(argc)+1
return self.CALL_FUNCTION(argc)-1
def CALL_FUNCTION_VAR(self, argc): return self.CALL_FUNCTION(argc)+1
7b358a65a3617245e4258bd0917666b170879137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7b358a65a3617245e4258bd0917666b170879137/pyassem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22753, 67, 7788, 67, 7716, 12, 2890, 16, 1501, 71, 4672, 327, 365, 18, 13730, 67, 7788, 12, 3175, 71, 27921, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22753, 67, 7788, 67, 7716, 12, 2890, 16, 1501, 71, 4672, 327, 365, 18, 13730, 67, 7788, 12, 3175, 71, 27921, 21, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return schematron.validate(CIMFragment):
return schematron.validate(CIMFragment)
def validate(self): ''' Check to see if component is valid. Returns True/False ''' nm=NumericalModel(Centre.objects.get(id=self.centre_id),component_id) CIMDoc=nm.export(recurse=False) sct_doc = ET.parse("xsl/BasicChecks.sch") schematron = ET.Schematron(sct_doc) return schematron.validate(CIMFragment):
b62966d38b3ad99d9ecdef7d4a3e07f29aee7cbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7019/b62966d38b3ad99d9ecdef7d4a3e07f29aee7cbe/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 4672, 9163, 2073, 358, 2621, 309, 1794, 353, 923, 18, 2860, 1053, 19, 8381, 9163, 8442, 33, 2578, 10882, 1488, 12, 15897, 266, 18, 6911, 18, 588, 12, 350, 33, 2890, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 4672, 9163, 2073, 358, 2621, 309, 1794, 353, 923, 18, 2860, 1053, 19, 8381, 9163, 8442, 33, 2578, 10882, 1488, 12, 15897, 266, 18, 6911, 18, 588, 12, 350, 33, 2890, 18,...
buildscript.execute(['make', '-f', 'client.mk', 'checkout'],
make = os.environ.get('MAKE', 'make') buildscript.execute([make, '-f', 'client.mk', 'checkout'],
def checkout(self, buildscript): buildscript.set_action('Checking out', self) cmd = ['cvs', '-z3', '-q', '-d', self.repository.cvsroot, 'checkout'] if self.revision: cmd.extend(['-r', self.revision]) else: cmd.append('-A') if buildscript.config.sticky_date: cmd.extend(['-D', buildscript.config.sticky_date]) cmd.append(...
e2bee5a2591e6cd8e49fdcb23c96674dffd83524 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4596/e2bee5a2591e6cd8e49fdcb23c96674dffd83524/mozillamodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13926, 12, 2890, 16, 1361, 4263, 4672, 1361, 4263, 18, 542, 67, 1128, 2668, 14294, 596, 2187, 365, 13, 1797, 273, 10228, 71, 6904, 2187, 2400, 94, 23, 2187, 2400, 85, 2187, 2400, 72, 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, 13926, 12, 2890, 16, 1361, 4263, 4672, 1361, 4263, 18, 542, 67, 1128, 2668, 14294, 596, 2187, 365, 13, 1797, 273, 10228, 71, 6904, 2187, 2400, 94, 23, 2187, 2400, 85, 2187, 2400, 72, 2...
import networkx.generators.bipartite as nx_bip self.left, self.right = \ nx_bip.bipartite_sets(self.networkx_graph())
Graph.__init__(self, arg1, *args, **kwds) self.left, self.right = self.bipartite_sets() return
def __init__(self, *args, **kwds): r""" Bipartite graph.
49be70e5a95362ec30dd81b8dbc8ce6bf5fa414a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/49be70e5a95362ec30dd81b8dbc8ce6bf5fa414a/bipartite_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 605, 5762, 1137, 2667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 605, 5762, 1137, 2667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if exe == 'x' and out==None:
if exe == None and out==None:
def filedims(inp=None, out=None, large=None, parform=None, verb=False, exe=None): if exe == 'x' and out==None: # invalid combination, fix the call exe = 'g' return __run('sffiledims', __parse(locals()), inp, out, verb, __x(exe,glob_exe))
83e80f2a89de925c7813a3af90f96b32414dd343 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3143/83e80f2a89de925c7813a3af90f96b32414dd343/sf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 8550, 12, 31647, 33, 7036, 16, 596, 33, 7036, 16, 7876, 33, 7036, 16, 779, 687, 33, 7036, 16, 6405, 33, 8381, 16, 15073, 33, 7036, 4672, 225, 309, 15073, 422, 599, 471, 596, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 8550, 12, 31647, 33, 7036, 16, 596, 33, 7036, 16, 7876, 33, 7036, 16, 779, 687, 33, 7036, 16, 6405, 33, 8381, 16, 15073, 33, 7036, 4672, 225, 309, 15073, 422, 599, 471, 596, 631...
.draft-content { background-color: .stable-draft { background-color: .implemented { background-color: .stable { background-color: body .editorial { color:gray; } :link { background-color:transparent; color: :visited { background-color:transparent; color: img { border-style:none; vertical-align:middle; } td :link { co...
.draft-content { background-color: .stable-draft { background-color: .implemented { background-color: .stable { background-color: body .editorial { color:gray } :link { background:transparent; color: :visited { background:transparent; color: img { border:0; vertical-align:middle } td :link { color:inherit } td a { te...
def startFormatting(title, identifier, source): document = """Content-Type:text/html;charset=UTF-8
943afbec53903141cfdc88408bfe2ea256880388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10248/943afbec53903141cfdc88408bfe2ea256880388/trackerlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 23974, 12, 2649, 16, 2756, 16, 1084, 4672, 1668, 273, 3536, 1350, 17, 559, 30, 955, 19, 2620, 31, 9999, 33, 5159, 17, 28, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 23974, 12, 2649, 16, 2756, 16, 1084, 4672, 1668, 273, 3536, 1350, 17, 559, 30, 955, 19, 2620, 31, 9999, 33, 5159, 17, 28, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item):
if os.access(item, os.R_OK) == False: return False for item2 in os.listdir(item):
def expand_directory(self, item, stop_when_image_found, go_buttons_enabled): if self.stop_now == False and self.closing_app == False: folderlist = []
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 5149, 12, 2890, 16, 761, 16, 2132, 67, 13723, 67, 2730, 67, 7015, 16, 1960, 67, 16016, 67, 5745, 4672, 309, 365, 18, 5681, 67, 3338, 422, 1083, 471, 365, 18, 19506, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 67, 5149, 12, 2890, 16, 761, 16, 2132, 67, 13723, 67, 2730, 67, 7015, 16, 1960, 67, 16016, 67, 5745, 4672, 309, 365, 18, 5681, 67, 3338, 422, 1083, 471, 365, 18, 19506, 67, 291...
self.assertEquals(read_val, "sub_key", "Read subkey value wrong")
self.assertEquals(read_val, subkeystr, "Read subkey value wrong")
def ReadTestData(self, root_key): # Check we can get default value for this key. val = QueryValue(root_key, test_key_name) self.assertEquals(val, "Default value", "Registry didn't give back the correct value")
f82d9b52fae475a132a21d1b7174730f17b735de /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f82d9b52fae475a132a21d1b7174730f17b735de/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 468, 2073, 732, 848, 336, 805, 460, 364, 333, 498, 18, 1244, 273, 2770, 620, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 468, 2073, 732, 848, 336, 805, 460, 364, 333, 498, 18, 1244, 273, 2770, 620, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 13, ...