rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
""" Read the spec header from the datafile.
"""Read the spec header from the datafile.
def readHeader(self): """ Read the spec header from the datafile.
17360c36a91ef39238e92aeff0ad9b6c9ad0971f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/17360c36a91ef39238e92aeff0ad9b6c9ad0971f/spec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1864, 12, 2890, 4672, 3536, 2720, 326, 857, 1446, 628, 326, 30682, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1864, 12, 2890, 4672, 3536, 2720, 326, 857, 1446, 628, 326, 30682, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if text[-1] in whitespace:
if text and text[-1] in whitespace:
def _getFragWords(frags): ''' given a Parafrag list return a list of fragwords [[size, (f00,w00), ..., (f0n,w0n)],....,[size, (fm0,wm0), ..., (f0n,wmn)]] each pair f,w represents a style and some string each sublist represents a word ''' R = [] W = [] n = 0 hangingStrip = False for f in frags: text = f.text #del f.text...
0647f2f676b444d66e914221d559c3dacc8d0d0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3878/0647f2f676b444d66e914221d559c3dacc8d0d0a/paragraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 19509, 7363, 12, 28193, 4672, 9163, 864, 279, 2280, 1727, 2458, 666, 327, 279, 666, 434, 10111, 3753, 12167, 1467, 16, 261, 74, 713, 16, 91, 713, 3631, 1372, 16, 261, 74, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 19509, 7363, 12, 28193, 4672, 9163, 864, 279, 2280, 1727, 2458, 666, 327, 279, 666, 434, 10111, 3753, 12167, 1467, 16, 261, 74, 713, 16, 91, 713, 3631, 1372, 16, 261, 74, 20,...
midpoint C of AB and computes the distance between C and D. The point D is added to the curve if it exceeds the (nonzero) adaptive_tolerance threshold. If D is added to the curve, then the
midpoint C of AB and computes the distance between C and D. If that distance exceeds the adaptive_tolerance threshold (*relative* to the size of the initial plot subintervals), the point D is added to the curve. If D is added to the curve, then the
def plot(funcs, *args, **kwds): r""" Use plot by writing ``plot(X, ...)`` where `X` is a Sage object (or list of Sage objects) that either is callable and returns numbers that can be coerced to floats, or has a plot method that returns a ``GraphicPrimitive`` object. Type ``plot.options`` for a dictionary of the defa...
53bc30b3387bfc0f18049d2b64fd1492c7912453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/53bc30b3387bfc0f18049d2b64fd1492c7912453/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2672, 3207, 635, 7410, 225, 12176, 4032, 12, 60, 16, 1372, 13, 10335, 225, 1625, 1375, 60, 68, 353, 279, 348, 410, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 2672, 3207, 635, 7410, 225, 12176, 4032, 12, 60, 16, 1372, 13, 10335, 225, 1625, 1375, 60, 68, 353, 279, 348, 410, 733...
empty_vec_list = [[] for i in range(Theta_Precision + 1)] theta_vec = [[] for i in range(Theta_Precision + 1)]
theta_vec = [[] for i in range(bound + 1)]
def vectors_by_length(self, bound): """ Returns a list of short vectors together with their values. This is a naive algorithm which uses the Cholesky decomposition, but does not use the LLL-reduction algorithm. INPUT: bound -- an integer >= 0 OUTPUT: A list L of length (bound + 1) whose entry L[i] is a list of all v...
11f419f5d8f61203b210269d067662af34db070a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/11f419f5d8f61203b210269d067662af34db070a/quadratic_form__split_local_covering.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10046, 67, 1637, 67, 2469, 12, 2890, 16, 2489, 4672, 3536, 2860, 279, 666, 434, 3025, 10046, 9475, 598, 3675, 924, 18, 225, 1220, 353, 279, 28224, 4886, 1492, 4692, 326, 1680, 9112, 1846...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10046, 67, 1637, 67, 2469, 12, 2890, 16, 2489, 4672, 3536, 2860, 279, 666, 434, 3025, 10046, 9475, 598, 3675, 924, 18, 225, 1220, 353, 279, 28224, 4886, 1492, 4692, 326, 1680, 9112, 1846...
_run(LATEX_COMMAND % filenames, options)
_run(latex_command % filenames, options)
def _latex(docmap, options, format): """ Create the LaTeX documentation for the objects in the given documentation map. @param docmap: A documentation map containing the documentation for the objects whose API documentation should be created. @param options: Options from the command-line arguments. @type options: C{di...
5397b1945fdf3feb9813ef60349d76c37defaafe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5397b1945fdf3feb9813ef60349d76c37defaafe/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 12, 2434, 1458, 16, 702, 16, 740, 4672, 3536, 1788, 326, 21072, 21575, 60, 7323, 364, 326, 2184, 316, 326, 864, 7323, 852, 18, 225, 632, 891, 997, 1458, 30, 432, 7323, 852,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26264, 12, 2434, 1458, 16, 702, 16, 740, 4672, 3536, 1788, 326, 21072, 21575, 60, 7323, 364, 326, 2184, 316, 326, 864, 7323, 852, 18, 225, 632, 891, 997, 1458, 30, 432, 7323, 852,...
prefix = PREFIX
prefix = None
def main(): # overridable context prefix = PREFIX # settable with -p option exec_prefix = None # settable with -P option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: o...
96c4dd95cfdd3ed761c7030de047839419689a68 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/96c4dd95cfdd3ed761c7030de047839419689a68/freeze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5713, 27621, 819, 1633, 273, 17154, 1082, 202, 7, 444, 2121, 598, 300, 84, 1456, 1196, 67, 3239, 273, 599, 202, 202, 7, 444, 2121, 598, 300, 52, 1456, 4418, 273, 5378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 468, 5713, 27621, 819, 1633, 273, 17154, 1082, 202, 7, 444, 2121, 598, 300, 84, 1456, 1196, 67, 3239, 273, 599, 202, 202, 7, 444, 2121, 598, 300, 52, 1456, 4418, 273, 5378...
def handle_connect (self):
def handle_connect(self):
def handle_connect (self): pass
1bd27dd7813e479e22b22a0e1e77859916f10664 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/1bd27dd7813e479e22b22a0e1e77859916f10664/select_trigger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 3612, 12, 2890, 4672, 1342, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1640, 67, 3612, 12, 2890, 4672, 1342, 225, 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...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.CharField.__init__(self, 544) else quickfix.CharField.__init__(self, 544, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 6334, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 2156, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 6334, 13, 469, 9549, 904, 18, 2156, 974, 16186, 2738, ...
>>> task.set_info('debug', True)
>>> task.set_info('debug', True)
def set_info(self, info_key, value): """ Set task value for a specific key information. Key, value pairs can be passed to the engine and/or workers. Users may store their own task-specific info key, value pairs using this method and retrieve them with info(). The following example changes the fanout value to 128: >>> ...
65316c7a44a21202522ade511510f650c8606095 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11479/65316c7a44a21202522ade511510f650c8606095/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1376, 12, 2890, 16, 1123, 67, 856, 16, 460, 4672, 3536, 1000, 1562, 460, 364, 279, 2923, 498, 1779, 18, 1929, 16, 460, 5574, 848, 506, 2275, 358, 326, 4073, 471, 19, 280, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1376, 12, 2890, 16, 1123, 67, 856, 16, 460, 4672, 3536, 1000, 1562, 460, 364, 279, 2923, 498, 1779, 18, 1929, 16, 460, 5574, 848, 506, 2275, 358, 326, 4073, 471, 19, 280, 97...
print 'Station n%s : %s channels' % (str(i), str(channels))
print 'Station n�%s : %s channels' % (str(i), str(channels))
def run(self): print "D-fuzz v"+self.version self.conf = self.get_conf_dict() #print self.conf nb_stations = len(self.conf['d-fuzz']['station']) print 'Number of stations : ' + str(nb_stations) # Create our Queue: #stream_pool = Queue.Queue ( 0 )
69f52c49fb2aaf79eb5109a7dae8bd6b401479a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12047/69f52c49fb2aaf79eb5109a7dae8bd6b401479a2/d-fuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1172, 315, 40, 17, 74, 9510, 331, 6, 15, 2890, 18, 1589, 365, 18, 3923, 273, 365, 18, 588, 67, 3923, 67, 1576, 1435, 468, 1188, 365, 18, 3923, 4264, 67, 31478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1172, 315, 40, 17, 74, 9510, 331, 6, 15, 2890, 18, 1589, 365, 18, 3923, 273, 365, 18, 588, 67, 3923, 67, 1576, 1435, 468, 1188, 365, 18, 3923, 4264, 67, 31478, ...
self.pool.get('ir.model.data').ir_set(self.cr, self.uid, \ 'action', keyword, node.url, ["ir.actions.url"], value, replace=replace, isobject=True, xml_id=node.id)
self.pool.get('ir.model.data').ir_set(self.cr, self.uid, 'action', \ keyword, node.url, ["ir.actions.url"], value, replace=replace, \ noupdate=self.isnoupdate(node), isobject=True, xml_id=node.id)
def process_url(self, node): self.validate_xml_id(node.id)
88635654ce8aa65af2e0d311178c356dd8e2cd42 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/88635654ce8aa65af2e0d311178c356dd8e2cd42/yaml_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 718, 12, 2890, 16, 756, 4672, 365, 18, 5662, 67, 2902, 67, 350, 12, 2159, 18, 350, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 718, 12, 2890, 16, 756, 4672, 365, 18, 5662, 67, 2902, 67, 350, 12, 2159, 18, 350, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
msg = self._receive(True, 3)
msg = self._receive(True, 4)
def _process(self): self.result = False self.myAgent.jabber.send(self.iq) #print "SIB SENT:", str(self.iq) msg = self._receive(True, 3) if msg: self.result = False if msg.getType() =="result": print "StreamRequest Agreed" print msg
9f0b7c0364d086fd6fa03dbe1cb839f880130866 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10121/9f0b7c0364d086fd6fa03dbe1cb839f880130866/Agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 12, 2890, 4672, 365, 18, 2088, 273, 1083, 365, 18, 4811, 3630, 18, 78, 378, 744, 18, 4661, 12, 2890, 18, 18638, 13, 468, 1188, 315, 9894, 348, 2222, 2773, 16, 609, 12, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2567, 12, 2890, 4672, 365, 18, 2088, 273, 1083, 365, 18, 4811, 3630, 18, 78, 378, 744, 18, 4661, 12, 2890, 18, 18638, 13, 468, 1188, 315, 9894, 348, 2222, 2773, 16, 609, 12, 289...
EXAMPLE:
EXAMPLE::
def maximal_difference_probability_absolute(self): """ Return the difference probability of the difference with the highest probability in absolute terms, i.e. how often it occurs in total.
722300ff09b8199db5acea36fda4b2778a4c12e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/722300ff09b8199db5acea36fda4b2778a4c12e9/sbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 943, 2840, 67, 23444, 67, 22390, 67, 12547, 12, 2890, 4672, 3536, 2000, 326, 7114, 11331, 434, 326, 7114, 598, 326, 9742, 11331, 316, 4967, 6548, 16, 277, 18, 73, 18, 3661, 16337, 518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 943, 2840, 67, 23444, 67, 22390, 67, 12547, 12, 2890, 4672, 3536, 2000, 326, 7114, 11331, 434, 326, 7114, 598, 326, 9742, 11331, 316, 4967, 6548, 16, 277, 18, 73, 18, 3661, 16337, 518, ...
elif encoding.lower() == 'b':
elif encoding == 'b':
def encode(s, charset='iso-8859-1', encoding='q'): """Encode a string according to RFC 2047.""" if encoding.lower() == 'q': estr = _qencode(s) elif encoding.lower() == 'b': estr = _bencode(s) else: raise ValueError, 'Illegal encoding code: ' + encoding return '=?%s?%s?%s?=' % (charset.lower(), encoding.lower(), estr) ...
b06ca2ddc40b5033510c264798c22f5758468e6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b06ca2ddc40b5033510c264798c22f5758468e6b/Utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 87, 16, 4856, 2218, 9699, 17, 17258, 17, 21, 2187, 2688, 2218, 85, 11, 4672, 3536, 5509, 279, 533, 4888, 358, 8372, 11492, 27, 12123, 309, 2688, 18, 8167, 1435, 422, 296, 85,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 12, 87, 16, 4856, 2218, 9699, 17, 17258, 17, 21, 2187, 2688, 2218, 85, 11, 4672, 3536, 5509, 279, 533, 4888, 358, 8372, 11492, 27, 12123, 309, 2688, 18, 8167, 1435, 422, 296, 85,...
h.request(req.get_method(), req.get_selector(), body, headers) except socket.error, err:
if req.has_data(): data = req.get_data() h.putrequest('POST', req.get_selector()) if 'Content-type' not in req.headers: h.putheader('Content-type', 'application/x-www-form-urlencoded') if 'Content-length' not in req.headers: h.putheader('Content-length', '%d' % len(data)) else: h.putrequest('GET', req.get_selector()) e...
def _start_transaction(self, h, req): headers = req.headers.copy() body = req.data if sys.version_info >= (2, 4): headers.update(req.unredirected_hdrs) try: h.request(req.get_method(), req.get_selector(), body, headers) except socket.error, err: # XXX what error? raise urllib2.URLError(err)
d9972835929014ea3c164d173e2d69d505e46bc5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/d9972835929014ea3c164d173e2d69d505e46bc5/keepalive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 7958, 12, 2890, 16, 366, 16, 1111, 4672, 1607, 273, 1111, 18, 2485, 18, 3530, 1435, 1417, 273, 1111, 18, 892, 309, 2589, 18, 1589, 67, 1376, 1545, 261, 22, 16, 1059, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 7958, 12, 2890, 16, 366, 16, 1111, 4672, 1607, 273, 1111, 18, 2485, 18, 3530, 1435, 1417, 273, 1111, 18, 892, 309, 2589, 18, 1589, 67, 1376, 1545, 261, 22, 16, 1059, 4...
class PyWarningsDisplayTests(WarningsDisplayTests):
class PyWarningsDisplayTests(BaseTest, WarningsDisplayTests):
def test_showwarning(self): file_name = os.path.splitext(warning_tests.__file__)[0] + '.py' line_num = 3 expected_file_line = linecache.getline(file_name, line_num).strip() message = 'msg' category = Warning file_object = StringIO.StringIO() expect = self.module.formatwarning(message, category, file_name, line_num) sel...
270c8f6e48b1d2abc6701cad20b23c6ecc1876d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/270c8f6e48b1d2abc6701cad20b23c6ecc1876d9/test_warnings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4500, 8551, 12, 2890, 4672, 585, 67, 529, 273, 1140, 18, 803, 18, 4939, 408, 12, 8551, 67, 16341, 16186, 768, 972, 25146, 20, 65, 397, 2418, 2074, 11, 980, 67, 2107, 273, 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, 1842, 67, 4500, 8551, 12, 2890, 4672, 585, 67, 529, 273, 1140, 18, 803, 18, 4939, 408, 12, 8551, 67, 16341, 16186, 768, 972, 25146, 20, 65, 397, 2418, 2074, 11, 980, 67, 2107, 273, 8...
elif self.getBoard()[cord] and \ self.getBoard()[cord].color == self.getBoard().color: self.view.selected = cord
elif cord == self.view.active == self.view.selected == self.parent.selected_last: self.view.active = None self.view.selected = None self.view.draggedPiece = None self.view.startAnimation() self.parent.setStateNormal() else:
def release (self, x, y): cord = self.point2Cord(x,y) if not cord: self.view.active = None self.view.selected = None self.view.draggedPiece = None self.view.startAnimation() self.parent.setStateNormal() # When in the mixed active/selected state elif self.view.selected: # Unselect when releasing on an already selected ...
fb950e42337ca928fbe5d1a63d756f451c29b737 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/fb950e42337ca928fbe5d1a63d756f451c29b737/BoardControl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 261, 2890, 16, 619, 16, 677, 4672, 276, 517, 273, 365, 18, 1153, 22, 39, 517, 12, 92, 16, 93, 13, 309, 486, 276, 517, 30, 365, 18, 1945, 18, 3535, 273, 599, 365, 18, 1945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3992, 261, 2890, 16, 619, 16, 677, 4672, 276, 517, 273, 365, 18, 1153, 22, 39, 517, 12, 92, 16, 93, 13, 309, 486, 276, 517, 30, 365, 18, 1945, 18, 3535, 273, 599, 365, 18, 1945, ...
log('Queue done in %.3fs (%s tasks)' % (time.time() - self.start_time, self.count))
log('\nQueue done in %.3fs (%s tasks)' % (time.time() - self.start_time, self.count))
def finished(self): """ BackgroundTask finish callback """ log('Queue done in %.3fs (%s tasks)' % (time.time() - self.start_time, self.count)) self.queue_ended() self.running = False
436aa4b3c1e9e9debf43e75f53fcd9fee786e756 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2369/436aa4b3c1e9e9debf43e75f53fcd9fee786e756/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6708, 12, 2890, 4672, 3536, 8977, 2174, 4076, 1348, 3536, 613, 2668, 64, 82, 3183, 2731, 316, 12639, 23, 2556, 6142, 87, 4592, 2506, 738, 261, 957, 18, 957, 1435, 300, 365, 18, 1937, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6708, 12, 2890, 4672, 3536, 8977, 2174, 4076, 1348, 3536, 613, 2668, 64, 82, 3183, 2731, 316, 12639, 23, 2556, 6142, 87, 4592, 2506, 738, 261, 957, 18, 957, 1435, 300, 365, 18, 1937, 6...
return [self.get_task(id) for id in self.get_task_ids()]
return self.get_tasks_filtered(['all'])
def get_tasks(self): # Retrieve a list of task data dicts return [self.get_task(id) for id in self.get_task_ids()]
22914d3a9d9c3d7e8d5a3c3e29abf2ca71499fd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/22914d3a9d9c3d7e8d5a3c3e29abf2ca71499fd7/dbuswrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9416, 12, 2890, 4672, 468, 10708, 279, 666, 434, 1562, 501, 15838, 327, 306, 2890, 18, 588, 67, 4146, 12, 350, 13, 364, 612, 316, 365, 18, 588, 67, 4146, 67, 2232, 1435, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 9416, 12, 2890, 4672, 468, 10708, 279, 666, 434, 1562, 501, 15838, 327, 306, 2890, 18, 588, 67, 4146, 12, 350, 13, 364, 612, 316, 365, 18, 588, 67, 4146, 67, 2232, 1435, 65,...
if not ip_peer.udp_bind (self, self.dns_ip):
if not self.dns_connect ():
def dns_send (self, request, when): if self.socket == None: if not ip_peer.udp_bind (self, self.dns_ip): self.dns_finalize (request) # # in case of failure, just keep trying.
efdc7ec517c02be5ef01dbc76ece8053b3e093d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/efdc7ec517c02be5ef01dbc76ece8053b3e093d9/dns_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6605, 67, 4661, 261, 2890, 16, 590, 16, 1347, 4672, 309, 365, 18, 7814, 422, 599, 30, 309, 486, 365, 18, 14926, 67, 3612, 1832, 30, 365, 18, 14926, 67, 30343, 261, 2293, 13, 468, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6605, 67, 4661, 261, 2890, 16, 590, 16, 1347, 4672, 309, 365, 18, 7814, 422, 599, 30, 309, 486, 365, 18, 14926, 67, 3612, 1832, 30, 365, 18, 14926, 67, 30343, 261, 2293, 13, 468, 468...
return namespace['config']
return namespace
def readconfig(): """Read a configuration file, if it doesn't exist create it.""" configname = sys.argv[0] + '.config' if not os.path.exists(configname): confstr = """config = [ ("^.*\.cp$", ":unweave-src"), ("^.*\.h$", ":unweave-include"),
10b20e795b8150162255e3169e0e933f9ae84032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/10b20e795b8150162255e3169e0e933f9ae84032/unweave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1425, 13332, 3536, 1994, 279, 1664, 585, 16, 309, 518, 3302, 1404, 1005, 752, 518, 12123, 642, 529, 273, 2589, 18, 19485, 63, 20, 65, 397, 2418, 1425, 11, 309, 486, 1140, 18, 803,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 1425, 13332, 3536, 1994, 279, 1664, 585, 16, 309, 518, 3302, 1404, 1005, 752, 518, 12123, 642, 529, 273, 2589, 18, 19485, 63, 20, 65, 397, 2418, 1425, 11, 309, 486, 1140, 18, 803,...
_, outputs = _RuleInputsAndOutputs(rule, tf) all_outputs += outputs
inputs, outputs = _RuleInputsAndOutputs(rule, tf) all_inputs.update(set(inputs)) all_outputs.update(set(outputs))
def _GenerateExternalRules(p, rules, output_dir, spec, config_name, c_data, sources, options, actions_to_add): """Generate an external makefile to do a set of rules. Arguments: p: the target project rules: the list of rules to include output_dir: path containing project and gyp files spec: project specification data c...
376ee900655bc7ad9db17d44ace38a060ad4d58b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/376ee900655bc7ad9db17d44ace38a060ad4d58b/msvs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4625, 6841, 4478, 12, 84, 16, 2931, 16, 876, 67, 1214, 16, 857, 16, 642, 67, 529, 16, 276, 67, 892, 16, 5550, 16, 702, 16, 4209, 67, 869, 67, 1289, 4672, 3536, 4625, 392, 3903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4625, 6841, 4478, 12, 84, 16, 2931, 16, 876, 67, 1214, 16, 857, 16, 642, 67, 529, 16, 276, 67, 892, 16, 5550, 16, 702, 16, 4209, 67, 869, 67, 1289, 4672, 3536, 4625, 392, 3903...
macros['F'] = shell_quote(next_tab.pointed_obj.path)
if next_tab.pointed_obj: macros['F'] = shell_quote(next_tab.pointed_obj.path)
def _substitute_metachars(self, command): macros = {}
fd51fa3da2848859ba722bac45178c24845d17d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/fd51fa3da2848859ba722bac45178c24845d17d0/console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1717, 17207, 67, 10578, 497, 5913, 12, 2890, 16, 1296, 4672, 24302, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 1717, 17207, 67, 10578, 497, 5913, 12, 2890, 16, 1296, 4672, 24302, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
adaptive_recursion both increase the number of subdivision points::
adaptive_recursion both increase the number of subdivision points. (Note that which creates more points is heavily dependent on the particular function plotted.) ::
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: - ...
53bc30b3387bfc0f18049d2b64fd1492c7912453 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/53bc30b3387bfc0f18049d2b64fd1492c7912453/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
self.parent.dendrogram.setCutOffLine(e.pos().x())
self.parent.dendrogram.setCutOffLine(pos.x())
def mouseReleaseEvent(self, e): self.markerDragged=False self.parent.CommitOnChange=self.commitStatus self.parent.dendrogram.setCutOffLine(e.pos().x())
94b725165088a81ea27b58e2ace96e30782609f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/94b725165088a81ea27b58e2ace96e30782609f4/OWHierarchicalClustering.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7391, 1133, 12, 2890, 16, 425, 4672, 365, 18, 11145, 11728, 2423, 33, 8381, 365, 18, 2938, 18, 5580, 1398, 3043, 33, 2890, 18, 7371, 1482, 365, 18, 2938, 18, 72, 409, 21028, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7391, 1133, 12, 2890, 16, 425, 4672, 365, 18, 11145, 11728, 2423, 33, 8381, 365, 18, 2938, 18, 5580, 1398, 3043, 33, 2890, 18, 7371, 1482, 365, 18, 2938, 18, 72, 409, 21028, 18, ...
], CONTEXT)
], 0, None, None, CONTEXT)
def test0070sha(self): ''' Test Sha. ''' sha1_id = self.sha.create({ 'sha': 'Test', }, CONTEXT) self.assert_(sha1_id)
52062c763bf1737b3f2071e48338f60845edc54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/52062c763bf1737b3f2071e48338f60845edc54d/test_tryton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 7301, 7819, 12, 2890, 4672, 9163, 7766, 2638, 69, 18, 9163, 6056, 21, 67, 350, 273, 365, 18, 7819, 18, 2640, 12590, 296, 7819, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 713, 7301, 7819, 12, 2890, 4672, 9163, 7766, 2638, 69, 18, 9163, 6056, 21, 67, 350, 273, 365, 18, 7819, 18, 2640, 12590, 296, 7819, 4278, 296, 4709, 2187, 19879, 13862, 13, 365, ...
style = getattr(__import__(module, None, None, ['']), stylename)
style = getattr(__import__(module, None, None, ['__name__']), stylename)
def __init__(self, dest='html', stylename='sphinx'): self.dest = dest if not pygments: return if stylename == 'sphinx': style = SphinxStyle elif '.' in stylename: module, stylename = stylename.rsplit('.', 1) style = getattr(__import__(module, None, None, ['']), stylename) else: style = get_style_by_name(stylename) self...
4b201975a442d45a3ae5118a38c3baa07940f9b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7032/4b201975a442d45a3ae5118a38c3baa07940f9b3/highlighting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1570, 2218, 2620, 2187, 16253, 14724, 2218, 87, 15922, 11, 4672, 365, 18, 10488, 273, 1570, 309, 486, 2395, 75, 1346, 30, 327, 309, 16253, 14724, 422, 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, 1001, 2738, 972, 12, 2890, 16, 1570, 2218, 2620, 2187, 16253, 14724, 2218, 87, 15922, 11, 4672, 365, 18, 10488, 273, 1570, 309, 486, 2395, 75, 1346, 30, 327, 309, 16253, 14724, 422, 296,...
xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) ymax = float(maxpoint[1])
xtail = float(tailpoint[0]) ytail = float(tailpoint[1]) xhead = float(headpoint[0]) yhead = float(headpoint[1]) xmin = min(xtail, xhead) xmax = max(xtail, xhead) ymin = min(ytail, yhead) ymax = max(ytail, yhead)
def __call__(self, minpoint, maxpoint, **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) ymax = float(maxpoint[1])
20fed398d25002f78f9edd13592206eb593b0a5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/20fed398d25002f78f9edd13592206eb593b0a5f/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 1131, 1153, 16, 943, 1153, 16, 2826, 25577, 4672, 702, 273, 2065, 12, 2890, 18, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 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, 1001, 1991, 972, 12, 2890, 16, 1131, 1153, 16, 943, 1153, 16, 2826, 25577, 4672, 702, 273, 2065, 12, 2890, 18, 2116, 13, 364, 417, 16, 331, 316, 17149, 18, 2165, 3319, 13332, 702, 63, ...
m = prog.search(line) if m: break
match = prog.search(line) if match: filename, lineno = match.group(1, 2) try: f = open(filename, "r") f.close() break except IOError: continue
def _file_line_helper(self, line): for prog in self.file_line_progs: m = prog.search(line) if m: break else: return None filename, lineno = m.group(1, 2) try: f = open(filename, "r") f.close() except IOError: return None try: return filename, int(lineno) except TypeError: return None
8099e9c16705b9abc3882a656691df36e60f1692 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/8099e9c16705b9abc3882a656691df36e60f1692/OutputWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 768, 67, 1369, 67, 4759, 12, 2890, 16, 980, 4672, 364, 11243, 316, 365, 18, 768, 67, 1369, 67, 685, 564, 30, 845, 273, 11243, 18, 3072, 12, 1369, 13, 309, 845, 30, 1544, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 768, 67, 1369, 67, 4759, 12, 2890, 16, 980, 4672, 364, 11243, 316, 365, 18, 768, 67, 1369, 67, 685, 564, 30, 845, 273, 11243, 18, 3072, 12, 1369, 13, 309, 845, 30, 1544, 16, 7...
self.__skeleton__[table][col_name]['primary_key'] = False
self.__skeleton__[table_name][col_name]['primary_key'] = False
def drop_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...) Note: deosnt's delte colmsn jsut make not primiarey """ if not ...
12098d45ba68813e42a6a22032a2f2e6d360e158 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/12098d45ba68813e42a6a22032a2f2e6d360e158/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 8258, 67, 856, 12, 2890, 16, 1014, 16, 645, 67, 529, 4672, 3536, 21464, 6229, 12786, 2347, 862, 1584, 4437, 7662, 789, 3063, 5398, 4437, 10366, 985, 7660, 10336, 5069, 380, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3640, 67, 8258, 67, 856, 12, 2890, 16, 1014, 16, 645, 67, 529, 4672, 3536, 21464, 6229, 12786, 2347, 862, 1584, 4437, 7662, 789, 3063, 5398, 4437, 10366, 985, 7660, 10336, 5069, 380, 188...
a[8] and b[17] match for 6 elements a[14] and b[23] match for 15 elements
a[8] and b[17] match for 21 elements
def _calculate_ratio(matches, length): if length: return 2.0 * matches / length return 1.0
43898b4f642acf182242744181143141228ca56e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/43898b4f642acf182242744181143141228ca56e/difflib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 67, 9847, 12, 8436, 16, 769, 4672, 309, 769, 30, 327, 576, 18, 20, 380, 1885, 342, 769, 327, 404, 18, 20, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11162, 67, 9847, 12, 8436, 16, 769, 4672, 309, 769, 30, 327, 576, 18, 20, 380, 1885, 342, 769, 327, 404, 18, 20, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
uri.Uri(vModellNs['enthält']),
uri.Uri(vModellNs[u'enthält']),
def _endElementHandler(self, name): elem = self._popElem()
77b755075f6e88f15f500aab96ac5487c327a1b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5223/77b755075f6e88f15f500aab96ac5487c327a1b1/vmodellparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 1046, 1503, 12, 2890, 16, 508, 4672, 3659, 273, 365, 6315, 5120, 7498, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 1046, 1503, 12, 2890, 16, 508, 4672, 3659, 273, 365, 6315, 5120, 7498, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
previous_shelve = bsddb.dbshelve.open(filename + '.previous')
previous_shelve = old_dbshelve.open(filename + '.previous')
def open_shelve(filename): from bsddb3 import db,dbshelve log.debug('Opening database ' + filename)
8a619583902822990a865e72dd837af6970244c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7531/8a619583902822990a865e72dd837af6970244c5/apt_proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 674, 292, 537, 12, 3459, 4672, 628, 7081, 449, 70, 23, 1930, 1319, 16, 1966, 674, 292, 537, 613, 18, 4148, 2668, 21378, 2063, 296, 397, 1544, 13, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 674, 292, 537, 12, 3459, 4672, 628, 7081, 449, 70, 23, 1930, 1319, 16, 1966, 674, 292, 537, 613, 18, 4148, 2668, 21378, 2063, 296, 397, 1544, 13, 2, -100, -100, -100, -100, ...
self.encode = 'iso-8859-1'
self.encode = 'utf-8'
def __init__(self): self.original_url_search = 'http://imdb.com/find?more=tt;q=' self.translated_url_search = 'http://imdb.com/find?more=tt;q=' self.encode = 'iso-8859-1'
7ec26d094b178996d5aa62095540a7b16cfbba61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/7ec26d094b178996d5aa62095540a7b16cfbba61/PluginMovieIMDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 8830, 67, 718, 67, 3072, 202, 33, 296, 2505, 2207, 381, 1966, 18, 832, 19, 4720, 35, 10161, 33, 748, 31, 85, 2218, 365, 18, 22899, 67, 718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 8830, 67, 718, 67, 3072, 202, 33, 296, 2505, 2207, 381, 1966, 18, 832, 19, 4720, 35, 10161, 33, 748, 31, 85, 2218, 365, 18, 22899, 67, 718, ...
if self.normalize(k) == key:
if normalize(k) == key:
def __contains__(self, key): key = self.normalize(key) for k, v in self._items: if self.normalize(k) == key: return True return False
5e878f6a6d1b899882359f21d5f274dd4b6e29f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12287/5e878f6a6d1b899882359f21d5f274dd4b6e29f4/headerdict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 498, 4672, 498, 273, 365, 18, 12237, 12, 856, 13, 364, 417, 16, 331, 316, 365, 6315, 3319, 30, 309, 3883, 12, 79, 13, 422, 498, 30, 327, 1053, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12298, 972, 12, 2890, 16, 498, 4672, 498, 273, 365, 18, 12237, 12, 856, 13, 364, 417, 16, 331, 316, 365, 6315, 3319, 30, 309, 3883, 12, 79, 13, 422, 498, 30, 327, 1053, 327, ...
if abs(axes[0][0] - axes[-1][0] + math.pi) < 0.1:
if abs(axes[0][0] - axes[-1][0] + math.pi) < param_directions_threshold:
def detect_directions(lines): assert(lines.total >= 2) threshold = 0.1 s_lines = sorted([(l[0], l[1]) for l in lines], key = lambda x: x[1]) axes = [] rho, theta = s_lines[0] axes.append((theta, [(rho, theta)])) for rho, theta in s_lines[1:]: if abs(theta - axes[-1][0]) < 0.1: axes[-1][1].append((rho, theta)) else: axe...
1b93b107da0e0efbaf850effa86d8a03bd20218b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/1b93b107da0e0efbaf850effa86d8a03bd20218b/imageproc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 9855, 87, 12, 3548, 4672, 1815, 12, 3548, 18, 4963, 1545, 576, 13, 5573, 273, 374, 18, 21, 272, 67, 3548, 273, 3115, 3816, 12, 80, 63, 20, 6487, 328, 63, 21, 5717, 364, 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, 5966, 67, 9855, 87, 12, 3548, 4672, 1815, 12, 3548, 18, 4963, 1545, 576, 13, 5573, 273, 374, 18, 21, 272, 67, 3548, 273, 3115, 3816, 12, 80, 63, 20, 6487, 328, 63, 21, 5717, 364, 3...
if not inv.has_filename(e):
if not inv.has_filename(e) and not e in added:
def _addPathnames(self, entries): # This method may get invoked several times with the same # entries; and Branch.add complains if a file is already # versioned. So go through the list and sort out entries that # is already versioned, since there is no need to add them. # Do not try to catch any errors from Branch.add...
282ea4fda1cfcaa65e98047fc222daf57eefcfd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/282ea4fda1cfcaa65e98047fc222daf57eefcfd5/bzr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 743, 1973, 12, 2890, 16, 3222, 4672, 468, 1220, 707, 2026, 336, 8187, 11392, 4124, 598, 326, 1967, 468, 3222, 31, 471, 15449, 18, 1289, 27534, 4167, 309, 279, 585, 353, 1818, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1289, 743, 1973, 12, 2890, 16, 3222, 4672, 468, 1220, 707, 2026, 336, 8187, 11392, 4124, 598, 326, 1967, 468, 3222, 31, 471, 15449, 18, 1289, 27534, 4167, 309, 279, 585, 353, 1818, ...
try:
with self.assertRaises(OverflowError):
def test(self): huge = 1L << 40000 mhuge = -huge self.assertEqual(huge / huge, 1.0) self.assertEqual(mhuge / mhuge, 1.0) self.assertEqual(huge / mhuge, -1.0) self.assertEqual(mhuge / huge, -1.0) self.assertEqual(1 / huge, 0.0) self.assertEqual(1L / huge, 0.0) self.assertEqual(1 / mhuge, 0.0) self.assertEqual(1L / mhuge...
836070c5fd3803e6924952639507bd95d5f16afb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/836070c5fd3803e6924952639507bd95d5f16afb/test_long_future.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 366, 21627, 273, 404, 48, 2296, 1059, 2787, 17819, 21627, 273, 300, 76, 21627, 365, 18, 11231, 5812, 12, 76, 21627, 342, 366, 21627, 16, 404, 18, 20, 13, 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, 1842, 12, 2890, 4672, 366, 21627, 273, 404, 48, 2296, 1059, 2787, 17819, 21627, 273, 300, 76, 21627, 365, 18, 11231, 5812, 12, 76, 21627, 342, 366, 21627, 16, 404, 18, 20, 13, 365, 18,...
self.newlink((root, ""), ("<root>", root))
if add_to_do: self.newlink((root, ""), ("<root>", root))
def addroot(self, root): if root not in self.roots: troot = root scheme, netloc, path, params, query, fragment = \ urlparse.urlparse(root) i = string.rfind(path, "/") + 1 if 0 < i < len(path): path = path[:i] troot = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) self.roots.append(troot) self.addr...
f97eecccb714a71cf5a1ca9399cd9c579014a5b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f97eecccb714a71cf5a1ca9399cd9c579014a5b9/wcnew.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3085, 12, 2890, 16, 1365, 4672, 309, 1365, 486, 316, 365, 18, 22078, 30, 268, 3085, 273, 1365, 4355, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 273, 521, 15185, 18, 718, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3085, 12, 2890, 16, 1365, 4672, 309, 1365, 486, 316, 365, 18, 22078, 30, 268, 3085, 273, 1365, 4355, 16, 17345, 16, 589, 16, 859, 16, 843, 16, 5481, 273, 521, 15185, 18, 718, 26...
domNode.click()
try: s=domNode.QueryInterface(IAccessibleHandler.IServiceProvider) ia=s.QueryService(ctypes.byref(IAccessibleHandler.IAccessible._iid_), ctypes.byref(IAccessibleHandler.IAccessible._iid_)) ia=ctypes.POINTER(IAccessibleHandler.IAccessible)(ia) ia.accDoDefaultAction() except: domNode.click()
def activatePosition(self,pos): ID=self.getIDFromPosition(pos) if ID is None: return domNode=self._IDs[ID]["node"] if domNode is None: return nodeName=domNode.nodeName if nodeName in ["SELECT","TEXTAREA"]: if not self.passThrough: self.passThrough=True virtualBufferHandler.reportPassThrough(self) domNode.focus() elif n...
1b49334955b91ce0f9aedd8cba2af32673dc408d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/1b49334955b91ce0f9aedd8cba2af32673dc408d/MSHTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 2555, 12, 2890, 16, 917, 4672, 1599, 33, 2890, 18, 588, 734, 1265, 2555, 12, 917, 13, 309, 1599, 353, 599, 30, 327, 24984, 33, 2890, 6315, 5103, 63, 734, 6362, 6, 2159, 11929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10235, 2555, 12, 2890, 16, 917, 4672, 1599, 33, 2890, 18, 588, 734, 1265, 2555, 12, 917, 13, 309, 1599, 353, 599, 30, 327, 24984, 33, 2890, 6315, 5103, 63, 734, 6362, 6, 2159, 11929, ...
def __init__(self, master=None):
def __init__(self, master=None, value=None, name=None):
def __init__(self, master=None): """Construct a string variable.
d9565dc51f7ac24afa5838b531be5ac7f386c816 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9565dc51f7ac24afa5838b531be5ac7f386c816/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 460, 33, 7036, 16, 508, 33, 7036, 4672, 3536, 7249, 279, 533, 2190, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4171, 33, 7036, 16, 460, 33, 7036, 16, 508, 33, 7036, 4672, 3536, 7249, 279, 533, 2190, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print("Ignoring comment (in %s): %s" % (self.filename, commentError))
print("Ignoring comment in %s: %s" % (self.filename, commentError))
def skip(self): """Eats comments and whitespace.""" input = self.source startLine = self.line indent = "" while (True): if len(input) > self.cursor: ch = input[self.cursor] else: return self.cursor += 1 if len(input) > self.cursor: next = input[self.cursor] else: next = None
195747aaac01b3d43784d3f2bbb2634c18db65be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/195747aaac01b3d43784d3f2bbb2634c18db65be/Tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2488, 12, 2890, 4672, 3536, 41, 2323, 5678, 471, 7983, 12123, 810, 273, 365, 18, 3168, 24636, 273, 365, 18, 1369, 225, 3504, 273, 1408, 225, 1323, 261, 5510, 4672, 309, 562, 12, 2630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2488, 12, 2890, 4672, 3536, 41, 2323, 5678, 471, 7983, 12123, 810, 273, 365, 18, 3168, 24636, 273, 365, 18, 1369, 225, 3504, 273, 1408, 225, 1323, 261, 5510, 4672, 309, 562, 12, 2630, ...
details, members = get_list_info(userdesc, perms, mlist)
infos = get_list_info(userdesc, perms, mlist) if infos is None: return None details, members = infos
def get_members(userdesc, perms, mlist): """ List the members of a list. @mlist """ details, members = get_list_info(userdesc, perms, mlist) members.sort() members = map(lambda member: (get_name(member), member), members) return (details, members, mlist.owner)
5f0ac25ee1e92a8344859d08bb6d706dc4d5d49d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5724/5f0ac25ee1e92a8344859d08bb6d706dc4d5d49d/lists.rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7640, 12, 1355, 5569, 16, 13793, 16, 312, 1098, 4672, 3536, 987, 326, 4833, 434, 279, 666, 18, 632, 781, 376, 3536, 10626, 273, 336, 67, 1098, 67, 1376, 12, 1355, 5569, 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, 336, 67, 7640, 12, 1355, 5569, 16, 13793, 16, 312, 1098, 4672, 3536, 987, 326, 4833, 434, 279, 666, 18, 632, 781, 376, 3536, 10626, 273, 336, 67, 1098, 67, 1376, 12, 1355, 5569, 16, ...
class StrangeIdTest(ATSiteTestCase): def test_strangeUnallowedIds(self): """ Certain IDs used to give an error and are unusable They're set in zope's lib/python/App/Product.py. Examples: home, version. This test used to include 'icon', too, but that's apparently really an id that's already been taken (instead of a bu...
>>> nodes[0].setLinks([n.UID() for n in nodes[1:]]) >>> nodes[0].getLinks() [<Refnode...>, <Refnode...>] >>> nodes[0].setLinks(()) >>> nodes[0].getLinks() [] Setting multiple values for a non multivalued field will fail: >>> nodes[1].setLink(nodes) Traceback (most recent call last): ... ValueError: Multiple values .....
def testSetFilenameOfLargeFile(self): """Test for https://dev.plone.org/archetypes/ticket/635 """ self.folder.invokeFactory('SimpleFile', 'sf') obj = self.folder.sf contents = StringIO('largest file, ' * 10000) obj.setBody(contents) self.assertEqual(obj.getBody().size, 140000) obj.getBody().setFilename('Spam.txt') self...
7f67c4ee539d19adcd957bec3fd4f33e48c75664 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/7f67c4ee539d19adcd957bec3fd4f33e48c75664/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 694, 5359, 951, 20020, 812, 12, 2890, 4672, 3536, 4709, 364, 2333, 2207, 5206, 18, 412, 476, 18, 3341, 19, 991, 15180, 19, 16282, 19, 4449, 25, 3536, 365, 18, 5609, 18, 14407, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 694, 5359, 951, 20020, 812, 12, 2890, 4672, 3536, 4709, 364, 2333, 2207, 5206, 18, 412, 476, 18, 3341, 19, 991, 15180, 19, 16282, 19, 4449, 25, 3536, 365, 18, 5609, 18, 14407, 17...
return item.name
return item.name.lower()
def sort_key(self, item): return item.name
267ac422a3cec89d0e7be5dfb502a630bc66500e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/267ac422a3cec89d0e7be5dfb502a630bc66500e/itemlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 856, 12, 2890, 16, 761, 4672, 327, 761, 18, 529, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 67, 856, 12, 2890, 16, 761, 4672, 327, 761, 18, 529, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if title and title_prefix_len: edition['title'] = title[title_prefix_len:] edition['title_prefix'] = title[:title_prefix_len] else: edition['title'] = title
edition['title'] = title
def read_title(fields): if '245' not in fields: return {}
24084a1dff4045db3947d685f4667ee1e4ec4f4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/24084a1dff4045db3947d685f4667ee1e4ec4f4b/build_record.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2649, 12, 2821, 4672, 309, 296, 3247, 25, 11, 486, 316, 1466, 30, 327, 2618, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 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, 855, 67, 2649, 12, 2821, 4672, 309, 296, 3247, 25, 11, 486, 316, 1466, 30, 327, 2618, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
g['BINDIR'] = os.path.dirname(os.path.abspath(sys.executable))
g['BINDIR'] = os.path.dirname(os.path.realpath(sys.executable))
def _init_nt(): """Initialize the module as appropriate for NT""" g = {} # set basic install directories g['LIBDEST'] = get_python_lib(plat_specific=0, standard_lib=1) g['BINLIBDEST'] = get_python_lib(plat_specific=1, standard_lib=1) # XXX hmmm.. a normal install puts include files here g['INCLUDEPY'] = get_python_inc...
6f09ea893713808934d21cf56eeddbf4f51a3fcb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/6f09ea893713808934d21cf56eeddbf4f51a3fcb/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 496, 13332, 3536, 7520, 326, 1605, 487, 5505, 364, 20064, 8395, 314, 273, 2618, 468, 444, 5337, 3799, 6402, 314, 3292, 14484, 1639, 882, 3546, 273, 336, 67, 8103, 67, 2941...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 496, 13332, 3536, 7520, 326, 1605, 487, 5505, 364, 20064, 8395, 314, 273, 2618, 468, 444, 5337, 3799, 6402, 314, 3292, 14484, 1639, 882, 3546, 273, 336, 67, 8103, 67, 2941...
"""Gets charset out of content-type
"""Get charset out of content-type
def getCharset(content_type, default="UTF-8"): """Gets charset out of content-type >>> getCharset('text/xml; charset=latin-1') 'latin-1' >>> getCharset('text/xml; charset=yada-yada') 'yada-yada' >>> getCharset('text/xml; charset=yada-yada; fo=ba') 'yada-yada' >>> getCharset('text/plain') 'UTF-8' """ parts = conten...
8860b27e6332684ffe49ef3637e3d3060bb143d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/8860b27e6332684ffe49ef3637e3d3060bb143d6/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30428, 12, 1745, 67, 723, 16, 805, 1546, 5159, 17, 28, 6, 4672, 3536, 967, 4856, 596, 434, 913, 17, 723, 225, 4080, 30428, 2668, 955, 19, 2902, 31, 4856, 33, 26578, 17, 21, 6134, 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, 30428, 12, 1745, 67, 723, 16, 805, 1546, 5159, 17, 28, 6, 4672, 3536, 967, 4856, 596, 434, 913, 17, 723, 225, 4080, 30428, 2668, 955, 19, 2902, 31, 4856, 33, 26578, 17, 21, 6134, 296...
('set_str2', [c_char_p, Base, RoundingMode]),
('set_str2', [ctypes.c_char_p, Base]),
def wrapped_f(*args): return f(*args)
02926928087f4afc97395e40ec8dfe22e86f83ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7048/02926928087f4afc97395e40ec8dfe22e86f83ce/pympfr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5805, 67, 74, 30857, 1968, 4672, 327, 284, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5805, 67, 74, 30857, 1968, 4672, 327, 284, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
help="Number of iterations this workcenter has to do in the specified operation of the routing."), 'hour_nbr': fields.float('Number of Hours', required=True, help="Time in hours for this workcenter to achieve the operation of the specified routing."),
help="Number of iterations this work Center has to do in the specified operation of the routing."), 'hour_nbr': fields.float('Number of Hours', required=True, help="Time in hours for this work Center to achieve the operation of the specified routing."),
def on_change_product_cost(self, cr, uid, ids, product_id, context=None): if context is None: context = {} value = {}
c572dd7a4872ce82d06e9d92dd7f6699c3f493e6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c572dd7a4872ce82d06e9d92dd7f6699c3f493e6/mrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 5896, 67, 12398, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 350, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 460, 273, 2618, 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, 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, 603, 67, 3427, 67, 5896, 67, 12398, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 67, 350, 16, 819, 33, 7036, 4672, 309, 819, 353, 599, 30, 819, 273, 2618, 460, 273, 2618, 2, -...
'docutils_xml': DocutilsXmlStrategy,
'xml': DocutilsXmlStrategy,
def functional_strategies(): for name, Strategy in chain(builtin_writers.items(), pseudo_writers.items(), external_writers.items()): strategy = Strategy() yield name, Strategy
dd52830c95b212ee6c39330de34648a43a6dbee5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13745/dd52830c95b212ee6c39330de34648a43a6dbee5/strategies.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18699, 67, 701, 15127, 13332, 364, 508, 16, 19736, 316, 2687, 12, 24553, 67, 5363, 414, 18, 3319, 9334, 12454, 67, 5363, 414, 18, 3319, 9334, 3903, 67, 5363, 414, 18, 3319, 1435, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18699, 67, 701, 15127, 13332, 364, 508, 16, 19736, 316, 2687, 12, 24553, 67, 5363, 414, 18, 3319, 9334, 12454, 67, 5363, 414, 18, 3319, 9334, 3903, 67, 5363, 414, 18, 3319, 1435, 4672, ...
JOIN (SELECT date, persongroups_id FROM SCREENING_farmer_groups_targeted sfgt
JOIN (SELECT date, persongroups_id FROM SCREENING_farmer_groups_targeted sfgt
def rule1(): rule = Rule.objects.all()[0] sql = """SELECT sc.id as object_id, b.district_id, sfgt.persongroups_id, sc.date FROM SCREENING_farmer_groups_targeted sfgt JOIN SCREENING sc ON sc.id = sfgt.screening_id JOIN (SELECT date, persongroups_id FROM SCREENING_farmer_groups_targeted sfgt JOIN SCREENING sc on sc.id = ...
2487fa33a84bcb01a99cd10843840b195d544fdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/2487fa33a84bcb01a99cd10843840b195d544fdb/dashboard_error_cron.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1720, 21, 13332, 1720, 273, 6781, 18, 6911, 18, 454, 1435, 63, 20, 65, 1847, 273, 3536, 4803, 888, 18, 350, 487, 733, 67, 350, 16, 324, 18, 22602, 67, 350, 16, 272, 2137, 88, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1720, 21, 13332, 1720, 273, 6781, 18, 6911, 18, 454, 1435, 63, 20, 65, 1847, 273, 3536, 4803, 888, 18, 350, 487, 733, 67, 350, 16, 324, 18, 22602, 67, 350, 16, 272, 2137, 88, 18, 1...
if not self.child:
if hasattr(self,'child'):
def kill(self, signal=15): global __all_childapps__
086351ef0450d469d3b9b7b46f2c5be20c904cd9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/086351ef0450d469d3b9b7b46f2c5be20c904cd9/childapp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8673, 12, 2890, 16, 4277, 33, 3600, 4672, 2552, 1001, 454, 67, 3624, 11411, 972, 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, 8673, 12, 2890, 16, 4277, 33, 3600, 4672, 2552, 1001, 454, 67, 3624, 11411, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.execCmd("rm '%s'" % string.join(absNames, ' '))
self.execCmd("rm -rf '%s'" % string.join(absNames, ' '))
def deleteItems(self, names): absNames = [] for name in names: absNames.append(self.resourcepath + '/' +name) self.execCmd("rm '%s'" % string.join(absNames, ' '))
41c8ca89d9b33fa9cd0c4288fc9effa21db5d761 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/41c8ca89d9b33fa9cd0c4288fc9effa21db5d761/SSHExplorer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 3126, 12, 2890, 16, 1257, 4672, 2417, 1557, 273, 5378, 364, 508, 316, 1257, 30, 2417, 1557, 18, 6923, 12, 2890, 18, 3146, 803, 397, 2023, 397, 529, 13, 365, 18, 4177, 5931, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 3126, 12, 2890, 16, 1257, 4672, 2417, 1557, 273, 5378, 364, 508, 316, 1257, 30, 2417, 1557, 18, 6923, 12, 2890, 18, 3146, 803, 397, 2023, 397, 529, 13, 365, 18, 4177, 5931, 2932,...
def registerTimerCbFun(self, timerCbFun): self.__timerCbFuns.append(timerCbFun)
def registerTimerCbFun(self, timerCbFun, tickInterval=1.0): self.__timerCallables.append(TimerCallable(timerCbFun, tickInterval))
def registerTimerCbFun(self, timerCbFun): self.__timerCbFuns.append(timerCbFun)
df20074873bcf69ba59049cf2dcc13cf17c8f977 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/587/df20074873bcf69ba59049cf2dcc13cf17c8f977/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 6777, 15237, 22783, 12, 2890, 16, 5441, 15237, 22783, 4672, 365, 16186, 12542, 15237, 22783, 87, 18, 6923, 12, 12542, 15237, 22783, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 6777, 15237, 22783, 12, 2890, 16, 5441, 15237, 22783, 4672, 365, 16186, 12542, 15237, 22783, 87, 18, 6923, 12, 12542, 15237, 22783, 13, 2, -100, -100, -100, -100, -100, -100, -100, -...
else:
elif S_ISDIR(entry.filemode):
def __getDirectoryContents(self,path): """ Returns a dictionary containing all of the contents of a directory. This includes the metadata associated to files (replicas, size, guid, status) and the subdirectories found. """ # First check that the directory exists, this res = self.exists(path) if not res['OK']: return re...
cff124c80101a729006f0324d8648c6b90cbff8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/cff124c80101a729006f0324d8648c6b90cbff8a/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2853, 6323, 12, 2890, 16, 803, 4672, 3536, 2860, 279, 3880, 4191, 777, 434, 326, 2939, 434, 279, 1867, 18, 1220, 6104, 326, 1982, 3627, 358, 1390, 261, 266, 10528, 16, 963, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 2853, 6323, 12, 2890, 16, 803, 4672, 3536, 2860, 279, 3880, 4191, 777, 434, 326, 2939, 434, 279, 1867, 18, 1220, 6104, 326, 1982, 3627, 358, 1390, 261, 266, 10528, 16, 963, ...
xdata = l[0].get_xdata() ydata = l[0].get_ydata()
if len(l) == 3: a = array([l[0].get_ydata()[0], l[1].get_ydata()[0], l[2].get_ydata()[0]]) a = a.argsort() n = a[1] else: n = 0 xdata = l[n].get_xdata() ydata = l[n].get_ydata()
def fitdata(funcs, ax = None, showguess = False, *args, **kwargs): """Force fitting of a function to graphed data Parameters ---------- funcs : [list] list of the fit functions ax : [axis] axis to fit (if none the current axis is used. All the additional *args and **kwargs are passed onto the fit class (see ...
1f300cac329655a6dc7386bd14cd6bfaecbbfea4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/1f300cac329655a6dc7386bd14cd6bfaecbbfea4/fit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 892, 12, 17728, 16, 1740, 273, 599, 16, 2405, 20885, 273, 1083, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 10997, 23591, 434, 279, 445, 358, 2667, 329, 501, 225, 7012, 12181, 15630...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 892, 12, 17728, 16, 1740, 273, 599, 16, 2405, 20885, 273, 1083, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 10997, 23591, 434, 279, 445, 358, 2667, 329, 501, 225, 7012, 12181, 15630...
universe = sage.categories.all.Objects()) return self._decomp
universe = cat.Objects())
def decomposition(self): r""" Returns the Dirichlet groups of prime power modulus corresponding to primes dividing modulus.
9c9051916e82d8e6549f10cbafc69b92d5f2a89f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9c9051916e82d8e6549f10cbafc69b92d5f2a89f/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26288, 12, 2890, 4672, 436, 8395, 2860, 326, 8446, 1354, 1810, 3252, 434, 17014, 7212, 24770, 4656, 358, 846, 4485, 3739, 10415, 24770, 18, 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, 0, 0, 0, 0, 0, 0, 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, 26288, 12, 2890, 4672, 436, 8395, 2860, 326, 8446, 1354, 1810, 3252, 434, 17014, 7212, 24770, 4656, 358, 846, 4485, 3739, 10415, 24770, 18, 2, -100, -100, -100, -100, -100, -100, -100, -10...
if not path: return path = norm_path(path) if path not in sys.path and (os.path.exists(path) or force):
if _should_be_added(path, force):
def add_path(path, to_beginning=False, force=False): if not path: return path = norm_path(path) if path not in sys.path and (os.path.exists(path) or force): if to_beginning: sys.path.insert(0, path) else: sys.path.append(path)
94bbe917c2c4dfd733d4240e01d56a21b2abe07a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/94bbe917c2c4dfd733d4240e01d56a21b2abe07a/pythonpathsetter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 803, 12, 803, 16, 358, 67, 10086, 2093, 33, 8381, 16, 2944, 33, 8381, 4672, 309, 389, 13139, 67, 2196, 67, 9665, 12, 803, 16, 2944, 4672, 309, 358, 67, 10086, 2093, 30, 2589...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 803, 12, 803, 16, 358, 67, 10086, 2093, 33, 8381, 16, 2944, 33, 8381, 4672, 309, 389, 13139, 67, 2196, 67, 9665, 12, 803, 16, 2944, 4672, 309, 358, 67, 10086, 2093, 30, 2589...
self.cflags = ['/MDd', '/Z7']
self.cflags = ['/MDd', '/Z7', '/Od']
def __init__(self, cc=None): self.cc = 'cl.exe'
276db6f60b9b453dae899e25e7442f2004392faa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/276db6f60b9b453dae899e25e7442f2004392faa/windows.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4946, 33, 7036, 4672, 365, 18, 952, 273, 296, 830, 18, 14880, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4946, 33, 7036, 4672, 365, 18, 952, 273, 296, 830, 18, 14880, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
releasesTmpFilePath = os.path.join( tmp, "releases.cfg" )
releasesTmpFilePath = os.path.join( tmpPath, "releases.cfg" )
def tagSVNReleases( mainCFG, taggedReleases ): global cliParams releasesCFG = mainCFG[ 'Releases' ] cmtCompatiblePackages = mainCFG.getOption( 'CMTCompatiblePackages', [] ) autoTarPackages = mainCFG.getOption( 'AutoTarPackages', [] ) for releaseVersion in cliParams.releasesToBuild: if not cliParams.forceSVNLinks and...
09619d2424c75cac4f091eaa5f9040ad5f8400ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/09619d2424c75cac4f091eaa5f9040ad5f8400ca/dirac-distribution.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 23927, 50, 26217, 12, 2774, 19727, 16, 12503, 26217, 262, 30, 2552, 4942, 1370, 225, 14824, 19727, 273, 2774, 19727, 63, 296, 26217, 11, 308, 276, 1010, 14599, 11425, 273, 2774, 1972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23927, 50, 26217, 12, 2774, 19727, 16, 12503, 26217, 262, 30, 2552, 4942, 1370, 225, 14824, 19727, 273, 2774, 19727, 63, 296, 26217, 11, 308, 276, 1010, 14599, 11425, 273, 2774, 1972...
self.__format_results("\n".join(results))
def execute_mysql(self, build, num_threads, max_time, read_only, args): bin = os.path.join(self.autodir, 'deps/mysql/mysql/bin') data = os.path.join(self.autodir, 'deps/mysql/mysql/var') log = os.path.join(self.debugdir, 'mysql.log')
a3a72e56e8f48a515c0a2ce3a47d2992c6b7bb4d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10349/a3a72e56e8f48a515c0a2ce3a47d2992c6b7bb4d/sysbench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 12527, 12, 2890, 16, 1361, 16, 818, 67, 12495, 16, 943, 67, 957, 16, 855, 67, 3700, 16, 833, 4672, 4158, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 12527, 12, 2890, 16, 1361, 16, 818, 67, 12495, 16, 943, 67, 957, 16, 855, 67, 3700, 16, 833, 4672, 4158, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 2...
('medata-check', None,
('metadata-check', None,
def checking_metadata(self): """Callable used for the check sub-command.
637ec99689c690508a54561f0350368ac649bad4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/637ec99689c690508a54561f0350368ac649bad4/sdist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6728, 67, 4165, 12, 2890, 4672, 3536, 11452, 1399, 364, 326, 866, 720, 17, 3076, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6728, 67, 4165, 12, 2890, 4672, 3536, 11452, 1399, 364, 326, 866, 720, 17, 3076, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
""" The initialize step further initializes the Request by setting additional information in the _data dict, registering plugins,
"""The initialize step further initializes the Request by setting additional information in the ``data`` dict, registering plugins,
def initialize(self): """ The initialize step further initializes the Request by setting additional information in the _data dict, registering plugins, and entryparsers. """ data = self._request.getData() pyhttp = self._request.getHttp() config = self._request.getConfiguration()
2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 3536, 1986, 4046, 2235, 9271, 11643, 326, 1567, 635, 3637, 3312, 1779, 316, 326, 12176, 892, 10335, 2065, 16, 22845, 4799, 16, 471, 1241, 11104, 18, 3536, 501, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 3536, 1986, 4046, 2235, 9271, 11643, 326, 1567, 635, 3637, 3312, 1779, 316, 326, 12176, 892, 10335, 2065, 16, 22845, 4799, 16, 471, 1241, 11104, 18, 3536, 501, 273, ...
status = os.spawnl(os.P_WAIT, commandpath)
status = os.spawnl(os.P_WAIT, commandpath, commandpath)
def check_state(state, interactive=True): if not state['good'] or not state['bad']: if (good or bad or skip or reset) and interactive: return if not state['good']: raise util.Abort(_('cannot bisect (no known good revisions)')) else: raise util.Abort(_('cannot bisect (no known bad revisions)')) return True
d43970a9007b77a3f7db6432c5876b6d50f58dfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/d43970a9007b77a3f7db6432c5876b6d50f58dfc/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2019, 12, 2019, 16, 12625, 33, 5510, 4672, 309, 486, 919, 3292, 19747, 3546, 578, 486, 919, 3292, 8759, 3546, 30, 309, 261, 19747, 578, 5570, 578, 2488, 578, 2715, 13, 471, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2019, 12, 2019, 16, 12625, 33, 5510, 4672, 309, 486, 919, 3292, 19747, 3546, 578, 486, 919, 3292, 8759, 3546, 30, 309, 261, 19747, 578, 5570, 578, 2488, 578, 2715, 13, 471, 12...
print 'seqs' print seqs print 'outInfo' print outInfo print 'non_Seqs' print non_seqs
def perform(self, node, args, storage): print 'perform args' # get scan inputs n_steps = args[0]
aca8eb0e580ecd37383d9dca80329f63dca1bd6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/aca8eb0e580ecd37383d9dca80329f63dca1bd6e/scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 12, 2890, 16, 756, 16, 833, 16, 2502, 4672, 1172, 296, 16092, 833, 11, 468, 336, 4135, 4540, 290, 67, 8986, 273, 833, 63, 20, 65, 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, 3073, 12, 2890, 16, 756, 16, 833, 16, 2502, 4672, 1172, 296, 16092, 833, 11, 468, 336, 4135, 4540, 290, 67, 8986, 273, 833, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -...
C{sort_order} is not C{None}, then sort according to its
C{sortorder} is not C{None}, then sort according to its
def _sort(self, docs, sort_order=None): """ Sort and filter a list of C{ObjDoc}s. In particular, if C{sort_order} is not C{None}, then sort according to its contents; otherwise, sort using L{_cmp_name}. If L{_show_private} is true, then filter out all private objects; otherwise, perform no filtering.
62ff4e473663c51d0a945a451e36120f11d9450a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/62ff4e473663c51d0a945a451e36120f11d9450a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3804, 12, 2890, 16, 3270, 16, 1524, 67, 1019, 33, 7036, 4672, 3536, 5928, 471, 1034, 279, 666, 434, 385, 95, 2675, 1759, 97, 87, 18, 225, 657, 6826, 16, 309, 385, 95, 29068, 97,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3804, 12, 2890, 16, 3270, 16, 1524, 67, 1019, 33, 7036, 4672, 3536, 5928, 471, 1034, 279, 666, 434, 385, 95, 2675, 1759, 97, 87, 18, 225, 657, 6826, 16, 309, 385, 95, 29068, 97,...
subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, direct_attributes, True, context)) subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, inverse_attributes, False, context))
if direct_attributes: subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, direct_attributes, True, context)) if inverse_attributes: subjects.update(cls.session[cls.store_key].instances_by_attribute(cls, inverse_attributes, False, context))
def get_by_attribute(cls, attributes, context = None): """ Retrieve all `instances` from the data store that have the specified `attributes` and are of `rdf:type` of the resource class
746bbd0cef92a7515a400d3108d524b0c2b5f648 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13812/746bbd0cef92a7515a400d3108d524b0c2b5f648/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1637, 67, 4589, 12, 6429, 16, 1677, 16, 819, 273, 599, 4672, 3536, 10708, 777, 1375, 10162, 68, 628, 326, 501, 1707, 716, 1240, 326, 1269, 1375, 4350, 68, 471, 854, 434, 1375,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 1637, 67, 4589, 12, 6429, 16, 1677, 16, 819, 273, 599, 4672, 3536, 10708, 777, 1375, 10162, 68, 628, 326, 501, 1707, 716, 1240, 326, 1269, 1375, 4350, 68, 471, 854, 434, 1375,...
if wikidb is None: api_helper = get_api_helper(desc_url) if api_helper is None:
api_helper = get_api_helper(desc_url) if api_helper is None: if wikidb is None:
def getContributors(self, name, wikidb=None): """Return list of image contributors @param name: image name without namespace (e.g. without "Image:") @type name: unicode @param wikidb: WikiDB instance (optional) @type wikidb: object @returns: list of contributors @rtype: [unicode] or None """ desc_url = self.getDesc...
2f5f7ba333de99a6af911835aa96a3f263fb2f5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/2f5f7ba333de99a6af911835aa96a3f263fb2f5d/mwapidb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 442, 665, 13595, 12, 2890, 16, 508, 16, 341, 1766, 350, 70, 33, 7036, 4672, 3536, 990, 666, 434, 1316, 13608, 13595, 225, 632, 891, 508, 30, 1316, 508, 2887, 1981, 261, 73, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 442, 665, 13595, 12, 2890, 16, 508, 16, 341, 1766, 350, 70, 33, 7036, 4672, 3536, 990, 666, 434, 1316, 13608, 13595, 225, 632, 891, 508, 30, 1316, 508, 2887, 1981, 261, 73, 18, ...
self._map.pop(file.fileno())
self._map.clear()
def remove_handler(self, file): """Remove a handler for file.
04a1448feda26fc31294d57ea17d771d9b643819 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/04a1448feda26fc31294d57ea17d771d9b643819/pymplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 4176, 12, 2890, 16, 585, 4672, 3536, 3288, 279, 1838, 364, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 1206, 67, 4176, 12, 2890, 16, 585, 4672, 3536, 3288, 279, 1838, 364, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
DirectFrame, (self,),
DirectFrame, (self.reparentFrame,),
def __init__(self, parent = aspect2d, **kw): # Inherits from DirectButton optiondefs = ( # List of items to display on the popup menu ('items', [], self.setItems), # Initial item to display on menu button # Can be an interger index or the same string as the button ('initialitem', None, INITO...
c5f0f39804767e32af47660628781f1cfd3fbd63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c5f0f39804767e32af47660628781f1cfd3fbd63/DirectOptionMenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 273, 9648, 22, 72, 16, 2826, 9987, 4672, 468, 657, 20038, 628, 9908, 3616, 1456, 12537, 273, 261, 468, 987, 434, 1516, 358, 2562, 603, 326, 10431, 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, 2738, 972, 12, 2890, 16, 982, 273, 9648, 22, 72, 16, 2826, 9987, 4672, 468, 657, 20038, 628, 9908, 3616, 1456, 12537, 273, 261, 468, 987, 434, 1516, 358, 2562, 603, 326, 10431, 3...
return "%s/site_icon.gif" % portal_url
portal_state = getMultiAdapter((self.context, self.request), name=u'plone_portal_state') if portal_state.is_rtl(): return "%s/rtl-site_icon.gif" % portal_url else: return "%s/site_icon.gif" % portal_url
def url(self): portal_url = getToolByName(self.context, 'portal_url')() return "%s/site_icon.gif" % portal_url
07003602c515ef362fd1cec7dbec2ce66d7e2ffc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12185/07003602c515ef362fd1cec7dbec2ce66d7e2ffc/icons.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 12, 2890, 4672, 11899, 67, 718, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 718, 6134, 1435, 327, 2213, 87, 19, 4256, 67, 3950, 18, 13905, 6, 738, 11899, 67, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 880, 12, 2890, 4672, 11899, 67, 718, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 718, 6134, 1435, 327, 2213, 87, 19, 4256, 67, 3950, 18, 13905, 6, 738, 11899, 67, 7...
logger.notifyChannel('init', netsvc.LOG_INFO, "storing computed values of fields.function '%s'" % (k,))
logger.notifyChannel('orm', netsvc.LOG_INFO, "storing computed values of fields.function '%s'" % (k,))
def _update_store(self, cr, f, k): logger = netsvc.Logger() logger.notifyChannel('init', netsvc.LOG_INFO, "storing computed values of fields.function '%s'" % (k,)) ss = self._columns[k]._symbol_set update_query = 'UPDATE "%s" SET "%s"=%s WHERE id=%%s' % (self._table, k, ss[0]) cr.execute('select id from '+self._table) ...
ab41714295af23aa5c95790777fbe2e65dff8efa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/ab41714295af23aa5c95790777fbe2e65dff8efa/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 2233, 12, 2890, 16, 4422, 16, 284, 16, 417, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 1194, 18, 12336, 2909, 2668, 535, 2187, 21954, 4227, 18, 4842, 67, 5923, 16, 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, 2725, 67, 2233, 12, 2890, 16, 4422, 16, 284, 16, 417, 4672, 1194, 273, 21954, 4227, 18, 3328, 1435, 1194, 18, 12336, 2909, 2668, 535, 2187, 21954, 4227, 18, 4842, 67, 5923, 16, 31...
current_module, res, xml_id=data_id, mode=mode,
current_module, res, mode=mode,
fields_def = self.fields_get(cr, uid, context=context)
efd0cb9412db0c0bcc806b9b089c26c097a70bff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/efd0cb9412db0c0bcc806b9b089c26c097a70bff/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1466, 67, 536, 273, 365, 18, 2821, 67, 588, 12, 3353, 16, 4555, 16, 819, 33, 2472, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
[(0.0, 0.0), (3.1415926535897931, 1.2246063538223773e-16)]
[(0.0, 0.0), (3.1415926535897931, 1.2246...e-16)]
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -...
9f9cdead7bccde39df56339b41036d398e9e5627 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9f9cdead7bccde39df56339b41036d398e9e5627/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect( ('non.existent.server', PORT) )
self.s.connect( ('non.existent.server', PORT) )
def testUnresolvedAddress(self): try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect( ('non.existent.server', PORT) ) except socket.gaierror, gaix: self.failUnlessEqual(gaix[0], errno.EGETADDRINFOFAILED) except Exception, x: self.fail("Get host name for non-existent host raised wrong exception: %s" % x...
c75e71ddaa629b10becc0eb9d61b274962f35edf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/c75e71ddaa629b10becc0eb9d61b274962f35edf/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 984, 11792, 1887, 12, 2890, 4672, 775, 30, 365, 18, 87, 18, 3612, 12, 7707, 5836, 18, 19041, 18, 3567, 2187, 20987, 13, 262, 1335, 2987, 18, 75, 10658, 1636, 16, 18812, 697, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 984, 11792, 1887, 12, 2890, 4672, 775, 30, 365, 18, 87, 18, 3612, 12, 7707, 5836, 18, 19041, 18, 3567, 2187, 20987, 13, 262, 1335, 2987, 18, 75, 10658, 1636, 16, 18812, 697, 30, ...
gp.setmode(int(line.rstrip()[-6:], 8))
gp.setmode(int(line[-6:], 8))
def readgitpatch(lr): """extract git-style metadata about patches from <patchname>""" # Filter patch for git information gp = None gitpatches = [] # Can have a git patch with only metadata, causing patch to complain dopatch = 0 lineno = 0 for line in lr: lineno += 1 if line.startswith('diff --git'): m = gitre.match(l...
be5497a5fc601c2dd2fa6a4688b100383b0f1202 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/be5497a5fc601c2dd2fa6a4688b100383b0f1202/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 6845, 2272, 12, 10826, 4672, 3536, 8004, 5071, 17, 4060, 1982, 2973, 16482, 628, 411, 2272, 529, 2984, 3660, 225, 468, 4008, 4729, 364, 5071, 1779, 4178, 273, 599, 5071, 30278, 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, 855, 6845, 2272, 12, 10826, 4672, 3536, 8004, 5071, 17, 4060, 1982, 2973, 16482, 628, 411, 2272, 529, 2984, 3660, 225, 468, 4008, 4729, 364, 5071, 1779, 4178, 273, 599, 5071, 30278, 273, ...
self.MinRate = default_MinRate
self.MinRate = default_MinRate
def __init__(self, xid, name, data): self.xid = xid self.name = name self.time = 0 self.bytes = 0 self.i2bytes = 0 self.MaxRate = default_MaxRate self.MinRate = default_MinRate self.Maxi2Rate = default_Maxi2Rate self.Mini2Rate = default_Mini2Rate self.MaxKByte = default_MaxKByte self.ThreshKByte = default_ThreshKByte s...
2fc55c6e90c2aeca8a448e95fae76c73ffb3cdaf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6995/2fc55c6e90c2aeca8a448e95fae76c73ffb3cdaf/bwmon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 19031, 16, 508, 16, 501, 4672, 365, 18, 6212, 273, 19031, 365, 18, 529, 273, 508, 365, 18, 957, 273, 374, 365, 18, 3890, 273, 374, 365, 18, 77, 22, 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, 2738, 972, 12, 2890, 16, 19031, 16, 508, 16, 501, 4672, 365, 18, 6212, 273, 19031, 365, 18, 529, 273, 508, 365, 18, 957, 273, 374, 365, 18, 3890, 273, 374, 365, 18, 77, 22, 3...
The provided spectral curves (directional-hemispherical reflectance, transmittance and absorptance) were obtained considering light incident on the adaxial surface of the specimens, and angles of incidence measured with respect to the specimens' normal (zenith). The curves were obtained using a virtual spectrophotomete...
The provided spectral curves (directional-hemispherical reflectance, transmittance and absorptance) were obtained considering light incident on the adaxial surface of the specimens, and angles of incidence measured with respect to the specimens' normal (zenith). The curves were obtained using a virtual spectrophotomete...
def latexBody(self): return r""" This is the results of your model run of \textbf{ABM-U} for the Natural Phenomenon Simulation Group (NPSG) at University of Waterloo.
7518b9371fc42cae5b7ff818acf3a636401881ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13808/7518b9371fc42cae5b7ff818acf3a636401881ae/abmb_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25079, 2250, 12, 2890, 4672, 327, 436, 8395, 1220, 353, 326, 1686, 434, 3433, 938, 1086, 434, 521, 955, 17156, 95, 2090, 49, 17, 57, 97, 364, 326, 423, 270, 3766, 4360, 275, 362, 275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25079, 2250, 12, 2890, 4672, 327, 436, 8395, 1220, 353, 326, 1686, 434, 3433, 938, 1086, 434, 521, 955, 17156, 95, 2090, 49, 17, 57, 97, 364, 326, 423, 270, 3766, 4360, 275, 362, 275, ...
table:style-name="table-default.cell-C4">
table:style-name="table-default.cell-C1">
def test_table_tfoot_tbody(self): """Test <tfoot> tag with <tbody>""" html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <tfoot> <tr> <td>Cell1</td> <td>Cell2</td> </tr> </tfoot> <tbody> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </tbody> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re....
3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c/test_tables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2121, 67, 88, 10923, 67, 20779, 12, 2890, 4672, 3536, 4709, 411, 88, 10923, 34, 1047, 598, 411, 20779, 2984, 3660, 1729, 273, 3536, 32, 2620, 12302, 1546, 2505, 2207, 5591, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2121, 67, 88, 10923, 67, 20779, 12, 2890, 4672, 3536, 4709, 411, 88, 10923, 34, 1047, 598, 411, 20779, 2984, 3660, 1729, 273, 3536, 32, 2620, 12302, 1546, 2505, 2207, 5591, 18,...
xmlfile = urllib2.urlopen(url);
try: xmlfile = urllib2.urlopen(url); except: print ' !Error! Unable to open url:', url; return False;
def GetXML(semester, filename, outpath): # open the xml url and check to make sure it succeeded url = base_url[0] + semester + base_url[1] + filename; xmlfile = urllib2.urlopen(url); if (not(xmlfile)): print ' !Error! Unable to open url:', url; return False; # grab the xml and close the url xmlstring = xmlfile.read...
1448cb0d5c92a0f8147851bc9f25a8520b952a36 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4025/1448cb0d5c92a0f8147851bc9f25a8520b952a36/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4201, 12, 12000, 7654, 16, 1544, 16, 596, 803, 4672, 468, 1696, 326, 2025, 880, 471, 866, 358, 1221, 3071, 518, 15784, 880, 273, 1026, 67, 718, 63, 20, 65, 397, 6111, 7654, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 4201, 12, 12000, 7654, 16, 1544, 16, 596, 803, 4672, 468, 1696, 326, 2025, 880, 471, 866, 358, 1221, 3071, 518, 15784, 880, 273, 1026, 67, 718, 63, 20, 65, 397, 6111, 7654, 397, ...
m = md5.new()
m = md5()
def read_md5(self): """ Calculate the md5 hash for this file.
e08a0357e0c382fb0cb2f2f131098417e70f0599 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14074/e08a0357e0c382fb0cb2f2f131098417e70f0599/path.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1264, 25, 12, 2890, 4672, 3536, 9029, 326, 3481, 25, 1651, 364, 333, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 1264, 25, 12, 2890, 4672, 3536, 9029, 326, 3481, 25, 1651, 364, 333, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
''' Selects instrument and clears the selection of all other instruments. '''
""" Selects an instrument and clears the selection of all other instruments. Parameters: instrument -- Instrument object corresponding to the selected instrument. """
def SelectInstrument(self, instrument=None): ''' Selects instrument and clears the selection of all other instruments. ''' for instr in self.instruments: if instr is not instrument: instr.SetSelected(False) else: instr.SetSelected(True)
e2b4f4a534dc5054c26a7ac44730cd6e0c158de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/e2b4f4a534dc5054c26a7ac44730cd6e0c158de4/Project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6766, 19228, 12, 2890, 16, 10353, 33, 7036, 4672, 3536, 6766, 87, 392, 10353, 471, 22655, 326, 4421, 434, 777, 1308, 29555, 18, 225, 7012, 30, 10353, 1493, 25565, 733, 4656, 358, 326, 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, 6766, 19228, 12, 2890, 16, 10353, 33, 7036, 4672, 3536, 6766, 87, 392, 10353, 471, 22655, 326, 4421, 434, 777, 1308, 29555, 18, 225, 7012, 30, 10353, 1493, 25565, 733, 4656, 358, 326, 31...
if (ssl_incs is not None and ssl_libs is not None and openssl_ver >= 0x00907000):
min_openssl_ver = 0x00907000 have_usable_openssl = (ssl_incs is not None and ssl_libs is not None and openssl_ver >= min_openssl_ver) if have_usable_openssl:
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler_obj.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler_obj.include_dirs, '/usr/local/include')
ea17548d2f6cdcbc8292da1d0e629e0249290f08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/ea17548d2f6cdcbc8292da1d0e629e0249290f08/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 67, 2603, 18, 12083, 67, 8291, 16, 1173, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 67, 2603, 18, 12083, 67, 8291, 16, 1173, ...
assert ret is not None,
assert ret is not None, \
def script(self, database=None, operation=None): """Returns SQL or Python Script""" for db in (database, 'default'): # Try to return a .sql script first try: return self.sql[db][operation] except KeyError: continue # No .sql script exists
ea7cf29c587ce1f278de158293e0277a50f9f10e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9035/ea7cf29c587ce1f278de158293e0277a50f9f10e/version.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 12, 2890, 16, 2063, 33, 7036, 16, 1674, 33, 7036, 4672, 3536, 1356, 3063, 578, 6600, 7739, 8395, 364, 1319, 316, 261, 6231, 16, 296, 1886, 11, 4672, 468, 6161, 358, 327, 279, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 12, 2890, 16, 2063, 33, 7036, 16, 1674, 33, 7036, 4672, 3536, 1356, 3063, 578, 6600, 7739, 8395, 364, 1319, 316, 261, 6231, 16, 296, 1886, 11, 4672, 468, 6161, 358, 327, 279, 263...
l = q.outerjoin(User.orders).options(eagerload(User.addresses), contains_eager(User.orders)).offset(1).limit(2).all()
l = q.outerjoin(User.orders).options(eagerload(User.addresses), contains_eager(User.orders)).order_by(User.id, Order.id).offset(1).limit(2).all()
def go(): # outerjoin to User.orders, offset 1/limit 2 so we get user 7 + second two orders. # then eagerload the addresses. User + Order columns go into the subquery, address # left outer joins to the subquery, eagerloader for User.orders applies context.adapter # to result rows. This was [ticket:1180]. l = q.outerj...
8f4999a70bc68801ba032ffdd367249186d4cb67 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8f4999a70bc68801ba032ffdd367249186d4cb67/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 13332, 468, 6390, 5701, 358, 2177, 18, 9972, 16, 1384, 404, 19, 3595, 576, 1427, 732, 336, 729, 2371, 397, 2205, 2795, 11077, 18, 468, 1508, 18853, 945, 326, 6138, 18, 225, 2177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1960, 13332, 468, 6390, 5701, 358, 2177, 18, 9972, 16, 1384, 404, 19, 3595, 576, 1427, 732, 336, 729, 2371, 397, 2205, 2795, 11077, 18, 468, 1508, 18853, 945, 326, 6138, 18, 225, 2177, ...
if cf.param_value('archive_mode'):
if archive_mode:
def master_configure_archiving(self, enable_archiving, can_restart): """Turn the archiving on or off"""
0ca959a83cef53a35b93413f946a313437551bba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/0ca959a83cef53a35b93413f946a313437551bba/walmgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4171, 67, 14895, 67, 991, 9288, 12, 2890, 16, 4237, 67, 991, 9288, 16, 848, 67, 19164, 4672, 3536, 15858, 326, 6637, 9288, 603, 578, 3397, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4171, 67, 14895, 67, 991, 9288, 12, 2890, 16, 4237, 67, 991, 9288, 16, 848, 67, 19164, 4672, 3536, 15858, 326, 6637, 9288, 603, 578, 3397, 8395, 2, -100, -100, -100, -100, -100, -100, ...
buffer = audioop.stereo(buffer, 2, 1, 1)
b = audioop.tostereo(buffer, 2, 1, 1)
def fromStdFmt(self, buffer): from numarray import fromstring, Int16, Float32 buffer = audioop.stereo(buffer, 2, 1, 1) b, self.fromstate = audioop.ratecv(b, 2, 2, OUTHZ, HZ, self.fromstate) buffer = fromstring(x, Int16) buffer = buffer.astype(Float32) buffer = ( buffer + 32768/2 ) / self.SCALE return buffer
9e8b643a9d5d89cedde47af9dba6b0141656633d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/9e8b643a9d5d89cedde47af9dba6b0141656633d/ratecvt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 10436, 16090, 12, 2890, 16, 1613, 4672, 628, 818, 1126, 1930, 21376, 16, 3094, 2313, 16, 5450, 1578, 324, 273, 7447, 556, 18, 88, 669, 822, 83, 12, 4106, 16, 576, 16, 404, 16, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 10436, 16090, 12, 2890, 16, 1613, 4672, 628, 818, 1126, 1930, 21376, 16, 3094, 2313, 16, 5450, 1578, 324, 273, 7447, 556, 18, 88, 669, 822, 83, 12, 4106, 16, 576, 16, 404, 16, 4...
(apache_user, apache_user, omd_site, " ".join(commandargs[2:])))
(apache_user, apache_user, omd_site, " ".join(commandargs[3:])))
def check_mk_automation(command, args=[], indata=""): # Gather the command to use for executing --automation calls to check_mk # - First try to use the check_mk_automation option from the defaults # - When not set try to detect the command for OMD or non OMD installations # - OMD 'own' apache mode or non OMD: check_m...
0e4b062b6ae288635e8e0ddf68c489b08a4ab3f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/0e4b062b6ae288635e8e0ddf68c489b08a4ab3f3/wato.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 24816, 67, 5854, 11978, 12, 3076, 16, 833, 22850, 6487, 316, 892, 1546, 6, 4672, 468, 25868, 326, 1296, 358, 999, 364, 11274, 1493, 5854, 11978, 4097, 358, 866, 67, 24816, 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, 866, 67, 24816, 67, 5854, 11978, 12, 3076, 16, 833, 22850, 6487, 316, 892, 1546, 6, 4672, 468, 25868, 326, 1296, 358, 999, 364, 11274, 1493, 5854, 11978, 4097, 358, 866, 67, 24816, 468, ...
self.serial_write_port=port=open(port_name,"r+" , 16384) self.serial_read_port=self.serial_write_port
self.serial_write_port=port=open(port_name,"r+" , 0) self.serial_read_port=self.serial_write_port
def setup_serial(self, port_name): self.serial_write_port=port=open(port_name,"r+" , 16384) self.serial_read_port=self.serial_write_port self.set_port_params() #setup default port
3fd2b1c72c2aee5447e46f56f19804640c6c56f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/3fd2b1c72c2aee5447e46f56f19804640c6c56f5/LabPro.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 8818, 12, 2890, 16, 1756, 67, 529, 4672, 365, 18, 8818, 67, 2626, 67, 655, 33, 655, 33, 3190, 12, 655, 67, 529, 10837, 86, 9078, 269, 374, 13, 365, 18, 8818, 67, 896, 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, 3875, 67, 8818, 12, 2890, 16, 1756, 67, 529, 4672, 365, 18, 8818, 67, 2626, 67, 655, 33, 655, 33, 3190, 12, 655, 67, 529, 10837, 86, 9078, 269, 374, 13, 365, 18, 8818, 67, 896, 67,...
cr.execute('SELECT id FROM '+self._table+' WHERE id IN ('+ids_str+')')
cr.execute('SELECT id FROM "'+self._table+'" WHERE id IN ('+ids_str+')')
def write(self, cr, user, ids, vals, context=None): if not context: context={} if not ids: return True if isinstance(ids, (int, long)): ids = [ids] delta= context.get('read_delta',False) if delta and self._log_access: cr.execute("select (now() - min(write_date)) <= '%s'::interval from %s where id in (%s)"% (delta,se...
be2ceb24bde4a569bfb092c4888d20f47c553384 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/be2ceb24bde4a569bfb092c4888d20f47c553384/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 309, 486, 3258, 30, 327, 1053, 309, 1549, 12, 2232, 16, 261, 474, 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, 1045, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 309, 486, 3258, 30, 327, 1053, 309, 1549, 12, 2232, 16, 261, 474, 16, ...
configprc=ReadFile("makepanda/config.in")
configprc = ReadFile("makepanda/config.in")
pandaversion_h += "\n#undef PANDA_OFFICIAL_VERSION\n"
397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/397a7f9736d1ffe1daf985de6c0bb8e5fc4b1c61/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 293, 464, 842, 722, 67, 76, 1011, 1548, 82, 7, 318, 536, 225, 453, 4307, 37, 67, 3932, 1653, 39, 6365, 67, 5757, 64, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
out = TemporaryFile("w")
out = TemporaryFile()
def update_file(self, filename): '''Update the specified configuration file.''' sectname = None optname = None out = TemporaryFile("w") if os.path.exists(filename): f = file(filename, "r") else: # doesn't exist, so create it - all the changed options will # be added to it if options["globals", "verbose"]: print "Creati...
bd41161609b033091f26df394d3e65b37d045eec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/bd41161609b033091f26df394d3e65b37d045eec/Options.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 768, 12, 2890, 16, 1544, 4672, 9163, 1891, 326, 1269, 1664, 585, 1093, 6309, 29140, 529, 273, 599, 2153, 529, 273, 599, 596, 273, 22791, 812, 1435, 309, 1140, 18, 803, 18, 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, 1089, 67, 768, 12, 2890, 16, 1544, 4672, 9163, 1891, 326, 1269, 1664, 585, 1093, 6309, 29140, 529, 273, 599, 2153, 529, 273, 599, 596, 273, 22791, 812, 1435, 309, 1140, 18, 803, 18, 18...
server_runner.__doc__ = serve.__doc__ + """
server_runner.__doc__ = (serve.__doc__ or '') + """
def server_runner(wsgi_app, global_conf, **kwargs): from paste.deploy.converters import asbool for name in ['port', 'socket_timeout', 'threadpool_workers', 'threadpool_hung_thread_limit', 'threadpool_kill_thread_limit', 'threadpool_dying_limit', 'threadpool_spawn_if_under', 'threadpool_max_zombie_threads_before_die', '...
f32390df7c543e3ba5308c83d3d3d390e0649bf1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11400/f32390df7c543e3ba5308c83d3d3d390e0649bf1/httpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 18156, 12, 28539, 67, 2910, 16, 2552, 67, 3923, 16, 2826, 4333, 4672, 628, 19401, 18, 12411, 18, 15747, 87, 1930, 487, 6430, 364, 508, 316, 10228, 655, 2187, 296, 7814, 67, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 18156, 12, 28539, 67, 2910, 16, 2552, 67, 3923, 16, 2826, 4333, 4672, 628, 19401, 18, 12411, 18, 15747, 87, 1930, 487, 6430, 364, 508, 316, 10228, 655, 2187, 296, 7814, 67, 4...
if nick_re.match(cfg.dc_to_irc_prefix): LOG.error("DC nick prefix is Q-lined! Terminating.") self.transport.loseConnection() reactor.stop() return
if self.syncd: if nick_re.match(cfg.dc_to_irc_prefix): self.pushRemoveQLine(nickmask) return
def handleCmd_TKL(self, prefix, args):
41cfee835992c192fb2464a231351b4271c46427 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8524/41cfee835992c192fb2464a231351b4271c46427/bridge_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 5931, 67, 56, 47, 48, 12, 2890, 16, 1633, 16, 833, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
0.399123963308
0.39912396330...
def elias_bound_asymp(delta,q): """ Computes the asymptotic Elias bound for the information rate, provided 0 < delta < 1-1/q. EXAMPLES: sage: elias_bound_asymp(1/4,2) 0.399123963308 """ r = 1-1/q return RDF((1-entropy(r-sqrt(r*(r-delta)), q)))
007a05078dbcac71dac7847d958820f393dc0c9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/007a05078dbcac71dac7847d958820f393dc0c9c/code_bounds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 1795, 67, 3653, 67, 15762, 1291, 12, 9878, 16, 85, 4672, 3536, 14169, 281, 326, 26202, 337, 352, 335, 512, 2772, 2489, 364, 326, 1779, 4993, 16, 2112, 374, 411, 3622, 411, 404, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 1795, 67, 3653, 67, 15762, 1291, 12, 9878, 16, 85, 4672, 3536, 14169, 281, 326, 26202, 337, 352, 335, 512, 2772, 2489, 364, 326, 1779, 4993, 16, 2112, 374, 411, 3622, 411, 404, 17...
nqtext += ":".join(self.ex_ents)
nqtext += ":".join(ex_ents)
def VerifyDirectory(self, entry, modlist): '''Verify Directory Entry''' while len(entry.get('perms', '')) < 4: entry.set('perms', '0' + entry.get('perms', '')) try: ondisk = os.stat(entry.get('name')) except OSError: entry.set('current_exists', 'false') self.logger.debug("%s %s does not exist" % (entry.tag, entry.get('...
3d29375196c124405db4d256dc8368f39e9160d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/3d29375196c124405db4d256dc8368f39e9160d1/POSIX.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2853, 12, 2890, 16, 1241, 16, 681, 1098, 4672, 9163, 8097, 8930, 3841, 26418, 1323, 562, 12, 4099, 18, 588, 2668, 15969, 2187, 875, 3719, 411, 1059, 30, 1241, 18, 542, 2668, 15969,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2853, 12, 2890, 16, 1241, 16, 681, 1098, 4672, 9163, 8097, 8930, 3841, 26418, 1323, 562, 12, 4099, 18, 588, 2668, 15969, 2187, 875, 3719, 411, 1059, 30, 1241, 18, 542, 2668, 15969,...
if sage.modules.free_module_element.is_FreeModuleElement(x):
if free_module_element.is_FreeModuleElement(x):
def __init__(self, parent, x, check=True): r""" Create with ``DirichletCharacter(parent, values_on_gens)`` INPUT: - ``parent`` - DirichletGroup, a group of Dirichlet characters - ``x``
80bb64cda04307dbe55314d6e4fce85c5aab0086 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/80bb64cda04307dbe55314d6e4fce85c5aab0086/dirichlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 619, 16, 866, 33, 5510, 4672, 436, 8395, 1788, 598, 12176, 1621, 1354, 1810, 7069, 12, 2938, 16, 924, 67, 265, 67, 23730, 13, 10335, 225, 12943,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 619, 16, 866, 33, 5510, 4672, 436, 8395, 1788, 598, 12176, 1621, 1354, 1810, 7069, 12, 2938, 16, 924, 67, 265, 67, 23730, 13, 10335, 225, 12943,...
sqlite_defines.append(('PY_MINOR_VERSION',
sqlite_defines.append(('PY_MINOR_VERSION',
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
1e257c03d783aa423a5326d235b7cad3e7b9b6de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1e257c03d783aa423a5326d235b7cad3e7b9b6de/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
print classname, "warning", fn["name"], "parameter is overridden const but was not originally var"
print classname, "warning", fn["name"], "parameter is overridden 'out' but was not originally 'var'"
def func_cb(varname, fn): global classname global cclassconstructparams global c2pfuncparamoverride global pextratypes global c2pcallbackpointers global preturntransformers global poverridearraytypes global wrapperpointerprefix global wrapperprefix global pstringtype global interfaceprefix if fn["name"] in c2pfuncparam...
18da3727386bfab1a4356cdae87ddce393e0db6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2589/18da3727386bfab1a4356cdae87ddce393e0db6e/tool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 67, 7358, 12, 1401, 529, 16, 2295, 4672, 2552, 7479, 2552, 15964, 10062, 2010, 2552, 276, 22, 84, 644, 891, 10601, 2552, 293, 14523, 13373, 2552, 276, 22, 84, 3394, 10437, 87, 2552...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 67, 7358, 12, 1401, 529, 16, 2295, 4672, 2552, 7479, 2552, 15964, 10062, 2010, 2552, 276, 22, 84, 644, 891, 10601, 2552, 293, 14523, 13373, 2552, 276, 22, 84, 3394, 10437, 87, 2552...