rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
return self.constant_coefficient()
return R(self.constant_coefficient())
def coefficient(self, mon): """ Return the coefficient of mon in self, where mon must have the same parent as self. The coefficient is defined as follows. If f is this polynomial, then the coefficient is the sum T/mon where the sum is over terms T in f that are exactly divisible by mon.
724cac7c087c418d4eb1f867a925d39e017b5b81 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/724cac7c087c418d4eb1f867a925d39e017b5b81/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16554, 12, 2890, 16, 6921, 4672, 3536, 2000, 326, 16554, 434, 6921, 316, 365, 16, 1625, 6921, 1297, 1240, 326, 1967, 982, 487, 365, 18, 225, 1021, 16554, 353, 2553, 487, 13040, 18, 971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16554, 12, 2890, 16, 6921, 4672, 3536, 2000, 326, 16554, 434, 6921, 316, 365, 16, 1625, 6921, 1297, 1240, 326, 1967, 982, 487, 365, 18, 225, 1021, 16554, 353, 2553, 487, 13040, 18, 971, ...
self.read(name) def guess_type(self, url, strict=1):
self.read(name, strict) def add_type(self, type, ext, strict=True): """Add a mapping between a type and and extension. When the extension is already known, the new type will replace the old one. When the type is already known the extension will be added to the list of known extensions. If strict is true, information...
def __init__(self, filenames=()): if not inited: init() self.encodings_map = encodings_map.copy() self.suffix_map = suffix_map.copy() self.types_map = types_map.copy() self.common_types = common_types.copy() for name in filenames: self.read(name)
7642f98edc75ce0af326000834761c8280cae057 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7642f98edc75ce0af326000834761c8280cae057/mimetypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9066, 33, 1435, 4672, 309, 486, 1208, 329, 30, 1208, 1435, 365, 18, 1331, 369, 899, 67, 1458, 273, 24118, 67, 1458, 18, 3530, 1435, 365, 18, 8477, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 9066, 33, 1435, 4672, 309, 486, 1208, 329, 30, 1208, 1435, 365, 18, 1331, 369, 899, 67, 1458, 273, 24118, 67, 1458, 18, 3530, 1435, 365, 18, 8477, 67, ...
timestamp = '%.3f' % time.time() seed = `random.randint(0, 32767)` return _prefix + '.' + timestamp + '.' + seed
return "%s.%.3f.%d" % (_prefix, time.time(), _get_next_counter())
def choose_boundary(): """Return a random string usable as a multipart boundary. The method used is so that it is *very* unlikely that the same string of characters will every occur again in the Universe, so the caller needn't check the data it is packing for the occurrence of the boundary. The boundary contains dots ...
b88933f5ae6ea190eaa76d2a1423cf8300d4bab1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b88933f5ae6ea190eaa76d2a1423cf8300d4bab1/mimetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 16604, 13332, 3536, 990, 279, 2744, 533, 15603, 487, 279, 10263, 7679, 18, 1021, 707, 1399, 353, 1427, 716, 518, 353, 380, 3242, 14, 29372, 716, 326, 1967, 533, 434, 3949, 903,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9876, 67, 16604, 13332, 3536, 990, 279, 2744, 533, 15603, 487, 279, 10263, 7679, 18, 1021, 707, 1399, 353, 1427, 716, 518, 353, 380, 3242, 14, 29372, 716, 326, 1967, 533, 434, 3949, 903,...
for lfn,requestedSEs in replicas.items():
for lfn, requestedSEs in replicas.items():
def prepareNewReplicas(self): """ This is the first logical task to be executed and manages the New->Waiting transition of the Replicas """ res = self.__getNewReplicas() if not res['OK']: gLogger.fatal("RequestPreparation.prepareNewReplicas: Failed to get replicas from StagerDB.",res['Message']) return res if not res['...
d68cb60fd991fa9f206177d2794f8d04f940cd00 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d68cb60fd991fa9f206177d2794f8d04f940cd00/RequestPreparationAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1908, 17248, 12, 2890, 4672, 3536, 1220, 353, 326, 1122, 6374, 1562, 358, 506, 7120, 471, 20754, 281, 326, 1166, 2122, 15946, 6007, 434, 326, 31222, 3536, 400, 273, 365, 16186, 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, 2911, 1908, 17248, 12, 2890, 4672, 3536, 1220, 353, 326, 1122, 6374, 1562, 358, 506, 7120, 471, 20754, 281, 326, 1166, 2122, 15946, 6007, 434, 326, 31222, 3536, 400, 273, 365, 16186, 588, ...
<class 'sage.plot.graphics3d.TransformGroup'>
<class 'base.TransformGroup'>
def plot3d(self, stickers=True): """ sage: C = RubiksCube().move("R*U") sage: C.plot3d() <class 'sage.plot.graphics3d.TransformGroup'> sage: C.plot() Graphics object consisting of 55 graphics primitives """ while len(self.colors) < 7: self.colors.append((.1, .1, .1)) side_colors = [Texture(color=c, ambient=.75) for c i...
10e7a0b139c256362e0ed8986b14029a93c7ab7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/10e7a0b139c256362e0ed8986b14029a93c7ab7f/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 16, 25608, 414, 33, 5510, 4672, 3536, 272, 410, 30, 385, 273, 534, 373, 1766, 87, 39, 4895, 7675, 8501, 2932, 54, 14, 57, 7923, 272, 410, 30, 385, 18, 4032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 23, 72, 12, 2890, 16, 25608, 414, 33, 5510, 4672, 3536, 272, 410, 30, 385, 273, 534, 373, 1766, 87, 39, 4895, 7675, 8501, 2932, 54, 14, 57, 7923, 272, 410, 30, 385, 18, 4032, ...
api_call(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_taskseries.id, task_id = self.rtm_task.id)
result = api_call(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_taskseries.id, task_id = self.rtm_task.id) transaction_ids.append(result.transaction.id)
def set_status(self, gtg_status): '''Sets the task status, in GTG terminology''' status = GTG_TO_RTM_STATUS[gtg_status] if status == True: api_call = self.rtm.tasks.uncomplete else: api_call = self.rtm.tasks.complete api_call(timeline = self.timeline, list_id = self.rtm_list.id, taskseries_id = self.rtm_task...
abfb6098ab297631b5a39657955ffc083742508d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/abfb6098ab297631b5a39657955ffc083742508d/backend_rtm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2327, 12, 2890, 16, 9879, 75, 67, 2327, 4672, 9163, 2785, 326, 1562, 1267, 16, 316, 19688, 43, 16122, 4676, 26418, 1267, 273, 19688, 43, 67, 4296, 67, 12185, 49, 67, 8608, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2327, 12, 2890, 16, 9879, 75, 67, 2327, 4672, 9163, 2785, 326, 1562, 1267, 16, 316, 19688, 43, 16122, 4676, 26418, 1267, 273, 19688, 43, 67, 4296, 67, 12185, 49, 67, 8608, 63,...
for li, lc in ((_locale.RADIXCHAR, "decimal_point"), (_locale.THOUSEP, "thousands_sep")):
for li, lc in ((RADIXCHAR, "decimal_point"), (THOUSEP, "thousands_sep")):
def test_lc_numeric_nl_langinfo(self): # Test nl_langinfo against known values for loc in candidate_locales: try: setlocale(LC_NUMERIC, loc) setlocale(LC_CTYPE, loc) except Error: continue for li, lc in ((_locale.RADIXCHAR, "decimal_point"), (_locale.THOUSEP, "thousands_sep")): self.numeric_tester('nl_langinfo', nl_lan...
af7d345fb06e6621a9cf37afe65a93daf928046c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/af7d345fb06e6621a9cf37afe65a93daf928046c/test__locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17704, 67, 5246, 67, 14039, 67, 4936, 1376, 12, 2890, 4672, 468, 7766, 7741, 67, 4936, 1376, 5314, 4846, 924, 364, 1515, 316, 5500, 67, 22638, 30, 775, 30, 444, 6339, 12, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17704, 67, 5246, 67, 14039, 67, 4936, 1376, 12, 2890, 4672, 468, 7766, 7741, 67, 4936, 1376, 5314, 4846, 924, 364, 1515, 316, 5500, 67, 22638, 30, 775, 30, 444, 6339, 12, 133...
def test_atLeastNInsignificantUnitsNear (unit, n): num_ships=0 count=0 un = VS.getUnit (count) while (un): dd = cur.detection_distance if (unit.getSignificantDistance(un,unit)<dd): if ((not un.isSignificant()) and (not un.isSun())): print "unit not sig %d %s %s" % (num_ships,un.getFgName(),un.getName()) num_ships+=1 if...
def atLeastNInsignificantUnitsNear (self,uni, n):
def test_atLeastNInsignificantUnitsNear (unit, n): num_ships=0 count=0 un = VS.getUnit (count) while (un): dd = cur.detection_distance if (unit.getSignificantDistance(un,unit)<dd): if ((not un.isSignificant()) and (not un.isSun())): print "unit not sig %d %s %s" % (num_ships,un.getFgName(),un.getName()) num_ships+=1 if...
0196b99221f192e1640b9a18a3f627096af1b5a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/0196b99221f192e1640b9a18a3f627096af1b5a1/random_encounters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 270, 17319, 50, 382, 2977, 11120, 7537, 24686, 261, 4873, 16, 290, 4672, 818, 67, 3261, 87, 33, 20, 1056, 33, 20, 640, 273, 776, 55, 18, 588, 2802, 261, 1883, 13, 1323, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 270, 17319, 50, 382, 2977, 11120, 7537, 24686, 261, 4873, 16, 290, 4672, 818, 67, 3261, 87, 33, 20, 1056, 33, 20, 640, 273, 776, 55, 18, 588, 2802, 261, 1883, 13, 1323, 261...
def extractRuntimeDeps(data, fileId=""):
def extractRuntimeDeps(data, fileId="", verbose=True):
def extractRuntimeDeps(data, fileId=""): deps = [] # Adding explicit requirements for item in config.QXHEAD["use"].findall(data): if item == fileId: print " - Self-referring runtime dependency: %s" % item elif item in deps: print " - Double definition of runtime dependency: %s" % item else: deps.append(item)...
9b368524b03859334fa75b311c814b2247b67ef4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/9b368524b03859334fa75b311c814b2247b67ef4/loader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 5576, 14430, 12, 892, 16, 21223, 1546, 3113, 3988, 33, 5510, 4672, 8740, 273, 5378, 225, 468, 21240, 5515, 8433, 364, 761, 316, 642, 18, 53, 60, 12458, 9614, 1202, 6, 8009, 4720, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 5576, 14430, 12, 892, 16, 21223, 1546, 3113, 3988, 33, 5510, 4672, 8740, 273, 5378, 225, 468, 21240, 5515, 8433, 364, 761, 316, 642, 18, 53, 60, 12458, 9614, 1202, 6, 8009, 4720, ...
self.body = uri.generic.Query.decode(body)
self.body = Query.decode(body)
def non_blocking_load(self, read): """ Loads the request state from in non-blocking mode. Aimed at sockets, it works for files too. """ buffer = '' # Read the first line while True: data = read(512) data_size = len(data) # Check there is some data, if not we abort the request, something # may be wrong. if data_size == ...
a1583ead675cf8132f9ed70b1c3c3a6209d35f9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/a1583ead675cf8132f9ed70b1c3c3a6209d35f9c/request.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1661, 67, 18926, 67, 945, 12, 2890, 16, 855, 4672, 3536, 4444, 87, 326, 590, 919, 628, 316, 1661, 17, 18926, 1965, 18, 432, 381, 329, 622, 16762, 16, 518, 6330, 364, 1390, 4885, 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, 1661, 67, 18926, 67, 945, 12, 2890, 16, 855, 4672, 3536, 4444, 87, 326, 590, 919, 628, 316, 1661, 17, 18926, 1965, 18, 432, 381, 329, 622, 16762, 16, 518, 6330, 364, 1390, 4885, 18, ...
'HTTP/1.0 %d Use different host\r\n',
'HTTP/1.0 %d %s\r\n', 'Server: WebCleaner Proxy\r\n'
def error(self, code, msg): ServerHandleDirectly( self.client, 'HTTP/1.0 %d Use different host\r\n', 'Content-type: text/html\r\n' 'Location: http://%s\r\n' '\r\n' % (code, new_url), msg)
d689ab4b5238b9e82a92e3c41d9f0c47782b391e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/d689ab4b5238b9e82a92e3c41d9f0c47782b391e/ClientServerMatchmaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 981, 16, 1234, 4672, 3224, 3259, 5368, 715, 12, 365, 18, 2625, 16, 296, 3693, 19, 21, 18, 20, 738, 72, 738, 87, 64, 86, 64, 82, 2187, 296, 2081, 30, 2999, 7605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 981, 16, 1234, 4672, 3224, 3259, 5368, 715, 12, 365, 18, 2625, 16, 296, 3693, 19, 21, 18, 20, 738, 72, 738, 87, 64, 86, 64, 82, 2187, 296, 2081, 30, 2999, 7605, ...
fname = "extracted/"+fname[:-3]
fname = os.path.join(extract_to, fname[:-3])
def blacklist (fname, extract_to="extracted"): source = os.path.join("downloads", fname) # extract tar if fname.endswith(".tar.gz") or fname.endswith(".tgz"): print "extracting archive", fname f = tarfile.TarFile.gzopen(source) for m in f: a, b = os.path.split(m.name) a = os.path.basename(a) if b in myfiles and a in my...
3465b5ee3ef1c0df3638f47dce4d547cf4c2df9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/3465b5ee3ef1c0df3638f47dce4d547cf4c2df9c/bl2wc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11709, 261, 12749, 16, 2608, 67, 869, 1546, 8004, 329, 6, 4672, 1084, 273, 1140, 18, 803, 18, 5701, 2932, 7813, 87, 3113, 5299, 13, 468, 2608, 8232, 309, 5299, 18, 5839, 1918, 2932, 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, 11709, 261, 12749, 16, 2608, 67, 869, 1546, 8004, 329, 6, 4672, 1084, 273, 1140, 18, 803, 18, 5701, 2932, 7813, 87, 3113, 5299, 13, 468, 2608, 8232, 309, 5299, 18, 5839, 1918, 2932, 18...
self.__state = SipSession.SESSION_SETUP
self.__session = session self.__state = SipCall.SESSION_SETUP
def __init__(self, conInfo, rtpPort, inviteHeaders): if not SipSession.sipConnection: logger.critical("SIP connection class variable not set")
d995da2606eccd46f73ea5846930ead736911f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8801/d995da2606eccd46f73ea5846930ead736911f1a/sip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 356, 966, 16, 436, 6834, 2617, 16, 19035, 3121, 4672, 309, 486, 13475, 2157, 18, 28477, 1952, 30, 1194, 18, 28000, 2932, 17739, 1459, 667, 2190, 486, 444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 356, 966, 16, 436, 6834, 2617, 16, 19035, 3121, 4672, 309, 486, 13475, 2157, 18, 28477, 1952, 30, 1194, 18, 28000, 2932, 17739, 1459, 667, 2190, 486, 444, ...
if not os.isfile(path) or not os.access(path, os.R_OK):
if not os.path.isfile(path) or not os.access(path, os.R_OK):
def _findPath (self, binname): """ Searches for a readable, executable named 'binname' in the PATH. For the PyChess engine, special handling is taken, and we search PYTHONPATH as well as the directory from where the 'os' module is imported """ if binname == "PyChess.py": path = None interpreterPath = searchPath("pytho...
55c220d30f74b0a2d42bffab64ef81f45f845a94 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/55c220d30f74b0a2d42bffab64ef81f45f845a94/engineNest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 743, 261, 2890, 16, 4158, 529, 4672, 3536, 5167, 281, 364, 279, 7471, 16, 9070, 4141, 296, 4757, 529, 11, 316, 326, 7767, 18, 2457, 326, 4707, 782, 403, 4073, 16, 4582, 5057...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 743, 261, 2890, 16, 4158, 529, 4672, 3536, 5167, 281, 364, 279, 7471, 16, 9070, 4141, 296, 4757, 529, 11, 316, 326, 7767, 18, 2457, 326, 4707, 782, 403, 4073, 16, 4582, 5057...
if nodeName not in ['td', 'th']: assert self.innerHTML nodeName = self.innerHTML
nodeName = self.innerHTML
def resetInsertionMode(self): # The name of this method is mostly historical. (It's also used in the # specification.) last = False newModes = { "select":"inSelect", "td":"inCell", "th":"inCell", "tr":"inRow", "tbody":"inTableBody", "thead":"inTableBody", "tfoot":"inTableBody", "caption":"inCaption", "colgroup":"inColu...
f6c270353a56490f7ddbd3b7ba3730e2971930a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/f6c270353a56490f7ddbd3b7ba3730e2971930a4/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 29739, 2309, 12, 2890, 4672, 468, 1021, 508, 434, 333, 707, 353, 23958, 23922, 18, 261, 7193, 1807, 2546, 1399, 316, 326, 468, 7490, 12998, 1142, 273, 1083, 394, 18868, 273, 288, 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, 2715, 29739, 2309, 12, 2890, 4672, 468, 1021, 508, 434, 333, 707, 353, 23958, 23922, 18, 261, 7193, 1807, 2546, 1399, 316, 326, 468, 7490, 12998, 1142, 273, 1083, 394, 18868, 273, 288, 3...
self.tags = tags
self.tags = [] if tags is None else tags
def __init__(self, title = "", text = "", tags = [], compress = "none"): self.title = title self.text = text self.tags = tags self.compress = compress
460c7579fab688a459c4ee05deb41732036c74bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14305/460c7579fab688a459c4ee05deb41732036c74bc/article.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2077, 273, 23453, 977, 273, 23453, 2342, 273, 5378, 16, 8099, 273, 315, 6102, 6, 4672, 365, 18, 2649, 273, 2077, 365, 18, 955, 273, 977, 365, 18, 4156, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2077, 273, 23453, 977, 273, 23453, 2342, 273, 5378, 16, 8099, 273, 315, 6102, 6, 4672, 365, 18, 2649, 273, 2077, 365, 18, 955, 273, 977, 365, 18, 4156, ...
else: self.startTagOther(token) def startTagForm(self, token): self.parser.parseError("unexpected-form-in-table") self.tree.insertElement(token) self.tree.openElements.pop() def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-implies-table-voodoo", {"name": token["name"]}) self.tree.insertFr...
def startTagOther(self, token): self.parser.parseError("unexpected-start-tag-implies-table-voodoo", {"name": token["name"]}) self.tree.insertFromTable = True self.parser.phases["inBody"].processStartTag(token) self.tree.insertFromTable = False def endTagTable(self, token): if self.tree.elementInScope("table", varian...
def startTagInput(self, token): if ("type" in token["data"] and token["data"]["type"].translate(asciiUpper2Lower) == "hidden"): self.parser.parseError("unexpected-hidden-input-in-table") self.tree.insertElement(token) # XXX associate with form self.tree.openElements.pop() else: self.startTagOther(token)
d34b631d2e45870e85a6b7e5f824aa96f5632111 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/d34b631d2e45870e85a6b7e5f824aa96f5632111/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 1210, 12, 2890, 16, 1147, 4672, 309, 7566, 723, 6, 316, 1147, 9614, 892, 11929, 471, 1147, 9614, 892, 6, 6362, 6, 723, 6, 8009, 13929, 12, 9184, 5988, 22, 4070, 13, 422, 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, 787, 1805, 1210, 12, 2890, 16, 1147, 4672, 309, 7566, 723, 6, 316, 1147, 9614, 892, 11929, 471, 1147, 9614, 892, 6, 6362, 6, 723, 6, 8009, 13929, 12, 9184, 5988, 22, 4070, 13, 422, 3...
if (arg[0],arg[-1]) in (('(',')'),('"','"')):
if len(arg) >= 2 and (arg[0],arg[-1]) in (('(',')'),('"','"')):
def _checkquote(self, arg):
9a920592116a537852bf9286846467eeba053101 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9a920592116a537852bf9286846467eeba053101/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 6889, 12, 2890, 16, 1501, 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, ...
[ 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, 389, 1893, 6889, 12, 2890, 16, 1501, 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...
current = self.mem[startadr:endadr] needToSend = (data != current)
def makeMemory(self, data, p, page=0): """Update a packet for the ethernet server with Memory commands."""
e5536ee3540ed76874b9bd1b357a8407dd491843 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7016/e5536ee3540ed76874b9bd1b357a8407dd491843/ghz_dacs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6031, 12, 2890, 16, 501, 16, 293, 16, 1363, 33, 20, 4672, 3536, 1891, 279, 4414, 364, 326, 225, 22603, 1438, 598, 9251, 4364, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6031, 12, 2890, 16, 501, 16, 293, 16, 1363, 33, 20, 4672, 3536, 1891, 279, 4414, 364, 326, 225, 22603, 1438, 598, 9251, 4364, 12123, 2, -100, -100, -100, -100, -100, -100, -100, ...
sage: f.coeff(1)
sage: f.coefficient(1)
def coeff(self, x, n=1): """ Returns the coefficient of $x^n$ in self.
2e32b7247af3731db881ec5bd651880a8fc8c790 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2e32b7247af3731db881ec5bd651880a8fc8c790/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11943, 12, 2890, 16, 619, 16, 290, 33, 21, 4672, 3536, 2860, 326, 16554, 434, 271, 92, 66, 82, 8, 316, 365, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11943, 12, 2890, 16, 619, 16, 290, 33, 21, 4672, 3536, 2860, 326, 16554, 434, 271, 92, 66, 82, 8, 316, 365, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
log.success("\r%s done.%s\n" % (PackageName, " "* 40) )
bug_report_fetch_flag = 0 if ArgumentOptions.deb_bugs: if FetchBugReportsDebian(PackageName, ArgumentOptions.zip_upgrade_file, lock=True) is True: log.verbose("Fetched bug reports for package %s and archived to file %s.\n" % (PackageName, ArgumentOptions.zip_upgrade_file) ) bug_report_fetch_flag = 1 if ArgumentOptions...
def run(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_k...
f8cd376e40040dfc5e9e2752b64e129b6da1f703 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/f8cd376e40040dfc5e9e2752b64e129b6da1f703/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
sourcefile.write(' len += msg->' + countvar + ';\n')
headerfile.write('#ifndef XDR_DECODE\n')
750a27e78aefa8bd56a04cfb45dea1d3bec3307d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3566/750a27e78aefa8bd56a04cfb45dea1d3bec3307d/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1446, 768, 18, 2626, 2668, 7, 430, 82, 536, 1139, 6331, 67, 1639, 5572, 64, 82, 6134, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1446, 768, 18, 2626, 2668, 7, 430, 82, 536, 1139, 6331, 67, 1639, 5572, 64, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
t += s.replace('<','&lt;')
t += format(s)
def output_text(self, ncols=0, html=True): if ncols and not self.introspect(): s = word_wrap(self.__out, ncols=ncols) else: s = self.__out if html: # Everything not wrapped in <html> ... </html> # should have the <'s replaced by &lt;'s. t = '' while len(s) > 0: i = s.find('<html>') if i == -1: t += s.replace('<','&lt;'...
0323b9312ea6e018cfac52651be144ea3a780737 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/0323b9312ea6e018cfac52651be144ea3a780737/cell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 67, 955, 12, 2890, 16, 21330, 33, 20, 16, 1729, 33, 5510, 4672, 309, 21330, 471, 486, 365, 18, 474, 26170, 13332, 272, 273, 2076, 67, 4113, 12, 2890, 16186, 659, 16, 21330, 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, 876, 67, 955, 12, 2890, 16, 21330, 33, 20, 16, 1729, 33, 5510, 4672, 309, 21330, 471, 486, 365, 18, 474, 26170, 13332, 272, 273, 2076, 67, 4113, 12, 2890, 16186, 659, 16, 21330, 33, ...
if chanind0[0]>1: raise Exception, 'clean can not yet accept chan averaging in spw parameter '+spw else: chanind0=[1,0,len(chanfreqs0)-1,1]
else: chanind0=[0,0,len(chanfreqs0)-1,1]
def setChannelization(self,mode,spw,field,nchan,start,width,frame,veltype,restf): """ determine appropriate values for channelization parameters when default values are used for mode='velocity' or 'frequency' or 'channel' """
1efda2404b101e5c90c11efbb121147573a95ba4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/1efda2404b101e5c90c11efbb121147573a95ba4/cleanhelper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 2909, 1588, 12, 2890, 16, 3188, 16, 1752, 91, 16, 1518, 16, 82, 7472, 16, 1937, 16, 2819, 16, 3789, 16, 941, 723, 16, 8792, 74, 4672, 3536, 4199, 5505, 924, 364, 1904, 1588, 147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2909, 1588, 12, 2890, 16, 3188, 16, 1752, 91, 16, 1518, 16, 82, 7472, 16, 1937, 16, 2819, 16, 3789, 16, 941, 723, 16, 8792, 74, 4672, 3536, 4199, 5505, 924, 364, 1904, 1588, 147...
(?: (%s)_ | ` (?![ ]) (.+?) %s `_
( (?P<simple>%s)_ | ` (?![ ]) (?P<phrase>.+?) %s `_
def build_table_row(self, rowdata, tableline): row = nodes.row() for cell in rowdata: if cell is None: continue morerows, morecols, offset, cellblock = cell attributes = {} if morerows: attributes['morerows'] = morerows if morecols: attributes['morecols'] = morecols entry = nodes.entry(**attributes) row += entry if ''....
039645ec5706bfe06b64e66663e62db9bc1abf30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/039645ec5706bfe06b64e66663e62db9bc1abf30/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
print 'done (exit code: %d)' % os.system(editor)
err = os.system(editor) if err: raise CmdException, 'editor failed, exit code: %d' % err print 'done'
def __edit_message(msg): fname = '.stgitmail.txt' # create the initial file f = file(fname, 'w') f.write(msg) f.close() # the editor editor = config.get('stgit.editor') if editor: pass elif 'EDITOR' in os.environ: editor = os.environ['EDITOR'] else: editor = 'vi' editor += ' %s' % fname print 'Invoking the editor: "...
0aa8df2edbe489f21c0c0a188cad09ac0827ab1c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/0aa8df2edbe489f21c0c0a188cad09ac0827ab1c/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4619, 67, 2150, 12, 3576, 4672, 5299, 273, 2418, 334, 6845, 4408, 18, 5830, 11, 225, 468, 752, 326, 2172, 585, 284, 273, 585, 12, 12749, 16, 296, 91, 6134, 284, 18, 2626, 12, 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, 1001, 4619, 67, 2150, 12, 3576, 4672, 5299, 273, 2418, 334, 6845, 4408, 18, 5830, 11, 225, 468, 752, 326, 2172, 585, 284, 273, 585, 12, 12749, 16, 296, 91, 6134, 284, 18, 2626, 12, 3...
sizes.append([self.getSize("%s-disc%d" % (self.dist_dir, self.src_list[i]), blocksize=1), self.src_list[i]])
sizes.append([self.getIsoSize("%s-disc%d" % (self.dist_dir, self.src_list[i])), self.src_list[i]])
def getLeastUsedTree(self): """Returns the least full tree to use for SRPMS"""
bdf3b118aa84337afe394b647fbd9c229cf666a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8489/bdf3b118aa84337afe394b647fbd9c229cf666a7/splittree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 17319, 6668, 2471, 12, 2890, 4672, 3536, 1356, 326, 4520, 1983, 2151, 358, 999, 364, 19145, 52, 3537, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17319, 6668, 2471, 12, 2890, 4672, 3536, 1356, 326, 4520, 1983, 2151, 358, 999, 364, 19145, 52, 3537, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sage: sr = mq.SR(2,2,2,4)
sage: sr = mq.SR(2, 2, 2, 4)
def hex_str_vector(self, M): """ Return a one dimensional AES like representation of the matrix M.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 67, 701, 67, 7737, 12, 2890, 16, 490, 4672, 3536, 2000, 279, 1245, 17469, 15986, 3007, 4335, 434, 326, 3148, 490, 18, 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, 3827, 67, 701, 67, 7737, 12, 2890, 16, 490, 4672, 3536, 2000, 279, 1245, 17469, 15986, 3007, 4335, 434, 326, 3148, 490, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if j==int(j): j=int(j)
def _print_data(self, attr): """Return a string of data
cf7384197e5f6f81fbccf787ed8a8ba4e761f074 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12567/cf7384197e5f6f81fbccf787ed8a8ba4e761f074/h5_octave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 892, 12, 2890, 16, 1604, 4672, 3536, 990, 279, 533, 434, 501, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1188, 67, 892, 12, 2890, 16, 1604, 4672, 3536, 990, 279, 533, 434, 501, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
class EchoServer (asyncore.dispatcher): class ConnectionHandler (asyncore.dispatcher_with_send):
class EchoServer(asyncore.dispatcher): class ConnectionHandler(asyncore.dispatcher_with_send):
def stop (self): self.active = False
0dd64f6a0e5850fce167a308c0d887027fbc21ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/0dd64f6a0e5850fce167a308c0d887027fbc21ee/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 261, 2890, 4672, 365, 18, 3535, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2132, 261, 2890, 4672, 365, 18, 3535, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
startTime=start,
startTime=start) self.loadItemByUUID( record.uuid, pim.EventStamp,
def import_event(self, record):
c85c492f6d297ab072f7ca69b26e4d9ce16da9ee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/c85c492f6d297ab072f7ca69b26e4d9ce16da9ee/translator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 67, 2575, 12, 2890, 16, 1409, 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, ...
[ 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, 1930, 67, 2575, 12, 2890, 16, 1409, 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,...
if innercon.getID() != con.getID() and
if innercon.getID() != con.getID() and \
def searchMessages(self,username,querytext): #Determine index and data paths index_dir = self.indexdir + username data_dir = self.datadir + username
df7c59f6162a877ee18decaa3fbdfcc22b619e05 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4706/df7c59f6162a877ee18decaa3fbdfcc22b619e05/logmodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 5058, 12, 2890, 16, 5053, 16, 2271, 955, 4672, 468, 8519, 770, 471, 501, 2953, 770, 67, 1214, 273, 365, 18, 1615, 1214, 397, 2718, 501, 67, 1214, 273, 365, 18, 3404, 361, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 5058, 12, 2890, 16, 5053, 16, 2271, 955, 4672, 468, 8519, 770, 471, 501, 2953, 770, 67, 1214, 273, 365, 18, 1615, 1214, 397, 2718, 501, 67, 1214, 273, 365, 18, 3404, 361, 481, ...
if line == '\n' or line == '':
if line == '\n' or not line:
def _install_message(self, message): """Write message contents and return (start, stop).""" start = self._file.tell() if isinstance(message, BabylMessage): special_labels = [] labels = [] for label in message.get_labels(): if label in self._special_labels: special_labels.append(label) else: labels.append(label) self._f...
d373ead37954e8a4f6d449fdc08084eb0c428c76 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d373ead37954e8a4f6d449fdc08084eb0c428c76/mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5425, 67, 2150, 12, 2890, 16, 883, 4672, 3536, 3067, 883, 2939, 471, 327, 261, 1937, 16, 2132, 13, 12123, 787, 273, 365, 6315, 768, 18, 88, 1165, 1435, 309, 1549, 12, 2150, 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, 389, 5425, 67, 2150, 12, 2890, 16, 883, 4672, 3536, 3067, 883, 2939, 471, 327, 261, 1937, 16, 2132, 13, 12123, 787, 273, 365, 6315, 768, 18, 88, 1165, 1435, 309, 1549, 12, 2150, 16, ...
return(-1)
return(-1)
def io_write(self, str, len = -1): if self.__io == None: return(-1) if len < 0: return(self.__io.write(str))
1d75c8a822dbe6608e646cdbbeb174a3a4ab49c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/1d75c8a822dbe6608e646cdbbeb174a3a4ab49c0/libxml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2527, 67, 2626, 12, 2890, 16, 609, 16, 562, 273, 300, 21, 4672, 309, 365, 16186, 1594, 422, 599, 30, 327, 19236, 21, 13, 309, 562, 411, 374, 30, 327, 12, 2890, 16186, 1594, 18, 2626,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2527, 67, 2626, 12, 2890, 16, 609, 16, 562, 273, 300, 21, 4672, 309, 365, 16186, 1594, 422, 599, 30, 327, 19236, 21, 13, 309, 562, 411, 374, 30, 327, 12, 2890, 16186, 1594, 18, 2626,...
if each_mapping_line['external_type']: type_casted_field = eval(each_mapping_line['external_type'])(data_record.get(each_mapping_line['external_field'],False)) else: type_casted_field = data_record.get(each_mapping_line['external_field'],False) space = { 'self':self, 'cr':cr, 'uid':uid, 'data':data_record, 'external_r...
if each_mapping_line['external_field'] in data_record.keys(): if each_mapping_line['external_type']: type_casted_field = eval(each_mapping_line['external_type'])(data_record.get(each_mapping_line['external_field'],False)) else: type_casted_field = data_record.get(each_mapping_line['external_field'],False) space = { 's...
def oevals_from_extdata(self, cr, uid, external_referential_id, data_record, key_field, mapping_lines, defaults, context): vals = {} #Dictionary for create record for each_mapping_line in mapping_lines: #Type cast if the expression exists if each_mapping_line['external_type']: type_casted_field = eval(each_mapping_line...
d07f9c95968bdbda4f930095e821b2f43cc38306 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7089/d07f9c95968bdbda4f930095e821b2f43cc38306/external_osv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 73, 4524, 67, 2080, 67, 408, 892, 12, 2890, 16, 4422, 16, 4555, 16, 3903, 67, 266, 586, 2001, 67, 350, 16, 501, 67, 3366, 16, 498, 67, 1518, 16, 2874, 67, 3548, 16, 3467, 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, 320, 73, 4524, 67, 2080, 67, 408, 892, 12, 2890, 16, 4422, 16, 4555, 16, 3903, 67, 266, 586, 2001, 67, 350, 16, 501, 67, 3366, 16, 498, 67, 1518, 16, 2874, 67, 3548, 16, 3467, 16, ...
for dtype in [numpy.float64, numpy.float32, numpy.int32]:
for dtype in dtypes:
def test_minmax(self): from pycuda.curandom import rand as curand
b8244cb61491c9cdb83d36e57f8eb49773e44f6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12870/b8244cb61491c9cdb83d36e57f8eb49773e44f6b/test_gpuarray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1154, 1896, 12, 2890, 4672, 628, 2395, 71, 13177, 18, 1397, 2111, 1930, 5605, 487, 662, 464, 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, 1842, 67, 1154, 1896, 12, 2890, 4672, 628, 2395, 71, 13177, 18, 1397, 2111, 1930, 5605, 487, 662, 464, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (not co.wiki) and (not is_own(co)):
if not (co.wiki or is_own(co)):
def edit(co): if (not co.topic.is_mutable()) return False if has('instance.admin'): return True if not (has('comment.edit') and show(co)): return False if (not co.wiki) and (not is_own(co)): return False return True
be3ee0545a23e60b0b6bd9039ab3fcd0d3099287 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/be3ee0545a23e60b0b6bd9039ab3fcd0d3099287/comment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2894, 4672, 309, 261, 902, 1825, 18, 10476, 18, 291, 67, 5146, 10756, 327, 1083, 309, 711, 2668, 1336, 18, 3666, 11, 4672, 327, 1053, 309, 486, 261, 5332, 2668, 3469, 18, 461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 2894, 4672, 309, 261, 902, 1825, 18, 10476, 18, 291, 67, 5146, 10756, 327, 1083, 309, 711, 2668, 1336, 18, 3666, 11, 4672, 327, 1053, 309, 486, 261, 5332, 2668, 3469, 18, 461...
coverage.FindTests(options, args)
coverage.FindTests()
def main(): parser = optparse.OptionParser() parser.add_option('-d', '--directory', dest='directory', default=None, help='Directory of unit test files') parser.add_option('-a', '--all_unittests', dest='all_unittests', default=False, help='Run all tests we can find (*_unittests)') (options, args) = parser.parse_args() i...
36a488557d680de1559113071bc40c4d85ec7d9a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/36a488557d680de1559113071bc40c4d85ec7d9a/coverage_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 72, 2187, 3534, 5149, 2187, 1570, 2218, 5149, 2187, 805, 33, 7036, 16, 2809, 2218, 2853, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 2668, 17, 72, 2187, 3534, 5149, 2187, 1570, 2218, 5149, 2187, 805, 33, 7036, 16, 2809, 2218, 2853, 434...
self._not_imported_modules.append((name, ierr.message))
self._not_imported_modules.append((module_name, ierr.message))
def _import(self, dir): if not os.path.isdir(dir): raise AttributeError(_("%s is not a directory") % dir) sys.path.insert(0, dir) for file in os.listdir(dir): module_name, ext = os.path.splitext(file) if ext == '.py' and not (module_name == '__init__' or module_name == 'foo'): try: module = __import__(module_name) if n...
60fc597ca40bae5077cbd98d62b8ebc8d924bd2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8331/60fc597ca40bae5077cbd98d62b8ebc8d924bd2b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5666, 12, 2890, 16, 1577, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 1214, 4672, 1002, 6394, 24899, 27188, 87, 353, 486, 279, 1867, 7923, 738, 1577, 13, 2589, 18, 803, 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, 5666, 12, 2890, 16, 1577, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 1214, 4672, 1002, 6394, 24899, 27188, 87, 353, 486, 279, 1867, 7923, 738, 1577, 13, 2589, 18, 803, 18, ...
net = streams[i][0].stats.network.strip()
net = self.streams[i][0].stats.network.strip()
def __init__(self, streams = None, options = None): self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagFilt=False #False:no filter True:filter self.flagFiltTyp=0 #0: bandpass 1: bandstop 2:lowpass 3: highpass self.dictFiltTyp={'Bandpass':0, 'Bandstop':1, 'Lowpa...
a7ea27b0d88f474941076cae7ab6b09e010a3a46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/a7ea27b0d88f474941076cae7ab6b09e010a3a46/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, 2690, 2943, 16, 16176, 471, 20947, 702, 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, 1001, 2738, 972, 12, 2890, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, 2690, 2943, 16, 16176, 471, 20947, 702, 365, 18,...
"%3.3d-%s-%s.zcml" % (n, package, suff),
"%3.3d-%s-%s.zcml" % (n, package, file_suff),
def build_package_includes(self): """Create ZCML slugs in etc/package-includes """ location = self.options['location'] sitezcml_path = os.path.join(location, 'etc', 'site.zcml') zcml = self.options.get('zcml') site_zcml = self.options.get('site-zcml') additional_zcml = self.options.get("zcml-additional")
400968b967ca3c3b912c49fcebba98f68ba6be6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12227/400968b967ca3c3b912c49fcebba98f68ba6be6b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5610, 67, 18499, 12, 2890, 4672, 3536, 1684, 2285, 39, 1495, 25451, 316, 5527, 19, 5610, 17, 18499, 3536, 2117, 273, 365, 18, 2116, 3292, 3562, 3546, 2834, 94, 71, 781, 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, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 5610, 67, 18499, 12, 2890, 4672, 3536, 1684, 2285, 39, 1495, 25451, 316, 5527, 19, 5610, 17, 18499, 3536, 2117, 273, 365, 18, 2116, 3292, 3562, 3546, 2834, 94, 71, 781, 67, 8...
if seg_node.is_first_seg_in_loop() and len(last_path) > len(cur_path):
root_path = self.__path_list(os.path.commonprefix( ['/'.join(cur_path), '/'.join(last_path)])) if seg_node.is_first_seg_in_loop() and root_path==cur_path:
def seg(self, seg_node, seg_data): """ Generate XML for the segment data and matching map node
e9bd25aac3c189e4ae6760cb5b71568c9a174f0b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11528/e9bd25aac3c189e4ae6760cb5b71568c9a174f0b/x12xml_simple.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2291, 12, 2890, 16, 2291, 67, 2159, 16, 2291, 67, 892, 4672, 3536, 6654, 3167, 364, 326, 3267, 501, 471, 3607, 852, 756, 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, 2291, 12, 2890, 16, 2291, 67, 2159, 16, 2291, 67, 892, 4672, 3536, 6654, 3167, 364, 326, 3267, 501, 471, 3607, 852, 756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if 'name' not in vals:
if ('name' not in vals) or (vals.get('name')=='/'):
def create(self, cr, user, vals, context=None): if 'name' not in vals: vals['name'] = self.pool.get('ir.sequence').get(cr, user, 'stock.picking') return super(stock_picking, self).create(cr, user, vals, context)
c8212d8ac05ffb5be0e0ce0686909e6cd0eec63c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c8212d8ac05ffb5be0e0ce0686909e6cd0eec63c/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 309, 7707, 529, 11, 486, 316, 5773, 13, 578, 261, 4524, 18, 588, 2668, 529, 6134, 18920, 2473, 4672, 5773, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 309, 7707, 529, 11, 486, 316, 5773, 13, 578, 261, 4524, 18, 588, 2668, 529, 6134, 18920, 2473, 4672, 5773, 3292, ...
[('dateo', 0), ('datyp', 0), ('deet', 0), ('etiket', ' '), ('fileref', None), ('grtyp', 'X'), ('handle', -2), ('ig1', 0), ('ig2', 0), ('ig3', 0), ('ig4', 0), ('ip1', -1), ('ip2', -1), ('ip3', -1), ('nbits', 0), ('ni', -1), ('nj', -1), ('nk', -1), ('nom', ' '), ('npas', 0), ('nxt', 0), ('type', ' ')] >>> ...
[('dateo', 0), ('datev', -1), ('datyp', 0), ('deet', 0), ('etiket', ' '), ('fileref', None), ('grtyp', 'X'), ('handle', -2), ('ig1', 0), ('ig2', 0), ('ig3', 0), ('ig4', 0), ('ip1', -1), ('ip2', -1), ('ip3', -1), ('nbits', 0), ('ni', -1), ('nj', -1), ('nk', -1), ('nom', ' '), ('npas', 0), ('nxt', 0), ('typ...
def __init__(self,model=None,**args): FstParm.__init__(self,model,self.__AllowedKeysVals,args)
ffbaeebbbf86daf961cfd63f1d1c5e2ca6e7f0cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1808/ffbaeebbbf86daf961cfd63f1d1c5e2ca6e7f0cd/rpnstd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2284, 33, 7036, 16, 636, 1968, 4672, 478, 334, 27144, 16186, 2738, 972, 12, 2890, 16, 2284, 16, 2890, 16186, 5042, 2396, 13169, 16, 1968, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2284, 33, 7036, 16, 636, 1968, 4672, 478, 334, 27144, 16186, 2738, 972, 12, 2890, 16, 2284, 16, 2890, 16186, 5042, 2396, 13169, 16, 1968, 13, 2, -100, -1...
result = [ x['LogicalFileName'] for x in fileList] self.extend(result)
for block in fileList.values(): result = [ x['LogicalFileName'] for x in block['Files']] self.extend(result)
def loadLFNs(self, **dbsContacts): """ Get the list of LFNs from the DBS
f24feb7a0dc88baa1772b3149bd678b9a81c2ec9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/f24feb7a0dc88baa1772b3149bd678b9a81c2ec9/PileupDataset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 9105, 10386, 12, 2890, 16, 2826, 23475, 20017, 4672, 3536, 968, 326, 666, 434, 18803, 10386, 628, 326, 2383, 55, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1262, 9105, 10386, 12, 2890, 16, 2826, 23475, 20017, 4672, 3536, 968, 326, 666, 434, 18803, 10386, 628, 326, 2383, 55, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
win32con.WM_USER+20 : self.OnTaskbarNotify,
WM_TASKBAR_NOTIFY : self.OnTaskbarNotify,
def __init__(self): # The ordering here is important - it is the order that they will # appear in the menu. As dicts don't have an order, this means # that the order is controlled by the id. Any items were the # function is None will appear as separators. self.control_functions = {1024 : ("Start SpamBayes", self.Star...
dee0c4d20c1b073d14b6a18a484058719c5c30ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/dee0c4d20c1b073d14b6a18a484058719c5c30ec/pop3proxy_tray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1021, 9543, 2674, 353, 10802, 300, 518, 353, 326, 1353, 716, 2898, 903, 468, 9788, 316, 326, 3824, 18, 225, 2970, 15838, 2727, 1404, 1240, 392, 1353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1021, 9543, 2674, 353, 10802, 300, 518, 353, 326, 1353, 716, 2898, 903, 468, 9788, 316, 326, 3824, 18, 225, 2970, 15838, 2727, 1404, 1240, 392, 1353...
while l.startswith(' '): changelog.append(l.strip())
while l.startswith(' '): changelog.append(l[2:-1])
def _getUpstreamChangesets(self, sincerev): """ Do the actual work of fetching the upstream changeset. """
4cd6c523cd4b6cd08443df797f2c327847f21f58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/4cd6c523cd4b6cd08443df797f2c327847f21f58/darcs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 1211, 3256, 7173, 2413, 12, 2890, 16, 5367, 71, 822, 90, 4672, 3536, 2256, 326, 3214, 1440, 434, 16191, 326, 13505, 22463, 18, 3536, 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, 389, 588, 1211, 3256, 7173, 2413, 12, 2890, 16, 5367, 71, 822, 90, 4672, 3536, 2256, 326, 3214, 1440, 434, 16191, 326, 13505, 22463, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100...
self.assertEqual([[{'size': 512}, {'size': 123}], [{'size':5120}]], vm.disks)
self.assertEqual(5120, vm.disk_size)
def test_non_trivial(self): """ Test instantiating a VirtualMachine with extra parameters """ # Define cluster for use vm_hostname='vm.test.org' cluster = Cluster(hostname='test.osuosl.bak', slug='OSL_TEST') cluster.save() owner = ClusterUser(id=1, name='foobar') # Cluster vm = VirtualMachine(cluster=cluster, hostname...
2162f2fc3bbfc1a335a7d4bcf29dfb58afe849ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/2162f2fc3bbfc1a335a7d4bcf29dfb58afe849ba/virtual_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 67, 313, 20109, 12, 2890, 4672, 3536, 7766, 5934, 22906, 279, 18452, 598, 2870, 1472, 3536, 468, 13184, 2855, 364, 999, 4268, 67, 10358, 2218, 3489, 18, 3813, 18, 3341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5836, 67, 313, 20109, 12, 2890, 4672, 3536, 7766, 5934, 22906, 279, 18452, 598, 2870, 1472, 3536, 468, 13184, 2855, 364, 999, 4268, 67, 10358, 2218, 3489, 18, 3813, 18, 3341, 1...
def fl_read_pixmapfile(win, filename, w, h, shape_mask, hotx, hoty, tran): """ fl_read_pixmapfile(win, filename, w, h, shape_mask, hotx, hoty, tran) -> pixmap
def fl_read_pixmapfile(win, filename, tran): """ fl_read_pixmapfile(win, filename, tran) -> pixmap, w, h, shapemask, hotx, hoty
def fl_read_pixmapfile(win, filename, w, h, shape_mask, hotx, hoty, tran): """ fl_read_pixmapfile(win, filename, w, h, shape_mask, hotx, hoty, tran) -> pixmap """ _fl_read_pixmapfile = cfuncproto( load_so_libforms(), "fl_read_pixmapfile", Pixmap, [Window, STRING, cty.POINTER(cty.c_uint), cty.POINTER(cty.c_uint), cty.P...
bd6cf497d94f877a33a2bba90b9d74b9e4c950cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/bd6cf497d94f877a33a2bba90b9d74b9e4c950cb/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1183, 67, 896, 67, 14861, 1458, 768, 12, 8082, 16, 1544, 16, 13637, 4672, 3536, 1183, 67, 896, 67, 14861, 1458, 768, 12, 8082, 16, 1544, 16, 13637, 13, 317, 11871, 1458, 16, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1183, 67, 896, 67, 14861, 1458, 768, 12, 8082, 16, 1544, 16, 13637, 4672, 3536, 1183, 67, 896, 67, 14861, 1458, 768, 12, 8082, 16, 1544, 16, 13637, 13, 317, 11871, 1458, 16, 341, ...
if not (self._aws_region or self._opts['emr_endpoint']): return None
def _get_region_info_for_emr_conn(self): """Get a :py:class:`boto.ec2.regioninfo.RegionInfo` object to initialize EMR connections with.
815982712e198656505b67bf1dfdc1ceee5193c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14504/815982712e198656505b67bf1dfdc1ceee5193c0/emr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6858, 67, 1376, 67, 1884, 67, 351, 86, 67, 4646, 12, 2890, 4672, 3536, 967, 279, 294, 2074, 30, 1106, 28288, 20162, 18, 557, 22, 18, 6858, 1376, 18, 5165, 966, 68, 733,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 6858, 67, 1376, 67, 1884, 67, 351, 86, 67, 4646, 12, 2890, 4672, 3536, 967, 279, 294, 2074, 30, 1106, 28288, 20162, 18, 557, 22, 18, 6858, 1376, 18, 5165, 966, 68, 733,...
def get_child_iters_by_parent(self, iter):
def get_child_iters_by_parent(self, model, iter):
def get_child_iters_by_parent(self, iter): list = [] if self.model.iter_has_child(iter): for i in range(0, self.model.iter_n_children(iter)): next_iter = self.model.iter_nth_child(iter, i) parent = self.get_bean_from_iter(next_iter) list.append(parent) beans = self.get_child_iters_by_parent(next_iter) for bean in be...
3a1eef384846fb294d594329d48b4e92447c6347 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/3a1eef384846fb294d594329d48b4e92447c6347/common_tree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3624, 67, 27270, 67, 1637, 67, 2938, 12, 2890, 16, 938, 16, 1400, 4672, 666, 273, 5378, 309, 365, 18, 2284, 18, 2165, 67, 5332, 67, 3624, 12, 2165, 4672, 364, 277, 316, 1048...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3624, 67, 27270, 67, 1637, 67, 2938, 12, 2890, 16, 938, 16, 1400, 4672, 666, 273, 5378, 309, 365, 18, 2284, 18, 2165, 67, 5332, 67, 3624, 12, 2165, 4672, 364, 277, 316, 1048...
if experiment_id in self.zero_lag_ids and experiment_summ_id in self.zero_lag_ids[experiment_id].values():
if (experiment_id, ifos, param_group) not in self.bkg_stats: self.bkg_stats[(experiment_id, ifos, param_group)] = [] if (experiment_id, experiment_summ_id, ifos, param_group) not in self.sngl_slide_stats:
def add_to_bkg_stats(self, experiment_id, experiment_summ_id, ifos, param_group, stat): """ Adds a stat to bkg_stats and sngl_slide_stats. What stat is added is determined on the command line by the ranking-stat option. """ if experiment_id in self.zero_lag_ids and experiment_summ_id in self.zero_lag_ids[experiment_id]...
906c8b1e5a81d5b64a9cd26a532eef169cda5f66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/906c8b1e5a81d5b64a9cd26a532eef169cda5f66/ligolw_sqlutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 70, 14931, 67, 5296, 12, 2890, 16, 8724, 67, 350, 16, 8724, 67, 1364, 81, 67, 350, 16, 309, 538, 16, 579, 67, 1655, 16, 610, 4672, 3536, 15605, 279, 610, 358, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 869, 67, 70, 14931, 67, 5296, 12, 2890, 16, 8724, 67, 350, 16, 8724, 67, 1364, 81, 67, 350, 16, 309, 538, 16, 579, 67, 1655, 16, 610, 4672, 3536, 15605, 279, 610, 358, 324...
self._filepath = os.path.join(self._config['qtlabdir'],
self._filepath = os.path.join(self._config['execdir'],
def __init__(self, name, address, reset=False, numdacs=8): ''' Initializes the SMS, and communicates with the wrapper Dacvalues are stored in "'SMS_' + address + '.dat'" ??really??
32e28db7c4f0877a55c1ab16de55ab8020e01734 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/32e28db7c4f0877a55c1ab16de55ab8020e01734/SMS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 1758, 16, 2715, 33, 8381, 16, 818, 72, 28965, 33, 28, 4672, 9163, 10188, 3128, 326, 21297, 16, 471, 8391, 8242, 598, 326, 4053, 463, 1077, 2372,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 16, 1758, 16, 2715, 33, 8381, 16, 818, 72, 28965, 33, 28, 4672, 9163, 10188, 3128, 326, 21297, 16, 471, 8391, 8242, 598, 326, 4053, 463, 1077, 2372,...
if weburl is None: raise ValueError('You must provide a http URL to the repository') self.weburl = weburl
if weburl is not None: warnings.warn("Param weburl: You are no longer required to provide " "a web URL for your git repos", DeprecationWarning)
def __init__(self, repodir, giturl, weburl): super(installable_object.InstallableObject, self).__init__() if repodir is None: e_msg = 'You must provide a directory to hold the git repository' raise ValueError(e_msg) self.repodir = utils.sh_escape(repodir) if giturl is None: raise ValueError('You must provide a git URL ...
262f1ae410e47550d744014d4cd8740c69d1f450 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/262f1ae410e47550d744014d4cd8740c69d1f450/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2071, 369, 481, 16, 5071, 718, 16, 3311, 718, 4672, 2240, 12, 5425, 429, 67, 1612, 18, 6410, 429, 921, 16, 365, 2934, 972, 2738, 972, 1435, 309, 2071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2071, 369, 481, 16, 5071, 718, 16, 3311, 718, 4672, 2240, 12, 5425, 429, 67, 1612, 18, 6410, 429, 921, 16, 365, 2934, 972, 2738, 972, 1435, 309, 2071, ...
style = qt.config.get('gnuplot2d_style', 'image3d')
style = qt.config.get('gnuplot2d_style', 'lines')
def set_style(self, style, update=True): '''Set plotting style.'''
2075ec0e0d78e1a47be8656db1541f47cfd565e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/2075ec0e0d78e1a47be8656db1541f47cfd565e2/qtgnuplot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4060, 12, 2890, 16, 2154, 16, 1089, 33, 5510, 4672, 9163, 694, 20947, 2154, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4060, 12, 2890, 16, 2154, 16, 1089, 33, 5510, 4672, 9163, 694, 20947, 2154, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
form_fs = self.get_fs_layout_content(portal_meta, skin_id, scheme_id, file_id)
form_fs = self.get_fs_layout_content(portal, skin_id, scheme_id, file_id)
def updateLayoutForms(self, portal, locator, skin_id, f_action, file_id): """ reload Naaya portal layout files""" report = {} portal_path = portal.absolute_url(1) portal_meta = portal.meta_type file_custom = [] for fid in file_id.split(','): file_custom.append(fid.strip())
ba7db54416bb4a2a8ec35d231a25c000f8c28f7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3287/ba7db54416bb4a2a8ec35d231a25c000f8c28f7e/NaayaUpdater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3744, 18529, 12, 2890, 16, 11899, 16, 8871, 16, 18705, 67, 350, 16, 284, 67, 1128, 16, 585, 67, 350, 4672, 3536, 7749, 16350, 528, 69, 11899, 3511, 1390, 8395, 2605, 273, 2618, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 3744, 18529, 12, 2890, 16, 11899, 16, 8871, 16, 18705, 67, 350, 16, 284, 67, 1128, 16, 585, 67, 350, 4672, 3536, 7749, 16350, 528, 69, 11899, 3511, 1390, 8395, 2605, 273, 2618, 1...
"""Decide whether a particular character needs to be quoted.
"""Decide whether a particular character needs to be quoted.
def needsquoting(c, quotetabs): """Decide whether a particular character needs to be quoted. The 'quotetabs' flag indicates whether tabs should be quoted.""" if c == '\t': return not quotetabs return c == ESCAPE or not(' ' <= c <= '~')
f526971f3bf2401625c1aaa9a44fb6b7af11aee7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f526971f3bf2401625c1aaa9a44fb6b7af11aee7/quopri.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 9270, 310, 12, 71, 16, 4914, 278, 5113, 4672, 3536, 1799, 831, 2856, 279, 6826, 3351, 4260, 358, 506, 9298, 18, 225, 1021, 296, 9270, 278, 5113, 11, 2982, 8527, 2856, 10920, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 9270, 310, 12, 71, 16, 4914, 278, 5113, 4672, 3536, 1799, 831, 2856, 279, 6826, 3351, 4260, 358, 506, 9298, 18, 225, 1021, 296, 9270, 278, 5113, 11, 2982, 8527, 2856, 10920, 1410, ...
fields = line.split()
def assemble(self, srcfile): print "Assembling", srcfile self.context.srcfile = srcfile self.context.linenum = 0 lines = open(srcfile).readlines() for line in lines: if line.endswith('\n'): line = line[:-1] srcline = line.expandtabs(8) self.context.linenum += 1 self.context.global_linenum += 1 self.context.code = None ...
37030eff6afbde328f57dc899dc322fc17f5de9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/37030eff6afbde328f57dc899dc322fc17f5de9b/assembler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19540, 12, 2890, 16, 1705, 768, 4672, 1172, 315, 1463, 5747, 2456, 3113, 1705, 768, 365, 18, 2472, 18, 4816, 768, 273, 1705, 768, 365, 18, 2472, 18, 7511, 7924, 273, 374, 2362, 273, 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, 19540, 12, 2890, 16, 1705, 768, 4672, 1172, 315, 1463, 5747, 2456, 3113, 1705, 768, 365, 18, 2472, 18, 4816, 768, 273, 1705, 768, 365, 18, 2472, 18, 7511, 7924, 273, 374, 2362, 273, 16...
html_filename = write_html_output(self.opts, sys.argv[1:],\ self.fname_list, self.tag_list,\ comment=self.html_footer or None) write_cache_output(self.opts, html_filename, self.fname_list)
html_filename = self.create_htmlname(infix, cbcweb) self.write_html_output(html_filename, doThumb = doThumb, cbcweb = cbcweb, \ map_list = map_list, coinc_summ_table = coinc_summ_table,\ comment=self.html_footer or None) self.write_cache_output(html_filename)
def write_page(self): """ create the page """ if self.opts.enable_output: html_filename = write_html_output(self.opts, sys.argv[1:],\ self.fname_list, self.tag_list,\ comment=self.html_footer or None) write_cache_output(self.opts, html_filename, self.fname_list) return html_filename
2e4ac0c3785d5c428e5a8f12a0396dabae7dee4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/2e4ac0c3785d5c428e5a8f12a0396dabae7dee4b/InspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2433, 12, 2890, 4672, 3536, 752, 326, 1363, 3536, 309, 365, 18, 4952, 18, 7589, 67, 2844, 30, 1729, 67, 3459, 273, 365, 18, 2640, 67, 2620, 529, 12, 267, 904, 16, 2875, 71,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2433, 12, 2890, 4672, 3536, 752, 326, 1363, 3536, 309, 365, 18, 4952, 18, 7589, 67, 2844, 30, 1729, 67, 3459, 273, 365, 18, 2640, 67, 2620, 529, 12, 267, 904, 16, 2875, 71,...
def readNextTag(self, file): length, name = self.readInt(file), self.read(4, file) length -= 8 if length < 0 or length > 1000: raise ValueError, "Oops?" if name in CONTAINER_TAGS: self.read(SKIP_TAGS.get(name, 0), file) data = '[container tag]' else: data = self.read(length, file) if name == '\xa9nam': self.title = da...
core.register( 'audio/m4a', ('m4a',), Mpeg4Audio)
def readNextTag(self, file): length, name = self.readInt(file), self.read(4, file) length -= 8 if length < 0 or length > 1000: raise ValueError, "Oops?"
645df27c3836f9a6a9695efcee3dfb935d1c8d54 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11721/645df27c3836f9a6a9695efcee3dfb935d1c8d54/m4a.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 2134, 1805, 12, 2890, 16, 585, 4672, 769, 16, 508, 273, 365, 18, 896, 1702, 12, 768, 3631, 365, 18, 896, 12, 24, 16, 585, 13, 769, 3947, 1725, 309, 769, 411, 374, 578, 769, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 2134, 1805, 12, 2890, 16, 585, 4672, 769, 16, 508, 273, 365, 18, 896, 1702, 12, 768, 3631, 365, 18, 896, 12, 24, 16, 585, 13, 769, 3947, 1725, 309, 769, 411, 374, 578, 769, 40...
def parse_more (more, type=XML_element, types={}, unicoding=1): dom = XML_dom (type, types)
def parse_more (more, DOM=XML_dom, unicoding=1): dom = DOM () dom.xml_type = type dom.xml_types = types
def parse_more (more, type=XML_element, types={}, unicoding=1): dom = XML_dom (type, types) dom.xml_unicoding = unicoding dom.xml_parser_reset () try: data = more () while data: dom.xml_expat.Parse (data, 0) dom.xml_expat.Parse ('', 1) except expat.ExpatError, error: dom.xml_error = error while self.xml_parsed != None:...
ac48139c520ea55e1c7d098bda31527caaf9b265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/ac48139c520ea55e1c7d098bda31527caaf9b265/xml_dom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 10161, 261, 10161, 16, 4703, 33, 4201, 67, 9859, 16, 640, 335, 4751, 33, 21, 4672, 4092, 273, 4703, 1832, 4092, 18, 2902, 67, 723, 273, 618, 4092, 18, 2902, 67, 2352, 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, 1109, 67, 10161, 261, 10161, 16, 4703, 33, 4201, 67, 9859, 16, 640, 335, 4751, 33, 21, 4672, 4092, 273, 4703, 1832, 4092, 18, 2902, 67, 723, 273, 618, 4092, 18, 2902, 67, 2352, 273, ...
rev = ExtractCvsRevision("$Revision: 1.84 $")
rev = ExtractCvsRevision("$Revision: 1.85 $")
def __init__(self, config): # Initializer super(self.__class__,self).__init__() DebugPrint(0,"Creating a ProbeDetails record "+TimeToString())
723d132968498a643f194b7cae6536536f8647fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/723d132968498a643f194b7cae6536536f8647fe/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 4672, 468, 4378, 3926, 2240, 12, 2890, 16186, 1106, 972, 16, 2890, 2934, 972, 2738, 972, 1435, 4015, 5108, 12, 20, 10837, 11092, 279, 25490, 3790, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 4672, 468, 4378, 3926, 2240, 12, 2890, 16186, 1106, 972, 16, 2890, 2934, 972, 2738, 972, 1435, 4015, 5108, 12, 20, 10837, 11092, 279, 25490, 3790, 140...
ans = self.parent()(0)
ans = R(0)
def log(self): r""" Compute the p-adic logarithm of any nonzero element of $\Q_p$. (See below for normalization.) The usual power series for log with values in the additive group of $\Q_p$ only converges for 1-units (units congruent to 1 modulo p). However, there is a unique extension of log to a homomorphism defined...
70f528e91413186ba4ba7d4472203c4e250d8fdc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/70f528e91413186ba4ba7d4472203c4e250d8fdc/padic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 4672, 436, 8395, 8155, 326, 293, 17, 20333, 613, 31249, 434, 1281, 16966, 930, 434, 271, 64, 53, 67, 84, 8, 18, 261, 9704, 5712, 364, 13728, 12998, 225, 1021, 25669, 721...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 12, 2890, 4672, 436, 8395, 8155, 326, 293, 17, 20333, 613, 31249, 434, 1281, 16966, 930, 434, 271, 64, 53, 67, 84, 8, 18, 261, 9704, 5712, 364, 13728, 12998, 225, 1021, 25669, 721...
Animal.insert().execute(Species='Millipede', Legs=1000000, ZooID=sdz)
Animal.insert().execute(Species=u'Millipede', Legs=1000000, ZooID=sdz)
def test_1a_populate(self): Zoo = metadata.tables['Zoo'] Animal = metadata.tables['Animal'] wap = Zoo.insert().execute(Name='Wild Animal Park', Founded=datetime.date(2000, 1, 1), # 59 can give rounding errors with divmod, which # AdapterFromADO needs to correct. Opens=datetime.time(8, 15, 59), LastEscape=datetime.date...
4d7f279d14ca4dd275de58ba11fe28a28a09dc46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/4d7f279d14ca4dd275de58ba11fe28a28a09dc46/zoomark.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 21, 69, 67, 19936, 12, 2890, 4672, 2285, 5161, 273, 1982, 18, 9373, 3292, 62, 5161, 3546, 1922, 2840, 273, 1982, 18, 9373, 3292, 979, 2840, 3546, 225, 341, 438, 273, 2285, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21, 69, 67, 19936, 12, 2890, 4672, 2285, 5161, 273, 1982, 18, 9373, 3292, 62, 5161, 3546, 1922, 2840, 273, 1982, 18, 9373, 3292, 979, 2840, 3546, 225, 341, 438, 273, 2285, 51...
to be installed to handle requests.
to be installed to handle requests. The default implementation attempts to dispatch XML-RPC calls to the functions or instance installed in the server. Override the _dispatch method inhereted from SimpleXMLRPCDispatcher to change this behavior.
def _resolve_dotted_attribute(obj, attr): """Resolves a dotted attribute name to an object. Raises an AttributeError if any attribute in the chain starts with a '_'. """ for i in attr.split('.'): if i.startswith('_'): raise AttributeError( 'attempt to access private attribute "%s"' % i ) else: obj = getattr(obj,i) ret...
6248a0e4c285ecf6ee6f0f27e490a8f28caa146c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6248a0e4c285ecf6ee6f0f27e490a8f28caa146c/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 9811, 2344, 67, 4589, 12, 2603, 16, 1604, 4672, 3536, 17453, 279, 20965, 1566, 508, 358, 392, 733, 18, 225, 20497, 392, 6394, 309, 1281, 1566, 316, 326, 2687, 2542, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10828, 67, 9811, 2344, 67, 4589, 12, 2603, 16, 1604, 4672, 3536, 17453, 279, 20965, 1566, 508, 358, 392, 733, 18, 225, 20497, 392, 6394, 309, 1281, 1566, 316, 326, 2687, 2542, 598, ...
consent_form = ConsentForm(display_language=request.user.get_profile().preferred_language)
consent_form = ConsentForm(display_language=request.LANGUAGE_CODE)
def new_submission(request): if request.method == 'POST': consent_form = ConsentForm(request.POST, display_language=request.user.get_profile().preferred_language) if consent_form.is_valid(): initial_form = InitialTrialForm(user=request.user) sponsor_form = PrimarySponsorForm() forms = [initial_form, sponsor_form] ret...
d967efec2e8a35dd57452b82de5794bcd741c49e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/d967efec2e8a35dd57452b82de5794bcd741c49e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 12684, 12, 2293, 4672, 225, 309, 590, 18, 2039, 422, 296, 3798, 4278, 28243, 67, 687, 273, 735, 7569, 1204, 12, 2293, 18, 3798, 16, 2562, 67, 4923, 33, 2293, 18, 1355, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 12684, 12, 2293, 4672, 225, 309, 590, 18, 2039, 422, 296, 3798, 4278, 28243, 67, 687, 273, 735, 7569, 1204, 12, 2293, 18, 3798, 16, 2562, 67, 4923, 33, 2293, 18, 1355, 18, 5...
JMARIO_DIR = str(py.magic.autopath().dirpath().dirpath()\
MARIO_DIR = str(py.magic.autopath().dirpath().dirpath()\
def start_python_version(): global filename, skip_count, in_between_skip gameBoy = GameBoyDebugImplementation(SOCKET_PORT, DebugRpcXmlConnection, skip_count, in_between_skip) try: gameBoy.load_cartridge_file(str(filename)) except Exception, error: gameBoy.load_cartridge_file(str(filename), verify=False) print "Cartridg...
8e4f19e0d158f5930d7e61d9f62b4faee14cc829 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/8e4f19e0d158f5930d7e61d9f62b4faee14cc829/gameboy_debug_entry_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 8103, 67, 1589, 13332, 2552, 1544, 16, 2488, 67, 1883, 16, 316, 67, 15019, 67, 7457, 7920, 38, 13372, 273, 14121, 38, 13372, 2829, 13621, 12, 25699, 67, 6354, 16, 4015, 11647, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 8103, 67, 1589, 13332, 2552, 1544, 16, 2488, 67, 1883, 16, 316, 67, 15019, 67, 7457, 7920, 38, 13372, 273, 14121, 38, 13372, 2829, 13621, 12, 25699, 67, 6354, 16, 4015, 11647, ...
self.trans.dev = int(pipe[1]) * 1000
self.trans.dev += int(pipe[-3]) * 1000
def parse(self, line, timestamp=None, frame=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...
5f9c20a044587159b11cc535dddf39973867ec82 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10464/5f9c20a044587159b11cc535dddf39973867ec82/Log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 980, 16, 2858, 33, 7036, 16, 2623, 33, 7036, 4672, 365, 18, 1369, 1854, 1011, 404, 2430, 273, 980, 18, 4939, 1435, 775, 30, 468, 2256, 279, 5264, 384, 416, 350, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 2623, 33, 7036, 4672, 365, 18, 1369, 1854, 1011, 404, 2430, 273, 980, 18, 4939, 1435, 775, 30, 468, 2256, 279, 5264, 384, 416, 350, 1...
source_logger.debug("Entering main time loop...")
if _debug: source_logger.debug("Entering main time loop...")
def getsourceandintegrate(m, savefile=None, srcfunc=slowrollsrcterm, ninit=0, nfinal=-1, ntheta=513, numks=1025): """Calculate and save integrated source term. Using first order results in the specified model, the source term for second order perturbations is obtained from the given source function. The convolution in...
548f848384bf732d46e346a1702f300e1b784ec0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7283/548f848384bf732d46e346a1702f300e1b784ec0/sosource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 3168, 464, 14970, 5141, 12, 81, 16, 1923, 768, 33, 7036, 16, 1705, 644, 33, 87, 821, 2693, 11254, 299, 1035, 16, 290, 2738, 33, 20, 16, 290, 6385, 29711, 21, 16, 290, 14482, 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, 336, 3168, 464, 14970, 5141, 12, 81, 16, 1923, 768, 33, 7036, 16, 1705, 644, 33, 87, 821, 2693, 11254, 299, 1035, 16, 290, 2738, 33, 20, 16, 290, 6385, 29711, 21, 16, 290, 14482, 33,...
self.wins[fname] = buffer, text, model
self.wins[fname] = buff, text, model
def file_save(self, mi=None, fname=None): if self.new: return self.file_saveas()
10449cb4d34f22fdbee6714299a5514922fc253d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/10449cb4d34f22fdbee6714299a5514922fc253d/edit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 67, 5688, 12, 2890, 16, 12837, 33, 7036, 16, 5299, 33, 7036, 4672, 309, 365, 18, 2704, 30, 327, 365, 18, 768, 67, 5688, 345, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 585, 67, 5688, 12, 2890, 16, 12837, 33, 7036, 16, 5299, 33, 7036, 4672, 309, 365, 18, 2704, 30, 327, 365, 18, 768, 67, 5688, 345, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -...
for (trvName, (oRev, oFlv), (rev, flv), searchLocalRepo) in jobList: yield (trvName, (self._thawRevision(oRev), self._thawFlavor(oFlv)), (self._thawRevision(rev), self._thawFlavor(flv)), bool(searchLocalRepo))
for job in jobList: yield self._thawJob(job)
def _thawJobList(self, jobList): for (trvName, (oRev, oFlv), (rev, flv), searchLocalRepo) in jobList: yield (trvName, (self._thawRevision(oRev), self._thawFlavor(oFlv)), (self._thawRevision(rev), self._thawFlavor(flv)), bool(searchLocalRepo))
73a7c8ea4c223045bb6a84f05f1aa70a213da04b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/73a7c8ea4c223045bb6a84f05f1aa70a213da04b/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 451, 2219, 2278, 682, 12, 2890, 16, 1719, 682, 4672, 364, 261, 313, 90, 461, 16, 261, 83, 10070, 16, 320, 2340, 90, 3631, 261, 9083, 16, 1183, 90, 3631, 1623, 2042, 8791, 13, 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, 389, 451, 2219, 2278, 682, 12, 2890, 16, 1719, 682, 4672, 364, 261, 313, 90, 461, 16, 261, 83, 10070, 16, 320, 2340, 90, 3631, 261, 9083, 16, 1183, 90, 3631, 1623, 2042, 8791, 13, 31...
raise NotImplementedError
sys.stderr.write("Warning: Undefined behaviour for end tag %s"%name) self.endTagOther(name)
def endTagNew(self, name): """New HTML5 elements, "event-source", "section", "nav", "article", "aside", "header", "footer", "datagrid", "command" """ raise NotImplementedError
3b61b66c35edaea051b9c6bd067b91c4d9b2a71a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/3b61b66c35edaea051b9c6bd067b91c4d9b2a71a/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 1908, 12, 2890, 16, 508, 4672, 3536, 1908, 3982, 25, 2186, 16, 315, 2575, 17, 3168, 3113, 315, 3464, 3113, 315, 11589, 3113, 315, 11480, 3113, 315, 345, 831, 3113, 315, 3374, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 1908, 12, 2890, 16, 508, 4672, 3536, 1908, 3982, 25, 2186, 16, 315, 2575, 17, 3168, 3113, 315, 3464, 3113, 315, 11589, 3113, 315, 11480, 3113, 315, 345, 831, 3113, 315, 3374, 3113...
precisedate = parse_date(req.args.get('from'), req.tz) fromdate = precisedate
reqfromdate = req.args['from'].strip() if reqfromdate: precisedate = parse_date(reqfromdate, req.tz) fromdate = precisedate
def process_request(self, req): req.perm.assert_permission('TIMELINE_VIEW')
3a8b7fb5c90ae2a6ed84a1984a8d460dc6c3f112 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/3a8b7fb5c90ae2a6ed84a1984a8d460dc6c3f112/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 11231, 67, 9827, 2668, 4684, 5997, 67, 12145, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
(x, y) = tableWidget.GetViewStart() if (x == 0 and y == 25): logger.ReportPass("Scrolled table")
(xEnd, yEnd) = calendarWidget.GetViewStart() if (yEnd == yStart + 1): logger.ReportPass("On scrolling calendar one unit")
def processNextIdle(): wx.GetApp().Yield() ev = wx.IdleEvent() wx.GetApp().ProcessEvent(ev) wx.GetApp().Yield()
0e1a6aa935acd9ae9fcd9f52072178d510066de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0e1a6aa935acd9ae9fcd9f52072178d510066de4/PerfLargeDataScrollCalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2134, 13834, 13332, 7075, 18, 967, 3371, 7675, 16348, 1435, 2113, 273, 7075, 18, 13834, 1133, 1435, 7075, 18, 967, 3371, 7675, 2227, 1133, 12, 14965, 13, 7075, 18, 967, 3371, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2134, 13834, 13332, 7075, 18, 967, 3371, 7675, 16348, 1435, 2113, 273, 7075, 18, 13834, 1133, 1435, 7075, 18, 967, 3371, 7675, 2227, 1133, 12, 14965, 13, 7075, 18, 967, 3371, 7675, ...
sage: repr(Permutations(['c','a','t'])) "Permutations of the (multi-)set ['c', 'a', 't']" """ return "Permutations of the (multi-)set %s"%self.mset
sage: repr(Permutations(['c','a','c'])) "Permutations of the multi-set ['c', 'a', 'c']" """ return "Permutations of the multi-set %s"%self.mset
def __repr__(self): """ TESTS: sage: repr(Permutations(['c','a','t'])) "Permutations of the (multi-)set ['c', 'a', 't']" """ return "Permutations of the (multi-)set %s"%self.mset
1a812ffad55ed75bbc64ffc4e98f636e9a81401f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1a812ffad55ed75bbc64ffc4e98f636e9a81401f/permutation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3536, 22130, 55, 30, 272, 410, 30, 8480, 12, 9123, 22190, 12, 3292, 71, 17023, 69, 17023, 71, 3546, 3719, 315, 9123, 22190, 434, 326, 3309, 17, 542, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 3536, 22130, 55, 30, 272, 410, 30, 8480, 12, 9123, 22190, 12, 3292, 71, 17023, 69, 17023, 71, 3546, 3719, 315, 9123, 22190, 434, 326, 3309, 17, 542, 1...
ProtocolWrapper.__init__(self, factory, wrappedProtocol)
self.factory = factory self.wrappedProtocol = wrappedProtocol
def __init__(self, factory, wrappedProtocol): if debug: print 'TwistedProtocolWrapper.__init__' ProtocolWrapper.__init__(self, factory, wrappedProtocol)
6fe70c6744837071ee65ac467c41743c6775a34f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/6fe70c6744837071ee65ac467c41743c6775a34f/TwistedProtocolWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3272, 16, 5805, 5752, 4672, 309, 1198, 30, 1172, 296, 23539, 25444, 5752, 3611, 16186, 2738, 7250, 4547, 3611, 16186, 2738, 972, 12, 2890, 16, 3272, 16, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3272, 16, 5805, 5752, 4672, 309, 1198, 30, 1172, 296, 23539, 25444, 5752, 3611, 16186, 2738, 7250, 4547, 3611, 16186, 2738, 972, 12, 2890, 16, 3272, 16, 58...
self._no_check_chars = self.get_no_check_chars()
self._no_check_chars = self.get_no_check_chars() self._goucima={}
def __init__(self, name = 'table.db', user_db = None, filename = None ): # use filename when you are creating db from source # use name when you are using db # first we use the Parse in tabdict, which transform the char(a,b,c,...) to int(1,2,3,...) to fasten the sql enquiry self.parse = tabdict.parse self.deparse = tab...
8d138bb09dccae010bac91e40a0b62ded613872d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/544/8d138bb09dccae010bac91e40a0b62ded613872d/tabsqlitedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 273, 296, 2121, 18, 1966, 2187, 729, 67, 1966, 273, 599, 16, 1544, 273, 599, 262, 30, 468, 999, 1544, 1347, 1846, 854, 4979, 1319, 628, 1084, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 273, 296, 2121, 18, 1966, 2187, 729, 67, 1966, 273, 599, 16, 1544, 273, 599, 262, 30, 468, 999, 1544, 1347, 1846, 854, 4979, 1319, 628, 1084, 468, ...
\code{plot_vector_field} takes two functions of two variables, $(f(x,y), g(x,y))$ and plots vector arrows of the function over the specified xrange and yrange as demonstrated below.
\code{plot_vector_field} takes two functions of two variables xvar and yvar (for instance, if the variables are $x$ and $y$, take $(f(x,y), g(x,y))$) and plots vector arrows of the function over the specified ranges, with xrange being of xvar between xmin and xmax and yrange similarly (see below).
def plot_vector_field((f, g), xrange, yrange, **options): r""" \code{plot_vector_field} takes two functions of two variables, $(f(x,y), g(x,y))$ and plots vector arrows of the function over the specified xrange and yrange as demonstrated below. plot_vector_field((f, g), (xvar, xmin, xmax), (yvar, ymin, ymax)) EXAMPL...
d9241674a354dbecbf17e85b0e29bf06dbb5af50 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/d9241674a354dbecbf17e85b0e29bf06dbb5af50/plot_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 7737, 67, 1518, 12443, 74, 16, 314, 3631, 12314, 16, 677, 3676, 16, 2826, 2116, 4672, 436, 8395, 225, 521, 710, 95, 4032, 67, 7737, 67, 1518, 97, 5530, 2795, 4186, 434, 2795,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 7737, 67, 1518, 12443, 74, 16, 314, 3631, 12314, 16, 677, 3676, 16, 2826, 2116, 4672, 436, 8395, 225, 521, 710, 95, 4032, 67, 7737, 67, 1518, 97, 5530, 2795, 4186, 434, 2795,...
[((2, 3, None), (3, 4, None), None), ((1, 2, None), (2, 4, None), None), ((1, 2, None), (2, 3, None), None), ((1, 3, None), (3, 4, None), None)]
[((1, 2, None), (2, 3, None), None), ((1, 2, None), (2, 4, None), None), ((1, 3, None), (3, 4, None), None), ((2, 3, None), (3, 4, None), None)]
def line_graph(self): """ Returns the line graph of the (di)graph.
22d96694c7ad3278187bdc980fac551447fa6b0c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/22d96694c7ad3278187bdc980fac551447fa6b0c/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 980, 67, 4660, 12, 2890, 4672, 3536, 2860, 326, 980, 2667, 434, 326, 261, 3211, 13, 4660, 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,...
[ 1, 1, 1, 1, 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, 980, 67, 4660, 12, 2890, 4672, 3536, 2860, 326, 980, 2667, 434, 326, 261, 3211, 13, 4660, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
a[i] = mean_value - a[i]
a[i] = mirror - a[i]
def run(args): run_mode = args.pop(0) assert run_mode in run_modes filename = args.pop(0) data = Gwyddion.dump.read(filename) dfield = data['/0/data'] a = dfield['data'] n = len(a) mean_value = (min(a) + max(a))/2.0 for i in range(n): a[i] = mean_value - a[i] Gwyddion.dump.write(data, filename)
8f37642fabc20f699593dea61a3116914c8e4e19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6176/8f37642fabc20f699593dea61a3116914c8e4e19/invert_python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 4672, 1086, 67, 3188, 273, 833, 18, 5120, 12, 20, 13, 1815, 1086, 67, 3188, 316, 1086, 67, 19282, 225, 1544, 273, 833, 18, 5120, 12, 20, 13, 501, 273, 611, 91, 93, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 1968, 4672, 1086, 67, 3188, 273, 833, 18, 5120, 12, 20, 13, 1815, 1086, 67, 3188, 316, 1086, 67, 19282, 225, 1544, 273, 833, 18, 5120, 12, 20, 13, 501, 273, 611, 91, 93, ...
tag_counts = tag_counts[-1:-101:-1]
num_tags = 50 tag_counts = tag_counts[-1:-1-num_tags:-1]
def tag_counts(): # More efficient alternative to get working: # sql: select tag.name, count(*) from tag join package_tag on tag.id = # package_tag.tag_id where pacakge_tag.state = 'active' # c.tags = model.Session.query(model.Tag).join('package_tag').order_by(func.count('*')).limit(100) tags = model.Session.query(mode...
e1ec0a75f18c91039e0e4045c86fb95034718fc9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/e1ec0a75f18c91039e0e4045c86fb95034718fc9/home.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 8008, 13332, 468, 16053, 14382, 10355, 358, 336, 5960, 30, 468, 1847, 30, 2027, 1047, 18, 529, 16, 1056, 24099, 628, 1047, 1233, 2181, 67, 2692, 603, 1047, 18, 350, 273, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 8008, 13332, 468, 16053, 14382, 10355, 358, 336, 5960, 30, 468, 1847, 30, 2027, 1047, 18, 529, 16, 1056, 24099, 628, 1047, 1233, 2181, 67, 2692, 603, 1047, 18, 350, 273, 468, ...
sage: C = SpinCrystal(['B',3])
sage: C = CrystalOfSpins(['B',3])
def e(self, i): r""" TEST: sage: C = SpinCrystal(['B',3]) sage: C(1).e(1) == None True sage: C(1).e(2) == None True sage: C(1).e(3) == None True sage: C(2).e(1) == None True sage: C(2).e(2) == None True sage: C(2).e(3) == C(1) True sage: C(3).e(1) == None True sage: C(3).e(2) == C(2) True sage: C(3).e(3) == None True s...
4ebf3b778be18b7ddbea4dea1e6874f37ab5a20d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4ebf3b778be18b7ddbea4dea1e6874f37ab5a20d/spins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 425, 12, 2890, 16, 277, 4672, 436, 8395, 22130, 30, 272, 410, 30, 385, 273, 14998, 31365, 951, 3389, 2679, 12, 3292, 38, 2187, 23, 5717, 272, 410, 30, 385, 12, 21, 2934, 73, 12, 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, 425, 12, 2890, 16, 277, 4672, 436, 8395, 22130, 30, 272, 410, 30, 385, 273, 14998, 31365, 951, 3389, 2679, 12, 3292, 38, 2187, 23, 5717, 272, 410, 30, 385, 12, 21, 2934, 73, 12, 21, ...
mock.util.do("tar xvzf %s -C %s" % (self.rootCacheFile, self.rootdir))
mock.util.do("tar xzf %s -C %s" % (self.rootCacheFile, self.rootdir))
def _rootCachePreInitHook(self): if os.path.exists(self.rootCacheFile): self.state("unpacking cache") self._rootCacheLock() mock.util.do("tar xvzf %s -C %s" % (self.rootCacheFile, self.rootdir)) self._rootCacheUnlock() mock.util.do("tar xvzf %s -C %s" % (self.rootCacheFile, self.rootdir)) self.chroot_setup_cmd = "updat...
34942bebb19e611289e2d13a3567c60e1104192c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/34942bebb19e611289e2d13a3567c60e1104192c/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3085, 1649, 1386, 2570, 5394, 12, 2890, 4672, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 3085, 31371, 4672, 365, 18, 2019, 2932, 17309, 310, 1247, 7923, 365, 6315, 3085, 1649, 2531...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3085, 1649, 1386, 2570, 5394, 12, 2890, 4672, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 3085, 31371, 4672, 365, 18, 2019, 2932, 17309, 310, 1247, 7923, 365, 6315, 3085, 1649, 2531...
if re.match(agent, useragent):
agent = agent.lower() if re.search(re.escape(useragent), agent):
def applies_to(self, useragent): "check if this entry applies to the specified agent" for agent in self.useragents: if agent=="*": return 1 if re.match(agent, useragent): return 1 return 0
5bba231d1e78b60c9886405476df92992fb4e349 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5bba231d1e78b60c9886405476df92992fb4e349/robotparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10294, 67, 869, 12, 2890, 16, 22649, 4672, 315, 1893, 309, 333, 1241, 10294, 358, 326, 1269, 4040, 6, 364, 4040, 316, 365, 18, 1355, 23560, 30, 309, 4040, 31713, 14, 6877, 327, 404, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10294, 67, 869, 12, 2890, 16, 22649, 4672, 315, 1893, 309, 333, 1241, 10294, 358, 326, 1269, 4040, 6, 364, 4040, 316, 365, 18, 1355, 23560, 30, 309, 4040, 31713, 14, 6877, 327, 404, 40...
style="changelog"
style="changelog", user=[]
def run_build_script(ui, repo, core_version=0, type=None, **opts): """ make a build from a configuration file. usage: hg build-app [-l <log range> <core version> <type, e.g. nightly> requires a configuration file config file path defined in BUILD_CONFIG format example [general] server = chrisk@is.oslo.opera.co...
c3a936e3935d31839d94506105d4ca25c6aaa3ed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10925/c3a936e3935d31839d94506105d4ca25c6aaa3ed/hgappext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3510, 67, 4263, 12, 4881, 16, 3538, 16, 2922, 67, 1589, 33, 20, 16, 618, 33, 7036, 16, 2826, 4952, 4672, 3536, 1221, 279, 1361, 628, 279, 1664, 585, 18, 4084, 30, 22576, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3510, 67, 4263, 12, 4881, 16, 3538, 16, 2922, 67, 1589, 33, 20, 16, 618, 33, 7036, 16, 2826, 4952, 4672, 3536, 1221, 279, 1361, 628, 279, 1664, 585, 18, 4084, 30, 22576, 13...
for cnt, rev in enumerate(repo.revisions[last_rev:]):
last_rev = last_rev + 1 if last_rev > 0 else last_rev for rev in repo.revisions[last_rev:last_rev + parse_limit]:
def get_commits_stats(repo_name, ts_min_y, ts_max_y): from rhodecode.model.db import Statistics, Repository log = get_commits_stats.get_logger() #for js data compatibilty author_key_cleaner = lambda k: person(k).replace('"', "") commits_by_day_author_aggregate = {} commits_by_day_aggregate = {} repos_path = get_repos...
211e64037bde40eb13ca647b71f02c833ef4b24f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/211e64037bde40eb13ca647b71f02c833ef4b24f/tasks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 27000, 67, 5296, 12, 7422, 67, 529, 16, 3742, 67, 1154, 67, 93, 16, 3742, 67, 1896, 67, 93, 4672, 628, 6259, 390, 710, 18, 2284, 18, 1966, 1930, 22964, 16, 6281, 613, 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, 336, 67, 27000, 67, 5296, 12, 7422, 67, 529, 16, 3742, 67, 1154, 67, 93, 16, 3742, 67, 1896, 67, 93, 4672, 628, 6259, 390, 710, 18, 2284, 18, 1966, 1930, 22964, 16, 6281, 613, 273, ...
if 'query-continue' in datas: if 'categories' in datas['query-continue']: params['clcontinue'] = datas['query-continue']['categories']['clcontinue']
if 'query-continue' in datas: if 'categories' in datas['query-continue']: params['clcontinue'] = datas['query-continue']['categories']['clcontinue']
def categories(self, get_redirect=False): """Return a list of categories that the article is in.
4c1086264accc94050c3445b20c981e9cd7f56ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/4c1086264accc94050c3445b20c981e9cd7f56ae/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6477, 12, 2890, 16, 336, 67, 7590, 33, 8381, 4672, 3536, 990, 279, 666, 434, 6477, 716, 326, 7559, 353, 316, 18, 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, 6477, 12, 2890, 16, 336, 67, 7590, 33, 8381, 4672, 3536, 990, 279, 666, 434, 6477, 716, 326, 7559, 353, 316, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.env.may_produce(source):
if exists(target) and self.env.may_produce(source):
def check (source, target, suffixes=suffixes): if self.env.may_produce(source): return 0 if suffixes == [""]: return 1 for suffix in suffixes: if source[-len(suffix):] == suffix: return 0 return 1
bdb384bf1c1bd2e6db633818964ce88b0629e4cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/bdb384bf1c1bd2e6db633818964ce88b0629e4cf/graphics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 261, 3168, 16, 1018, 16, 18333, 33, 8477, 281, 4672, 309, 1704, 12, 3299, 13, 471, 365, 18, 3074, 18, 24877, 67, 11776, 311, 12, 3168, 4672, 327, 374, 309, 18333, 422, 306, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 261, 3168, 16, 1018, 16, 18333, 33, 8477, 281, 4672, 309, 1704, 12, 3299, 13, 471, 365, 18, 3074, 18, 24877, 67, 11776, 311, 12, 3168, 4672, 327, 374, 309, 18333, 422, 306, 3660, ...
timestr = time.strftime("%x %X", time.localtime(ent[3]))
timestr = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(ent[3]))
def debugstate(ui, repo): """show the contents of the current dirstate""" k = repo.dirstate._map.items() k.sort() for file_, ent in k: if ent[3] == -1: # Pad or slice to locale representation locale_len = len(time.strftime("%x %X", time.localtime(0))) timestr = 'unset' timestr = timestr[:locale_len] + ' '*(locale_len -...
9b008ae7eaeb7c22612e739acd68e24587005594 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/9b008ae7eaeb7c22612e739acd68e24587005594/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 2019, 12, 4881, 16, 3538, 4672, 3536, 4500, 326, 2939, 434, 326, 783, 302, 920, 340, 8395, 417, 273, 3538, 18, 72, 920, 340, 6315, 1458, 18, 3319, 1435, 417, 18, 3804, 1435, 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, 1198, 2019, 12, 4881, 16, 3538, 4672, 3536, 4500, 326, 2939, 434, 326, 783, 302, 920, 340, 8395, 417, 273, 3538, 18, 72, 920, 340, 6315, 1458, 18, 3319, 1435, 417, 18, 3804, 1435, 364,...
curPos = 0
curPos = 1
def cursorPosChanged( self ): """ Slot called when the cursor position of the strand textEdit changes. When this happens, this method also changes the cursor position of the 'Mate' text edit. Because of this, both the text edit widgets in the Sequence Editor scroll 'in sync'. """ strandSequence = self.sequenceTextEdit....
149b8c7ff7e07e0deff6d81c42b2090a29abe09c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/149b8c7ff7e07e0deff6d81c42b2090a29abe09c/ProteinSequenceEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3347, 1616, 5033, 12, 365, 262, 30, 3536, 23195, 2566, 1347, 326, 3347, 1754, 434, 326, 16706, 977, 4666, 3478, 18, 5203, 333, 10555, 16, 333, 707, 2546, 3478, 326, 3347, 1754, 434, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3347, 1616, 5033, 12, 365, 262, 30, 3536, 23195, 2566, 1347, 326, 3347, 1754, 434, 326, 16706, 977, 4666, 3478, 18, 5203, 333, 10555, 16, 333, 707, 2546, 3478, 326, 3347, 1754, 434, 326,...
raise WalkerEror
raise WalkerError
def dotted_name(self, nodelist): raise WalkerEror
f0af0e7a466797d9ed3fa7d635b9b1e91d5c2674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f0af0e7a466797d9ed3fa7d635b9b1e91d5c2674/transformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20965, 67, 529, 12, 2890, 16, 30068, 4672, 1002, 7564, 264, 29228, 280, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20965, 67, 529, 12, 2890, 16, 30068, 4672, 1002, 7564, 264, 29228, 280, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
checkProg('a MSWord -> LaTeX converter', ['wvCleanLatex $$i $$o'],
checkProg('an MS Word -> LaTeX converter', ['wvCleanLatex $$i $$o'],
def checkConverterEntries(): ''' Check all converters (\converter entries) ''' checkProg('the pdflatex program', ['pdflatex $$i'], rc_entry = [ r'\converter pdflatex pdf2 "%%" "latex"' ]) ''' If we're running LyX in-place then tex2lyx will be found in ../src/tex2lyx. Add this directory to the PATH temporarily ...
53e186297e30359c13977bfd83730f30df754470 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/53e186297e30359c13977bfd83730f30df754470/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 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, 866, 5072, 5400, 13332, 9163, 2073, 777, 19414, 17938, 15747, 3222, 13, 9163, 866, 626, 75, 2668, 5787, 8169, 26264, 5402, 2187, 10228, 7699, 26264, 5366, 77, 17337, 4519, 67, 4099, 273, 3...
w['color'].set_markup("<i>%s</i>" % self._colors[item['color']])
if str(item['color']) in [ str(i) for i in range(len(self._colors)) ]: w['color'].set_markup("<i>%s</i>" % self._colors[item['color']]) else: self.debug.show("Wrong value in 'color' field (movie_id=%s, color=%s)" % (item['movie_id'], item['color'])) w['color'].set_markup('')
def set_details(self, item=None):#{{{ from loan import get_loan_info, get_loan_history if item is None: item = {} if item.has_key('movie_id') and item['movie_id']: self._movie_id = item['movie_id'] else: self._movie_id = None w = self.widgets['movie'] if item.has_key('number') and item['number']: w['number'].set_text(...
09bf804fd06a71bff5e39e0f22692ba391d6bfc6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2687/09bf804fd06a71bff5e39e0f22692ba391d6bfc6/main_treeview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 6395, 12, 2890, 16, 761, 33, 7036, 4672, 3642, 12187, 628, 28183, 1930, 336, 67, 383, 304, 67, 1376, 16, 336, 67, 383, 304, 67, 8189, 309, 761, 353, 599, 30, 761, 273, 2618,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6395, 12, 2890, 16, 761, 33, 7036, 4672, 3642, 12187, 628, 28183, 1930, 336, 67, 383, 304, 67, 1376, 16, 336, 67, 383, 304, 67, 8189, 309, 761, 353, 599, 30, 761, 273, 2618,...
exposure.setFilter(filter)
item.setFilter(filter)
def std_flat(self, item, dataId): ampId = self.convert_raftSensorChannel_to_ampId(dataId) detector = cameraGeomUtils.findAmp( self.camera, afwCameraGeom.Id(ampId[0]), ampId[1], ampId[2]) exposure.setDetector(detector)
d995ef2bd111c6b3bfa9e5dbbdf8358240650f30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6517/d995ef2bd111c6b3bfa9e5dbbdf8358240650f30/lsstSimMapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2044, 67, 15401, 12, 2890, 16, 761, 16, 501, 548, 4672, 16946, 548, 273, 365, 18, 6283, 67, 5015, 22294, 2909, 67, 869, 67, 931, 548, 12, 892, 548, 13, 13826, 273, 10836, 16972, 1989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2044, 67, 15401, 12, 2890, 16, 761, 16, 501, 548, 4672, 16946, 548, 273, 365, 18, 6283, 67, 5015, 22294, 2909, 67, 869, 67, 931, 548, 12, 892, 548, 13, 13826, 273, 10836, 16972, 1989, ...
try: body = [output, extra] except NameError: body = [output]
body = [output]
def perform_modifyaccounts(req, email_user_pattern='', limit_to=-1, maxpage=MAXPAGEUSERS, page=1, content='', callback='yes', confirm=0): """Modify default behaviour of a guest user or if new accounts should automatically/manually be modified.""" (auth_code, auth_message) = is_adminuser(req) if auth_code != 0: return ...
8e6aa1042563d2e1f44b1ffbe6e50d6cd67dbacc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1931/8e6aa1042563d2e1f44b1ffbe6e50d6cd67dbacc/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 13739, 12, 3658, 16, 2699, 67, 1355, 67, 4951, 2218, 2187, 1800, 67, 869, 29711, 21, 16, 943, 2433, 33, 6694, 11219, 30846, 16, 1363, 33, 21, 16, 913, 2218, 2187, 1348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17042, 13739, 12, 3658, 16, 2699, 67, 1355, 67, 4951, 2218, 2187, 1800, 67, 869, 29711, 21, 16, 943, 2433, 33, 6694, 11219, 30846, 16, 1363, 33, 21, 16, 913, 2218, 2187, 1348...
global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0] == 'llr') and timeflag): recVal[irec]=value
global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0] == 'llr') and timeflag): recVal[irec]=value
def check_loadlevel_rec (time, value): global recVal for irec,rec in enumerate(userrec): if (mode == 'e'): timeflag = 1 else: timeflag = (rec[1] == time) if ((rec[0] == 'llr') and timeflag): recVal[irec]=value
aa37b2bdfae39b7dbc77c6303652ba62381c3298 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1573/aa37b2bdfae39b7dbc77c6303652ba62381c3298/extractor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 945, 2815, 67, 3927, 261, 957, 16, 460, 4672, 2552, 1950, 3053, 364, 277, 3927, 16, 3927, 316, 4241, 12, 1355, 3927, 4672, 225, 309, 261, 3188, 422, 296, 73, 11, 4672, 813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 945, 2815, 67, 3927, 261, 957, 16, 460, 4672, 2552, 1950, 3053, 364, 277, 3927, 16, 3927, 316, 4241, 12, 1355, 3927, 4672, 225, 309, 261, 3188, 422, 296, 73, 11, 4672, 813, ...
file.write(line + "\n")
file.write(line + b'\n')
def getlongresp(self, file=None): """Internal: get a response plus following text from the server. Raise various errors if the response indicates an error."""
9bd2973908ef080e31fd8a2b44c929188a135cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9bd2973908ef080e31fd8a2b44c929188a135cb0/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 5748, 12243, 12, 2890, 16, 585, 33, 7036, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5748, 12243, 12, 2890, 16, 585, 33, 7036, 4672, 3536, 3061, 30, 336, 279, 766, 8737, 3751, 977, 628, 326, 1438, 18, 20539, 11191, 1334, 309, 326, 766, 8527, 392, 555, 12123, 2, -1...
if ' ' in s: s = string.join(string.split(s, ' '), '+') return quote(s, safe + '+') else: return quote(s, safe)
if ' ' in s: s = string.join(string.split(s, ' '), '+') return quote(s, safe + '+') else: return quote(s, safe)
def quote_plus(s, safe = '/'): if ' ' in s: # replace ' ' with '+' s = string.join(string.split(s, ' '), '+') return quote(s, safe + '+') else: return quote(s, safe)
52c990fef6d843442d24f88c38914bc52c0210e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/52c990fef6d843442d24f88c38914bc52c0210e0/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 67, 10103, 12, 87, 16, 4183, 273, 2023, 4672, 309, 296, 296, 316, 272, 30, 468, 1453, 296, 296, 598, 10058, 272, 273, 533, 18, 5701, 12, 1080, 18, 4939, 12, 87, 16, 296, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 67, 10103, 12, 87, 16, 4183, 273, 2023, 4672, 309, 296, 296, 316, 272, 30, 468, 1453, 296, 296, 598, 10058, 272, 273, 533, 18, 5701, 12, 1080, 18, 4939, 12, 87, 16, 296, 296, ...
str += I+'<TH BGCOLOR=" '&nbsp;&nbsp;Help&nbsp;&nbsp;&nbsp;</TH>\n'
str += I+'<th bgcolor=" str += '&nbsp;&nbsp;Help&nbsp;&nbsp;&nbsp;</th>\n'
def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA...
1b52b16120989cc834166571a9a1e9b8676d968f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1b52b16120989cc834166571a9a1e9b8676d968f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 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, 11589, 3215, 12, 2890, 16, 1625, 16, 4555, 33, 7036, 4672, 3536, 632, 891, 1625, 30, 18734, 1363, 326, 8775, 3215, 353, 3832, 10453, 603, 838, 3536, 609, 273, 365, 6315, 1937, 67, ...
if len(args) >= 1: state.serverName = args[0] if len(args) >= 2: state.serverPort = int(args[1]) if not state.serverName:
if len(args) == 1: state.servers = [(args[0], 110)] elif len(args) == 2: state.servers = [(args[0], int(args[1]))] if not state.servers or not state.servers[0][0]:
def runProxy(): # Name the database in case it ever gets auto-flushed to disk. UserInterfaceListener(8881) BayesProxyListener('localhost', 8110, 8111) state.bayes.learn(tokenizer.tokenize(spam1), True) state.bayes.learn(tokenizer.tokenize(good1), False) proxyReady.set() asyncore.loop()
b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3886, 13332, 468, 1770, 326, 2063, 316, 648, 518, 14103, 5571, 3656, 17, 11330, 329, 358, 4234, 18, 21369, 2223, 12, 5482, 11861, 13, 605, 528, 281, 3886, 2223, 2668, 13014, 2187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3886, 13332, 468, 1770, 326, 2063, 316, 648, 518, 14103, 5571, 3656, 17, 11330, 329, 358, 4234, 18, 21369, 2223, 12, 5482, 11861, 13, 605, 528, 281, 3886, 2223, 2668, 13014, 2187, ...