rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
libraries, extradirs, extraexportsymbols, outputdir)
libraries, extradirs, extraexportsymbols, outputdir, libraryflags, stdlibraryflags, prefixname)
def genpluginproject(architecture, module, project=None, projectdir=None, sources=[], sourcedirs=[], libraries=[], extradirs=[], extraexportsymbols=[], outputdir=":::Lib:lib-dynload", libraryflags=None, stdlibraryflags=None, prefixname=None): if architecture == "all": # For the time being we generate two project files....
9051e0e5775b0d0d9f6b4d09a15ef262dd936e76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9051e0e5775b0d0d9f6b4d09a15ef262dd936e76/genpluginprojects.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4094, 4406, 12, 991, 18123, 16, 1605, 16, 1984, 33, 7036, 16, 1984, 1214, 33, 7036, 16, 5550, 22850, 6487, 1084, 8291, 22850, 6487, 14732, 22850, 6487, 7582, 361, 10539, 22850, 6487,...
return message_dialog(parent,
return self.message_dialog(parent,
def ask_delete(self, parent, path): return message_dialog(parent, "Are you sure you want to delete '%s'?" % path, "Confirm Delete", wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) == wx.ID_YES
51abfbdf0942b8973b0991dc986f01b440875681 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11441/51abfbdf0942b8973b0991dc986f01b440875681/dialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 67, 3733, 12, 2890, 16, 982, 16, 589, 4672, 327, 365, 18, 2150, 67, 12730, 12, 2938, 16, 315, 4704, 1846, 3071, 1846, 2545, 358, 1430, 1995, 87, 11, 7225, 738, 589, 16, 315, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6827, 67, 3733, 12, 2890, 16, 982, 16, 589, 4672, 327, 365, 18, 2150, 67, 12730, 12, 2938, 16, 315, 4704, 1846, 3071, 1846, 2545, 358, 1430, 1995, 87, 11, 7225, 738, 589, 16, 315, 11...
test()
main()
def test(): import sys import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'td') except getopt.error, msg: sys.stdout = sys.stderr print msg print "usage: quopri [-t | -d] [file] ..." print "-t: quote tabs" print "-d: decode; default encode" sys.exit(2) deco = 0 tabs = 0 for o, a in opts: if o == '-t': tabs = 1...
c91b9c6530040096cdd0c653e65b57310098fd14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c91b9c6530040096cdd0c653e65b57310098fd14/quopri.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1930, 2589, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 4465, 6134, 1335, 336, 3838, 18, 1636, 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, 13332, 1930, 2589, 1930, 336, 3838, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 4465, 6134, 1335, 336, 3838, 18, 1636, 16, ...
self.write('\n')
self.write('enter\n')
def setchannel(self, channelno): ch_digits = list(str(channelno)) # XXX Only works for numerical channels! for digit in ch_digits: cmd = 'CHANNEL_%s\n' % digit self.write(cmd) self.write('\n')
ced9a5c1014836d3b5061d472768ee118c2c80b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/ced9a5c1014836d3b5061d472768ee118c2c80b0/tvtime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 4327, 12, 2890, 16, 1904, 2135, 4672, 462, 67, 16649, 273, 666, 12, 701, 12, 4327, 2135, 3719, 282, 468, 11329, 5098, 6330, 364, 17409, 5750, 5, 364, 8035, 316, 462, 67, 16649, 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, 444, 4327, 12, 2890, 16, 1904, 2135, 4672, 462, 67, 16649, 273, 666, 12, 701, 12, 4327, 2135, 3719, 282, 468, 11329, 5098, 6330, 364, 17409, 5750, 5, 364, 8035, 316, 462, 67, 16649, 30...
offset = get_move_xyz(self.w, 1)
offset = get_move_xyz(self.w)
def moveDeltaPlus(self): "Add X, Y, and Z to the selected chunk(s) current position" if not self.o.assy.getSelectedMovables(): env.history.message(redmsg("No chunks or movable jigs selected.")) return offset = get_move_xyz(self.w, 1) self.o.assy.movesel(offset) self.o.gl_update()
e4ad408a23ccf263431eafe4e543b61233f4b036 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e4ad408a23ccf263431eafe4e543b61233f4b036/modifyMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 9242, 13207, 12, 2890, 4672, 315, 986, 1139, 16, 1624, 16, 471, 2285, 358, 326, 3170, 2441, 12, 87, 13, 783, 1754, 6, 309, 486, 365, 18, 83, 18, 428, 93, 18, 588, 7416, 49, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 9242, 13207, 12, 2890, 4672, 315, 986, 1139, 16, 1624, 16, 471, 2285, 358, 326, 3170, 2441, 12, 87, 13, 783, 1754, 6, 309, 486, 365, 18, 83, 18, 428, 93, 18, 588, 7416, 49, 1...
self.rbshell = dbus.Interface(rbshellobj, 'org.gnome.Rhythmbox.Shell') rbplayerobj = bus.get_object('org.gnome.Rhythmbox', '/org/gnome/Rhythmbox/Player') rbplayer = dbus.Interface(rbplayerobj, 'org.gnome.Rhythmbox.Player')
self.rbshell = self.bus.Interface(rbshellobj, 'org.gnome.Rhythmbox.Shell') rbplayerobj = self.bus.get_object('org.gnome.Rhythmbox', '/org/gnome/Rhythmbox/Player') rbplayer = self.bus.Interface(rbplayerobj, 'org.gnome.Rhythmbox.Player')
def rhythmbox(self): if self.bus is None: self.frame.logMessage(_("ERROR: DBus not available:")+" "+"Rhythmbox"+ " "+ _("cannot be contacted")) return None try: rbshellobj = self.bus.get_object('org.gnome.Rhythmbox', '/org/gnome/Rhythmbox/Shell') self.rbshell = dbus.Interface(rbshellobj, 'org.gnome.Rhythmbox.Shell') rb...
4f2857ded7b61e1bff46f269846f8969c0071d43 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/4f2857ded7b61e1bff46f269846f8969c0071d43/nowplaying.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6259, 93, 451, 81, 2147, 12, 2890, 4672, 309, 365, 18, 9274, 353, 599, 30, 365, 18, 3789, 18, 1330, 1079, 24899, 2932, 3589, 30, 2383, 407, 486, 2319, 2773, 13, 9078, 17487, 54, 18112,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6259, 93, 451, 81, 2147, 12, 2890, 4672, 309, 365, 18, 9274, 353, 599, 30, 365, 18, 3789, 18, 1330, 1079, 24899, 2932, 3589, 30, 2383, 407, 486, 2319, 2773, 13, 9078, 17487, 54, 18112,...
def __init__(self): self.seq = 'wxyz'
def __init__(self, seq): self.seq = seq
def __init__(self): self.seq = 'wxyz'
15ffc71c0f811d4c3053efb0480d70502ec35c99 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/15ffc71c0f811d4c3053efb0480d70502ec35c99/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5436, 273, 296, 91, 17177, 11, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 5436, 273, 296, 91, 17177, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (o >= 32 and o < 128) or o >= 160:
if (o >= 32 and o < 127) or o >= 128:
def c_escape_char(s): if s != '\0' and c_escape_map.has_key(s): return '\\' + c_escape_map[s] o = ord(s) if (o >= 32 and o < 128) or o >= 160: return s return '\\%03o' % o
114cac45dadfc286cbe3ad8698ed8c5a368e46f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6176/114cac45dadfc286cbe3ad8698ed8c5a368e46f0/flatten.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 6939, 67, 3001, 12, 87, 4672, 309, 272, 480, 2337, 20, 11, 471, 276, 67, 6939, 67, 1458, 18, 5332, 67, 856, 12, 87, 4672, 327, 5282, 397, 276, 67, 6939, 67, 1458, 63, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 6939, 67, 3001, 12, 87, 4672, 309, 272, 480, 2337, 20, 11, 471, 276, 67, 6939, 67, 1458, 18, 5332, 67, 856, 12, 87, 4672, 327, 5282, 397, 276, 67, 6939, 67, 1458, 63, 87, ...
else: json['x2'] = 0 json['y2'] = 0
def json(self, playersship=0): json = {} json['x'] = self.x json['y'] = self.y json['i'] = self.id json['o'] = self.owner.id json['c'] = self.owner.get_profile().color json['s'] = self.senserange() json['sl'] = self.shiplistreport() json['n'] = self.numships()
f7e99fb98175da1294953a01ddc8797ffebe91b2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2020/f7e99fb98175da1294953a01ddc8797ffebe91b2/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1163, 12, 2890, 16, 18115, 3261, 33, 20, 4672, 1163, 273, 2618, 1163, 3292, 92, 3546, 273, 365, 18, 92, 1163, 3292, 93, 3546, 273, 365, 18, 93, 1163, 3292, 77, 3546, 273, 365, 18, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1163, 12, 2890, 16, 18115, 3261, 33, 20, 4672, 1163, 273, 2618, 1163, 3292, 92, 3546, 273, 365, 18, 92, 1163, 3292, 93, 3546, 273, 365, 18, 93, 1163, 3292, 77, 3546, 273, 365, 18, 35...
'''Inventory system status''' self.CondPrint('verbose', "Inventorying system...") Toolset.Inventory(self) self.pkgwork = {'add':[], 'update':[], 'remove':[]} all = deepcopy(self.installed) desired = {} for entry in self.cfg.findall(".//Package"): desired[entry.attrib['name']] = entry for pkg, entry in desired.iteritem...
'''Do standard inventory plus debian extra service check''' self.Inventory_Entries()
def Inventory(self): '''Inventory system status''' self.CondPrint('verbose', "Inventorying system...") Toolset.Inventory(self) self.pkgwork = {'add':[], 'update':[], 'remove':[]} all = deepcopy(self.installed) desired = {} for entry in self.cfg.findall(".//Package"): desired[entry.attrib['name']] = entry
1a3293fe116478c1b120e04394f0d6d6aae9307d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/1a3293fe116478c1b120e04394f0d6d6aae9307d/Debian.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24835, 12, 2890, 4672, 9163, 15059, 2619, 1267, 26418, 365, 18, 12441, 5108, 2668, 11369, 2187, 315, 15059, 310, 2619, 7070, 13, 13288, 542, 18, 15059, 12, 2890, 13, 365, 18, 10657, 1252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24835, 12, 2890, 4672, 9163, 15059, 2619, 1267, 26418, 365, 18, 12441, 5108, 2668, 11369, 2187, 315, 15059, 310, 2619, 7070, 13, 13288, 542, 18, 15059, 12, 2890, 13, 365, 18, 10657, 1252, ...
redis.srem(self.__class__.categories_key, category)
self.redis.srem(self.__class__.categories_key, category)
def classify(self, text): scores = {}
9eaa07f6460d21d6c436d9508744e95d70a7d9a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13847/9eaa07f6460d21d6c436d9508744e95d70a7d9a9/bayes_on_redis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19974, 12, 2890, 16, 977, 4672, 8474, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19974, 12, 2890, 16, 977, 4672, 8474, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def kde_check(headfiles): includes = kde_exec('--install include')
def kde_check(cmd, headfiles): includes = kde_exec(cmd, '--install include --expandvars')
def kde_check(headfiles): includes = kde_exec('--install include') for filename in headfiles: # generate all possible paths for the headfile paths = [dir + filename for dir in includes] # check if any file exists exists = any([ os.path.exists(path) for path in paths]) if not exists: return False return True
a529236aefa94fef061cfb861e79f5a332698156 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5209/a529236aefa94fef061cfb861e79f5a332698156/extensions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 323, 67, 1893, 12, 4172, 16, 910, 2354, 4672, 6104, 273, 417, 323, 67, 4177, 12, 4172, 16, 3534, 5425, 2341, 1493, 12320, 4699, 6134, 364, 1544, 316, 910, 2354, 30, 468, 2103, 777...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 323, 67, 1893, 12, 4172, 16, 910, 2354, 4672, 6104, 273, 417, 323, 67, 4177, 12, 4172, 16, 3534, 5425, 2341, 1493, 12320, 4699, 6134, 364, 1544, 316, 910, 2354, 30, 468, 2103, 777...
assert isinstance(typedesc, VirtualizableStructTypeDesc)
assert isinstance(typedesc, VirtualizableStructTypeDesc) gv_outside = self.content_boxes[-1].genvar
def op_getfield(self, jitstate, fielddesc): typedesc = self.typedesc assert isinstance(typedesc, VirtualizableStructTypeDesc) fieldindex = fielddesc.fieldindex if fieldindex in typedesc.redirected: return self.content_boxes[fielddesc.fieldindex] else: gv_ptr = self.getgenvar(jitstate) box = fielddesc.generate_get(jitst...
57910431fa201417e786e589c7490baf5d152f28 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/57910431fa201417e786e589c7490baf5d152f28/rcontainer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1061, 67, 588, 1518, 12, 2890, 16, 525, 305, 2019, 16, 7314, 292, 449, 742, 4672, 9092, 742, 273, 365, 18, 11585, 742, 1815, 1549, 12, 11585, 742, 16, 7269, 6934, 3823, 559, 4217, 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, 1061, 67, 588, 1518, 12, 2890, 16, 525, 305, 2019, 16, 7314, 292, 449, 742, 4672, 9092, 742, 273, 365, 18, 11585, 742, 1815, 1549, 12, 11585, 742, 16, 7269, 6934, 3823, 559, 4217, 13, ...
usage = usage + " [default = %g]\n" % size.getConstant("CFAC") usage = usage + " --FADD=<value> : Amount to add to molecular dimensions to get fine\n"
usage = usage + " [default = %g]\n" % size.getConstant("cfac") usage = usage + " --fadd=<value> : Amount to add to molecular dimensions to get fine\n"
def usage(): """ Display the usage information for this script """ size = psize.Psize() usage = "\n" usage = usage + "Use this script to generate new APBS input files or split an existing\n" usage = usage + "parallel input file into multiple async files.\n\n" usage = usage + "Usage: inputgen.py [opts] <filename>\n" usa...
b234c60353fa719fc79ac873b5f1120654bc1922 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8179/b234c60353fa719fc79ac873b5f1120654bc1922/inputgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 9311, 326, 4084, 1779, 364, 333, 2728, 3536, 963, 273, 293, 1467, 18, 52, 1467, 1435, 4084, 273, 1548, 82, 6, 4084, 273, 4084, 397, 315, 3727, 333, 2728, 358, 2103, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 3536, 9311, 326, 4084, 1779, 364, 333, 2728, 3536, 963, 273, 293, 1467, 18, 52, 1467, 1435, 4084, 273, 1548, 82, 6, 4084, 273, 4084, 397, 315, 3727, 333, 2728, 358, 2103, ...
fcntl.flock(f, fcntl.LOCK_UN)
def _unlock_file(f): """Unlock file f using lockf, flock, and dot locking.""" if fcntl: fcntl.lockf(f, fcntl.LOCK_UN) fcntl.flock(f, fcntl.LOCK_UN) if os.path.exists(f.name + '.lock'): os.remove(f.name + '.lock')
cdd66d049dffcee94b9dc9b17bea510e323d079a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cdd66d049dffcee94b9dc9b17bea510e323d079a/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26226, 67, 768, 12, 74, 4672, 3536, 7087, 585, 284, 1450, 2176, 74, 16, 27168, 16, 471, 3928, 18887, 12123, 309, 30894, 30, 30894, 18, 739, 74, 12, 74, 16, 30894, 18, 6589, 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, 389, 26226, 67, 768, 12, 74, 4672, 3536, 7087, 585, 284, 1450, 2176, 74, 16, 27168, 16, 471, 3928, 18887, 12123, 309, 30894, 30, 30894, 18, 739, 74, 12, 74, 16, 30894, 18, 6589, 67, ...
sage: len(L)
sage: len(L)
def canaug_traverse_vert(g, aut_gens, max_verts, property): """ Main function for exhaustive generation. Recursive traversal of a canonically generated tree of isomorph free graphs satisfying a given property. INPUT: g -- current position on the tree. aut_gens -- list of generators of Aut(g), in list notation. max_ver...
d81b5e7b91084ae954dbaee810a0da704510ae21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/d81b5e7b91084ae954dbaee810a0da704510ae21/graph_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 848, 6480, 67, 2033, 2476, 67, 1097, 12, 75, 16, 2059, 67, 23730, 16, 943, 67, 31537, 16, 1272, 4672, 3536, 12740, 445, 364, 19575, 641, 688, 9377, 18, 12707, 15940, 434, 279, 29147, 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, 848, 6480, 67, 2033, 2476, 67, 1097, 12, 75, 16, 2059, 67, 23730, 16, 943, 67, 31537, 16, 1272, 4672, 3536, 12740, 445, 364, 19575, 641, 688, 9377, 18, 12707, 15940, 434, 279, 29147, 6...
'class : CLASS OPEN fundefs CLOSE' t[0] = [CLASS, fundefs] def p_tempclass_plain(t): 'tempclass : class' t[0] = t[1] def p_tempclass_template(t): 'tempclass : TEMPLATE LPAREN args RPAREN class' t[0] = [TEMPLATED, t[3], t[5]]
'class : CLASS NAME OPEN fundefs CLOSE' t[0] = [CLASS, t[2], t[4]] def p_tclass_template(t): 'tclass : TEMPLATE LPAREN templargspecs RPAREN class' t[0] = [TEMPLATE_CLASS, t[3], t[5]] def p_tclass_plain(t): 'tclass : class' t[0] = t[1]
def p_class(t): 'class : CLASS OPEN fundefs CLOSE' t[0] = [CLASS, fundefs]
020a6aee677bb6a1408239b6ca057f05b9a4013f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13661/020a6aee677bb6a1408239b6ca057f05b9a4013f/blt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1106, 12, 88, 4672, 296, 1106, 294, 7383, 11919, 9831, 12537, 14435, 11, 268, 63, 20, 65, 273, 306, 5237, 16, 9831, 12537, 65, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 67, 1106, 12, 88, 4672, 296, 1106, 294, 7383, 11919, 9831, 12537, 14435, 11, 268, 63, 20, 65, 273, 306, 5237, 16, 9831, 12537, 65, 225, 2, -100, -100, -100, -100, -100, -100, -100...
if options.verbose: print "%s vendor is: '%s'" % (system['name'], vendor)
if options.verbose: print timestamp(), "Info: %s vendor is: '%s'" % (system['name'], vendor)
def subscribe_clients(key): '''Creates list of registered clients, and subscribes them to the platform_independent channel''' systems = client.system.list_systems(key) scheduled = [] for system in systems: # Check if it is a Dell system if options.verbose: print "Checking system %s with id: %i" % (system['name'], syste...
07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9129, 67, 16931, 12, 856, 4672, 9163, 2729, 666, 434, 4104, 7712, 16, 471, 10189, 281, 2182, 358, 326, 4072, 67, 267, 10891, 1904, 26418, 14908, 273, 1004, 18, 4299, 18, 1098, 67, 4299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9129, 67, 16931, 12, 856, 4672, 9163, 2729, 666, 434, 4104, 7712, 16, 471, 10189, 281, 2182, 358, 326, 4072, 67, 267, 10891, 1904, 26418, 14908, 273, 1004, 18, 4299, 18, 1098, 67, 4299, ...
'da': u'MediaWiki', 'de': u'MediaWiki', 'el': u'MediaWiki', 'eo': u'MediaWiki', 'es': u'MediaWiki', 'et': u'MediaWiki',
def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia'
5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, -100, -100, -100, -100, -100, -100, -100, -10...
fext = self._getExtension(fname)
fext = self._getExtension(fileName)
def save(self,fname): ''' Dump the class data into a csv or pickle file The encoding is determined by the filename's extension: 'csv' : When the filename ends in '.csv' the routine tries to interpret the file as comma seperated values. The variable names must be in the first row Any other extension is considered to me...
45268ff49ddb4f963530947d7202a5e0642e2fda /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/45268ff49ddb4f963530947d7202a5e0642e2fda/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 12749, 4672, 9163, 18242, 326, 667, 501, 1368, 279, 6101, 578, 13379, 585, 225, 1021, 2688, 353, 11383, 635, 326, 1544, 1807, 2710, 30, 296, 6715, 11, 294, 5203, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 12749, 4672, 9163, 18242, 326, 667, 501, 1368, 279, 6101, 578, 13379, 585, 225, 1021, 2688, 353, 11383, 635, 326, 1544, 1807, 2710, 30, 296, 6715, 11, 294, 5203, 326,...
cp = _pjsua.codec_get_param(ci.id)
cp = _pjsua.codec_get_param(ci.codec_id)
def enum_codecs(self): """Return list of codecs supported by pjsua.
96bd20fdc0d5b621302534a66f338c5d4a91a468 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1549/96bd20fdc0d5b621302534a66f338c5d4a91a468/pjsua.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 710, 2143, 12, 2890, 4672, 3536, 990, 666, 434, 17437, 3260, 635, 293, 2924, 11886, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 710, 2143, 12, 2890, 4672, 3536, 990, 666, 434, 17437, 3260, 635, 293, 2924, 11886, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
""" if _debug: print "\t%s: Called setXLabel() in Plot()" % rendererName
@type label: string """ debugMsg("Called setXLabel() in Plot()")
def setXLabel(self,label): """ Set the label of the x-axis
525240b057c0121c2cab7772950af46d6399ad7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/525240b057c0121c2cab7772950af46d6399ad7e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23733, 2224, 12, 2890, 16, 1925, 4672, 3536, 1000, 326, 1433, 434, 326, 619, 17, 4890, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23733, 2224, 12, 2890, 16, 1925, 4672, 3536, 1000, 326, 1433, 434, 326, 619, 17, 4890, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
testdir=None, huntrleaks=False):
testdir=None, huntrleaks=False, debug=False):
def runtest_inner(test, generate, verbose, quiet, testdir=None, huntrleaks=False): test_support.unload(test) if not testdir: testdir = findtestdir() outputdir = os.path.join(testdir, "output") outputfile = os.path.join(outputdir, test) if verbose: cfp = None else: cfp = cStringIO.StringIO() try: save_stdout = sys.stdo...
1faed11e7c8a032086c03a6248a1cab9f2725938 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/1faed11e7c8a032086c03a6248a1cab9f2725938/regrtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3813, 67, 7872, 12, 3813, 16, 2103, 16, 3988, 16, 10902, 16, 1842, 1214, 33, 7036, 16, 366, 318, 313, 298, 581, 87, 33, 8381, 16, 1198, 33, 8381, 4672, 1842, 67, 13261, 18, 318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3813, 67, 7872, 12, 3813, 16, 2103, 16, 3988, 16, 10902, 16, 1842, 1214, 33, 7036, 16, 366, 318, 313, 298, 581, 87, 33, 8381, 16, 1198, 33, 8381, 4672, 1842, 67, 13261, 18, 318...
robot.parsing.populator.PROCESS_CURDIR = self._orig_curdir
robot.parsing.datareader.PROCESS_CURDIR = self._orig_curdir
def tearDown(self): robot.parsing.populator.PROCESS_CURDIR = self._orig_curdir
8bf90a6a73904ea8d7abb0c24b159e5e32cbab8a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/8bf90a6a73904ea8d7abb0c24b159e5e32cbab8a/test_tsvreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 14386, 18, 24979, 18, 5120, 11775, 18, 16560, 67, 7509, 4537, 273, 365, 6315, 4949, 67, 1397, 1214, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 14386, 18, 24979, 18, 5120, 11775, 18, 16560, 67, 7509, 4537, 273, 365, 6315, 4949, 67, 1397, 1214, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.runthread.run = run self.runthread.start()
def run(): for parameter in save_list: if parameter.type == KeywordModel.TYPE: for choice in parameter.getUserData()['key_index_choices']: self.plot_data_fetcher.setParameter(parameter, context_data) parameter.getUserData()['key_index'] = choice # because setParameter overwrites this value self.plot_data_fetcher.fetchC...
ea81291531705a5a4d2fa714658335833c1c859b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10268/ea81291531705a5a4d2fa714658335833c1c859b/plotgenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 364, 1569, 316, 1923, 67, 1098, 30, 309, 1569, 18, 723, 422, 18317, 1488, 18, 2399, 30, 364, 6023, 316, 1569, 18, 588, 19265, 1435, 3292, 856, 67, 1615, 67, 11937, 3546, 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, 1086, 13332, 364, 1569, 316, 1923, 67, 1098, 30, 309, 1569, 18, 723, 422, 18317, 1488, 18, 2399, 30, 364, 6023, 316, 1569, 18, 588, 19265, 1435, 3292, 856, 67, 1615, 67, 11937, 3546, 3...
p = Participant.query.filter_by(email=email).first()
p = Participant.query.filter_by(edition=edition, email=email).first()
def admin_venue(edition): if request.method == 'GET': if 'email' in request.args: return admin_venue(key, 'venueregemail', request.args['email']) else: return render_template('venuereg.html', key=key) elif request.method =='POST': formid = request.form.get('form.id', formid) if formid == 'venueregemail': email = reques...
c39abb5ad830344c728adba73719fbcab48a649a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12083/c39abb5ad830344c728adba73719fbcab48a649a/website.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3981, 67, 24612, 12, 329, 608, 4672, 309, 590, 18, 2039, 422, 296, 3264, 4278, 309, 296, 3652, 11, 316, 590, 18, 1968, 30, 327, 3981, 67, 24612, 12, 856, 16, 296, 90, 2104, 11877, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3981, 67, 24612, 12, 329, 608, 4672, 309, 590, 18, 2039, 422, 296, 3264, 4278, 309, 296, 3652, 11, 316, 590, 18, 1968, 30, 327, 3981, 67, 24612, 12, 856, 16, 296, 90, 2104, 11877, 36...
fd=open(options.filename)
fd=open(config.filename)
def shell_execv(env=None,command=None, argv=[]): """ returns the data returned by the iterator in one object """ string = None for i in shell_execv_iter(env=env, command=command, argv=argv): if i: if string == None: string = i else: string += i return string
26246fa431ae9ae8c4258a8f959e18857a90571b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5568/26246fa431ae9ae8c4258a8f959e18857a90571b/pyflagsh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5972, 67, 4177, 90, 12, 3074, 33, 7036, 16, 3076, 33, 7036, 16, 5261, 33, 8526, 4672, 3536, 1135, 326, 501, 2106, 635, 326, 2775, 316, 1245, 733, 3536, 533, 273, 599, 364, 277, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5972, 67, 4177, 90, 12, 3074, 33, 7036, 16, 3076, 33, 7036, 16, 5261, 33, 8526, 4672, 3536, 1135, 326, 501, 2106, 635, 326, 2775, 316, 1245, 733, 3536, 533, 273, 599, 364, 277, 316, ...
opf = self.create_opf(htmlfile, guide)
opf = self.create_opf(htmlfile, guide, root)
def extract_content(self, output_dir=os.getcwdu()): output_dir = os.path.abspath(output_dir) if self.book_header.encryption_type != 0: raise DRMError(self.name) processed_records = self.extract_text() self.add_anchors() self.processed_html = self.processed_html.decode(self.book_header.codec, 'ignore') for pat in ENCOD...
4d44f2d8bd792b4d5ccf639309c2b4f3b7b812d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/4d44f2d8bd792b4d5ccf639309c2b4f3b7b812d5/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 1745, 12, 2890, 16, 876, 67, 1214, 33, 538, 18, 588, 71, 91, 2544, 1435, 4672, 876, 67, 1214, 273, 1140, 18, 803, 18, 5113, 803, 12, 2844, 67, 1214, 13, 309, 365, 18, 361...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 1745, 12, 2890, 16, 876, 67, 1214, 33, 538, 18, 588, 71, 91, 2544, 1435, 4672, 876, 67, 1214, 273, 1140, 18, 803, 18, 5113, 803, 12, 2844, 67, 1214, 13, 309, 365, 18, 361...
if group: subpattern.append((MARK, (group-1)*2+1))
def _parse(source, pattern, flags=()): # parse regular expression pattern into an operator list. subpattern = SubPattern(pattern) this = None while 1: if str(source.next) in ("|", ")"): break # end of subpattern this = source.get() if this is None: break # end of pattern if this and this[0] not in SPECIAL_CHARS: ...
b42c811cba34ab2f6d1db22aed5bc7f0dab153bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b42c811cba34ab2f6d1db22aed5bc7f0dab153bb/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 3168, 16, 1936, 16, 2943, 33, 1435, 4672, 225, 468, 1109, 6736, 2652, 1936, 1368, 392, 3726, 666, 18, 225, 720, 4951, 273, 2592, 3234, 12, 4951, 13, 225, 333, 273, 599, ...
emails.extend([m.getProperty('email') for m in users if putils.validateSingleEmailAddress(m.getProperty('email'))])
emails_bcc.extend([m.getProperty('email') for m in users if putils.validateSingleEmailAddress(m.getProperty('email'))])
def _getSendToValues(object): """Load the portal configuration for the notify system and obtain a list of emails. If the sendto_all is True, the mail will be sent to all members of the Plone site. The sendto_values value is used to look for name of groups, then name on users in the portal and finally for normal emails....
e59e0114eb7869bdd9aeedf9219ffa0129e23af0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10089/e59e0114eb7869bdd9aeedf9219ffa0129e23af0/notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3826, 774, 1972, 12, 1612, 4672, 3536, 2563, 326, 11899, 1664, 364, 326, 5066, 2619, 471, 7161, 279, 666, 434, 14255, 18, 971, 326, 1366, 869, 67, 454, 353, 1053, 16, 326, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 3826, 774, 1972, 12, 1612, 4672, 3536, 2563, 326, 11899, 1664, 364, 326, 5066, 2619, 471, 7161, 279, 666, 434, 14255, 18, 971, 326, 1366, 869, 67, 454, 353, 1053, 16, 326, 47...
self.drawLDLegend(axe_LD_legend, which_LD_statistic)
cls.drawLDLegend(axe_LD_legend, which_LD_statistic)
def drawRegionAroundThisSNP(self, phenotype_method_id, this_snp, candidate_gene_set, gene_annotation, snp_info, analysis_method_id2gwr, \ LD_info, output_dir, which_LD_statistic, snp_region=None, min_distance=40000, list_type_id=None, label_gene=0, draw_LD_relative_to_center_SNP=0, commit=0, snpData=None, phenData=None...
bdc3752350001c791e90fb2760fcc0578318b113 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/bdc3752350001c791e90fb2760fcc0578318b113/DrawSNPRegion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 5165, 30022, 2503, 13653, 52, 12, 2890, 16, 28825, 67, 2039, 67, 350, 16, 333, 67, 87, 6782, 16, 5500, 67, 11857, 67, 542, 16, 7529, 67, 11495, 16, 28648, 67, 1376, 16, 6285, 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, 3724, 5165, 30022, 2503, 13653, 52, 12, 2890, 16, 28825, 67, 2039, 67, 350, 16, 333, 67, 87, 6782, 16, 5500, 67, 11857, 67, 542, 16, 7529, 67, 11495, 16, 28648, 67, 1376, 16, 6285, 6...
args = ex.args()
args = ex.operands()
def derivative(self, ex, operator): """ EXAMPLES::
6a515328ad78c7964c8ec34483179da71350f707 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/6a515328ad78c7964c8ec34483179da71350f707/expression_conversions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16417, 12, 2890, 16, 431, 16, 3726, 4672, 3536, 5675, 8900, 11386, 2866, 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, ...
[ 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, 16417, 12, 2890, 16, 431, 16, 3726, 4672, 3536, 5675, 8900, 11386, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
menu_info = MenuInfo("default/_Object:tools/_Trajectory:conscan", "LoadFrame", order=(0, 4, 1, 7, 1, 1))
menu_info = MenuInfo("default/_Object:tools/_Trajectory:conscan", "Load frame", order=(0, 4, 1, 7, 1, 1))
def load_frame(self, frame_index): for atom_index, target in enumerate(self.get_targets()): target.transformation.t = self.frames[frame_index, atom_index]
07afa67619cfafc8b126d5fc000477307c5ad7db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11052/07afa67619cfafc8b126d5fc000477307c5ad7db/trajectory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 3789, 12, 2890, 16, 2623, 67, 1615, 4672, 364, 3179, 67, 1615, 16, 1018, 316, 4241, 12, 2890, 18, 588, 67, 11358, 1435, 4672, 1018, 18, 2338, 1471, 18, 88, 273, 365, 18, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 3789, 12, 2890, 16, 2623, 67, 1615, 4672, 364, 3179, 67, 1615, 16, 1018, 316, 4241, 12, 2890, 18, 588, 67, 11358, 1435, 4672, 1018, 18, 2338, 1471, 18, 88, 273, 365, 18, 10...
def readline(self):
def readline(self, length=None):
def readline(self): if self.buflist: self.buf = self.buf + string.joinfields(self.buflist, '') self.buflist = [] i = string.find(self.buf, '\n', self.pos) if i < 0: newpos = self.len else: newpos = i+1 r = self.buf[self.pos:newpos] self.pos = newpos return r
2e2525fd3cb841cf4850a81c7bb95e97230c6964 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2e2525fd3cb841cf4850a81c7bb95e97230c6964/StringIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 769, 33, 7036, 4672, 309, 365, 18, 4385, 1098, 30, 365, 18, 4385, 273, 365, 18, 4385, 397, 533, 18, 5701, 2821, 12, 2890, 18, 4385, 1098, 16, 28707, 365, 18, 438...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 769, 33, 7036, 4672, 309, 365, 18, 4385, 1098, 30, 365, 18, 4385, 273, 365, 18, 4385, 397, 533, 18, 5701, 2821, 12, 2890, 18, 4385, 1098, 16, 28707, 365, 18, 438...
def poll (timeout=0.0, map=None):
def poll(timeout=0.0, map=None):
def poll (timeout=0.0, map=None): if map is None: map = socket_map if map: r = []; w = []; e = [] for fd, obj in map.iteritems(): if obj.readable(): r.append(fd) if obj.writable(): w.append(fd) try: r, w, e = select.select(r, w, e, timeout) except select.error, err: if err[0] != EINTR: raise for fd in r: obj = map.get...
f7eb0d3f501f2e379b8719bda476d318d1e79160 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f7eb0d3f501f2e379b8719bda476d318d1e79160/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 273, 2987, 67, 1458, 309, 852, 30, 436, 273, 5378, 31, 341, 273, 5378, 31, 425, 273, 5378, 364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7672, 12, 4538, 33, 20, 18, 20, 16, 852, 33, 7036, 4672, 309, 852, 353, 599, 30, 852, 273, 2987, 67, 1458, 309, 852, 30, 436, 273, 5378, 31, 341, 273, 5378, 31, 425, 273, 5378, 364...
request = self.socket.accept() if self.disable_nagle_algorithm: request[0].setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, True) return request
return self.socket.accept()
def get_request(self): """Get the request and client address from the socket.
c1e13797c0c08f94315ac36bf46727fc5491bf03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/c1e13797c0c08f94315ac36bf46727fc5491bf03/SocketServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2293, 12, 2890, 4672, 3536, 967, 326, 590, 471, 1004, 1758, 628, 326, 2987, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2293, 12, 2890, 4672, 3536, 967, 326, 590, 471, 1004, 1758, 628, 326, 2987, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.assertRaises(ValueError, migration.get_migration, app, "0001_jam")
self.assertRaises((ImportError, ValueError), migration.get_migration, app, "0001_jam")
def test_get_migration(self): app = self.create_test_app() # Can't use vanilla import, modules beginning with numbers aren't in grammar M1 = __import__("fakeapp.migrations.0001_spam", {}, {}, ['Migration']).Migration M2 = __import__("fakeapp.migrations.0002_eggs", {}, {}, ['Migration']).Migration self.assertEqual(M1...
9ad6c37d44864a88c9eed2f9397ec8e85045ef02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13142/9ad6c37d44864a88c9eed2f9397ec8e85045ef02/logic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 15746, 12, 2890, 4672, 225, 595, 273, 365, 18, 2640, 67, 3813, 67, 2910, 1435, 225, 468, 4480, 1404, 999, 331, 26476, 1930, 16, 4381, 8435, 598, 5600, 11526, 1404, 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, 1842, 67, 588, 67, 15746, 12, 2890, 4672, 225, 595, 273, 365, 18, 2640, 67, 3813, 67, 2910, 1435, 225, 468, 4480, 1404, 999, 331, 26476, 1930, 16, 4381, 8435, 598, 5600, 11526, 1404, 3...
from pprint import pprint print "options (after parsing config files):" pprint (self.command_options)
parser.__init__()
def parse_config_files (self, filenames=None):
83524a79f442571b7411524d49f6f5fa8e189c0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/83524a79f442571b7411524d49f6f5fa8e189c0d/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1425, 67, 2354, 261, 2890, 16, 9066, 33, 7036, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1425, 67, 2354, 261, 2890, 16, 9066, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
out = os.path.join(out, out_dir_extra) if os.path.exists(out): old_files = glob.glob(os.path.join(out, "*.txt"))
if os.path.exists(self._report_dir): old_files = glob.glob(os.path.join(self._report_dir, "*.txt"))
def ScriptedTest(self, module, exe, name, script, multi=False, cmd_args=None, out_dir_extra=None): '''Purify a target exe, which will be executed one or more times via a script or driver program. Args: module - which top level component this test is from (webkit, base, etc.) exe - the name of the exe (it's assumed to e...
395eba5fb19d0750235ca047aa43890f6234fab9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/395eba5fb19d0750235ca047aa43890f6234fab9/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7739, 329, 4709, 12, 2890, 16, 1605, 16, 15073, 16, 508, 16, 2728, 16, 3309, 33, 8381, 16, 1797, 67, 1968, 33, 7036, 16, 596, 67, 1214, 67, 7763, 33, 7036, 4672, 9163, 10262, 1164, 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, 7739, 329, 4709, 12, 2890, 16, 1605, 16, 15073, 16, 508, 16, 2728, 16, 3309, 33, 8381, 16, 1797, 67, 1968, 33, 7036, 16, 596, 67, 1214, 67, 7763, 33, 7036, 4672, 9163, 10262, 1164, 2...
fields=[13,13, 8, 11, 10,12, 10, 14, 10, 17, 13, 15, 10, 9, 14, 10, 11, 11, 11, 9, 10, 10, 10, 8, 8, 8, 9, 9, 9, 10, 8, 8, 8,8, 14, 13, 14, 14, 15, 12,12, 12,14, 13, 11, 15, 15, 14, 14, 13, 15, 14, 14, 14, 15, 14, 15, 14, 14, 15, 14, 13, 13, 14, 11, 13, 11, 14, 8, 10, 13, 12, 11, 12, 6, 6] cr=[] ret=[]
fields = [13, 13, 8, 11, 10, 12, 10, 14, 10, 17, 13, 15, 10, 9, 14, 10, 11, 11, 11, 9, 10, 10, 10, 8, 8, 8, 9, 9, 9, 10, 8, 8, 8, 8, 14, 13, 14, 14, 15, 12, 12, 12, 14, 13, 11, 15, 15, 14, 14, 13, 15, 14, 14, 14, 15, 14, 15, 14, 14, 15, 14, 13, 13, 14, 11, 13, 11, 14, 8, 10, 13, 12, 11, 12, 6, 6] cr = [] ret = []
def test_fields_created(self): """bibrecord - demo file how many fields are created""" ## check if the number of fields for each record is correct
2f66588a97ca15909477d0a2e7e1dae76f187c9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2f66588a97ca15909477d0a2e7e1dae76f187c9d/bibrecord_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2821, 67, 4824, 12, 2890, 4672, 3536, 70, 495, 3366, 300, 21477, 585, 3661, 4906, 1466, 854, 2522, 8395, 7541, 866, 309, 326, 1300, 434, 1466, 364, 1517, 1409, 353, 3434, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2821, 67, 4824, 12, 2890, 4672, 3536, 70, 495, 3366, 300, 21477, 585, 3661, 4906, 1466, 854, 2522, 8395, 7541, 866, 309, 326, 1300, 434, 1466, 364, 1517, 1409, 353, 3434, 2, ...
([zeta6 - 1], [zeta6 - 1], -3*zeta42^7 + 2) ([zeta6 - 1], [-1], 2*zeta42^7 + 1)
([zeta6 - 1], [zeta6 - 1], -3*zeta6 + 2) ([zeta6 - 1], [-1], 2*zeta6 + 1)
def jacobi_sum(self, char, check=True): """ Return the Jacobi sum associated to these Dirichlet characters (i.e., J(self,char)). EXAMPLES:: sage: D = DirichletGroup(13) sage: e = D.0 sage: f = D[-2] sage: e.jacobi_sum(f) 3*zeta156^26 + 2*zeta156^13 - 3 sage: f.jacobi_sum(e) 3*zeta156^26 + 2*zeta156^13 - 3 sage: p = 7...
2d29bdbbd76a69f79b998867461156f2c290f64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2d29bdbbd76a69f79b998867461156f2c290f64a/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 67, 1364, 12, 2890, 16, 1149, 16, 866, 33, 5510, 4672, 3536, 2000, 326, 804, 1077, 30875, 2142, 3627, 358, 4259, 8446, 1354, 1810, 3949, 261, 77, 18, 73, 12990, 804, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20138, 30875, 67, 1364, 12, 2890, 16, 1149, 16, 866, 33, 5510, 4672, 3536, 2000, 326, 804, 1077, 30875, 2142, 3627, 358, 4259, 8446, 1354, 1810, 3949, 261, 77, 18, 73, 12990, 804, 12, ...
sys.stdout.write(u'%s:%s\n' % (key, data[key]))
sys.stdout.write(u'%s:%s\n' % (self.camelcase(key), data[key]))
def peopleData(self, tmdb_id): '''Get People data by TMDB people id number and display "key:value" pairs to stdout ''' data = self.config['moviedb'].personInfo(tmdb_id) sys.stdout.write(u'%s:%s\n' % (u'name', data[u'name'])) keys = sorted(data.keys()) for key in keys: if key == u'name': continue if key in ['also_known_...
544eb9870338eb93766d33652337466d1731a7c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/544eb9870338eb93766d33652337466d1731a7c9/tmdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16951, 751, 12, 2890, 16, 268, 27574, 67, 350, 4672, 9163, 967, 19622, 11763, 501, 635, 27435, 2290, 16951, 612, 1300, 471, 2562, 315, 856, 30, 1132, 6, 5574, 358, 3909, 9163, 501, 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, 16951, 751, 12, 2890, 16, 268, 27574, 67, 350, 4672, 9163, 967, 19622, 11763, 501, 635, 27435, 2290, 16951, 612, 1300, 471, 2562, 315, 856, 30, 1132, 6, 5574, 358, 3909, 9163, 501, 273, ...
os.system("mv stdout.gz stderr.gz %s" % orig_wdir)
os.system("mv stdout.1.gz %s/stdout.gz" % orig_wdir) os.system("mv stderr.1.gz %s/stderr.gz" % orig_wdir)
def stopcb(poll=False): global exitcode if poll: exitcode = child.poll() return exitcode != -1
127bab90a107ee9e224fce237cdf1bf0e2d44443 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/127bab90a107ee9e224fce237cdf1bf0e2d44443/LCG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 7358, 12, 13835, 33, 8381, 4672, 2552, 2427, 710, 309, 7672, 30, 2427, 710, 273, 1151, 18, 13835, 1435, 327, 2427, 710, 480, 300, 21, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 7358, 12, 13835, 33, 8381, 4672, 2552, 2427, 710, 309, 7672, 30, 2427, 710, 273, 1151, 18, 13835, 1435, 327, 2427, 710, 480, 300, 21, 2, -100, -100, -100, -100, -100, -100, -100, ...
sage: EllipticCurve(GF(97),[0,0,1,-7,6])._cremona_abgrp_data() [[46, 2], [[32, 63], [45, 48]]]
def ellzp(e, p): """ INPUT: e -- five-tuple of integers that define an elliptic curve over Z/pZ p -- prime OUTPUT: A string containing information about the elliptic curve modulo p: group structure and generators. NOTE: This is an internal function used in the function _abelian_group_data() for curves over finite (pri...
4e153162b91cd6a5a6bd4fc3a92890c46e61c348 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4e153162b91cd6a5a6bd4fc3a92890c46e61c348/gp_cremona.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 80, 94, 84, 12, 73, 16, 293, 4672, 3536, 12943, 30, 425, 1493, 23714, 17, 8052, 434, 12321, 716, 4426, 392, 415, 549, 21507, 8882, 1879, 2285, 19, 84, 62, 293, 1493, 17014, 11550,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 80, 94, 84, 12, 73, 16, 293, 4672, 3536, 12943, 30, 425, 1493, 23714, 17, 8052, 434, 12321, 716, 4426, 392, 415, 549, 21507, 8882, 1879, 2285, 19, 84, 62, 293, 1493, 17014, 11550,...
self.in_progress.finish(status >> 8) self.in_progress = None
if self.in_progress is not None: self.in_progress.finish(status >> 8) self.in_progress = None
def __child_died( self, pid, status ): """ Callback from watcher when the child died. """ if pid != self.get_pid(): # We received notification from the watcher concerning another # process, so ignore. return
c3bb9bb73f81810d77388b350e289314c728fce7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/c3bb9bb73f81810d77388b350e289314c728fce7/popen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3624, 67, 72, 2092, 12, 365, 16, 4231, 16, 1267, 262, 30, 3536, 8444, 628, 9527, 1347, 326, 1151, 302, 2092, 18, 3536, 309, 4231, 480, 365, 18, 588, 67, 6610, 13332, 468, 1660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3624, 67, 72, 2092, 12, 365, 16, 4231, 16, 1267, 262, 30, 3536, 8444, 628, 9527, 1347, 326, 1151, 302, 2092, 18, 3536, 309, 4231, 480, 365, 18, 588, 67, 6610, 13332, 468, 1660, ...
dll.jmi_ode_df_dim.argtypes = [ct.c_void_p, ct.c_int, ct.c_int, \ ct.c_int, \ Nct.ndpointer(dtype=ct.c_int, \ ndim=1, \ flags='C'), \ ct.POINTER(ct.c_int), \
dll.jmi_ode_df_dim.argtypes = [ct.c_void_p, ct.c_int, ct.c_int, ct.c_int, Nct.ndpointer(dtype=ct.c_int, ndim=1, flags='C'), ct.POINTER(ct.c_int),
def load_DLL(libname, path): """Loads a model from a DLL file and returns it. The filepath can be be both with or without file suffixes (as long as standard file suffixes are used, that is). Example inputs that should work: >> lib = loadDLL('model') >> lib = loadDLL('model.dll') >> lib = loadDLL('model.so') . All of ...
eb8f7e855e40c03a39a16ea92f88dd971630efa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/eb8f7e855e40c03a39a16ea92f88dd971630efa3/jmi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 40, 4503, 12, 2941, 529, 16, 589, 4672, 3536, 7968, 279, 938, 628, 279, 463, 4503, 585, 471, 1135, 518, 18, 225, 1021, 3608, 848, 506, 506, 3937, 598, 578, 2887, 585, 18333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 40, 4503, 12, 2941, 529, 16, 589, 4672, 3536, 7968, 279, 938, 628, 279, 463, 4503, 585, 471, 1135, 518, 18, 225, 1021, 3608, 848, 506, 506, 3937, 598, 578, 2887, 585, 18333, ...
"""
"""
def flps_reset_linewidth(): """ flps_reset_linewidth() """ _flps_reset_linewidth()
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 1121, 67, 6208, 67, 7511, 14434, 13332, 3536, 1183, 1121, 67, 6208, 67, 7511, 14434, 1435, 3536, 225, 389, 2242, 1121, 67, 6208, 67, 7511, 14434, 1435, 282, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 1121, 67, 6208, 67, 7511, 14434, 13332, 3536, 1183, 1121, 67, 6208, 67, 7511, 14434, 1435, 3536, 225, 389, 2242, 1121, 67, 6208, 67, 7511, 14434, 1435, 282, 2, -100, -100, -100, -1...
sources = ['sage/ext/arith.pyx', 'sage/rings/integer.pyx'],
sources = ['sage/ext/arith.pyx', 'sage/rings/integer.pyx', \ 'sage/ext/mpn_pylong.c', 'sage/ext/mpz_pylong.c'],
def needs_c_lib_build(): lib = '../../local/lib/libcsage.so' files = os.listdir( 'c_lib/src' ) src_files = ['c_lib/src/' + f for f in files if is_src_file( f )] src_files += ['c_lib/configure', 'c_lib/Makefile'] for f in src_files: if is_older( f, lib ): return True return False
45720eb51716744d43c0796fabb4d9a1e88ac247 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/45720eb51716744d43c0796fabb4d9a1e88ac247/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 67, 71, 67, 2941, 67, 3510, 13332, 2561, 273, 296, 16644, 3729, 19, 2941, 19, 2941, 2143, 410, 18, 2048, 11, 1390, 273, 1140, 18, 1098, 1214, 12, 296, 71, 67, 2941, 19, 4816, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 67, 71, 67, 2941, 67, 3510, 13332, 2561, 273, 296, 16644, 3729, 19, 2941, 19, 2941, 2143, 410, 18, 2048, 11, 1390, 273, 1140, 18, 1098, 1214, 12, 296, 71, 67, 2941, 19, 4816, 1...
a1 = Cord('a1') h1 = Cord('h1') a8 = Cord('a8') h8 = Cord('h8')
a1 = Cord('a1'); d1 = Cord('d1') h1 = Cord('h1'); f1 = Cord('f1') a8 = Cord('a8'); d8 = Cord('d8') h8 = Cord('h8'); f8 = Cord('f8')
def rm (var, opp): if var & opp: return var ^ opp return var
f785ddee1e116573dac9adb4ac531b424ac32088 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5339/f785ddee1e116573dac9adb4ac531b424ac32088/Board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6692, 261, 1401, 16, 1061, 84, 4672, 309, 569, 473, 1061, 84, 30, 327, 569, 3602, 1061, 84, 327, 569, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6692, 261, 1401, 16, 1061, 84, 4672, 309, 569, 473, 1061, 84, 30, 327, 569, 3602, 1061, 84, 327, 569, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
line = stream.readline () while (line != ""):
contents = stream.read () if contents != "":
def resolve_t_param (self, youtube_id): """We have to get the t parameter from the actual video page, since Google changed how their URLs work""" stream = urllib.urlopen ("http://youtube.com/watch?v=" + urllib.quote (youtube_id)) regexp1 = re.compile ("swfArgs.*\"t\": \"([^\"]+)\"") regexp2 = re.compile ("</head>")
635d369733cafc8bd4c8f6ffc007946fa9db8b47 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11070/635d369733cafc8bd4c8f6ffc007946fa9db8b47/youtube.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 67, 88, 67, 891, 261, 2890, 16, 677, 21105, 67, 350, 4672, 3536, 3218, 1240, 358, 336, 326, 268, 1569, 628, 326, 3214, 6191, 1363, 16, 3241, 6124, 3550, 3661, 3675, 10414, 1440, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 88, 67, 891, 261, 2890, 16, 677, 21105, 67, 350, 4672, 3536, 3218, 1240, 358, 336, 326, 268, 1569, 628, 326, 3214, 6191, 1363, 16, 3241, 6124, 3550, 3661, 3675, 10414, 1440, ...
elif types.ListType in p['allowedTypes'] or types.TupleType in p['allowedTypes']:
elif list in p['allowedTypes'] or tuple in p['allowedTypes']:
def _getParamValue(p, val, options): ''' try to get a value from value, raise exception if error happens. ''' if p['gui_type'] == 'separator': raise exceptions.ValueError('Cannot get a value for separator') # if we are giving a unicode string, convert! if type(val) == types.UnicodeType: val = str(val) # remove quotes f...
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 786, 620, 12, 84, 16, 1244, 16, 702, 4672, 9163, 775, 358, 336, 279, 460, 628, 460, 16, 1002, 1520, 309, 555, 10555, 18, 9163, 309, 293, 3292, 20292, 67, 723, 3546, 422, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 786, 620, 12, 84, 16, 1244, 16, 702, 4672, 9163, 775, 358, 336, 279, 460, 628, 460, 16, 1002, 1520, 309, 555, 10555, 18, 9163, 309, 293, 3292, 20292, 67, 723, 3546, 422, 29...
if item != None and len(item) == 2:
if item and len(item) == 2 and item[0] != None and item[1] != None:
def registerSession(self, session): self.session = session
1dff8f05fd7ad2097f8f99f645b38e93332c9105 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/1dff8f05fd7ad2097f8f99f645b38e93332c9105/SqliteCacheDBHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 2157, 12, 2890, 16, 1339, 4672, 365, 18, 3184, 273, 1339, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 2157, 12, 2890, 16, 1339, 4672, 365, 18, 3184, 273, 1339, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def user_data(self, cr, uid, context=None):
def user_data(self, cr, uid, new_id, context=None):
def user_data(self, cr, uid, context=None): ''' Gets the purely user part of the current config_user instance, without the fields inherited from res.config ''' return self.read(cr, uid, uid, users._columns.keys(), context=context)
4dbb8813e439e5a52065259f0f7a978a0c241250 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/4dbb8813e439e5a52065259f0f7a978a0c241250/res_user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 394, 67, 350, 16, 819, 33, 7036, 4672, 9163, 11881, 326, 16618, 715, 729, 1087, 434, 326, 783, 642, 67, 1355, 791, 16, 2887, 326, 1466...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 729, 67, 892, 12, 2890, 16, 4422, 16, 4555, 16, 394, 67, 350, 16, 819, 33, 7036, 4672, 9163, 11881, 326, 16618, 715, 729, 1087, 434, 326, 783, 642, 67, 1355, 791, 16, 2887, 326, 1466...
if source_parts[:1] != target_parts[:1]:
if source_parts[:2] != target_parts[:2]:
def relative_path(source, target): """ Build and return a path to `target`, relative to `source`. If there is no common prefix, return the absolute path to `target`. """ source_parts = os.path.abspath(source or '').split(os.sep) target_parts = os.path.abspath(target).split(os.sep) if source_parts[:1] != target_parts[:...
1e1bc2cab3450d92db1d8ce1d5d0a2b79a92af08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/1e1bc2cab3450d92db1d8ce1d5d0a2b79a92af08/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3632, 67, 803, 12, 3168, 16, 1018, 4672, 3536, 3998, 471, 327, 279, 589, 358, 1375, 3299, 9191, 3632, 358, 1375, 3168, 8338, 225, 971, 1915, 353, 1158, 2975, 1633, 16, 327, 326, 4967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3632, 67, 803, 12, 3168, 16, 1018, 4672, 3536, 3998, 471, 327, 279, 589, 358, 1375, 3299, 9191, 3632, 358, 1375, 3168, 8338, 225, 971, 1915, 353, 1158, 2975, 1633, 16, 327, 326, 4967, ...
lines1 = file(os.path.join(dirname(), filename), "r").readlines()
lines1 = file(os.path.join(dirname(), filename), "rU").readlines()
def test_readlines(self): """Test readlines() method of _FileObject. """ if self.sep != "|": filename = "0-REGTYPE-TEXT" self.tar.extract(filename, dirname()) lines1 = file(os.path.join(dirname(), filename), "r").readlines() lines2 = self.tar.extractfile(filename).readlines() self.assert_(lines1 == lines2, "_FileObject...
c7fcc2d772c6ccaa71002aaa2aace16ed8adf471 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c7fcc2d772c6ccaa71002aaa2aace16ed8adf471/test_tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 3548, 12, 2890, 4672, 3536, 4709, 17546, 1435, 707, 434, 389, 21471, 18, 3536, 309, 365, 18, 10814, 480, 11747, 6877, 1544, 273, 315, 20, 17, 5937, 2399, 17, 5151, 6, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 3548, 12, 2890, 4672, 3536, 4709, 17546, 1435, 707, 434, 389, 21471, 18, 3536, 309, 365, 18, 10814, 480, 11747, 6877, 1544, 273, 315, 20, 17, 5937, 2399, 17, 5151, 6, 36...
print ".. calling deactivate() on it"
def onActivate(hwnd, msg, wparam, lparam): print "onActivate (%d)" % wparam if theControl: print " .. has a control %s" % theControl if wparam == WA_ACTIVE or wparam == WA_CLICKACTIVE: print ".. calling activate() on it" theControl.activate() if wparam == WA_INACTIVE: print ".. calling deactivate() on it" theControl.de...
d34cc71edf7e52451f03297b95bc96854fe4678e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/d34cc71edf7e52451f03297b95bc96854fe4678e/DTV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 21370, 12, 20701, 4880, 16, 1234, 16, 341, 891, 16, 328, 891, 4672, 1172, 315, 265, 21370, 6142, 72, 2225, 738, 341, 891, 309, 326, 3367, 30, 1172, 315, 6116, 711, 279, 3325, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 21370, 12, 20701, 4880, 16, 1234, 16, 341, 891, 16, 328, 891, 4672, 1172, 315, 265, 21370, 6142, 72, 2225, 738, 341, 891, 309, 326, 3367, 30, 1172, 315, 6116, 711, 279, 3325, 738,...
nframes = len(data) / (self._sampwidth * self._nchannels)
nframes = len(data) // (self._sampwidth * self._nchannels)
def writeframesraw(self, data): self._ensure_header_written(len(data)) nframes = len(data) / (self._sampwidth * self._nchannels) if self._convert: data = self._convert(data) self._file.write(data) self._nframeswritten = self._nframeswritten + nframes self._datawritten = self._datawritten + len(data)
ac23917f909ac429091f6f96e924fad8fc36d260 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/ac23917f909ac429091f6f96e924fad8fc36d260/aifc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 10278, 1899, 12, 2890, 16, 501, 4672, 365, 6315, 15735, 67, 3374, 67, 9748, 12, 1897, 12, 892, 3719, 290, 10278, 273, 562, 12, 892, 13, 368, 261, 2890, 6315, 87, 931, 2819, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10278, 1899, 12, 2890, 16, 501, 4672, 365, 6315, 15735, 67, 3374, 67, 9748, 12, 1897, 12, 892, 3719, 290, 10278, 273, 562, 12, 892, 13, 368, 261, 2890, 6315, 87, 931, 2819, 380, ...
self.create(self, dbh, None)
self.create(dbh, None)
def init_default_db(self, dbh, case): ## Log presets live in this table - type is the class name ## which will be fetched through Registry.LOG_DRIVERS.dispatch. dbh.execute("""CREATE TABLE `log_presets` ( `name` varchar(250) NOT NULL, `driver` varchar(250) NOT NULL, `query` text, primary key (`name`) ) engine=MyISAM"""...
c459bbd9fa40c85f9739ac0e3becc36866452d93 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5568/c459bbd9fa40c85f9739ac0e3becc36866452d93/LogAnalysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1886, 67, 1966, 12, 2890, 16, 1319, 76, 16, 648, 4672, 7541, 1827, 24649, 8429, 316, 333, 1014, 300, 618, 353, 326, 667, 508, 7541, 1492, 903, 506, 12807, 3059, 5438, 18, 484...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 1886, 67, 1966, 12, 2890, 16, 1319, 76, 16, 648, 4672, 7541, 1827, 24649, 8429, 316, 333, 1014, 300, 618, 353, 326, 667, 508, 7541, 1492, 903, 506, 12807, 3059, 5438, 18, 484...
A dict containing the result of the retrieve operation.
A list containing the result of the retrieve operation.
def RetrieveAllGroups(self): """Retrieve all groups in the domain.
f24416f49afb909f4e826471cfc70c4d3cdbea45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/f24416f49afb909f4e826471cfc70c4d3cdbea45/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10708, 1595, 3621, 12, 2890, 4672, 3536, 5767, 777, 3252, 316, 326, 2461, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10708, 1595, 3621, 12, 2890, 4672, 3536, 5767, 777, 3252, 316, 326, 2461, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
gfalDict['nbfiles'] = len(urls) gfalDict['timeout'] = self.fileTimeout*len(urls) res = self.__gfal_operation_wrapper('gfal_turlsfromsurls',gfalDict) gDataStoreClient.addRegister(res['AccountingOperation'])
gfalDict['nbfiles'] = len( urls ) gfalDict['timeout'] = self.fileTimeout * len( urls ) res = self.__gfal_operation_wrapper( 'gfal_turlsfromsurls', gfalDict ) gDataStoreClient.addRegister( res['AccountingOperation'] )
def __gfalturlsfromsurls_wrapper(self,urls,listProtocols): """ This is a function that can be reused everywhere to perform the gfal_turlsfromsurls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['protocols'] = listProtocols gfalDict['srmv2_spacetokendesc'] = self.spaceToken ...
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 75, 74, 2390, 10518, 2080, 87, 10518, 67, 8376, 12, 2890, 16, 10518, 16, 1098, 21657, 4672, 3536, 1220, 353, 279, 445, 716, 848, 506, 23312, 3614, 6051, 358, 3073, 326, 13828, 287,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 75, 74, 2390, 10518, 2080, 87, 10518, 67, 8376, 12, 2890, 16, 10518, 16, 1098, 21657, 4672, 3536, 1220, 353, 279, 445, 716, 848, 506, 23312, 3614, 6051, 358, 3073, 326, 13828, 287,...
copyfrom_path = self.getrelpath(ent.copyfrom_path)
pmodule, prevnum = self.revsplit(parents[0])[1:] if ent.copyfrom_rev < prevnum: continue copyfrom_path = self.getrelpath(ent.copyfrom_path, pmodule)
def expandpaths(self, rev, paths, parents): entries = [] copyfrom = {} # Map of entrypath, revision for finding source of deleted revisions. copies = {}
a3a9faee8a26931eeb9af2ce2ce221631cd524b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/a3a9faee8a26931eeb9af2ce2ce221631cd524b5/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 4481, 12, 2890, 16, 5588, 16, 2953, 16, 6298, 4672, 3222, 273, 5378, 1610, 2080, 273, 2618, 468, 1635, 434, 1241, 803, 16, 6350, 364, 13727, 1084, 434, 4282, 18325, 18, 13200, 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, 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, 4542, 4481, 12, 2890, 16, 5588, 16, 2953, 16, 6298, 4672, 3222, 273, 5378, 1610, 2080, 273, 2618, 468, 1635, 434, 1241, 803, 16, 6350, 364, 13727, 1084, 434, 4282, 18325, 18, 13200, 273,...
if unique is False and sw.Known(orig or pyobj):
if unique is False and sw.Known(pyobj):
def serialize(self, elt, sw, pyobj, name=None, childnames=None, **kw): debug = self.logger.debugOn() if debug: self.logger.debug("serialize: %r" %pyobj) if self.mutable is False and sw.Known(pyobj): return objid = _get_idstr(pyobj) n = name or self.pname or ('E' + objid) el = elt.createAppendElement(self.nspname, n)
7345179294b76759ddb897d4d80aefa2d01212cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/7345179294b76759ddb897d4d80aefa2d01212cc/TCcompound.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 12, 2890, 16, 11572, 16, 1352, 16, 2395, 2603, 16, 508, 33, 7036, 16, 1151, 1973, 33, 7036, 16, 2826, 9987, 4672, 1198, 273, 365, 18, 4901, 18, 4148, 1398, 1435, 309, 1198, 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, 4472, 12, 2890, 16, 11572, 16, 1352, 16, 2395, 2603, 16, 508, 33, 7036, 16, 1151, 1973, 33, 7036, 16, 2826, 9987, 4672, 1198, 273, 365, 18, 4901, 18, 4148, 1398, 1435, 309, 1198, 30, ...
from twisted.internet import reactor
from twisted.internet import reactor
def seconds(self): # This method should be called at least once per minute to # keep the timer going. If the system time moves backwards, # the timer will stay put. If the time moves forwards, # the timer will increment, but never by more than 1 minute. tt = time.time() self.counter += min(60.0, max(0.0, tt-self.last...
20bf9eba7684658dbea89887eb0acfe74ad07926 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12372/20bf9eba7684658dbea89887eb0acfe74ad07926/fix_twisted.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3974, 12, 2890, 4672, 468, 1220, 707, 1410, 506, 2566, 622, 4520, 3647, 1534, 8044, 358, 468, 3455, 326, 5441, 8554, 18, 225, 971, 326, 2619, 813, 13934, 12727, 16, 468, 326, 5441, 903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3974, 12, 2890, 4672, 468, 1220, 707, 1410, 506, 2566, 622, 4520, 3647, 1534, 8044, 358, 468, 3455, 326, 5441, 8554, 18, 225, 971, 326, 2619, 813, 13934, 12727, 16, 468, 326, 5441, 903, ...
a, p = xutils.f_as_ampl_phase(f) a = round_scaled(a, 10**precision_ampl) p = round_scaled(p, 10**precision_phase) % 360 if (p <= round_scaled(-180., 10**precision_phase)): p += 360 return ("%%.%dg %%.%df" % (precision_ampl, precision_phase)) % (a, p)
if (type(f) == type(0j)): a, p = xutils.f_as_ampl_phase(f) a = round_scaled(a, 10**precision_ampl) p = round_scaled(p, 10**precision_phase) % 360 if (p <= round_scaled(-180., 10**precision_phase)): p += 360 return ("%%.%dg %%.%df" % (precision_ampl, precision_phase)) % (a, p) else: a = round_scaled(f, 10**precision_amp...
def format_structure_factor(f, precision_ampl=3, precision_phase=0): a, p = xutils.f_as_ampl_phase(f) a = round_scaled(a, 10**precision_ampl) p = round_scaled(p, 10**precision_phase) % 360 if (p <= round_scaled(-180., 10**precision_phase)): p += 360 return ("%%.%dg %%.%df" % (precision_ampl, precision_phase)) % (a, p)
97266a6f7e0104e10b068e95cd35c98227dd0840 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/97266a6f7e0104e10b068e95cd35c98227dd0840/debug_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 7627, 67, 6812, 12, 74, 16, 6039, 67, 2475, 33, 23, 16, 6039, 67, 13961, 33, 20, 4672, 309, 261, 723, 12, 74, 13, 422, 618, 12, 20, 78, 3719, 30, 279, 16, 293, 273, 619,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 7627, 67, 6812, 12, 74, 16, 6039, 67, 2475, 33, 23, 16, 6039, 67, 13961, 33, 20, 4672, 309, 261, 723, 12, 74, 13, 422, 618, 12, 20, 78, 3719, 30, 279, 16, 293, 273, 619,...
extensions.append( Extension( "bx.align.sitemask._cpg", \ [ "lib/bx/align/sitemask/_cpg.pyx", "lib/bx/align/sitemask/find_cpg.c" ] ) ) extensions.append( Extension( "bx.intseq.ngramcount", [ "lib/bx/intseq/ngramcount.pyx" ] ) ) extensions.append( Extension( "bx.misc._seekbzip2", [ "lib/bx/misc/_seekbzip2.pyx", "src/...
extensions.append( Extension( "bx.align.sitemask._cpg", \ [ "lib/bx/align/sitemask/_cpg.pyx", "lib/bx/align/sitemask/find_cpg.c" ] ) ) extensions.append( Extension( "bx.intseq.ngramcount", [ "lib/bx/intseq/ngramcount.pyx" ] ) ) extensions.append( Extension( "bx.misc._seekbzip2", [ "lib/bx/misc/_seekbzip2.pyx", "s...
def get_extension_modules(): extensions = [] # Bitsets extensions.append( Extension( "bx.bitset", [ "lib/bx/bitset.pyx", "src/binBits.c", "src/kent/bits.c", "src/kent/common.c" ], include_dirs=[ "src/kent", "src"] ) ) # Interval clustering extensions.append( Extension( "bx.intervals.cluster", [ "lib/bx/intervals/cluste...
5db0c6ba402323bdd1942a244cab1eec2d312e12 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2104/5db0c6ba402323bdd1942a244cab1eec2d312e12/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 6447, 67, 6400, 13332, 4418, 273, 5378, 468, 6539, 4424, 4418, 18, 6923, 12, 10021, 12, 315, 70, 92, 18, 3682, 542, 3113, 306, 315, 2941, 19, 70, 92, 19, 3682, 542, 18, 2074...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6447, 67, 6400, 13332, 4418, 273, 5378, 468, 6539, 4424, 4418, 18, 6923, 12, 10021, 12, 315, 70, 92, 18, 3682, 542, 3113, 306, 315, 2941, 19, 70, 92, 19, 3682, 542, 18, 2074...
table_name = 'Table%d' % (self.table_count, )
table_name = '%s%d' % (TableStylePrefix, self.table_count, )
def visit_entry(self, node): #self.trace_visit_node(node) #ipshell('At visit_entry') table_name = 'Table%d' % (self.table_count, ) self.column_count += 1 colspec_name = 'Table%d.%s' % (self.table_count, chr(self.column_count),) el1 = self.append_child('table:table-cell', attrib={ 'table:style-name': colspec_name, 'offi...
d8b6d322f3002654ec1b2fae8db0c143d53ae12e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/d8b6d322f3002654ec1b2fae8db0c143d53ae12e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 4099, 12, 2890, 16, 756, 4672, 468, 2890, 18, 5129, 67, 11658, 67, 2159, 12, 2159, 13, 468, 625, 10304, 2668, 861, 3757, 67, 4099, 6134, 1014, 67, 529, 273, 1995, 87, 9, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4099, 12, 2890, 16, 756, 4672, 468, 2890, 18, 5129, 67, 11658, 67, 2159, 12, 2159, 13, 468, 625, 10304, 2668, 861, 3757, 67, 4099, 6134, 1014, 67, 529, 273, 1995, 87, 9, 72...
self.cookieCutterDashboard.setGeometry(QRect(85,0,89,16))
self.cookieCutterDashboard.setGeometry(QRect(94,0,95,19))
def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar()
12c8fe24cb1ace55e7caf0b09c7238554087208a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/12c8fe24cb1ace55e7caf0b09c7238554087208a/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2938, 273, 599, 16, 529, 273, 599, 16, 2242, 273, 374, 4672, 2238, 6376, 3829, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 2242, 13, 365, 18, 23...
XML_ENTITIES = dict(zip(Tag.XML_SPECIAL_CHARS_TO_ENTITIES.values(), Tag.XML_SPECIAL_CHARS_TO_ENTITIES.keys()))
XML_ENTITIES = dict(zip(Tag.XML_SPECIAL_CHARS_TO_ENTITIES.values(), Tag.XML_SPECIAL_CHARS_TO_ENTITIES.keys()))
def __str__(self): return 'Parskip: '+str(self.height)
7d41e55dca63f9cf8c624b6a2e102e77d191e8fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/7d41e55dca63f9cf8c624b6a2e102e77d191e8fc/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 296, 1553, 7457, 30, 15126, 701, 12, 2890, 18, 4210, 13, 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, 1001, 701, 972, 12, 2890, 4672, 327, 296, 1553, 7457, 30, 15126, 701, 12, 2890, 18, 4210, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if scanner.next() == IHEOL:
if scanner.next() == "IHEOL":
def makemoves(): "Command-interpretation loop." clrscr() setwnd(message_window) while True: # command loop drawmaps(1) while True: # get a command hitme = False game.justin = False game.optime = 0.0 scanner.chew() setwnd(prompt_window) clrscr() proutn("COMMAND> ") if scanner.next() == IHEOL: if game.options & OPTION_C...
af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 351, 10829, 13332, 315, 2189, 17, 24713, 367, 2798, 1199, 927, 86, 24638, 1435, 444, 91, 4880, 12, 2150, 67, 5668, 13, 1323, 1053, 30, 225, 202, 7, 1296, 2798, 3724, 10711, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29796, 351, 10829, 13332, 315, 2189, 17, 24713, 367, 2798, 1199, 927, 86, 24638, 1435, 444, 91, 4880, 12, 2150, 67, 5668, 13, 1323, 1053, 30, 225, 202, 7, 1296, 2798, 3724, 10711, 12, ...
err_type = err.message
err_type = err.args[0]
def _read(self): buf = '' # put in a loop so that we retry on transient errors while True: try: buf = self._ssl.read(self._bufsize) except socket.sslerror as err: err_type = err.message if (err_type == socket.SSL_ERROR_WANT_READ or err_type == socket.SSL_ERROR_WANT_WRITE): continue if (err_type == socket.SSL_ERROR_ZERO...
89df245607619ed532106fbbdbf80745815f9c96 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/89df245607619ed532106fbbdbf80745815f9c96/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 631...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 12, 2890, 4672, 1681, 273, 875, 468, 1378, 316, 279, 2798, 1427, 716, 732, 3300, 603, 12315, 1334, 1323, 1053, 30, 775, 30, 1681, 273, 365, 6315, 8157, 18, 896, 12, 2890, 631...
subprocess.call(cmd, stdout="/dev/null") except:
subprocess.call(cmd, stdout=open("/dev/null"), stderr=open("/dev/null")) except OSError, e:
def evaluate_gain(extension, music_file): cmd = None if extension == '.mp3': cmd = ["mp3gain", "-T", music_file] # -T means modify existing file elif extension == '.ogg': cmd = ["vorbisgain", "-f", music_file] # -f means ignore file if it has tags elif extension == '.m4a': cmd = ["aacgain", "-T", music_file] # -T mean...
22aad4f097761ec7e4c3b0bb33441ed93a482a1f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13015/22aad4f097761ec7e4c3b0bb33441ed93a482a1f/get_metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 67, 25540, 12, 6447, 16, 26225, 67, 768, 4672, 1797, 273, 599, 225, 309, 2710, 422, 2418, 1291, 23, 4278, 1797, 273, 8247, 1291, 23, 25540, 3113, 3701, 56, 3113, 26225, 67, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 67, 25540, 12, 6447, 16, 26225, 67, 768, 4672, 1797, 273, 599, 225, 309, 2710, 422, 2418, 1291, 23, 4278, 1797, 273, 8247, 1291, 23, 25540, 3113, 3701, 56, 3113, 26225, 67, 768, ...
self.log("Connecting to AF %r sockaddr %r" % (self.af, self.address))
self.log("Connecting to AF %s host %s port %s addr %s" % (self.af, self.host, self.port, self.address))
def gotaddrinfo(self, addrinfo): """ Got address data from DNS, create socket and request connection. """ try: self.af, self.address = random.choice(addrinfo) self.log("Connecting to AF %r sockaddr %r" % (self.af, self.address)) self.create_socket(self.af, socket.SOCK_STREAM) self.connect((self.address, self.port)) exc...
bf0d6be34c3efab2cf97eb1411d2c4d3e13fe78f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/119/bf0d6be34c3efab2cf97eb1411d2c4d3e13fe78f/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2363, 4793, 1376, 12, 2890, 16, 3091, 1376, 4672, 3536, 19578, 1758, 501, 628, 8858, 16, 752, 2987, 471, 590, 1459, 18, 3536, 775, 30, 365, 18, 1727, 16, 365, 18, 2867, 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, 2363, 4793, 1376, 12, 2890, 16, 3091, 1376, 4672, 3536, 19578, 1758, 501, 628, 8858, 16, 752, 2987, 471, 590, 1459, 18, 3536, 775, 30, 365, 18, 1727, 16, 365, 18, 2867, 273, 2744, 18, ...
if self.freqstr is not None: if a.freqstr != self.freqstr: a = a.asfreq(self.freqstr)
if self.freq is not None: if a.freq != self.freq: a = a.asfreq(self.freq)
def _check_plot_params(self,*args): """Defines the plot coordinates (and basic plotting arguments).""" remaining = list(args) # No args ? Use defaults, if any if len(args) == 0: if self.xdata is None: raise ValueError, "No date information available!" return (self.xdata, self.ydata) output = [] while len(remaining) > 0...
4112b0479c1d88be72e39db02bd49cdabdc15a77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/4112b0479c1d88be72e39db02bd49cdabdc15a77/mpl_timeseries_pgm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 4032, 67, 2010, 12, 2890, 16, 14, 1968, 4672, 3536, 15109, 326, 3207, 5513, 261, 464, 5337, 20947, 1775, 13, 12123, 4463, 273, 666, 12, 1968, 13, 468, 2631, 833, 692, 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, 389, 1893, 67, 4032, 67, 2010, 12, 2890, 16, 14, 1968, 4672, 3536, 15109, 326, 3207, 5513, 261, 464, 5337, 20947, 1775, 13, 12123, 4463, 273, 666, 12, 1968, 13, 468, 2631, 833, 692, 26...
TixWidget.__init__(self, master, 'tixTree', ['options'], cnf, kw) self.subwidget_list['hlist'] = _dummyHList(self, 'hlist') self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb') self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
TixWidget.__init__(self, master, 'tixTree', ['options'], cnf, kw) self.subwidget_list['hlist'] = _dummyHList(self, 'hlist') self.subwidget_list['vsb'] = _dummyScrollbar(self, 'vsb') self.subwidget_list['hsb'] = _dummyScrollbar(self, 'hsb')
def __init__(self, master=None, cnf={}, **kw):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 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, ...
[ 1, 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, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 23118, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def fl_set_bitmap_file(ob, fname): """ fl_set_bitmap_file(ob, fname) """ _fl_set_bitmap_file(ob, fname) _fl_read_bitmapfile = cfuncproto(so_libforms, "fl_read_bitmapfile",
def fl_set_bitmap_file(pObject, fname): """ fl_set_bitmap_file(pObject, fname) """ _fl_set_bitmap_file(pObject, fname) _fl_read_bitmapfile = cfuncproto(so_libforms, "fl_read_bitmapfile",
def fl_set_bitmap_file(ob, fname): """ fl_set_bitmap_file(ob, fname) """ _fl_set_bitmap_file(ob, fname)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 3682, 1458, 67, 768, 12, 947, 16, 5299, 4672, 3536, 1183, 67, 542, 67, 3682, 1458, 67, 768, 12, 947, 16, 5299, 13, 3536, 225, 389, 2242, 67, 542, 67, 3682, 1458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 542, 67, 3682, 1458, 67, 768, 12, 947, 16, 5299, 4672, 3536, 1183, 67, 542, 67, 3682, 1458, 67, 768, 12, 947, 16, 5299, 13, 3536, 225, 389, 2242, 67, 542, 67, 3682, 1458, ...
return sha1(str(_entropy.random())).hexdigest()[:bytes]
return sha1(str(_entropy.random())).hexdigest()[:digits]
def hex_entropy(digits=32): """Generate `digits` number of hex digits of entropy (at most 40).""" return sha1(str(_entropy.random())).hexdigest()[:bytes]
325c4620b5191fee917826ae9d4e19f3bad31a79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/325c4620b5191fee917826ae9d4e19f3bad31a79/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 67, 21937, 12, 16649, 33, 1578, 4672, 3536, 4625, 1375, 16649, 68, 1300, 434, 3827, 6815, 434, 15943, 261, 270, 4486, 8063, 13, 12123, 327, 6056, 21, 12, 701, 24899, 21937, 18, 918...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3827, 67, 21937, 12, 16649, 33, 1578, 4672, 3536, 4625, 1375, 16649, 68, 1300, 434, 3827, 6815, 434, 15943, 261, 270, 4486, 8063, 13, 12123, 327, 6056, 21, 12, 701, 24899, 21937, 18, 918...
fval = apply(f,(xk,)+args)
fval = old_fval
def fmin_ncg(f, x0, fprime, fhess_p=None, fhess=None, args=(), avextol=1e-5, epsilon=1e-8, maxiter=None, full_output=0, disp=1): """Description: Minimize the function, f, whose gradient is given by fprime using the Newton-CG method. fhess_p must compute the hessian times an arbitrary vector. If it is not given, finit...
d00f433519cbe9ce0d4306fb9512ac79d655e1fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/d00f433519cbe9ce0d4306fb9512ac79d655e1fc/optimize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 1154, 67, 14202, 75, 12, 74, 16, 619, 20, 16, 284, 16382, 16, 7625, 403, 67, 84, 33, 7036, 16, 7625, 403, 33, 7036, 16, 833, 33, 9334, 1712, 408, 355, 33, 21, 73, 17, 25, 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, 284, 1154, 67, 14202, 75, 12, 74, 16, 619, 20, 16, 284, 16382, 16, 7625, 403, 67, 84, 33, 7036, 16, 7625, 403, 33, 7036, 16, 833, 33, 9334, 1712, 408, 355, 33, 21, 73, 17, 25, 16...
"""Fail if the two objects are unequal as determined by the '!='
"""Fail if the two objects are unequal as determined by the '=='
def failUnlessEqual(self, first, second, msg=None): """Fail if the two objects are unequal as determined by the '!=' operator. """ if first != second: raise self.failureException, \ (msg or '%s != %s' % (`first`, `second`))
78c1c17267ce8bd2a381d16f81afb2a926ed6d53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/78c1c17267ce8bd2a381d16f81afb2a926ed6d53/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 984, 2656, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 640, 9729, 487, 11383, 635, 326, 22853, 3726, 18, 3536, 309, 1122, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 984, 2656, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 640, 9729, 487, 11383, 635, 326, 22853, 3726, 18, 3536, 309, 1122, ...
if isinstance(menu_item.shortcuts[0].key, str): nsmenuitem.setKeyEquivalent_(menu_item.shortcuts[0].key)
shortcut = menu_item.shortcuts[0] if isinstance(shortcut.key, str): nsmenuitem.setKeyEquivalent_(shortcut.key) nsmenuitem.setKeyEquivalentModifierMask_(make_modifier_mask(shortcut))
def make_menu_item(menu_item): nsmenuitem = NSMenuItem.alloc().init() nsmenuitem.setTitleWithMnemonic_(menu_item.label.replace("_", "&")) if isinstance(menu_item, MenuItem): if len(menu_item.shortcuts) > 0: if isinstance(menu_item.shortcuts[0].key, str): nsmenuitem.setKeyEquivalent_(menu_item.shortcuts[0].key) handler ...
b1d9bfe71a5e41e9994bcfd6df6f62636ebf1759 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/b1d9bfe71a5e41e9994bcfd6df6f62636ebf1759/osxmenus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 5414, 67, 1726, 12, 5414, 67, 1726, 4672, 3153, 5414, 1726, 273, 11472, 12958, 18, 9853, 7675, 2738, 1435, 3153, 5414, 1726, 18, 542, 4247, 1190, 29668, 20918, 67, 12, 5414, 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, 1221, 67, 5414, 67, 1726, 12, 5414, 67, 1726, 4672, 3153, 5414, 1726, 273, 11472, 12958, 18, 9853, 7675, 2738, 1435, 3153, 5414, 1726, 18, 542, 4247, 1190, 29668, 20918, 67, 12, 5414, 67...
self.repos = findrepos(paths) for prefix, root in self.ui.configitems('collections'): prefix = util.pconvert(prefix) for path in util.walkrepos(root, followsym=True): repo = os.path.normpath(path) name = util.pconvert(repo) if name.startswith(prefix): name = name[len(prefix):] self.repos.append((name.lstrip('/'), repo...
def refresh(self): if self.lastrefresh + self.refreshinterval > time.time(): return
fe651880f09396649f99e0502aaffe107a9cf16d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/fe651880f09396649f99e0502aaffe107a9cf16d/hgwebdir_mod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 4672, 309, 365, 18, 2722, 9144, 397, 365, 18, 9144, 6624, 405, 813, 18, 957, 13332, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 4672, 309, 365, 18, 2722, 9144, 397, 365, 18, 9144, 6624, 405, 813, 18, 957, 13332, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dst = IECoreMaya.DagNode( dst )
dst = IECoreMaya.DagNode( str(dst) )
def doOperation( self, operands ) :
9f377e22b9339d001da124958e3e4bb692f77b4f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/9f377e22b9339d001da124958e3e4bb692f77b4f/BakeTransform.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2988, 12, 365, 16, 14883, 262, 294, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2988, 12, 365, 16, 14883, 262, 294, 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, ...
self.murder[name] = reactor.callLater(self.killTime, os.kill, pid, 9)
self.murder[pid] = reactor.callLater(self.killTime, os.kill, pid, 9)
def stopProcess(self, name): if not self.protocols.has_key(name): return pid = self.protocols[name].transport.pid del self.protocols[name] os.kill(pid, 15) self.murder[name] = reactor.callLater(self.killTime, os.kill, pid, 9)
e63be4be40c2fa73dfc4b4e37611c16cfc14ca76 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e63be4be40c2fa73dfc4b4e37611c16cfc14ca76/procmon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 2227, 12, 2890, 16, 508, 4672, 309, 486, 365, 18, 31018, 18, 5332, 67, 856, 12, 529, 4672, 327, 4231, 273, 365, 18, 31018, 63, 529, 8009, 13049, 18, 6610, 1464, 365, 18, 31018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 2227, 12, 2890, 16, 508, 4672, 309, 486, 365, 18, 31018, 18, 5332, 67, 856, 12, 529, 4672, 327, 4231, 273, 365, 18, 31018, 63, 529, 8009, 13049, 18, 6610, 1464, 365, 18, 31018, ...
elif data0 == 111:
elif data0 == MAGIC_LARGE_BIG:
def _UnpackOneTerm(data): dataLen = len(data) if len(data) == 0: return (None, data) data0 = ord(data[0]) if data0 == 97: # small_integer_ext if dataLen < 2: return (None, data) n = _ReadInt1(data[1]) return (ErlNumber(n), data[2:]) elif data0 == 98: # integer_ext if dataLen < 5: return...
f5a33431908f2d30884e237b626d15ed55b2f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/f5a33431908f2d30884e237b626d15ed55b2f169/erl_term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 23649, 3335, 4065, 12, 892, 4672, 501, 2891, 273, 562, 12, 892, 13, 225, 309, 562, 12, 892, 13, 422, 374, 30, 327, 261, 7036, 16, 501, 13, 225, 501, 20, 273, 4642, 12, 892, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 23649, 3335, 4065, 12, 892, 4672, 501, 2891, 273, 562, 12, 892, 13, 225, 309, 562, 12, 892, 13, 422, 374, 30, 327, 261, 7036, 16, 501, 13, 225, 501, 20, 273, 4642, 12, 892, 63...
str += '</DD>\n </DT></DL>\n'
str += '</dd>\n </dl>\n'
def _func_details(self, functions, cls, heading='Function Details'): """## Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</TABLE>'
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 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, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 1189, 2000, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, ...
['sage/rings/complex_number.pyx'], libraries = ['mpfr', 'gmp'])
['sage/rings/complex_number.pyx'], libraries = ['mpfr', 'gmp'])
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
697d48ce28ff4d12606adf26a8fb095216c31678 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/697d48ce28ff4d12606adf26a8fb095216c31678/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,...
`Error'. Warnings and errors are always printed, and information are
`Error'. Warnings and errors are always printed, and information is
def __log(self, msg, type="I"): """Print info messages according to verbosity level An easy-and-simple log method which prints messages to the standard output. The type parameter controls the urgency of the message, and can be equal to `I' for `Information', `W' for `Warning' and `E' for `Error'. Warnings and errors a...
c4d39622efe9ac633c633332c44980b5576582c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2784/c4d39622efe9ac633c633332c44980b5576582c2/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1330, 12, 2890, 16, 1234, 16, 618, 1546, 45, 6, 4672, 3536, 5108, 1123, 2743, 4888, 358, 11561, 1801, 225, 1922, 12779, 17, 464, 17, 9647, 613, 707, 1492, 14971, 2743, 358, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1330, 12, 2890, 16, 1234, 16, 618, 1546, 45, 6, 4672, 3536, 5108, 1123, 2743, 4888, 358, 11561, 1801, 225, 1922, 12779, 17, 464, 17, 9647, 613, 707, 1492, 14971, 2743, 358, 326, ...
l = self._convert_to_basis(self.hecke_operator(self._basis_cache[j], self.prime()))
l = self._convert_to_basis(self.hecke_operator(self._basis_cache[j], m))
def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix...
3585551616e64b7ecefd90f53b929dc9de8efd18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3585551616e64b7ecefd90f53b929dc9de8efd18/genus0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 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, 366, 762, 73, 67, 5667, 12, 2890, 16, 312, 16, 290, 16, 999, 67, 266, 17131, 273, 1083, 16, 5565, 67, 297, 483, 273, 1083, 4672, 436, 8395, 9029, 326, 3148, 434, 326, 1375, 56, 67, ...
mw = MainWindow()
MainWindow()
def __init__(self): Widgets.__init__(self, "legalgtk.glade")
53b5a262da8f08700905fa7d91c81656088c6636 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2528/53b5a262da8f08700905fa7d91c81656088c6636/legalgtk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 11103, 87, 16186, 2738, 972, 12, 2890, 16, 315, 2013, 4521, 79, 18, 7043, 2486, 7923, 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, 1001, 2738, 972, 12, 2890, 4672, 11103, 87, 16186, 2738, 972, 12, 2890, 16, 315, 2013, 4521, 79, 18, 7043, 2486, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
subprocess.call(['killall', '-TERM', '-u', os.getenv('USER'), 'lighttpd']) subprocess.call(['killall', '-TERM', '-u', os.getenv('USER'), 'httpd'])
null = open("/dev/null"); subprocess.call(['killall', '-TERM', '-u', os.getenv('USER'), 'lighttpd'], stderr=null) subprocess.call(['killall', '-TERM', '-u', os.getenv('USER'), 'httpd'], stderr=null) null.close()
def ShutDownHTTPServer(server_process): """Shut down the lighttpd web server. Blocks until it's fully shut down. Args: server_process: The subprocess object representing the running server """ # server_process is not set when "http_server.py stop" is run manually. if server_process is None: # TODO(mmoss) This isn't id...
b3d5b80c2fd7db2ab9b7f9aabd971f3b5f5024a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/b3d5b80c2fd7db2ab9b7f9aabd971f3b5f5024a3/platform_utils_mac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2638, 322, 4164, 3693, 2081, 12, 3567, 67, 2567, 4672, 3536, 1555, 322, 2588, 326, 9052, 6834, 72, 3311, 1438, 18, 22713, 3180, 518, 1807, 7418, 9171, 2588, 18, 225, 6634, 30, 1438, 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, 2638, 322, 4164, 3693, 2081, 12, 3567, 67, 2567, 4672, 3536, 1555, 322, 2588, 326, 9052, 6834, 72, 3311, 1438, 18, 22713, 3180, 518, 1807, 7418, 9171, 2588, 18, 225, 6634, 30, 1438, 67, ...
C.c.table_schema == current_schema,
C.c.table_schema == (table.schema or current_schema),
def reflecttable(self, connection, table, include_columns): import sqlalchemy.databases.information_schema as ischema
c096aeefe04ff77dbbef084923c75bf928620a27 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/c096aeefe04ff77dbbef084923c75bf928620a27/mssql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3037, 2121, 12, 2890, 16, 1459, 16, 1014, 16, 2341, 67, 5112, 4672, 1930, 1847, 24182, 18, 3404, 19684, 18, 13117, 67, 4821, 487, 353, 1243, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3037, 2121, 12, 2890, 16, 1459, 16, 1014, 16, 2341, 67, 5112, 4672, 1930, 1847, 24182, 18, 3404, 19684, 18, 13117, 67, 4821, 487, 353, 1243, 2, -100, -100, -100, -100, -100, -100, -100, ...
theta_terms = np.empty([4, self.k.shape[0], self.k.shape[0]])
theta_terms = np.empty([4, self.k.shape[0], self.k.shape[0]], dtype=dp1.dtype)
def getthetaterms(self, dp1, dp1dot): """Return array of integrated values for specified theta function and dphi function. Parameters ---------- dp1: array_like Array of values for dphi1 dp1dot: array_like Array of values for dphi1dot Returns ------- theta_terms: tuple Tuple of len(k)xlen(q) shaped arrays of integra...
2269643589f87094337981021df4e129ddc639e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7283/2269643589f87094337981021df4e129ddc639e1/srcequations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 451, 278, 2045, 959, 12, 2890, 16, 9986, 21, 16, 9986, 21, 9811, 4672, 3536, 990, 526, 434, 31121, 924, 364, 1269, 7338, 445, 471, 302, 9973, 445, 18, 225, 7012, 12181, 9986, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 451, 278, 2045, 959, 12, 2890, 16, 9986, 21, 16, 9986, 21, 9811, 4672, 3536, 990, 526, 434, 31121, 924, 364, 1269, 7338, 445, 471, 302, 9973, 445, 18, 225, 7012, 12181, 9986, 21, ...
if mask == 0: self.checkTunerState(None)
def tunerUseMaskChanged(self, mask): if mask == 0: self.checkTunerState(None) if mask&1: self["NimA_Active"].show() else: self["NimA_Active"].hide() if mask&2: self["NimB_Active"].show() else: self["NimB_Active"].hide()
87476cca8b4a772f8f1ff2cf3168aa147d51c85c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/87476cca8b4a772f8f1ff2cf3168aa147d51c85c/InfoBarGenerics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 29640, 3727, 5796, 5033, 12, 2890, 16, 3066, 4672, 309, 3066, 10, 21, 30, 365, 9614, 50, 381, 37, 67, 3896, 6, 8009, 4500, 1435, 469, 30, 365, 9614, 50, 381, 37, 67, 3896, 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, 268, 29640, 3727, 5796, 5033, 12, 2890, 16, 3066, 4672, 309, 3066, 10, 21, 30, 365, 9614, 50, 381, 37, 67, 3896, 6, 8009, 4500, 1435, 469, 30, 365, 9614, 50, 381, 37, 67, 3896, 6, ...
"""Proxied combo box class with GetStringSelection mapped to getValue."""
"""Proxied combo box class with addition error handling in GetValue to catch errors on OS X."""
def comboField(field): """Proxied combo box class with GetStringSelection mapped to getValue.""" class ProxiedCombo(wx.ComboBox): def __init__(self, parent): wx.ComboBox.__init__(self, parent, choices=field.choices, style=wx.CB_READONLY) # XXX we should support type-ahead find here def getValue(self): return self.Get...
417e9fe6a725052d84cbf88e8b1be3ccb9f3eee2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2607/417e9fe6a725052d84cbf88e8b1be3ccb9f3eee2/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16778, 974, 12, 1518, 4672, 3536, 16155, 2092, 16778, 3919, 667, 598, 2719, 555, 5057, 316, 16250, 358, 1044, 1334, 603, 5932, 1139, 12123, 225, 667, 1186, 92, 2092, 16156, 12, 27226, 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, 16778, 974, 12, 1518, 4672, 3536, 16155, 2092, 16778, 3919, 667, 598, 2719, 555, 5057, 316, 16250, 358, 1044, 1334, 603, 5932, 1139, 12123, 225, 667, 1186, 92, 2092, 16156, 12, 27226, 18, ...
if BETTER_CURSOR_FOLLOWING: def __constrainHandleToAngle(pos, p0, p1, p2, glpane): u = pos - p1 z0 = norm(p0 - p1) z2 = norm(p2 - p1) y2 = norm(z2 - dot(z0, z2) * z0) oop = norm(cross(z0, z2)) los = glpane.lineOfSight u = u - (dot(oop, u) / dot(oop, los)) * los if dot(cross(z0, u), oop) < 0: u = vle...
def _constrainHandleToAngle(pos, p0, p1, p2, glpane): u = pos - p1 z0 = norm(p0 - p1) z2 = norm(p2 - p1) oop = norm(cross(z0, z2)) u = u - dot(oop, u) * oop # clip the point so it lies within the angle if dot(cross(z0, u), oop) < 0: # Clip on the z0 side of the angle. u = vlen(u) * z0 elif dot(cross(u, z2), oop) < 0: #...
c3fc042ba5d169cb8eabb07c03a9bf20524cab21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/c3fc042ba5d169cb8eabb07c03a9bf20524cab21/jigs_measurements.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 591, 27568, 3259, 774, 8467, 12, 917, 16, 293, 20, 16, 293, 21, 16, 293, 22, 16, 5118, 29009, 4672, 582, 273, 949, 300, 293, 21, 998, 20, 273, 4651, 12, 84, 20, 300, 293, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 591, 27568, 3259, 774, 8467, 12, 917, 16, 293, 20, 16, 293, 21, 16, 293, 22, 16, 5118, 29009, 4672, 582, 273, 949, 300, 293, 21, 998, 20, 273, 4651, 12, 84, 20, 300, 293, 21, ...
result[id] = ""
result[id] = False
def list_customizations(self, cr, uid, ids, name, args, context): result = {} for id in ids: result[id] = "" #TODO CHECKME: stock.move should only be linked to one and only one mrp.production hopefully req = """ SELECT sale_order_line_id FROM mrp_production prod INNER JOIN mrp_production_move_ids rel ON rel.productio...
de35ef5e4544cd801efbd8c35e70d07b6b3b0130 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/de35ef5e4544cd801efbd8c35e70d07b6b3b0130/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 3662, 7089, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 4672, 563, 273, 2618, 364, 612, 316, 3258, 30, 563, 63, 350, 65, 273, 1083, 225, 468, 6241, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 3662, 7089, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 4672, 563, 273, 2618, 364, 612, 316, 3258, 30, 563, 63, 350, 65, 273, 1083, 225, 468, 6241, ...
assert b in refs assert c in refs assert a.getRefs('KnowsAbout') == [b] assert b.getRefs('KnowsAbout') == [a] assert a.getRefs('Owns') == [c] assert c.getBRefs('Owns')== [a]
self.failUnless(b in refs, (b, refs)) self.failUnless(c in refs, (c, refs)) self.assertEquals(a.getRefs('KnowsAbout'), [b]) self.assertEquals(b.getRefs('KnowsAbout'), [a]) self.assertEquals(a.getRefs('Owns'), [c]) self.assertEquals(c.getBRefs('Owns'), [a])
def test_setUID_keeps_relationships(self): obj_id = 'demodoc' known_id = 'known_doc' owned_id = 'owned_doc'
86089dd5ecda849baf4811c4a444c82c5f916c42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/86089dd5ecda849baf4811c4a444c82c5f916c42/test_referenceable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 3060, 67, 10102, 87, 67, 21632, 12, 2890, 4672, 1081, 67, 350, 282, 273, 296, 323, 1711, 504, 11, 4846, 67, 350, 273, 296, 2994, 67, 2434, 11, 16199, 67, 350, 273, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 542, 3060, 67, 10102, 87, 67, 21632, 12, 2890, 4672, 1081, 67, 350, 282, 273, 296, 323, 1711, 504, 11, 4846, 67, 350, 273, 296, 2994, 67, 2434, 11, 16199, 67, 350, 273, 296...
self.prefs_populate_profile_combo(profiles, self.config.profile_num, remove_profile)
self._populate_profile_combo(profiles, self.config.profile_num, remove_profile)
def mpd_tab(self): """Construct and layout the MPD tab""" mpdlabel = ui.label(markup='<b>' + _('MPD Connection') + '</b>', y=1) mpd_frame = gtk.Frame() mpd_frame.set_label_widget(mpdlabel) mpd_frame.set_shadow_type(gtk.SHADOW_NONE) controlbox = gtk.HBox() profiles = ui.combo() add_profile = ui.button(img=ui.image(stock...
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 72, 67, 7032, 12, 2890, 4672, 3536, 7249, 471, 3511, 326, 13480, 40, 3246, 8395, 6749, 72, 1925, 273, 5915, 18, 1925, 12, 15056, 2218, 32, 70, 1870, 397, 389, 2668, 4566, 40, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6749, 72, 67, 7032, 12, 2890, 4672, 3536, 7249, 471, 3511, 326, 13480, 40, 3246, 8395, 6749, 72, 1925, 273, 5915, 18, 1925, 12, 15056, 2218, 32, 70, 1870, 397, 389, 2668, 4566, 40, 405...
result = osascript('tell application "MunkiStatus" to set contents of text field "minorTextFld" of window "mainWindow" to ""')
result = osascript('tell application "MunkiStatus" to set contents of text field "minorTextFld" of window "mainWindow" to " "')
def message(messageText): result = osascript('tell application "MunkiStatus" to set contents of text field "mainTextFld" of window "mainWindow" to "%s"' % messageText) # when you change the message, the detail is no longer valid, so let's clear that result = osascript('tell application "MunkiStatus" to set contents of ...
45663239e8da5a969ff98170bc5c75f2da5ac8cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6241/45663239e8da5a969ff98170bc5c75f2da5ac8cf/munkistatus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 2150, 1528, 4672, 563, 273, 1140, 6407, 2668, 88, 1165, 2521, 315, 49, 1683, 77, 1482, 6, 358, 444, 2939, 434, 977, 652, 315, 5254, 1528, 7667, 6, 434, 2742, 315, 5254, 3829, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 883, 12, 2150, 1528, 4672, 563, 273, 1140, 6407, 2668, 88, 1165, 2521, 315, 49, 1683, 77, 1482, 6, 358, 444, 2939, 434, 977, 652, 315, 5254, 1528, 7667, 6, 434, 2742, 315, 5254, 3829, ...
context={} f=filter(lambda a: isinstance(self._columns[a], fields.function) and self._columns[a].store, self._columns)
context = {} f = filter(lambda a: isinstance(self._columns[a], fields.function) \ and self._columns[a].store, self._columns)
def _update_function_stored(self, cr, user, ids, context=None): if not context: context={} f=filter(lambda a: isinstance(self._columns[a], fields.function) and self._columns[a].store, self._columns) if f: result=self.read(cr, user, ids, fields=f, context=context) for res in result: upd0=[] upd1=[] for field in res: if ...
e3e9e296d83bc6d2abc9ab94f95ee811b619c534 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/e3e9e296d83bc6d2abc9ab94f95ee811b619c534/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 915, 67, 22601, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 284, 273, 1034, 12, 14661, 279, 30, 1549, 12, 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, 389, 2725, 67, 915, 67, 22601, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 284, 273, 1034, 12, 14661, 279, 30, 1549, 12, 2890, ...
w_londiste_add_table = NewTable(w_done, name = 'table') w_londiste_add_seq = NewSeq(w_done, name = 'seq') w_londiste_remove_table = KnownTable(w_done, name = 'table') w_londiste_remove_seq = KnownSeq(w_done, name = 'seq')
w_table_with2 = Proxy() w_table_with = List( Word('skip_truncate', w_table_with2, name = 'skip_truncate'), Word('expect_sync', w_table_with2, name = 'expect_sync'), WordEQ('tgfmt', Value(w_table_with2, name = 'tgfmt'))) w_table_with2.set_real(List( w_done, Symbol(',', w_table_with))) w_londiste_add_table = Proxy() w...
def get_wlist(self): return []
7d10b10c682f58751239c9bd81207a634a60e6a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14597/7d10b10c682f58751239c9bd81207a634a60e6a8/qadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 91, 1098, 12, 2890, 4672, 327, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 91, 1098, 12, 2890, 4672, 327, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...