rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
<dd><a href="modifyoutputformat?colID=%s&amp;ln=%s
<dd><a href="modifyoutputformat?colID=%s&amp;ln=%s
def perform_showoutputformats(colID, ln=cdslang, callback='yes', content='', confirm=-1): """form to add a new rank method with these values: """ colID = int(colID) col_dict = dict(get_current_name('', ln, get_col_mainnametype(), "collection")) subtitle = """<a name="10">10. Modify output formats for collection '%s'</...
dcfee6aed5014f8f3ab0894c2338409e2d8ca65b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/dcfee6aed5014f8f3ab0894c2338409e2d8ca65b/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 2844, 11962, 12, 1293, 734, 16, 7211, 33, 4315, 2069, 539, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 687, 358, 527, 279, 394, 6171, 707, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4500, 2844, 11962, 12, 1293, 734, 16, 7211, 33, 4315, 2069, 539, 16, 1348, 2218, 9707, 2187, 913, 2218, 2187, 6932, 29711, 21, 4672, 3536, 687, 358, 527, 279, 394, 6171, 707, ...
myTable.data[i+1][0]=" %s "%(channel)
def insertQscanTable(self,images=None,thumbs=None,indexes=None): """ Inserts a table constructured of thumbnails linked to larger Qscan plots. It accounts for the ifo present in the coinc via qCoinc. The method expects a lists of URLs """ if images.keys() != indexes.keys(): sys.write.stderr("Error: insertQscanTable i...
b70b4fcde32aaece5660335ff3ea1009958cd810 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/b70b4fcde32aaece5660335ff3ea1009958cd810/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 53, 9871, 1388, 12, 2890, 16, 7369, 33, 7036, 16, 451, 10099, 33, 7036, 16, 11265, 33, 7036, 4672, 3536, 8040, 87, 279, 1014, 4872, 2862, 434, 30526, 8459, 358, 10974, 2238, 9871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 53, 9871, 1388, 12, 2890, 16, 7369, 33, 7036, 16, 451, 10099, 33, 7036, 16, 11265, 33, 7036, 4672, 3536, 8040, 87, 279, 1014, 4872, 2862, 434, 30526, 8459, 358, 10974, 2238, 9871, ...
data = ''.join(tokens[5:10])
data = ''.join(tokens[5:7]) data = ''.join((data, tokens[7][2:4], tokens[7][0:2])) data = ''.join((data, tokens[8][2:4], tokens[8][0:2])) data = ''.join((data, tokens[9][2:4], tokens[9][0:2]))
def parse(self, line, timestamp=None): self.lineNumber += 1 tokens = line.split() try: # Do a small stupid sanity check if this is a correct usbmon log line try: if len(tokens) < 4: return if not(int(tokens[0],16) and int(tokens[1]) and (tokens[2] in ('S', 'C', 'E'))): return except: print "Error on line %d:" % self.li...
ef84bfd3ee6dfeb3d69f9eda53f1d4b04d4486af /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6119/ef84bfd3ee6dfeb3d69f9eda53f1d4b04d4486af/Log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 980, 16, 2858, 33, 7036, 4672, 365, 18, 1369, 1854, 1011, 404, 2430, 273, 980, 18, 4939, 1435, 775, 30, 468, 2256, 279, 5264, 384, 416, 350, 16267, 866, 309, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 980, 16, 2858, 33, 7036, 4672, 365, 18, 1369, 1854, 1011, 404, 2430, 273, 980, 18, 4939, 1435, 775, 30, 468, 2256, 279, 5264, 384, 416, 350, 16267, 866, 309, 333, ...
self.game.world.add.remove_mouseJoint()
self.game.world.add.mouseJoint(bodylist[0], event.pos)
def handleToolEvent(self,event): #look for default events, and if none are handled then try the custom events if not super(GrabTool,self).handleEvents(event): # we handle two types of "grab" depending on simulation running or not if event.type == MOUSEBUTTONDOWN: if event.button == 1: # grab the first object at the mou...
9167e5a85dc90b86f593eab2860735e79955c88d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7607/9167e5a85dc90b86f593eab2860735e79955c88d/tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 6364, 1133, 12, 2890, 16, 2575, 4672, 468, 7330, 364, 805, 2641, 16, 471, 309, 6555, 854, 7681, 1508, 775, 326, 1679, 2641, 309, 486, 2240, 12, 14571, 70, 6364, 16, 2890, 2934, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 6364, 1133, 12, 2890, 16, 2575, 4672, 468, 7330, 364, 805, 2641, 16, 471, 309, 6555, 854, 7681, 1508, 775, 326, 1679, 2641, 309, 486, 2240, 12, 14571, 70, 6364, 16, 2890, 2934, 4...
element = obj.to_element() return obj.__class__.from_element(element)
element = obj.toxml(pretty_print=True) return obj.__class__.parse(element)
def clone(obj): element = obj.to_element() return obj.__class__.from_element(element)
3a6f8ef591b8d187eeffafcb45f678e86136c6e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/3a6f8ef591b8d187eeffafcb45f678e86136c6e9/resourcelists.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2603, 4672, 930, 273, 1081, 18, 869, 67, 2956, 1435, 327, 1081, 16186, 1106, 25648, 2080, 67, 2956, 12, 2956, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2603, 4672, 930, 273, 1081, 18, 869, 67, 2956, 1435, 327, 1081, 16186, 1106, 25648, 2080, 67, 2956, 12, 2956, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def fl_get_counter_speedjump(ob): """ fl_get_counter_speedjump(ob) -> num. """ retval = _fl_get_counter_speedjump(ob)
def fl_get_counter_speedjump(pObject): """ fl_get_counter_speedjump(pObject) -> num. """ retval = _fl_get_counter_speedjump(pObject)
def fl_get_counter_speedjump(ob): """ fl_get_counter_speedjump(ob) -> num. """ retval = _fl_get_counter_speedjump(ob) return retval
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, 588, 67, 7476, 67, 13871, 24574, 12, 84, 921, 4672, 3536, 1183, 67, 588, 67, 7476, 67, 13871, 24574, 12, 84, 921, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 588, 67, 7476, 67, 13871, 24574, 12, 84, 921, 4672, 3536, 1183, 67, 588, 67, 7476, 67, 13871, 24574, 12, 84, 921, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 588...
print 'Error copying file and permissions '+src+' to '+dst+': '+strerror
sys.stderr.write('ERROR: copying file and permissions '+src+' to '+dst+': '+strerror+'\n')
def copy_with_permissions(src, dst, be_verbose=0, try_hardlink=1): """copies/links the file and the permissions, except any setuid or setgid bits""" do_normal_copy = 1 if (try_hardlink==1): try: os.link(src,dst) do_normal_copy = 0 except: pass if (do_normal_copy == 1): try: shutil.copyfile(src,dst) copy_time_and_permis...
636d9e30baf44056b0cb125195cc5ee344aa2100 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6201/636d9e30baf44056b0cb125195cc5ee344aa2100/jk_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 1918, 67, 9612, 12, 4816, 16, 3046, 16, 506, 67, 11369, 33, 20, 16, 775, 67, 20379, 1232, 33, 21, 4672, 3536, 22295, 606, 19, 7135, 326, 585, 471, 326, 4371, 16, 1335, 1281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 1918, 67, 9612, 12, 4816, 16, 3046, 16, 506, 67, 11369, 33, 20, 16, 775, 67, 20379, 1232, 33, 21, 4672, 3536, 22295, 606, 19, 7135, 326, 585, 471, 326, 4371, 16, 1335, 1281...
p = open('/proc/'+pid+'/environ', 'r') i = re.compile('(DBUS_SESSION_BUS_ADDRESS=[^\x00]+)').findall(p.read()) p.close()
p = open('/proc/'+pid+'/environ', 'r').read() i = re.compile('(DBUS_SESSION_BUS_ADDRESS=[^\x00]+)').search(p) return i.group(1) pass
def getdbus(pid): #Returns DBUS_SESSION_BUS_ADDRESS variable from /proc/pid/environ pid = str(pid) p = open('/proc/'+pid+'/environ', 'r') i = re.compile('(DBUS_SESSION_BUS_ADDRESS=[^\x00]+)').findall(p.read()) p.close() #FIXME: Doesn't work?
17c530936be837dab68b206e14bd91ebf53a0b78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/17c530936be837dab68b206e14bd91ebf53a0b78/timekpr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1966, 407, 12, 6610, 4672, 468, 1356, 2383, 3378, 67, 7042, 67, 3000, 55, 67, 15140, 2190, 628, 342, 9381, 19, 6610, 19, 28684, 4231, 273, 609, 12, 6610, 13, 293, 273, 1696, 2668,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1966, 407, 12, 6610, 4672, 468, 1356, 2383, 3378, 67, 7042, 67, 3000, 55, 67, 15140, 2190, 628, 342, 9381, 19, 6610, 19, 28684, 4231, 273, 609, 12, 6610, 13, 293, 273, 1696, 2668,...
if m != module: platform.Libraries.append(m)
def __init__(self, ActivePlatform = None): self.Workspace = EdkIIWorkspace() self.PrintRunTime = True self.PlatformBuild = True self.TargetTxt = TargetTxtClassObject() self.ToolDef = ToolDefClassObject()
591969e261869a94861ebf85e189757ceeafa941 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/591969e261869a94861ebf85e189757ceeafa941/EdkIIWorkspaceBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8857, 8201, 273, 599, 4672, 365, 18, 8241, 9079, 273, 512, 2883, 6954, 8241, 1435, 365, 18, 5108, 1997, 950, 5411, 273, 1053, 365, 18, 8201, 3116, 6647, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8857, 8201, 273, 599, 4672, 365, 18, 8241, 9079, 273, 512, 2883, 6954, 8241, 1435, 365, 18, 5108, 1997, 950, 5411, 273, 1053, 365, 18, 8201, 3116, 6647, ...
width = (index[1] - index[0]) / 2.5
width = empty_like(index) width[:-1] = (index[1:] - index[:-1]) / 2.5 width[-1] = (index[-1] - index[-2]) / 2.5
def _render(self, gc, index, min, bar_min, center, bar_max, max): if len(index) == 0: return elif len(index) == 1: width = 5.0 else: width = (index[1] - index[0]) / 2.5
46f02300265ede4e295fb4457a6abc69be47aadc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/46f02300265ede4e295fb4457a6abc69be47aadc/candle_plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 12, 2890, 16, 8859, 16, 770, 16, 1131, 16, 4653, 67, 1154, 16, 4617, 16, 4653, 67, 1896, 16, 943, 4672, 309, 562, 12, 1615, 13, 422, 374, 30, 327, 1327, 562, 12, 1615, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5902, 12, 2890, 16, 8859, 16, 770, 16, 1131, 16, 4653, 67, 1154, 16, 4617, 16, 4653, 67, 1896, 16, 943, 4672, 309, 562, 12, 1615, 13, 422, 374, 30, 327, 1327, 562, 12, 1615, 1...
asyncObj.open('POST',url,async_bool);
asyncObj.open('POST',url,true);
def async_lib(): s = r"""
66670ad902f6045d07338b1b8272763fcc764050 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/66670ad902f6045d07338b1b8272763fcc764050/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4326, 67, 2941, 13332, 272, 273, 436, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4326, 67, 2941, 13332, 272, 273, 436, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
try: bus = dbus.SessionBus() obj = bus.get_object( 'org.gajim.dbus', '/org/gajim/dbus/RemoteObject') self.interface = dbus.Interface( obj, 'org.gajim.dbus.RemoteInterface') except dbus.DBusException: self.interface = None
self.interface = None
def __init__(self): try: self.accounts = config.get('plugins', self.c_accounts).split() except: self.accounts = [] config.set('plugins', self.c_accounts, '')
eeca23ef0331d7060f02026bc5e835bb87421c48 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/eeca23ef0331d7060f02026bc5e835bb87421c48/gajim_status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 775, 30, 365, 18, 13739, 273, 642, 18, 588, 2668, 8057, 2187, 365, 18, 71, 67, 13739, 2934, 4939, 1435, 1335, 30, 365, 18, 13739, 273, 5378, 642, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 775, 30, 365, 18, 13739, 273, 642, 18, 588, 2668, 8057, 2187, 365, 18, 71, 67, 13739, 2934, 4939, 1435, 1335, 30, 365, 18, 13739, 273, 5378, 642, 18, ...
def __init__(self, pool, cnx):
def __init__(self, pool, cnx, tid):
def __init__(self, pool, cnx): ConnectionWrapper.__init__(self, cnx) self._pool = pool
411a1e555a3c70f416e156a32309177b966d7e14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/411a1e555a3c70f416e156a32309177b966d7e14/pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2845, 16, 29492, 16, 11594, 4672, 4050, 3611, 16186, 2738, 972, 12, 2890, 16, 29492, 13, 365, 6315, 6011, 273, 2845, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2845, 16, 29492, 16, 11594, 4672, 4050, 3611, 16186, 2738, 972, 12, 2890, 16, 29492, 13, 365, 6315, 6011, 273, 2845, 2, -100, -100, -100, -100, -100, -100,...
assert(flex.max(f_star) , 2505.77677201 , 1.e-4) assert(flex.min(f_star) , 0.0 , 1.e-4) assert(flex.mean(f_star), 1085.99060715 , 1.e-4) assert(flex.max(w_star) , 1.0 , 1.e-4) assert(flex.min(w_star) , 0.0 , 1.e-4) assert(flex.mean(w_star), ...
assert approx_equal(flex.max(f_star) , 2505.77677201 , 1.e-4) assert approx_equal(flex.min(f_star) , 0.0 , 1.e-4) assert approx_equal(flex.mean(f_star), 1085.99060715 , 1.e-4) assert approx_equal(flex.max(w_star) , 1.0 , 1.e-4) assert approx_equal(flex.min(w_star)...
def test_3(): symmetry = crystal.symmetry(unit_cell = (15.67, 25.37, 35.68, 90, 90, 90), space_group_symbol = "P 21 21 21") structure = xray.structure(crystal_symmetry = symmetry) mi = structure.structure_factors(d_min = 1.5, anomalous_flag = False).f_calc().indices() # ==============================...
e05fd035a1ca33aae757073e57124fd762e1e3c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/e05fd035a1ca33aae757073e57124fd762e1e3c7/tst_maxlik.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 23, 13332, 225, 26144, 273, 4422, 31365, 18, 8117, 18042, 12, 4873, 67, 3855, 1850, 273, 261, 3600, 18, 9599, 16, 6969, 18, 6418, 16, 13191, 18, 9470, 16, 8566, 16, 8566, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 23, 13332, 225, 26144, 273, 4422, 31365, 18, 8117, 18042, 12, 4873, 67, 3855, 1850, 273, 261, 3600, 18, 9599, 16, 6969, 18, 6418, 16, 13191, 18, 9470, 16, 8566, 16, 8566, 16,...
def CopyFilesToStagingDir(config, staging_dir, output_dir): """Copies files required for installer archive to staging dir. """ for option in config.options('FILES'):
def CopyAllFilesToStagingDir(config, distribution, staging_dir, output_dir): """Copies the files required for installer archive. Copies all common files required for various distributions of Chromium and also files for the specific Chromium build specified by distribution. """ distribution = '_google_chrome' CopySect...
def MakeStagingDirectory(output_dir): """Creates a staging path for installer archive. If directory exists already, deletes the existing directory. """ file_path = os.path.join(output_dir, ARCHIVE_DIR) if os.path.exists(file_path): shutil.rmtree(file_path) os.makedirs(file_path) return file_path
767436a532d7455eafacc75c728565f45936fd02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/767436a532d7455eafacc75c728565f45936fd02/create_installer_archive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 510, 5755, 2853, 12, 2844, 67, 1214, 4672, 3536, 2729, 279, 22207, 589, 364, 16050, 5052, 18, 971, 1867, 1704, 1818, 16, 9792, 326, 2062, 1867, 18, 3536, 585, 67, 803, 273, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 510, 5755, 2853, 12, 2844, 67, 1214, 4672, 3536, 2729, 279, 22207, 589, 364, 16050, 5052, 18, 971, 1867, 1704, 1818, 16, 9792, 326, 2062, 1867, 18, 3536, 585, 67, 803, 273, 1140, ...
return _completion_function
return _completer_function def _get_delimited(buffer, cursor): start = cursor for i in xrange(cursor-1, -1, -1): if buffer[i] in _completer_delims: break start = i return start, cursor
def get_completer(): return _completion_function
24d3df536f1a55ecda3dd9e7f94f30c1a507dddb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/24d3df536f1a55ecda3dd9e7f94f30c1a507dddb/readline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 832, 17754, 13332, 327, 389, 832, 17754, 67, 915, 225, 1652, 389, 588, 67, 3771, 1038, 329, 12, 4106, 16, 3347, 4672, 787, 273, 3347, 364, 277, 316, 12314, 12, 9216, 17, 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, 67, 832, 17754, 13332, 327, 389, 832, 17754, 67, 915, 225, 1652, 389, 588, 67, 3771, 1038, 329, 12, 4106, 16, 3347, 4672, 787, 273, 3347, 364, 277, 316, 12314, 12, 9216, 17, 21, ...
for w_key,cell in
for w_key,hash,cell in
def dict_items__Dict(space, w_self): return space.newlist([ space.newtuple([w_key,cell.get()]) for w_key,cell in w_self.non_empties()])
a9a72cafc2a01ecab085d2980211916bd9911e63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/a9a72cafc2a01ecab085d2980211916bd9911e63/dictobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 67, 3319, 972, 5014, 12, 2981, 16, 341, 67, 2890, 4672, 327, 3476, 18, 2704, 1098, 3816, 3476, 18, 2704, 8052, 3816, 91, 67, 856, 16, 3855, 18, 588, 1435, 5717, 364, 341, 67, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2065, 67, 3319, 972, 5014, 12, 2981, 16, 341, 67, 2890, 4672, 327, 3476, 18, 2704, 1098, 3816, 3476, 18, 2704, 8052, 3816, 91, 67, 856, 16, 3855, 18, 588, 1435, 5717, 364, 341, 67, 8...
main.addTimeout(tick, 0.5) main.addTimeout(kickOffTests, 0.4)
reactor.callLater(0.5, tick) reactor.callLater(0.4, kickOffTests)
def kickOffTests(ignoredResult=0): global manager, xmanager xmanager = xmlreflector.XMLReflector("myXMLdb", [RoomRow, FurnitureRow, RugRow, LampRow] ) manager = sqlreflector.SQLReflector(dbpool, [RoomRow, FurnitureRow, RugRow, LampRow], runTests)
bab83b2334ff22888211143cd7d31a7bc54d6980 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/bab83b2334ff22888211143cd7d31a7bc54d6980/row_xml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23228, 7210, 14650, 12, 24055, 1253, 33, 20, 4672, 2552, 3301, 16, 619, 4181, 619, 4181, 273, 2025, 1734, 4787, 18, 4201, 1957, 4787, 2932, 4811, 4201, 1966, 3113, 306, 13646, 1999, 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, 23228, 7210, 14650, 12, 24055, 1253, 33, 20, 4672, 2552, 3301, 16, 619, 4181, 619, 4181, 273, 2025, 1734, 4787, 18, 4201, 1957, 4787, 2932, 4811, 4201, 1966, 3113, 306, 13646, 1999, 16, ...
return http.Response(stream = message(
return HTMLResponse(stream = message(
def render(self, ctx): return http.Response(stream = message( 'The worksheet operation "%s" is not defined.'%self.op, '/home/'+self.ws.filename()))
5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 327, 3982, 1064, 12, 3256, 273, 883, 12, 296, 1986, 13622, 1674, 2213, 87, 6, 353, 486, 2553, 1093, 9, 2890, 18, 556, 16, 1173, 8712, 2473, 15, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1103, 4672, 327, 3982, 1064, 12, 3256, 273, 883, 12, 296, 1986, 13622, 1674, 2213, 87, 6, 353, 486, 2553, 1093, 9, 2890, 18, 556, 16, 1173, 8712, 2473, 15, 2890, ...
i = 0
i = len(children)
def fixup_paras_helper(doc, container): # document is already normalized children = container.childNodes start = 0 start_fixed = 0 i = 0 SKIP_ELEMENTS = PARA_LEVEL_ELEMENTS + PARA_LEVEL_PRECEEDERS for child in children: if child.nodeType == xml.dom.core.ELEMENT: if child.tagName in FIXUP_PARA_ELEMENTS: fixup_paras_help...
f80cd26a6f85aee8be12f74084b202e1663670e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f80cd26a6f85aee8be12f74084b202e1663670e7/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 67, 1065, 345, 67, 4759, 12, 2434, 16, 1478, 4672, 468, 1668, 353, 1818, 5640, 2325, 273, 1478, 18, 3624, 3205, 787, 273, 374, 787, 67, 12429, 273, 374, 277, 273, 562, 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, 2917, 416, 67, 1065, 345, 67, 4759, 12, 2434, 16, 1478, 4672, 468, 1668, 353, 1818, 5640, 2325, 273, 1478, 18, 3624, 3205, 787, 273, 374, 787, 67, 12429, 273, 374, 277, 273, 562, 12, ...
cntx[self.bucket] = curr[0] flow.push(curr[1])
(save, data) = curr cntx[self.bucket] = save if data: flow.push(data)
def __call__(self, flow, data): cntx = flow.context if not self.bucket in cntx: start = self.start if callable(start): start = start() cntx[self.bucket] = start cntx.addFlush(flow.nextLinkItem(), self.bucket) curr = self.func(cntx[self.bucket], data) if self.reduce: cntx[self.bucket] = curr else: if curr: cntx[self.buc...
de18f32a9b8f70faab51a8b069912c20d375f284 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/de18f32a9b8f70faab51a8b069912c20d375f284/flow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 4693, 16, 501, 4672, 7599, 92, 273, 4693, 18, 2472, 309, 486, 365, 18, 7242, 316, 7599, 92, 30, 787, 273, 365, 18, 1937, 309, 4140, 12, 1937, 4672, 787...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 4693, 16, 501, 4672, 7599, 92, 273, 4693, 18, 2472, 309, 486, 365, 18, 7242, 316, 7599, 92, 30, 787, 273, 365, 18, 1937, 309, 4140, 12, 1937, 4672, 787...
self.groupInfo.add(groupfile)
self.comps.add(groupfile)
def doGroupSetup(self): """create the groups object that will store the comps metadata finds the repos with groups, gets their comps data and merge it into the group object""" self.log(3, 'Getting group metadata') reposWithGroups = [] for repo in self.repos.listGroupsEnabled(): if repo.repoXML is None: raise Errors.Re...
c3671b686c4518492798d8620564c592073bd041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/c3671b686c4518492798d8620564c592073bd041/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1114, 7365, 12, 2890, 4672, 3536, 2640, 326, 3252, 733, 716, 903, 1707, 326, 13979, 1982, 13094, 326, 13686, 598, 3252, 16, 5571, 3675, 13979, 501, 471, 2691, 518, 1368, 326, 1041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1114, 7365, 12, 2890, 4672, 3536, 2640, 326, 3252, 733, 716, 903, 1707, 326, 13979, 1982, 13094, 326, 13686, 598, 3252, 16, 5571, 3675, 13979, 501, 471, 2691, 518, 1368, 326, 1041, ...
ext.sources.extend(fficonfig['ffi_sources'])
ext.sources.extend(os.path.join(ffi_srcdir, f) for f in fficonfig['ffi_sources'])
def configure_ctypes(self, ext): if not self.use_system_libffi: if sys.platform == 'darwin': return self.configure_ctypes_darwin(ext)
8c510e704e3823df66c2c3ad85912c9a9dda7f14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8c510e704e3823df66c2c3ad85912c9a9dda7f14/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 67, 299, 989, 12, 2890, 16, 1110, 4672, 309, 486, 365, 18, 1202, 67, 4299, 67, 2941, 1403, 77, 30, 309, 2589, 18, 9898, 422, 296, 28076, 4278, 327, 365, 18, 14895, 67, 299, 989...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5068, 67, 299, 989, 12, 2890, 16, 1110, 4672, 309, 486, 365, 18, 1202, 67, 4299, 67, 2941, 1403, 77, 30, 309, 2589, 18, 9898, 422, 296, 28076, 4278, 327, 365, 18, 14895, 67, 299, 989...
logkpr('Extended login hours detected from ' + username + '.allow, but not from today') if os.isfile(latefile): if fromtoday(latefile): logkpr('User: ' + username + ' has been late-kicked today') logOut(username, pid) os.remove(allowfile) lockacct(username) else: logkpr('User: ' + username + ' has NOT been late-kicke...
logkpr('Extended login hours detected from ' + username + '.allow, but not from today') if isfile(latefile): if fromtoday(latefile): logkpr('User: ' + username + ' has been late-kicked today') logOut(username, pid) remove(allowfile) lockacct(username) else: logkpr('User: ' + username + ' has NOT been late-kicked toda...
def fromtoday(fname): #Is the file today's? fdate = time.strftime("%Y%m%d", time.localtime(os.path.getmtime(fname))) today = time.strftime("%Y%m%d", time.localtime()) return fdate == today
a676b5a036664696b95ecdfb2c7d1b9b3882d6d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1574/a676b5a036664696b95ecdfb2c7d1b9b3882d6d9/timekpr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 30064, 12, 12749, 4672, 468, 2520, 326, 585, 10074, 1807, 35, 284, 712, 273, 813, 18, 701, 9982, 27188, 61, 9, 81, 9, 72, 3113, 813, 18, 3729, 957, 12, 538, 18, 803, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 30064, 12, 12749, 4672, 468, 2520, 326, 585, 10074, 1807, 35, 284, 712, 273, 813, 18, 701, 9982, 27188, 61, 9, 81, 9, 72, 3113, 813, 18, 3729, 957, 12, 538, 18, 803, 18, 588, ...
os.path.exists(downloaded_pkg) and os.remove(downloaded_pkg)
self._ClearLocalDownloadState(downloaded_pkg)
def testZipInIncognito(self): """Download and verify a zip in incognito window.""" test_dir = os.path.join(os.path.abspath(self.DataDir()), 'downloads') file_path = os.path.join(test_dir, 'a_zip_file.zip') file_url = self.GetFileURLForPath(file_path) downloaded_pkg = os.path.join(self.GetDownloadDirectory().value(), 'a...
f9dc9fce765fa4077269f1ad3dee544fc6c3dcdf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/f9dc9fce765fa4077269f1ad3dee544fc6c3dcdf/downloads.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9141, 382, 14559, 13567, 12, 2890, 4672, 3536, 7109, 471, 3929, 279, 3144, 316, 7290, 13567, 2742, 12123, 1842, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9141, 382, 14559, 13567, 12, 2890, 4672, 3536, 7109, 471, 3929, 279, 3144, 316, 7290, 13567, 2742, 12123, 1842, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, ...
pb = p0f_kdb.get_base()
db, sig = packet2p0f(pkt) if db: pb = db.get_base() else: pb = []
def p0f(pkt): """Passive OS fingerprinting: which OS emitted this TCP SYN ?
bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7311/bebe0596dd5f92720a86c6f3fa23aaf4b1bbc984/p0f.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 20, 74, 12, 5465, 88, 4672, 3536, 6433, 688, 5932, 12115, 310, 30, 1492, 5932, 17826, 333, 9911, 7068, 50, 692, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 20, 74, 12, 5465, 88, 4672, 3536, 6433, 688, 5932, 12115, 310, 30, 1492, 5932, 17826, 333, 9911, 7068, 50, 692, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
" maillists on %s." % mm_cfg.DEFAULT_HOST_NAME,
" mailing lists on %s." % mm_cfg.DEFAULT_HOST_NAME,
def FormatAdminOverview(error=None): "Present a general welcome and itemize the (public) lists." doc = Document() legend = "%s maillists - Admin Links" % mm_cfg.DEFAULT_HOST_NAME doc.SetTitle(legend) table = Table(border=0, width="100%") table.AddRow([Center(Header(2, legend))]) table.AddCellInfo(max(table.GetCurrentR...
3669b0d6a1a8a59d98f6d625cd5fe9423a6cd325 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/3669b0d6a1a8a59d98f6d625cd5fe9423a6cd325/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 4446, 26648, 12, 1636, 33, 7036, 4672, 315, 6351, 279, 7470, 28329, 471, 761, 554, 326, 261, 482, 13, 6035, 1199, 997, 273, 4319, 1435, 7241, 273, 2213, 87, 4791, 9772, 300, 7807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4077, 4446, 26648, 12, 1636, 33, 7036, 4672, 315, 6351, 279, 7470, 28329, 471, 761, 554, 326, 261, 482, 13, 6035, 1199, 997, 273, 4319, 1435, 7241, 273, 2213, 87, 4791, 9772, 300, 7807, ...
if self._status in (RUNNING, WAITING): self._status = FAILED self._failedreason = reason if self._starttime: self._mirror.addInfo(failed=1) self._progress.setSubStopped(self._urlobj.original) self._progress.show()
self._status = FAILED self._failedreason = reason if self._starttime: self._mirror.addInfo(failed=1) self._progress.setSubStopped(self._urlobj.original) self._progress.show()
def setFailed(self, reason): if self._status in (RUNNING, WAITING): self._status = FAILED self._failedreason = reason if self._starttime: self._mirror.addInfo(failed=1) self._progress.setSubStopped(self._urlobj.original) self._progress.show()
f41ed120eba69ca3a8db500f68be06a34b9ea053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/f41ed120eba69ca3a8db500f68be06a34b9ea053/fetcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2925, 12, 2890, 16, 3971, 4672, 309, 365, 6315, 2327, 316, 261, 29358, 16, 26859, 1360, 4672, 365, 6315, 2327, 273, 18497, 365, 6315, 7307, 10579, 273, 3971, 309, 365, 6315, 1937, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2925, 12, 2890, 16, 3971, 4672, 309, 365, 6315, 2327, 316, 261, 29358, 16, 26859, 1360, 4672, 365, 6315, 2327, 273, 18497, 365, 6315, 7307, 10579, 273, 3971, 309, 365, 6315, 1937, 9...
lastPoints.append(Vector2(x2, y1))
lastPoints.append(vigra.Vector2(x2, y1))
def YPosCompare(node1, node2): return cmp(node1.position()[1], node2.position()[1])
54a78584b8a3ee5c834f5da8f597116eccc6b335 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/54a78584b8a3ee5c834f5da8f597116eccc6b335/maputils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1624, 1616, 8583, 12, 2159, 21, 16, 756, 22, 4672, 327, 9411, 12, 2159, 21, 18, 3276, 1435, 63, 21, 6487, 756, 22, 18, 3276, 1435, 63, 21, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1624, 1616, 8583, 12, 2159, 21, 16, 756, 22, 4672, 327, 9411, 12, 2159, 21, 18, 3276, 1435, 63, 21, 6487, 756, 22, 18, 3276, 1435, 63, 21, 5717, 2, -100, -100, -100, -100, -100, -100...
def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_
def get_valueOf_(self): return self.valueOf_
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1132, 951, 67, 12, 2890, 4672, 327, 365, 18, 1132, 951, 67, 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, 336, 67, 1132, 951, 67, 12, 2890, 4672, 327, 365, 18, 1132, 951, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif line[i] == "." and line[i+1] == "<" and not in_quote():
elif len(line) > i+1 and line[i] == "." and line[i+1] == "<" \ and not in_quote():
def wrap_num(i, line, is_real, num_start): if is_real: # make real field with slightly less precision than # number of digits of our number n = int(3.32192*(i-num_start-1)) # we may want to change to something like this: # add a few digits (how many) #n = int(3.32192*(i-num_start-1)) + 5 O = "RealField(max(%s,RR.preci...
7e303f7dbc58dc849ca99fe5c35d928cd189b168 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/7e303f7dbc58dc849ca99fe5c35d928cd189b168/preparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 2107, 12, 77, 16, 980, 16, 353, 67, 7688, 16, 818, 67, 1937, 4672, 309, 353, 67, 7688, 30, 468, 1221, 2863, 652, 598, 21980, 5242, 6039, 2353, 468, 1300, 434, 6815, 434, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 2107, 12, 77, 16, 980, 16, 353, 67, 7688, 16, 818, 67, 1937, 4672, 309, 353, 67, 7688, 30, 468, 1221, 2863, 652, 598, 21980, 5242, 6039, 2353, 468, 1300, 434, 6815, 434, 31...
raise errors.BlockDeviceError("Failed to rename the logical volume: %s" % result.output)
_ThrowError("Failed to rename the logical volume: %s", result.output)
def Rename(self, new_id): """Rename this logical volume.
82463074c0c011a83cf2239affbdb44cb2940801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/82463074c0c011a83cf2239affbdb44cb2940801/bdev.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19996, 12, 2890, 16, 394, 67, 350, 4672, 3536, 16019, 333, 6374, 3940, 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, 19996, 12, 2890, 16, 394, 67, 350, 4672, 3536, 16019, 333, 6374, 3940, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def test09_MultiDB(self):
def test10_MultiDB(self):
def test09_MultiDB(self): d1 = self.d if verbose: print '\n', '-=' * 30 print "Running %s.test09_MultiDB..." % self.__class__.__name__
5cd5f12a48d243d447b58558aa5f9080038a827c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/5cd5f12a48d243d447b58558aa5f9080038a827c/test_basics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2163, 67, 5002, 2290, 12, 2890, 4672, 302, 21, 273, 365, 18, 72, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 5908, 67, 5002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 2163, 67, 5002, 2290, 12, 2890, 4672, 302, 21, 273, 365, 18, 72, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 5908, 67, 5002, ...
def _get_free_slot(self): """ Returns the slot number of a free slot, allocates a new one if needed. """ state = self.state r = self.resource if state.first_empty is None: slot_number = state.number_of_slots state.number_of_slots += 1 r[4:8] = IO.encode_uint32(state.number_of_slots) else: slot_number = state.first_e...
def _load_state(self, resource): state = self.state # The header state.version = IO.decode_version(resource[:4]) state.number_of_slots = IO.decode_uint32(resource[4:8]) state.first_empty = IO.decode_link(resource[8:12])
d27c22daf0630253f4ccf2cc0eb47ee78306f168 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d27c22daf0630253f4ccf2cc0eb47ee78306f168/IIndex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 2019, 12, 2890, 16, 1058, 4672, 919, 273, 365, 18, 2019, 468, 1021, 1446, 919, 18, 1589, 273, 1665, 18, 3922, 67, 1589, 12, 3146, 10531, 24, 5717, 919, 18, 2696, 67, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 945, 67, 2019, 12, 2890, 16, 1058, 4672, 919, 273, 365, 18, 2019, 468, 1021, 1446, 919, 18, 1589, 273, 1665, 18, 3922, 67, 1589, 12, 3146, 10531, 24, 5717, 919, 18, 2696, 67, 79...
'defaultarticlelicense': { license, }
'defaultarticlelicense': license,
def buildzip(): parser = optparse.OptionParser(usage="%prog -c CONF [--help] [-o OUTPUT] [-m METABOOK] [--collectionpage TITLE] [-p POSTURL] [ARTICLE] ...") parser.add_option("-c", "--conf", help="config file") parser.add_option("-m", "--metabook", help="JSON encoded text file with book structure") parser.add_option('-...
f58a5ac8ff88283c88eac28f061f93d6d64ceaa8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/f58a5ac8ff88283c88eac28f061f93d6d64ceaa8/apps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4450, 13332, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 11613, 14654, 300, 71, 18733, 306, 413, 5201, 65, 23059, 83, 11550, 65, 23059, 81, 6791, 2090, 51, 3141, 65, 306, 413,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4450, 13332, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 11613, 14654, 300, 71, 18733, 306, 413, 5201, 65, 23059, 83, 11550, 65, 23059, 81, 6791, 2090, 51, 3141, 65, 306, 413,...
if isinstance(existing_index_point, list): existing_index_point.append(current_pos) else: short_index_for_length[current_word_start] = [existing_index_point]
if existing_index_point != current_pos: if isinstance(existing_index_point, set): existing_index_point.add(current_pos) else: short_index_for_length[current_word_start] = set([existing_index_point, current_pos])
def do_index(self, items, length, max_distance): #t0 = time.time() #print "[do_index] %s will index %d items with depth %d" % (str(self), len(items), length) short_index = self.short_index self.ensure_index_depth(length) short_index_for_length = short_index[length] prev_word_start = None; last_index_point_index = 0; i ...
ce75cf48617cdd59371d923935766223e95571ce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/ce75cf48617cdd59371d923935766223e95571ce/sdict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1615, 12, 2890, 16, 1516, 16, 769, 16, 943, 67, 8969, 4672, 468, 88, 20, 273, 813, 18, 957, 1435, 468, 1188, 5158, 2896, 67, 1615, 65, 738, 87, 903, 770, 738, 72, 1516, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1615, 12, 2890, 16, 1516, 16, 769, 16, 943, 67, 8969, 4672, 468, 88, 20, 273, 813, 18, 957, 1435, 468, 1188, 5158, 2896, 67, 1615, 65, 738, 87, 903, 770, 738, 72, 1516, 59...
def eval(self, command, **kwds):
def eval(self, command, *args, **kwds):
def eval(self, command, **kwds): """ Evaluates commands.
7374d001a14b432c2f09e8a327b1d3fb23518126 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/7374d001a14b432c2f09e8a327b1d3fb23518126/scilab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5302, 12, 2890, 16, 1296, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 10271, 815, 4364, 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, 5302, 12, 2890, 16, 1296, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 10271, 815, 4364, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
"serial_no", "hypervisor", "hvparams", "ctime", "mtime", ] +
"hvparams", ] + _SIMPLE_FIELDS +
def Exec(self, feedback_fn): """Remove the instance.
19bed813438c89914ead80e5f3a8e57fcb5bd5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/19bed813438c89914ead80e5f3a8e57fcb5bd5f2/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 3288, 326, 791, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 3889, 12, 2890, 16, 10762, 67, 4293, 4672, 3536, 3288, 326, 791, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.__tmpLine is not None: self.__lines.append(self.__tmpLine) except Exception as ex: s = str(scanner.position()) raise Exception(s + '\n\n' + str(ex))
def create_output(self, lex, ffilename): try: f = open(ffilename, "r") scanner = Scanner(lex, f, ffilename) while True: token = scanner.read() if token[0] is None: break if self.__tmpLine is not None: self.__lines.append(self.__tmpLine) except Exception as ex: s = str(scanner.position()) raise Exception(s + '\n\n' + s...
d91297938e64eaf771349c1d98af16c0cfe3b0c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8874/d91297938e64eaf771349c1d98af16c0cfe3b0c9/CLexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2844, 12, 2890, 16, 5275, 16, 284, 3459, 4672, 775, 30, 284, 273, 1696, 12, 1403, 2550, 16, 315, 86, 7923, 7683, 273, 19074, 12, 4149, 16, 284, 16, 284, 3459, 13, 1323, 1053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2844, 12, 2890, 16, 5275, 16, 284, 3459, 4672, 775, 30, 284, 273, 1696, 12, 1403, 2550, 16, 315, 86, 7923, 7683, 273, 19074, 12, 4149, 16, 284, 16, 284, 3459, 13, 1323, 1053...
SELECTED_BACKGROUND_COLOR = (0.90, 0.93, 0.96) SELECTED_HIGHLIGHT_COLOR = (0.50, 0.50, 0.81)
SELECTED_BACKGROUND_COLOR = (0.92, 0.95, 0.97) SELECTED_HIGHLIGHT_COLOR = (0.43, 0.63, 0.82)
def pack_bubbles(self, hbox, layout): if self.data.unwatched > 0: self.pack_bubble(hbox, layout, self.data.unwatched, self.UNWATCHED_BUBBLE_COLOR) if self.data.downloading > 0: self.pack_bubble(hbox, layout, self.data.downloading, self.DOWNLOADING_BUBBLE_COLOR)
c6f3b04292bbd7dc908dc50dabbd431655a98211 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/c6f3b04292bbd7dc908dc50dabbd431655a98211/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 67, 70, 22298, 1040, 12, 2890, 16, 366, 2147, 16, 3511, 4672, 309, 365, 18, 892, 18, 318, 7585, 329, 405, 374, 30, 365, 18, 2920, 67, 70, 14787, 12, 76, 2147, 16, 3511, 16, 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, 2298, 67, 70, 22298, 1040, 12, 2890, 16, 366, 2147, 16, 3511, 4672, 309, 365, 18, 892, 18, 318, 7585, 329, 405, 374, 30, 365, 18, 2920, 67, 70, 14787, 12, 76, 2147, 16, 3511, 16, 3...
'formats': ('S1','i4', 'f4')})
... 'formats': ('S1','i4', 'f4')})
def loadtxt(fname, dtype=float, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False): """ Load ASCII data from fname into an array and return the array. The data must be regular, same number of values in every row Parameters ---------- fname : filename or a file handle. Support for g...
1ab04d3ed8d4597922055396a9ba17f00bfc86ad /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/1ab04d3ed8d4597922055396a9ba17f00bfc86ad/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 5830, 12, 12749, 16, 3182, 33, 5659, 16, 5678, 2218, 7, 2187, 5654, 33, 7036, 16, 19414, 33, 7036, 16, 2488, 3870, 33, 20, 16, 999, 6842, 33, 7036, 16, 6167, 33, 8381, 4672, 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, 1262, 5830, 12, 12749, 16, 3182, 33, 5659, 16, 5678, 2218, 7, 2187, 5654, 33, 7036, 16, 19414, 33, 7036, 16, 2488, 3870, 33, 20, 16, 999, 6842, 33, 7036, 16, 6167, 33, 8381, 4672, 35...
exitCode = -1
def performOutputProcessing(self, job): """ __performOutputProcessing__ """
2b2f983d6d883cd12fd3a93706b5c39516482b44 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/2b2f983d6d883cd12fd3a93706b5c39516482b44/JobHandling.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 1447, 7798, 12, 2890, 16, 1719, 4672, 3536, 1001, 16092, 1447, 7798, 972, 3536, 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, 3073, 1447, 7798, 12, 2890, 16, 1719, 4672, 3536, 1001, 16092, 1447, 7798, 972, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
try: import egg.trayicona as trayicon
try: import egg.trayicon as trayicon
def __init__(self, watcher, window): try: import egg.trayicona as trayicon except ImportError: try: import _trayicon as trayicon except: return
eaec404c9f6e0ddb98ffc3be9154ad122c8f219a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/eaec404c9f6e0ddb98ffc3be9154ad122c8f219a/trayicon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9527, 16, 2742, 4672, 775, 30, 1930, 25144, 18, 313, 528, 3950, 487, 268, 435, 3950, 1335, 11308, 30, 775, 30, 1930, 389, 313, 528, 3950, 487, 268, 435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9527, 16, 2742, 4672, 775, 30, 1930, 25144, 18, 313, 528, 3950, 487, 268, 435, 3950, 1335, 11308, 30, 775, 30, 1930, 389, 313, 528, 3950, 487, 268, 435, ...
print_cycles([t],outstream=output) output.close() output = file(filename,"r") lines = output.readlines()
sio = StringIO() print_cycles([t],outstream=sio) lines = sio.getvalue().splitlines()
def b(): return 1+2
ee23b196bcda65654da526c0bc92e81c3e6ff69a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/ee23b196bcda65654da526c0bc92e81c3e6ff69a/find_reference_cycles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 327, 404, 15, 22, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 13332, 327, 404, 15, 22, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
s.append(c.decode(prettyPrint, indentLevel, eventualEncoding))
s.append(c.__str__(encoding, prettyPrint, indentLevel))
def decodeContents(self, prettyPrint=False, indentLevel=0, eventualEncoding=DEFAULT_OUTPUT_ENCODING): """Renders the contents of this tag as a string in the given encoding. If encoding is None, returns a Unicode string..""" s=[] for c in self: text = None if isinstance(c, NavigableString): text = c.decodeGivenEventualE...
7300e101f39b7a1a436c6765d140c987cbc58a45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/7300e101f39b7a1a436c6765d140c987cbc58a45/BeautifulSoup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 6323, 12, 2890, 16, 30410, 33, 8381, 16, 3504, 2355, 33, 20, 16, 871, 1462, 4705, 33, 5280, 67, 15527, 67, 14672, 4672, 3536, 10900, 326, 2939, 434, 333, 1047, 487, 279, 533, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 6323, 12, 2890, 16, 30410, 33, 8381, 16, 3504, 2355, 33, 20, 16, 871, 1462, 4705, 33, 5280, 67, 15527, 67, 14672, 4672, 3536, 10900, 326, 2939, 434, 333, 1047, 487, 279, 533, 316...
self.logging.info("Your job identifier is: %s" % jOut['parent'])
self.logging.debug("Your job identifier is: %s" % jOut['parent'])
def submit( self, obj, requirements='', config ='', service='' ): """ submit a jdl to glite ends with a call to retrieve wms and job,gridid asssociation """
55a0d373215e2d2c4f99fe71353cbd62af3d7838 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/55a0d373215e2d2c4f99fe71353cbd62af3d7838/SchedulerGLite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4879, 12, 365, 16, 1081, 16, 8433, 2218, 2187, 642, 273, 11, 2187, 1156, 2218, 11, 262, 30, 3536, 4879, 279, 525, 5761, 358, 5118, 1137, 3930, 598, 279, 745, 358, 4614, 341, 959, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4879, 12, 365, 16, 1081, 16, 8433, 2218, 2187, 642, 273, 11, 2187, 1156, 2218, 11, 262, 30, 3536, 4879, 279, 525, 5761, 358, 5118, 1137, 3930, 598, 279, 745, 358, 4614, 341, 959, 471, ...
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Markus F.X.J. Oberhumer
Copyright (C) 1998 - 2003 Markus F.X.J. Oberhumer.
def help_about(app, timeout=0, sound=True): if sound: app.audio.playSample("about") t = _("A Python Solitaire Game Collection\n") if app.miscrandom.random() < 0.8: t = _("A World Domination Project\n") strings=(_("&Nice"), _("&Credits...")) if timeout: strings=(_("&Enjoy"),) version = _("Version %s") % VERSION d = Pyso...
e9b9145fd0600e60ca3d13081a040c01aa4a82f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11444/e9b9145fd0600e60ca3d13081a040c01aa4a82f4/help.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 21071, 12, 2910, 16, 2021, 33, 20, 16, 14190, 33, 5510, 4672, 309, 14190, 30, 595, 18, 11509, 18, 1601, 8504, 2932, 21071, 7923, 268, 273, 389, 2932, 37, 6600, 348, 355, 2333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 21071, 12, 2910, 16, 2021, 33, 20, 16, 14190, 33, 5510, 4672, 309, 14190, 30, 595, 18, 11509, 18, 1601, 8504, 2932, 21071, 7923, 268, 273, 389, 2932, 37, 6600, 348, 355, 2333...
def guideDownloaded(self, info):
def guide_downloaded(self, info):
def guideDownloaded(self, info): self.updated_url = unicode(info["updated-url"]) try: parser = GuideHTMLParser(self.updated_url) parser.feed(info["body"]) parser.close() except (SystemExit, KeyboardInterrupt): raise except: pass else: self.title = unicode(parser.title) if parser.favicon is not None: self.favicon = unic...
574f301084bbbae269aa06832c79ed5b8adfccbd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/574f301084bbbae269aa06832c79ed5b8adfccbd/guide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7343, 67, 2378, 4230, 12, 2890, 16, 1123, 4672, 365, 18, 7007, 67, 718, 273, 5252, 12, 1376, 9614, 7007, 17, 718, 6, 5717, 775, 30, 2082, 273, 13018, 4870, 2678, 12, 2890, 18, 7007, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7343, 67, 2378, 4230, 12, 2890, 16, 1123, 4672, 365, 18, 7007, 67, 718, 273, 5252, 12, 1376, 9614, 7007, 17, 718, 6, 5717, 775, 30, 2082, 273, 13018, 4870, 2678, 12, 2890, 18, 7007, ...
def SetHashLong(id, idx, value):
def SetHashLong(hashid, idx, value):
def SetHashLong(id, idx, value): raise DeprecatedIDCError, "Use python pickles instead."
76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 2310, 3708, 12, 2816, 350, 16, 2067, 16, 460, 4672, 1002, 9336, 734, 39, 668, 16, 315, 3727, 5790, 6002, 1040, 3560, 1199, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 1000, 2310, 3708, 12, 2816, 350, 16, 2067, 16, 460, 4672, 1002, 9336, 734, 39, 668, 16, 315, 3727, 5790, 6002, 1040, 3560, 1199, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
bufs.append(c[:i+1]) self._unread(c[i+1:]) return ''.join(bufs) bufs.append(c) size = size - len(c) readsize = min(size, readsize * 2)
if size <= i: i = size - 1 self._unread(c[i+1:]) return bufs + c[:i+1] else: if len(c) > size: i = size - 1 bufs = bufs + c size = size - len(c) readsize = min(size, int(readsize * 1.1)) if readsize > self.min_readsize: self.min_readsize = readsize
def readline(self, size=-1): if size < 0: size = sys.maxint bufs = [] readsize = min(100, size) # Read from the file in small chunks while True: if size == 0: return "".join(bufs) # Return resulting line
8cdb86f4f4e29fe44e6c1f56381203bdad29fefb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8cdb86f4f4e29fe44e6c1f56381203bdad29fefb/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 29711, 21, 4672, 309, 963, 411, 374, 30, 963, 273, 2589, 18, 1896, 474, 1681, 87, 273, 5378, 855, 1467, 273, 1131, 12, 6625, 16, 963, 13, 565, 468, 2720, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 963, 29711, 21, 4672, 309, 963, 411, 374, 30, 963, 273, 2589, 18, 1896, 474, 1681, 87, 273, 5378, 855, 1467, 273, 1131, 12, 6625, 16, 963, 13, 565, 468, 2720, 62...
raise ServerError( "Couldn't extract allpages special page. Make sure you're using MonoBook skin.")
raise ServerError("Couldn't extract allpages special page. Make sure you're using MonoBook skin.")
def _allpagesOld(self, start='!', namespace=0, includeredirects=True, throttle=True): """ Yield all Pages from Special:Allpages.
d5499d880622cba09dbd5cfa71503029ad2e2fcf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/d5499d880622cba09dbd5cfa71503029ad2e2fcf/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 454, 7267, 7617, 12, 2890, 16, 787, 2218, 5, 2187, 1981, 33, 20, 16, 2823, 89, 765, 329, 867, 87, 33, 5510, 16, 18304, 33, 5510, 4672, 3536, 31666, 777, 22648, 628, 13409, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 454, 7267, 7617, 12, 2890, 16, 787, 2218, 5, 2187, 1981, 33, 20, 16, 2823, 89, 765, 329, 867, 87, 33, 5510, 16, 18304, 33, 5510, 4672, 3536, 31666, 777, 22648, 628, 13409, 30, 1...
command = commandBase + " -o " + source.outfile \ + " " + source.filename
command = commandBase + " -I" + os.path.dirname(source.filename) \ + " -o " + source.outfile + " " + source.filename
def compileSources(commandBase, sources): for source in sources: if not os.path.isfile(source.outfile): command = commandBase + " -o " + source.outfile \ + " " + source.filename print command os.system(command) if not os.path.isfile(source.outfile): print 'error - compiling \'' + source.filename \ + '\' failed. abortin...
9192a649c489ae6d9d62d5f57ebd7c6d206b8d28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4467/9192a649c489ae6d9d62d5f57ebd7c6d206b8d28/CompileCudaTests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 8628, 12, 3076, 2171, 16, 5550, 4672, 364, 1084, 316, 5550, 30, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 3168, 18, 26050, 4672, 1296, 273, 1296, 2171, 397, 315, 300, 45, 6, 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, 4074, 8628, 12, 3076, 2171, 16, 5550, 4672, 364, 1084, 316, 5550, 30, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 3168, 18, 26050, 4672, 1296, 273, 1296, 2171, 397, 315, 300, 45, 6, 3...
def __init__(self, bonsaiQuery):
def __init__(self, data):
def __init__(self, bonsaiQuery): try: # this is a fix for non-ascii characters # readlines() + join is being used because read() is not guaranteed # to work. because bonsai does not give us an encoding to work with # it impossible to be 100% sure what to decode it as but latin1 covers # the broadest base data = "".join...
11e4f3bba7de1cd8a3f6529b490d24bdd74108b2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/11e4f3bba7de1cd8a3f6529b490d24bdd74108b2/bonsaipoller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 4672, 775, 30, 468, 333, 353, 279, 2917, 364, 1661, 17, 9184, 3949, 468, 17546, 1435, 397, 1233, 353, 3832, 1399, 2724, 855, 1435, 353, 486, 15403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 4672, 775, 30, 468, 333, 353, 279, 2917, 364, 1661, 17, 9184, 3949, 468, 17546, 1435, 397, 1233, 353, 3832, 1399, 2724, 855, 1435, 353, 486, 15403, ...
def select(self, domain = None, fields=None):
def select(self, domain=None, fields=None):
def select(self, domain = None, fields=None): ids = self.search(domain or []) return self.read(ids, fields or [])
6f22574b1f486fa0c2f06dca6fa563620c79fe97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10003/6f22574b1f486fa0c2f06dca6fa563620c79fe97/component.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 2890, 16, 2461, 33, 7036, 16, 1466, 33, 7036, 4672, 3258, 273, 365, 18, 3072, 12, 4308, 578, 5378, 13, 327, 365, 18, 896, 12, 2232, 16, 1466, 578, 5378, 13, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 2890, 16, 2461, 33, 7036, 16, 1466, 33, 7036, 4672, 3258, 273, 365, 18, 3072, 12, 4308, 578, 5378, 13, 327, 365, 18, 896, 12, 2232, 16, 1466, 578, 5378, 13, 2, -100, -100, ...
global verbose, recurse, dryrun
global verbose, recurse, dryrun, makebackup
def main(): import getopt global verbose, recurse, dryrun try: opts, args = getopt.getopt(sys.argv[1:], "drvh", ["dryrun", "recurse", "verbose", "help"]) except getopt.error, msg: usage(msg) return for o, a in opts: if o in ('-d', '--dryrun'): dryrun += 1 elif o in ('-r', '--recurse'): recurse += 1 elif o in ('-v', '--...
7a5d465f94d8ceb0e4b3ca5101ae8298a1563d4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/7a5d465f94d8ceb0e4b3ca5101ae8298a1563d4c/reindent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 2552, 3988, 16, 11502, 16, 10299, 2681, 16, 1221, 9572, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 1930, 336, 3838, 2552, 3988, 16, 11502, 16, 10299, 2681, 16, 1221, 9572, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 315,...
print( " Description = %s", hBand.GetDescription() )
print( " Description = %s" % hBand.GetDescription() )
def main( argv = None ): bComputeMinMax = False bSample = False bShowGCPs = True bShowMetadata = True bShowRAT=True bStats = False bApproxStats = True bShowColorTable = True bComputeChecksum = False bReportHistograms = False pszFilename = None papszExtraMDDomains = [ ] pszProjection = None hTransform = None #/* Must ...
13d2ba1b3323161228ae4e77aa0f9987d3688ebe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/13d2ba1b3323161228ae4e77aa0f9987d3688ebe/gdalinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5261, 273, 599, 262, 30, 225, 324, 7018, 17454, 273, 1083, 324, 8504, 273, 1083, 324, 5706, 43, 4258, 87, 273, 1053, 324, 5706, 2277, 273, 1053, 324, 5706, 54, 789, 33, 5510,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5261, 273, 599, 262, 30, 225, 324, 7018, 17454, 273, 1083, 324, 8504, 273, 1083, 324, 5706, 43, 4258, 87, 273, 1053, 324, 5706, 2277, 273, 1053, 324, 5706, 54, 789, 33, 5510,...
progress('Map page size (%i,%i)'% (self.page_x,self.page_y))
progress('Map page size (%f,%f)'% (self.page_x,self.page_y))
def __init__(self, minla, maxla, minlo, maxlo, svgStream=None): progress("Lat between %f and %f, Long %f and %f" % (minla, maxla, minlo, maxlo)) if svgStream==None: self.wr = sys.stdout.write else: self.wr = svgStream.write self.marks = [] # List of marks on the map to avoid overlap self.midla = (minla + maxla)/2....
b4599eb989298f6ab49fec9a0e4b4327fab4f9be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3308/b4599eb989298f6ab49fec9a0e4b4327fab4f9be/day.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1131, 11821, 16, 943, 11821, 16, 1131, 383, 16, 943, 383, 16, 9804, 1228, 33, 7036, 4672, 225, 4007, 2932, 6607, 3086, 738, 74, 471, 738, 74, 16, 3407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1131, 11821, 16, 943, 11821, 16, 1131, 383, 16, 943, 383, 16, 9804, 1228, 33, 7036, 4672, 225, 4007, 2932, 6607, 3086, 738, 74, 471, 738, 74, 16, 3407, ...
print >> sys.stderr, "Warning: msgid '%s' in %s already exists " \
print >> sys.stderr, (u"Warning: msgid '%s' in %s already exists " \
def translate(self, msgid, domain=None, mapping=None, default=None, # Position is not part of the ITALExpressionEngine # interface position=None):
3f41b9d4fbd4beaf2d7292086da4b6d2d4140f25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9834/3f41b9d4fbd4beaf2d7292086da4b6d2d4140f25/talgettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 16, 24389, 16, 2461, 33, 7036, 16, 2874, 33, 7036, 16, 805, 33, 7036, 16, 468, 11010, 353, 486, 1087, 434, 326, 467, 20849, 2300, 4410, 468, 1560, 1754, 33, 7036, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4204, 12, 2890, 16, 24389, 16, 2461, 33, 7036, 16, 2874, 33, 7036, 16, 805, 33, 7036, 16, 468, 11010, 353, 486, 1087, 434, 326, 467, 20849, 2300, 4410, 468, 1560, 1754, 33, 7036, 4672,...
self._addPathToSet(implicit_dirs_add, "/".split(chentry.name)[:-1]);
self._addPathToSet(implicit_dirs_add, split(chentry.name)[0])
def convertDiff(self, chset): """ Fills a chset with the details data coming by a diff between chset lin_ancestor and revision (i.e. the linearized history) """ if (not chset.lin_ancestor or not chset.revision or chset.lin_ancestor == chset.revision): raise GetUpstreamChangesetsFailure( "Internal error: MonotoneDiffPar...
9585261e2c63065406aca73b7d02ec7f1e1c5096 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/9585261e2c63065406aca73b7d02ec7f1e1c5096/monotone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 5938, 12, 2890, 16, 462, 542, 4672, 3536, 14192, 87, 279, 462, 542, 598, 326, 3189, 501, 19283, 635, 279, 3122, 3086, 462, 542, 4739, 67, 28798, 471, 6350, 261, 77, 18, 73, 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, 1765, 5938, 12, 2890, 16, 462, 542, 4672, 3536, 14192, 87, 279, 462, 542, 598, 326, 3189, 501, 19283, 635, 279, 3122, 3086, 462, 542, 4739, 67, 28798, 471, 6350, 261, 77, 18, 73, 18, ...
print >>f, ' "$@"'
print >>f, ' -t 0 "$@"'
def addVarnishRunner(self): target=os.path.join(self.buildout["buildout"]["bin-directory"],self.name) f=open(target, "wt") print >>f, "#!/bin/sh" print >>f, "exec %s \\" % self.options["daemon"] if self.options.has_key("user"): print >>f, ' -p user=%s \\' % self.options["user"] if self.options.has_key("group"): prin...
f247823cad15478e9cabc2d2a4e98aeaec3515f1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10301/f247823cad15478e9cabc2d2a4e98aeaec3515f1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 58, 1303, 1468, 9709, 12, 2890, 4672, 1018, 33, 538, 18, 803, 18, 5701, 12, 2890, 18, 3510, 659, 9614, 3510, 659, 6, 6362, 6, 4757, 17, 5149, 6, 6487, 2890, 18, 529, 13, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 58, 1303, 1468, 9709, 12, 2890, 4672, 1018, 33, 538, 18, 803, 18, 5701, 12, 2890, 18, 3510, 659, 9614, 3510, 659, 6, 6362, 6, 4757, 17, 5149, 6, 6487, 2890, 18, 529, 13, 284, ...
self.mc.J_il(rx86.Conditions[condition], self.mc.tell()) else: self.mc.JMP_l(self.mc.tell()) return self.mc.tell() - 4
mc.J_il(rx86.Conditions[condition], mc.tell()) else: mc.JMP_l(mc.tell()) guard_token.faildescr._x86_adr_jump_offset = mc.tell() - 4
def implement_guard(self, guard_token, condition=None): self.mc.reserve_bytes(guard_token.recovery_stub_size()) self.pending_guard_tokens.append(guard_token) # XXX: These jumps are patched later, the self.mc.tell() are just # dummy values if condition: self.mc.J_il(rx86.Conditions[condition], self.mc.tell()) else: self...
180c4a94a92fb4db4243be00b648118ff5f29d48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/180c4a94a92fb4db4243be00b648118ff5f29d48/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2348, 67, 24594, 12, 2890, 16, 11026, 67, 2316, 16, 2269, 33, 7036, 4672, 365, 18, 13952, 18, 455, 6527, 67, 3890, 12, 24594, 67, 2316, 18, 23963, 67, 12847, 67, 1467, 10756, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2348, 67, 24594, 12, 2890, 16, 11026, 67, 2316, 16, 2269, 33, 7036, 4672, 365, 18, 13952, 18, 455, 6527, 67, 3890, 12, 24594, 67, 2316, 18, 23963, 67, 12847, 67, 1467, 10756, 365, 18, ...
filter(database.commands_on_host.c.current_state != 'over-timed').\
filter(database.commands_on_host.c.current_state != 'over_timed').\
def localProxyMayContinue(myCommandOnHostID): """ attempt to analyse coh in the same command in order to now how we may advance. """ (myCoH, myC, myT) = gatherCoHStuff(myCommandOnHostID) if myCoH == None: return False # TODO : when an error occur, do we want to clean the local proxy ? # Clean algorithm: # client => al...
321313c05802923dc31717f6bbd064db82e37e55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/321313c05802923dc31717f6bbd064db82e37e55/scheduling.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 3886, 49, 528, 12378, 12, 4811, 2189, 1398, 2594, 734, 4672, 3536, 4395, 358, 31087, 1825, 76, 316, 326, 1967, 1296, 316, 1353, 358, 2037, 3661, 732, 2026, 8312, 18, 3536, 261, 481...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 3886, 49, 528, 12378, 12, 4811, 2189, 1398, 2594, 734, 4672, 3536, 4395, 358, 31087, 1825, 76, 316, 326, 1967, 1296, 316, 1353, 358, 2037, 3661, 732, 2026, 8312, 18, 3536, 261, 481...
if iat and ilt and ilt[idx].AddressOfData != iat[idx].AddressOfData: imp_bound = iat[idx].AddressOfData else:
try: if iat and ilt and ilt[idx].AddressOfData != iat[idx].AddressOfData: imp_bound = iat[idx].AddressOfData else: imp_bound = None except IndexError:
def parse_imports(self, original_first_thunk, first_thunk, forwarder_chain): """Parse the imported symbols. It will fill a list, which will be avalable as the dictionary attribute "imports". Its keys will be the DLL names and the values all the symbols imported from that object. """ imported_symbols = [] imports_sect...
d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/213/d0ca75794f69f1d09fd6d31d40ba2f1e9b3b7fb4/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 21350, 12, 2890, 16, 2282, 67, 3645, 67, 451, 1683, 16, 1122, 67, 451, 1683, 16, 364, 20099, 67, 5639, 4672, 3536, 3201, 326, 9101, 7963, 18, 225, 2597, 903, 3636, 279, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 21350, 12, 2890, 16, 2282, 67, 3645, 67, 451, 1683, 16, 1122, 67, 451, 1683, 16, 364, 20099, 67, 5639, 4672, 3536, 3201, 326, 9101, 7963, 18, 225, 2597, 903, 3636, 279, 666, ...
self.checkequal(('http://www.python.org', '', ''), S, 'rpartition', '?')
self.checkequal(('', '', 'http://www.python.org'), S, 'rpartition', '?')
def test_rpartition(self):
29a5fdb7caf372144a085247d63440d1abb51b5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/29a5fdb7caf372144a085247d63440d1abb51b5c/string_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 86, 10534, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 86, 10534, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
("cAlternameFileName", c_wchar * 14)]
("cAlternateFileName", c_wchar * 14)]
def RGB(red, green, blue): return red + (green << 8) + (blue << 16)
e375cf443384fa45a1fc8cb6865685a4a16e41da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e375cf443384fa45a1fc8cb6865685a4a16e41da/wintypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11510, 12, 1118, 16, 10004, 16, 8024, 4672, 327, 1755, 397, 261, 11571, 2296, 1725, 13, 397, 261, 14081, 2296, 2872, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 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, 11510, 12, 1118, 16, 10004, 16, 8024, 4672, 327, 1755, 397, 261, 11571, 2296, 1725, 13, 397, 261, 14081, 2296, 2872, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
hypervisor.add_filesystem(elements[1], default_filesystem, mntpnt='/')
hypervisor.add_filesystem(elements[1], default_filesystem, filename=tmpfile, mntpnt='/')
def set_disk_layout(self, hypervisor): default_filesystem = hypervisor.distro.preferred_filesystem() if not self.options.part: rootsize = parse_size(self.options.rootsize) swapsize = parse_size(self.options.swapsize) optsize = parse_size(self.options.optsize) if hypervisor.preferred_storage == VMBuilder.hypervisor.STOR...
76841c913d8739df6be0be00c0e5ceea8957824b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1496/76841c913d8739df6be0be00c0e5ceea8957824b/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10863, 67, 6741, 12, 2890, 16, 9512, 10227, 4672, 805, 67, 17846, 273, 9512, 10227, 18, 4413, 303, 18, 23616, 67, 17846, 1435, 309, 486, 365, 18, 2116, 18, 2680, 30, 1365, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10863, 67, 6741, 12, 2890, 16, 9512, 10227, 4672, 805, 67, 17846, 273, 9512, 10227, 18, 4413, 303, 18, 23616, 67, 17846, 1435, 309, 486, 365, 18, 2116, 18, 2680, 30, 1365, 146...
self.body.append ('\\end{columns}\n')
self.out.append ('\\end{columns}\n')
def depart_columnset (self, node): assert self.in_columnset, "not in column set" self.in_columnset = False self.body.append ('\\end{columns}\n')
7fa34d63a11663a7daeb27efb01eb826b364662a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1278/7fa34d63a11663a7daeb27efb01eb826b364662a/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 2827, 542, 261, 2890, 16, 756, 4672, 1815, 365, 18, 267, 67, 2827, 542, 16, 315, 902, 316, 1057, 444, 6, 365, 18, 267, 67, 2827, 542, 273, 1083, 365, 18, 3432, 18, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 2827, 542, 261, 2890, 16, 756, 4672, 1815, 365, 18, 267, 67, 2827, 542, 16, 315, 902, 316, 1057, 444, 6, 365, 18, 267, 67, 2827, 542, 273, 1083, 365, 18, 3432, 18, 6923, ...
offsets.append((len(ids), len(e.msgid), len(strs), len(e.msgstr))) ids += e._decode(e.msgid) + '\0' strs += e._decode(e.msgstr) + '\0'
msgid = e._decode(e.msgid) msgstr = e._decode(e.msgstr) offsets.append((len(ids), len(msgid), len(strs), len(msgstr))) ids += msgid + '\0' strs += msgstr + '\0'
def cmp(_self, other): if _self.msgid > other.msgid: return 1 elif _self.msgid < other.msgid: return -1 else: return 0
56ac94824c255ef3d4d9dbfd4ffed5d8fc5d55f7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/56ac94824c255ef3d4d9dbfd4ffed5d8fc5d55f7/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 24899, 2890, 16, 1308, 4672, 309, 389, 2890, 18, 3576, 350, 405, 1308, 18, 3576, 350, 30, 327, 404, 1327, 389, 2890, 18, 3576, 350, 411, 1308, 18, 3576, 350, 30, 327, 300, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 24899, 2890, 16, 1308, 4672, 309, 389, 2890, 18, 3576, 350, 405, 1308, 18, 3576, 350, 30, 327, 404, 1327, 389, 2890, 18, 3576, 350, 411, 1308, 18, 3576, 350, 30, 327, 300, 21, ...
self.assertEquals(jdict['status'], 'new')
self.assertEquals(jdict['status'], 'completed')
def _done_job(self, job_id): self.assertEquals(type(job_id), str) jdict = self.dsage_server.get_job_by_id(job_id) self.assertEquals(jdict['status'], 'new') self.assertEquals(jdict['output'], 'Nothing.')
c9375d5a2f6f15e62e3d47a256c35f844f980db3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c9375d5a2f6f15e62e3d47a256c35f844f980db3/test_remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8734, 67, 4688, 12, 2890, 16, 1719, 67, 350, 4672, 365, 18, 11231, 8867, 12, 723, 12, 4688, 67, 350, 3631, 609, 13, 525, 1576, 273, 365, 18, 2377, 410, 67, 3567, 18, 588, 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, 8734, 67, 4688, 12, 2890, 16, 1719, 67, 350, 4672, 365, 18, 11231, 8867, 12, 723, 12, 4688, 67, 350, 3631, 609, 13, 525, 1576, 273, 365, 18, 2377, 410, 67, 3567, 18, 588, 67, ...
self.dbsession.save(discount_item)
meta.Session.add(discount_item)
def apply_voucher(self, invoice, voucher): # Voucher code calculation for vproduct in voucher.products: for ii in invoice.items: # if we have a category match if ii.product.category == vproduct.product.category: # The qty we will give if ii.qty < vproduct.qty: qty = ii.qty else: qty = vproduct.qty
8712086b268b89a0e34820c443f605d37ceeeaf0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/8712086b268b89a0e34820c443f605d37ceeeaf0/registration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 90, 14329, 12, 2890, 16, 9179, 16, 331, 14329, 4672, 468, 776, 14329, 981, 11096, 364, 331, 5896, 316, 331, 14329, 18, 18736, 30, 364, 6072, 316, 9179, 18, 3319, 30, 468, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 90, 14329, 12, 2890, 16, 9179, 16, 331, 14329, 4672, 468, 776, 14329, 981, 11096, 364, 331, 5896, 316, 331, 14329, 18, 18736, 30, 364, 6072, 316, 9179, 18, 3319, 30, 468, 309...
parts = line.split()
def extract(self, inputfile, line): """Extract information from the file object inputfile."""
303e38eae4d2725f7c85ff7c8244b3be9c15f9b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8167/303e38eae4d2725f7c85ff7c8244b3be9c15f9b1/gamessparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 810, 768, 16, 980, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 810, 768, 16, 980, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sage: E=EllipticCurve('14a1')
sage: E = EllipticCurve('14a1')
def has_nonsplit_multiplicative_reduction(self): r""" Return True if there is non-split multiplicative reduction.
09c6e284454d84d795d84e6a2368a666f2530757 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/09c6e284454d84d795d84e6a2368a666f2530757/ell_local_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 5836, 4939, 67, 7027, 28884, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2000, 1053, 309, 1915, 353, 1661, 17, 4939, 3309, 28884, 225, 20176, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 5836, 4939, 67, 7027, 28884, 67, 1118, 4062, 12, 2890, 4672, 436, 8395, 2000, 1053, 309, 1915, 353, 1661, 17, 4939, 3309, 28884, 225, 20176, 18, 2, -100, -100, -100, -100, -100,...
message_info_db_name = options["Storage", "messageinfo_storage_file"] message_info_db_name = os.path.expanduser(message_info_db_name)
message_info_db_name = get_pathname_option("Storage", "messageinfo_storage_file")
def store(self): if self.db is not None: self.db.sync()
3aad957dbdd745d6aaa0fe2bd5e5c1b45503d405 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/3aad957dbdd745d6aaa0fe2bd5e5c1b45503d405/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 12, 2890, 4672, 309, 365, 18, 1966, 353, 486, 599, 30, 365, 18, 1966, 18, 8389, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 1707, 12, 2890, 4672, 309, 365, 18, 1966, 353, 486, 599, 30, 365, 18, 1966, 18, 8389, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print `header`
def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') # Should we also test for FSSpecs or FSRefs? header = input.read(AS_HEADER_LENGTH) print `header` try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header e...
695b33b02a0288819c2b0e61f5b1e28bcd5ac966 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/695b33b02a0288819c2b0e61f5b1e28bcd5ac966/applesingle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2630, 16, 876, 16, 400, 3700, 33, 20, 4672, 309, 618, 12, 2630, 13, 422, 618, 2668, 11, 4672, 810, 273, 1696, 12, 2630, 16, 296, 6731, 6134, 468, 9363, 732, 2546, 1842, 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, 2495, 12, 2630, 16, 876, 16, 400, 3700, 33, 20, 4672, 309, 618, 12, 2630, 13, 422, 618, 2668, 11, 4672, 810, 273, 1696, 12, 2630, 16, 296, 6731, 6134, 468, 9363, 732, 2546, 1842, 364...
for key, value in [pair.split("=",1) for pair in cookie_pairs]: params[key] = value
for key, value in [pair.split("=", 1) for pair in cookie_pairs]: params[key] = base64.decodestring(value)
def moin_session(request, **kw): """ Authenticate via cookie. We don't handle initial logins (except to set the appropriate cookie), just ongoing sessions, and logout. Use another method for initial login. """ import hmac import base64 username = kw.get('name') login = kw.get('login') logout = kw.get('logout') user_ob...
ef1096937fe84fb3d22b2765bd2a87780d73b2fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/ef1096937fe84fb3d22b2765bd2a87780d73b2fa/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 885, 67, 3184, 12, 2293, 16, 2826, 9987, 4672, 3536, 26644, 3970, 3878, 18, 1660, 2727, 1404, 1640, 2172, 613, 2679, 261, 14137, 358, 444, 326, 5505, 3878, 3631, 2537, 30542, 8856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 312, 885, 67, 3184, 12, 2293, 16, 2826, 9987, 4672, 3536, 26644, 3970, 3878, 18, 1660, 2727, 1404, 1640, 2172, 613, 2679, 261, 14137, 358, 444, 326, 5505, 3878, 3631, 2537, 30542, 8856, ...
request.write('ThisWillCauseHandshakeError')
request.connection.write('ThisWillCauseHandshakeError')
def web_socket_do_extra_handshake(request): request.write('ThisWillCauseHandshakeError')
e3f2511998a57246ece7a44ac60fb19ead7299ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/e3f2511998a57246ece7a44ac60fb19ead7299ba/handshake-error_wsh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3311, 67, 7814, 67, 2896, 67, 7763, 67, 2349, 7478, 12, 2293, 4672, 590, 18, 4071, 18, 2626, 2668, 2503, 13670, 10683, 14545, 668, 6134, 282, 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, 3311, 67, 7814, 67, 2896, 67, 7763, 67, 2349, 7478, 12, 2293, 4672, 590, 18, 4071, 18, 2626, 2668, 2503, 13670, 10683, 14545, 668, 6134, 282, 2, -100, -100, -100, -100, -100, -100, -100,...
if len(sys.argv):
if len(sys.argv) > 1:
def make_app(global_conf=None): from middleware.classpublisher import ClassPublisher from athemeweb.webroot import WebRoot real_app = ClassPublisher(WebRoot()) from paste.exceptions.errormiddleware import ErrorMiddleware error_app = ErrorMiddleware(real_app, global_conf=global_conf) from paste.session import SessionM...
a3ffb148f9b031a3dafcd061f19e9b59837902d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11146/a3ffb148f9b031a3dafcd061f19e9b59837902d4/launch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2910, 12, 6347, 67, 3923, 33, 7036, 4672, 628, 5827, 18, 1106, 26018, 1930, 1659, 15960, 628, 225, 421, 351, 359, 24008, 18, 4875, 3085, 1930, 2999, 2375, 2863, 67, 2910, 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, 1221, 67, 2910, 12, 6347, 67, 3923, 33, 7036, 4672, 628, 5827, 18, 1106, 26018, 1930, 1659, 15960, 628, 225, 421, 351, 359, 24008, 18, 4875, 3085, 1930, 2999, 2375, 2863, 67, 2910, 273, ...
unit_tests = (POSIXProcessTestCase,)
def test_main(): unit_tests = (ProcessTestCase, POSIXProcessTestCase, Win32ProcessTestCase, CommandTests, ProcessTestCaseNoPoll, HelperFunctionTests) unit_tests = (POSIXProcessTestCase,) support.run_unittest(*unit_tests) support.reap_children()
ff12dc0235fd4e258ec4dba9a1ff8dee2f44e1fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/ff12dc0235fd4e258ec4dba9a1ff8dee2f44e1fd/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 2836, 67, 16341, 273, 261, 2227, 4709, 2449, 16, 13803, 31773, 2227, 4709, 2449, 16, 21628, 1578, 2227, 4709, 2449, 16, 3498, 14650, 16, 4389, 4709, 2449, 2279, 1908...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 2836, 67, 16341, 273, 261, 2227, 4709, 2449, 16, 13803, 31773, 2227, 4709, 2449, 16, 21628, 1578, 2227, 4709, 2449, 16, 3498, 14650, 16, 4389, 4709, 2449, 2279, 1908...
outstr = stringio.StringIO('')
outstr = StringIO.StringIO('')
def getSectionLabels_Root(lineinfo, section_prefix, label_prefix): prev_txt = '' inside_env = 0 prev_env = '' outstr = stringio.StringIO('') pres_depth = len(section_prefix) #print '+getSectionLabels_Root: lineinfo = [%s]' % lineinfo for line in lineinfo.splitlines(): if not line: continue # throw away leading white-...
2beecaa679edc16c8df0c18a1c9a8b382023a71f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6145/2beecaa679edc16c8df0c18a1c9a8b382023a71f/outline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22103, 5888, 67, 2375, 12, 1369, 1376, 16, 2442, 67, 3239, 16, 1433, 67, 3239, 4672, 2807, 67, 5830, 273, 875, 4832, 67, 3074, 273, 374, 2807, 67, 3074, 273, 875, 596, 701, 273, 15777,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22103, 5888, 67, 2375, 12, 1369, 1376, 16, 2442, 67, 3239, 16, 1433, 67, 3239, 4672, 2807, 67, 5830, 273, 875, 4832, 67, 3074, 273, 374, 2807, 67, 3074, 273, 875, 596, 701, 273, 15777,...
self.mRURL = stringutils.md5(hash)
self.mRURL = stringutils.md5digest(hash)
def generateRURL(self): # Format is: # # <<hash code>> *("-0"> .ics if (self.mRURL is None) or (len(self.mRURL) == 0): # Generate hash code hash = "" hash += self.getMapKey() hash += ":" hash += str(self.getSeq()) hash += ":"
bb7e74c9134caf1ba7343e4367e11808dc8bea62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/666/bb7e74c9134caf1ba7343e4367e11808dc8bea62/component.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 54, 1785, 12, 2890, 4672, 468, 4077, 353, 30, 468, 468, 2296, 2816, 981, 9778, 380, 2932, 17, 20, 6441, 263, 2102, 309, 261, 2890, 18, 81, 54, 1785, 353, 599, 13, 578, 261, 189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 54, 1785, 12, 2890, 4672, 468, 4077, 353, 30, 468, 468, 2296, 2816, 981, 9778, 380, 2932, 17, 20, 6441, 263, 2102, 309, 261, 2890, 18, 81, 54, 1785, 353, 599, 13, 578, 261, 189...
report_sxw.report_sxw('report.training.subscription.cancel','training.subscription','addons/training/report/trainining_cancel.rml',parser=training_subscription_cancel_report)
def __init__(self, cr, uid, name, context): super(training_subscription_cancel_report, self).__init__(cr, uid, name, context) self.localcontext.update({ 'time': time, })
c003b9198a46d015d8fa912a1cc60fa8be490e13 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/c003b9198a46d015d8fa912a1cc60fa8be490e13/in_construction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 819, 4672, 2240, 12, 17584, 67, 11185, 67, 10996, 67, 6006, 16, 365, 2934, 972, 2738, 972, 12, 3353, 16, 4555, 16, 508, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4422, 16, 4555, 16, 508, 16, 819, 4672, 2240, 12, 17584, 67, 11185, 67, 10996, 67, 6006, 16, 365, 2934, 972, 2738, 972, 12, 3353, 16, 4555, 16, 508, 16...
if verbose: print 'unpack list wrong size' try: a, b = l raise TestFailed except ValueError: pass
Unpacking non-sequence
def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError
3981511070311e958bd2cd48b1ab16b24f8b350e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3981511070311e958bd2cd48b1ab16b24f8b350e/test_unpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'psfex.xml' : { 'XML_elem' : 'PARAM', 'ATTR_name' : 'name', 'ATTR_values': (('FWHM_Min', 'psffwhmmin'), ('FWHM_Mean', 'psffwhm'), ('FWHM_Max', 'psffwhmmax'), ('Elongation_Min', 'psfelmin'), ('Elongation_Mean', 'psfel'), ('Elongation_Max', 'psfelmax'), ('Chi2_Min', 'psfchi2min'), ('Chi2_Mean', 'psfch...
def ingestQFitsInResults(fitsinId, g): """ Stores results from QFits-in outputs. """ imgName = g.execute("""
b41307233d9f7c8ec1503c3a77fa9f0146c4afe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/b41307233d9f7c8ec1503c3a77fa9f0146c4afe7/wrapper_processing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29105, 53, 42, 1282, 382, 3447, 12, 18352, 267, 548, 16, 314, 4672, 3536, 20296, 455, 1686, 628, 2238, 42, 1282, 17, 267, 6729, 18, 3536, 225, 3774, 461, 273, 314, 18, 8837, 2932, 3660...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29105, 53, 42, 1282, 382, 3447, 12, 18352, 267, 548, 16, 314, 4672, 3536, 20296, 455, 1686, 628, 2238, 42, 1282, 17, 267, 6729, 18, 3536, 225, 3774, 461, 273, 314, 18, 8837, 2932, 3660...
if 'solution_dict' in kwds and kwds['solution_dict']==True:
if kwds.get('solution_dict', False): if len(sol_list)==0: return []
def solve(f, *args, **kwds): r""" Algebraically solve an equation or system of equations (over the complex numbers) for given variables. Inequalities and systems of inequalities are also supported. INPUT: - ``f`` - equation or system of equations (given by a list or tuple) - ``*args`` - variables to solve for. - ...
ad6d02b0399b4002f52131089b1e11e892c25a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ad6d02b0399b4002f52131089b1e11e892c25a2c/relation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 74, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2262, 29087, 6478, 12439, 392, 15778, 578, 2619, 434, 30369, 261, 1643, 326, 7233, 5600, 13, 364, 864, 3152, 18, 657, 9729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 12, 74, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2262, 29087, 6478, 12439, 392, 15778, 578, 2619, 434, 30369, 261, 1643, 326, 7233, 5600, 13, 364, 864, 3152, 18, 657, 9729...
if self.config.gcconfig.debugprint: llop.debug_print(lltype.Void) llop.debug_print(lltype.Void, ".----------- Full collection ------------------")
if have_debug_prints(): debug_start("gc-collect") debug_print() debug_print(".----------- Full collection ------------------")
def debug_collect_start(self): if self.config.gcconfig.debugprint: llop.debug_print(lltype.Void) llop.debug_print(lltype.Void, ".----------- Full collection ------------------") start_time = time.time() return start_time
26a598d24fcea1a122a81c21fdc65a7348c502c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/26a598d24fcea1a122a81c21fdc65a7348c502c0/markcompact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 67, 14676, 67, 1937, 12, 2890, 4672, 309, 1240, 67, 4148, 67, 1188, 87, 13332, 1198, 67, 1937, 2932, 13241, 17, 14676, 7923, 1198, 67, 1188, 1435, 1198, 67, 1188, 2932, 18, 13849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 67, 14676, 67, 1937, 12, 2890, 4672, 309, 1240, 67, 4148, 67, 1188, 87, 13332, 1198, 67, 1937, 2932, 13241, 17, 14676, 7923, 1198, 67, 1188, 1435, 1198, 67, 1188, 2932, 18, 13849, ...
main()
main(sys.argv)
def main(argv): usage = 'usage: %s [-o output_dir] [-s suffix] sourcefile ...' % sys.argv[0] try: opts, args = getopt.getopt(argv[1:], 'o:s:') except getopt.error: print >>sys.stderr, usage return 1 output_dir = None suffix = None for opt, val in opts: if opt == '-o': output_dir = val elif opt == '-s': suffix = val i...
42ade899dcc838976eabcba9b384d3d68605cd53 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5532/42ade899dcc838976eabcba9b384d3d68605cd53/generate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 4084, 273, 296, 9167, 30, 738, 87, 23059, 83, 876, 67, 1214, 65, 23059, 87, 3758, 65, 1084, 768, 25956, 738, 2589, 18, 19485, 63, 20, 65, 775, 30, 1500, 16, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 4672, 4084, 273, 296, 9167, 30, 738, 87, 23059, 83, 876, 67, 1214, 65, 23059, 87, 3758, 65, 1084, 768, 25956, 738, 2589, 18, 19485, 63, 20, 65, 775, 30, 1500, 16, 83...
row(_('Accumulated page sizes'), str(totalsize))
row(_('Accumulated page sizes'), _formatInReadableUnits(totalsize)) data_dir = self.request.cfg.data_dir row(_('Disk usage of %(data_dir)s/pages/') % {'data_dir': data_dir}, _formatInReadableUnits(_getDirectorySize(os.path.join(data_dir, 'pages')))) row(_('Disk usage of %(data_dir)s/') % {'data_dir': data_dir}, _format...
def _macro_SystemInfo(self, args): import operator, sys from StringIO import StringIO from MoinMoin import parser, processor, version from MoinMoin.logfile import editlog, eventlog _ = self._ # check for 4XSLT try: import Ft ftversion = Ft.__version__ except ImportError: ftversion = None except AttributeError: ftversio...
b808a86dd20061885b740cfe8a7c343909438bba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/b808a86dd20061885b740cfe8a7c343909438bba/wikimacro.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26448, 67, 3163, 966, 12, 2890, 16, 833, 4672, 1930, 3726, 16, 2589, 628, 15777, 1930, 15777, 628, 490, 885, 49, 885, 1930, 2082, 16, 6659, 16, 1177, 628, 490, 885, 49, 885, 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, 389, 26448, 67, 3163, 966, 12, 2890, 16, 833, 4672, 1930, 3726, 16, 2589, 628, 15777, 1930, 15777, 628, 490, 885, 49, 885, 1930, 2082, 16, 6659, 16, 1177, 628, 490, 885, 49, 885, 18, ...
return addinfourl(fp, headers, self.openedurl)
return addinfourl(fp, headers, "http:" + url)
def open_http(self, url, data=None): import httplib if type(url) is type(""): host, selector = splithost(url) user_passwd, host = splituser(host) realhost = host else: host, selector = url urltype, rest = splittype(selector) user_passwd = None if string.lower(urltype) != 'http': realhost = None else: realhost, rest = s...
95c1773defebe12780feaeadfcb51f01700e7a9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/95c1773defebe12780feaeadfcb51f01700e7a9e/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2505, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 1930, 15851, 6673, 309, 618, 12, 718, 13, 353, 618, 2932, 6, 4672, 1479, 16, 3451, 273, 6121, 483, 669, 12, 718, 13, 729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2505, 12, 2890, 16, 880, 16, 501, 33, 7036, 4672, 1930, 15851, 6673, 309, 618, 12, 718, 13, 353, 618, 2932, 6, 4672, 1479, 16, 3451, 273, 6121, 483, 669, 12, 718, 13, 729, ...
butf8 = encoding.fromlocal(branch) if butf8 in branchmap: revs.extend(node.hex(r) for r in reversed(branchmap[butf8])) else: revs.append(branch)
revs.append(branch)
def addbranchrevs(lrepo, repo, branches, revs): if not branches: return revs or None, revs and revs[0] or None revs = revs and list(revs) or [] if not repo.capable('branchmap'): revs.extend(branches) return revs, revs[0] branchmap = repo.branchmap() for branch in branches: if branch == '.': if not lrepo or not lrepo.lo...
fe02d57221374839027112fa3a061e36378dfc0f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/fe02d57221374839027112fa3a061e36378dfc0f/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7500, 266, 6904, 12, 80, 7422, 16, 3538, 16, 11483, 16, 5588, 87, 4672, 309, 486, 11483, 30, 327, 5588, 87, 578, 599, 16, 5588, 87, 471, 5588, 87, 63, 20, 65, 578, 599, 5588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7500, 266, 6904, 12, 80, 7422, 16, 3538, 16, 11483, 16, 5588, 87, 4672, 309, 486, 11483, 30, 327, 5588, 87, 578, 599, 16, 5588, 87, 471, 5588, 87, 63, 20, 65, 578, 599, 5588, ...
categ.appendChild(doc.createTextNode(escape(res[0]['auction2'])))
categ.appendChild(doc.createTextNode(_to_decode(res[0]['auction2'])))
def catalog_xml(self,cr,uid,ids,data,context,cwid="0"): impl = minidom.getDOMImplementation()
96d6ca40fca69c62441674f782c64c7233cda092 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/96d6ca40fca69c62441674f782c64c7233cda092/catalog2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 67, 2902, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 892, 16, 2472, 16, 71, 30902, 1546, 20, 6, 4672, 9380, 273, 1131, 350, 362, 18, 588, 8168, 13621, 1435, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6222, 67, 2902, 12, 2890, 16, 3353, 16, 1911, 16, 2232, 16, 892, 16, 2472, 16, 71, 30902, 1546, 20, 6, 4672, 9380, 273, 1131, 350, 362, 18, 588, 8168, 13621, 1435, 2, -100, -100, -10...
p = BezierPath()
def parse_oval(e): p = BezierPath() x = float(get_attribute(e, "cx")) y = float(get_attribute(e, "cy")) w = float(get_attribute(e, "rx"))*2 h = float(get_attribute(e, "ry"))*2 p.ellipse(x-w/2, y-h/2, w, h) return p
4284758b928e6ce257c68e38e49e8e35b9986569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/612/4284758b928e6ce257c68e38e49e8e35b9986569/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10866, 12, 73, 4672, 225, 619, 273, 1431, 12, 588, 67, 4589, 12, 73, 16, 315, 71, 92, 6, 3719, 677, 273, 1431, 12, 588, 67, 4589, 12, 73, 16, 315, 2431, 6, 3719, 341, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10866, 12, 73, 4672, 225, 619, 273, 1431, 12, 588, 67, 4589, 12, 73, 16, 315, 71, 92, 6, 3719, 677, 273, 1431, 12, 588, 67, 4589, 12, 73, 16, 315, 2431, 6, 3719, 341, 2...
doebuild(self.dbdir+"/"+self.pkg+".ebuild","postrm")
a=doebuild(self.dbdir+"/"+self.pkg+".ebuild","postrm") if a: print "!!! pkg_postrm() script failed; exiting." sys.exit(a)
def unmerge(self,pkgfiles=None): if not pkgfiles: pkgfiles=self.getcontents() if not pkgfiles: return myebuildfile=os.path.normpath(self.dbdir+"/"+self.pkg+".ebuild") if os.path.exists(myebuildfile): if pkgfiles.has_key(myebuildfile): del pkgfiles[myebuildfile] mykeys=pkgfiles.keys() mykeys.sort() mykeys.reverse() #...
5d26ba23f00cd6e9ae56fdb0fe5b5c8a7145e78d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2807/5d26ba23f00cd6e9ae56fdb0fe5b5c8a7145e78d/portage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 2702, 12, 2890, 16, 10657, 2354, 33, 7036, 4672, 309, 486, 3475, 2354, 30, 3475, 2354, 33, 2890, 18, 588, 3980, 1435, 309, 486, 3475, 2354, 30, 327, 225, 3399, 73, 3510, 768, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 2702, 12, 2890, 16, 10657, 2354, 33, 7036, 4672, 309, 486, 3475, 2354, 30, 3475, 2354, 33, 2890, 18, 588, 3980, 1435, 309, 486, 3475, 2354, 30, 327, 225, 3399, 73, 3510, 768, 33, ...
if filename.lower().find('chgcar') != -1 or len(self.chg) == 1: format = "chgcar"
if filename.lower().find('chgcar') != -1: format = 'chgcar' elif filename.lower().find('chg') != -1: format = 'chg' elif len(self.chg) == 1: format = 'chgcar'
def write(self, filename='CHG', format=None): """Write VASP charge density in CHG format
3688e40cc7f63097f1190182a26faaf134e6e2d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/3688e40cc7f63097f1190182a26faaf134e6e2d4/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 2218, 1792, 43, 2187, 740, 33, 7036, 4672, 3536, 3067, 776, 3033, 52, 13765, 12142, 316, 6469, 43, 740, 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, 1045, 12, 2890, 16, 1544, 2218, 1792, 43, 2187, 740, 33, 7036, 4672, 3536, 3067, 776, 3033, 52, 13765, 12142, 316, 6469, 43, 740, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
library_dirs = library_dirs)
library_dirs = library_dirs, extra_link_args = extra_link_args)
def unique(list): """Stolen from MapScript setup script""" dict = {} for item in list: dict[item] = '' return dict.keys()
cea2bfcbcc5b48f50112082906be6a20e420b298 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10289/cea2bfcbcc5b48f50112082906be6a20e420b298/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3089, 12, 1098, 4672, 3536, 510, 355, 275, 628, 1635, 3651, 3875, 2728, 8395, 2065, 273, 2618, 364, 761, 316, 666, 30, 2065, 63, 1726, 65, 273, 875, 327, 2065, 18, 2452, 1435, 282, 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, 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, 3089, 12, 1098, 4672, 3536, 510, 355, 275, 628, 1635, 3651, 3875, 2728, 8395, 2065, 273, 2618, 364, 761, 316, 666, 30, 2065, 63, 1726, 65, 273, 875, 327, 2065, 18, 2452, 1435, 282, 2, ...
if not utter_time_search and isinstance(refex, DrtTimeVariableExpression) and \
if isinstance(refex, DrtUtterVariableExpression): """In case there is no location time referent that has not yet been used to relate some eventuality to utterance time, use utter time as loc time.""" return [Reading([(trail[-1], DrtFindUtterTimeExpression.VariableReplacer(self.argument.variable, refex))])], True elif...
def _readings(self, trail=[]): utter_time_search = False
1b0f4a2511e2a071b0fa2cdc7ee662d98266d7c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2768/1b0f4a2511e2a071b0fa2cdc7ee662d98266d7c6/temporaldrt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 899, 12, 2890, 16, 15569, 33, 8526, 4672, 22963, 67, 957, 67, 3072, 273, 1083, 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, 389, 896, 899, 12, 2890, 16, 15569, 33, 8526, 4672, 22963, 67, 957, 67, 3072, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def _precompute(self, how_many=30): try: f = self._f except AttributeError: self._f = recur_gen2b(1,10,2,1,self.g) f = self._f self._b += [f.next() for i in range(how_many)] def _eval(self, n): if len(self._b) < n: self._precompute(n - len(self._b) + 1) return self._b[n] def list(self, n): self._eval(n) return self._...
def _precompute(self, how_many=30): try: f = self._f except AttributeError: self._f = recur_gen2b(1,10,2,1,self.g) f = self._f self._b += [f.next() for i in range(how_many)]
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1484, 9200, 12, 2890, 16, 3661, 67, 9353, 33, 5082, 4672, 775, 30, 284, 273, 365, 6315, 74, 1335, 6394, 30, 365, 6315, 74, 273, 8112, 67, 4507, 22, 70, 12, 21, 16, 2163, 16, 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, 389, 1484, 9200, 12, 2890, 16, 3661, 67, 9353, 33, 5082, 4672, 775, 30, 284, 273, 365, 6315, 74, 1335, 6394, 30, 365, 6315, 74, 273, 8112, 67, 4507, 22, 70, 12, 21, 16, 2163, 16, 2...
return self.uniquename('%s%d' % (basename, n), bare=bare)
return self.uniquename('%s%d' % (basename, n), bare=bare, lenmax=sys.maxint)
def uniquename(self, basename, with_number=None, bare=False): basename = basename[:50].translate(C_IDENTIFIER) n = self.seennames.get(basename, 0) self.seennames[basename] = n+1 if with_number is None: with_number = basename in ('v', 'w_') if with_number: if n == 0: newname = '%s%d' % (basename, n) if bare: return newn...
3c356edcf7414803691d82fffc47b43a32b2ba23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/3c356edcf7414803691d82fffc47b43a32b2ba23/gensupp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15426, 1069, 12, 2890, 16, 4882, 16, 598, 67, 2696, 33, 7036, 16, 18208, 33, 8381, 4672, 4882, 273, 4882, 10531, 3361, 8009, 13929, 12, 39, 67, 16606, 13, 290, 273, 365, 18, 15156, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15426, 1069, 12, 2890, 16, 4882, 16, 598, 67, 2696, 33, 7036, 16, 18208, 33, 8381, 4672, 4882, 273, 4882, 10531, 3361, 8009, 13929, 12, 39, 67, 16606, 13, 290, 273, 365, 18, 15156, 197...
print "%s vendor is '%s', skipping. Force with --all if desired." % (system['name'], vendor) if options.verbose: print "Removing %s from list" % (system['name'])
print timestamp(), "Warning: %s vendor is '%s', skipping. Force with --all if desired." % (system['name'], vendor) if options.verbose: print timestamp(), "- Removing %s from list" % (system['name'])
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, ...
For stronger results, we need more precicion. ::
For stronger results, we need more precicion::
def algdep(z, degree, known_bits=None, use_bits=None, known_digits=None, use_digits=None, height_bound=None, proof=False): """ Returns a polynomial of degree at most `degree` which is approximately satisfied by the number `z`. Note that the returned polynomial need not be irreducible, and indeed usually won't be if `z`...
b5ed948d4508215af6091ab48ef3eea7f0de520e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b5ed948d4508215af6091ab48ef3eea7f0de520e/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11989, 15037, 12, 94, 16, 10782, 16, 4846, 67, 6789, 33, 7036, 16, 999, 67, 6789, 33, 7036, 16, 4846, 67, 16649, 33, 7036, 16, 999, 67, 16649, 33, 7036, 16, 2072, 67, 3653, 33, 7036,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11989, 15037, 12, 94, 16, 10782, 16, 4846, 67, 6789, 33, 7036, 16, 999, 67, 6789, 33, 7036, 16, 4846, 67, 16649, 33, 7036, 16, 999, 67, 16649, 33, 7036, 16, 2072, 67, 3653, 33, 7036,...
kwargs = rdbms_common.connection_dict(config)
kwargs = connection_dict(config)
def db_exists(config): """Check if database already exists.""" kwargs = rdbms_common.connection_dict(config) conn = MySQLdb.connect(**kwargs) try: try: conn.select_db(config.RDBMS_NAME) except MySQLdb.OperationalError: return 0 finally: conn.close() return 1
7018ac4ab698076fd636cfffa0418fe0fe314a9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/7018ac4ab698076fd636cfffa0418fe0fe314a9b/back_mysql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 1808, 12, 1425, 4672, 3536, 1564, 309, 2063, 1818, 1704, 12123, 1205, 273, 1459, 67, 1576, 12, 1425, 13, 1487, 273, 13485, 1966, 18, 3612, 12, 636, 4333, 13, 775, 30, 775, 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, 1319, 67, 1808, 12, 1425, 4672, 3536, 1564, 309, 2063, 1818, 1704, 12123, 1205, 273, 1459, 67, 1576, 12, 1425, 13, 1487, 273, 13485, 1966, 18, 3612, 12, 636, 4333, 13, 775, 30, 775, 30...