rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
def post(self, f): """Process a POST command. Arguments: - f: file containing the article Returns: - resp: server response if successful""" resp = self.shortcmd('POST')
def _post(self, command, f): resp = self.shortcmd(command)
def date (self): """Process the DATE command. Arguments: None Returns: resp: server response if successful date: Date suitable for newnews/newgroups commands etc. time: Time suitable for newnews/newgroups commands etc."""
9bd2973908ef080e31fd8a2b44c929188a135cb0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/9bd2973908ef080e31fd8a2b44c929188a135cb0/nntplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 261, 2890, 4672, 3536, 2227, 326, 11457, 1296, 18, 13599, 30, 599, 2860, 30, 1718, 30, 1438, 766, 309, 6873, 1509, 30, 2167, 10631, 364, 394, 18443, 19, 2704, 4650, 4364, 5527, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 261, 2890, 4672, 3536, 2227, 326, 11457, 1296, 18, 13599, 30, 599, 2860, 30, 1718, 30, 1438, 766, 309, 6873, 1509, 30, 2167, 10631, 364, 394, 18443, 19, 2704, 4650, 4364, 5527, 18,...
yield XMLDataType.encode(x)
yield x
def process_message(message, keep_spaces): # Normalize the message message.normalize() # Left strip if message: x = message[0] if isinstance(x, unicode) and x.strip() == u'': del message[0] yield x # Right strip if message: x = message[-1] if isinstance(x, unicode) and x.strip() == u'': del message[-1] yield x # Proces...
232a09ee0882299d22ee0e4b25da2bd6c12a26fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/232a09ee0882299d22ee0e4b25da2bd6c12a26fc/XHTML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2150, 12, 2150, 16, 3455, 67, 9554, 4672, 468, 14282, 326, 883, 883, 18, 12237, 1435, 468, 13338, 2569, 309, 883, 30, 619, 273, 883, 63, 20, 65, 309, 1549, 12, 92, 16, 5252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2150, 12, 2150, 16, 3455, 67, 9554, 4672, 468, 14282, 326, 883, 883, 18, 12237, 1435, 468, 13338, 2569, 309, 883, 30, 619, 273, 883, 63, 20, 65, 309, 1549, 12, 92, 16, 5252...
cfont = self.sel_color
cfont = self.colors[COLOR_SELECTION_FONT]
def AddSelect(self, list, cfont=None, cbackgrd = None): if cfont is None: cfont = self.sel_color # font digit color
b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1436, 3391, 12, 2890, 16, 666, 16, 276, 5776, 33, 7036, 16, 276, 823, 3197, 72, 273, 599, 4672, 309, 276, 5776, 353, 599, 30, 276, 5776, 273, 365, 18, 9724, 63, 10989, 67, 1090, 1544...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1436, 3391, 12, 2890, 16, 666, 16, 276, 5776, 33, 7036, 16, 276, 823, 3197, 72, 273, 599, 4672, 309, 276, 5776, 353, 599, 30, 276, 5776, 273, 365, 18, 9724, 63, 10989, 67, 1090, 1544...
installTargetFile = '%s.exe' % installTargetFile installSource = os.path.join(buildenv['root'], installTargetFile) installTarget = os.path.join(buildenv['outputdir'], installTargetFile)
installSource = os.path.join(buildenv['root'], installTargetFile) installTarget = os.path.join(buildenv['outputdir'], installTargetFile)
def distribute(buildenv): _createVersionFile(buildenv) buildVersionShort = \ hardhatutil.RemovePunctuation(buildenv['buildVersion']) # When the build version string is based on one of our CVS tags # (which usually begin with "CHANDLER_") let's remove the "CHANDLER_" # prefix from the string so it doesn't end up in t...
8c35caa479609ca8845ed4a8a409cb7055ef0b84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8c35caa479609ca8845ed4a8a409cb7055ef0b84/__hardhat__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25722, 12, 3510, 3074, 4672, 225, 389, 2640, 1444, 812, 12, 3510, 3074, 13, 225, 1361, 1444, 4897, 273, 521, 7877, 11304, 1367, 18, 3288, 52, 15726, 12, 3510, 3074, 3292, 3510, 1444, 194...
tlen, 0, len(patches),
tlen, 0, len(patches),
def close(self): self.container.append(''.join(self.lines).split('\n')) self.lines = []
d53891cdf4959e82f82dd5c7f46ad39a3409d61a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/d53891cdf4959e82f82dd5c7f46ad39a3409d61a/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 3782, 18, 6923, 2668, 10332, 5701, 12, 2890, 18, 3548, 2934, 4939, 2668, 64, 82, 26112, 365, 18, 3548, 273, 5378, 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, 1746, 12, 2890, 4672, 365, 18, 3782, 18, 6923, 2668, 10332, 5701, 12, 2890, 18, 3548, 2934, 4939, 2668, 64, 82, 26112, 365, 18, 3548, 273, 5378, 2, -100, -100, -100, -100, -100, -100, ...
headerSize = int(headerSize)-1
try: headerSize = int(headerSize)-1 except: raise EnvironmentError, "Failed to convert: "+headerSize+" to an integer!"
def initFromSocket(self, inSocket): """ <Purpose> Constructs a frame object given a socket which contains only frames.
262efebd3dfdcf6ff7ce5a175fbfdb2f5b5b17bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/262efebd3dfdcf6ff7ce5a175fbfdb2f5b5b17bf/Multiplexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 1265, 4534, 12, 2890, 16, 316, 4534, 4672, 3536, 411, 10262, 4150, 34, 14291, 87, 279, 2623, 733, 864, 279, 2987, 1492, 1914, 1338, 7793, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 1265, 4534, 12, 2890, 16, 316, 4534, 4672, 3536, 411, 10262, 4150, 34, 14291, 87, 279, 2623, 733, 864, 279, 2987, 1492, 1914, 1338, 7793, 18, 2, -100, -100, -100, -100, -100, -100,...
self.assertEqual("blink", check_spelling("blink")) self.assertEqual("blink", check_spelling("bllnk")) self.assertEqual("html", check_spelling("htmm")) self.assertEqual("hr", check_spelling("hu")) self.assertEqual("xmlns:a", check_spelling("xmlns:a")) self.assertEqual("heisead", check_spelling("heisead"))
url = "unknown" self.assertEqual("blink", check_spelling("blink", url)) self.assertEqual("blink", check_spelling("bllnk", url)) self.assertEqual("html", check_spelling("htmm", url)) self.assertEqual("hr", check_spelling("hrr", url)) self.assertEqual("xmlns:a", check_spelling("xmlns:a", url)) self.assertEqual("heisead",...
def test_htmltags (self): self.assertEqual("blink", check_spelling("blink")) self.assertEqual("blink", check_spelling("bllnk")) self.assertEqual("html", check_spelling("htmm")) self.assertEqual("hr", check_spelling("hu")) self.assertEqual("xmlns:a", check_spelling("xmlns:a")) self.assertEqual("heisead", check_spelling(...
e678028bdfc6f49b1598b849140304bd3d88647a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/e678028bdfc6f49b1598b849140304bd3d88647a/test_spelling.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2620, 4156, 261, 2890, 4672, 365, 18, 11231, 5812, 2932, 70, 1232, 3113, 866, 67, 1752, 1165, 310, 2932, 70, 1232, 6, 3719, 365, 18, 11231, 5812, 2932, 70, 1232, 3113, 866, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2620, 4156, 261, 2890, 4672, 365, 18, 11231, 5812, 2932, 70, 1232, 3113, 866, 67, 1752, 1165, 310, 2932, 70, 1232, 6, 3719, 365, 18, 11231, 5812, 2932, 70, 1232, 3113, 866, 6...
lineno, colno = vim.current.window.cursor
lineno, colno = self.cursor
def insert(self, text): lineno, colno = vim.current.window.cursor line = self.buffer[lineno - 1] self.buffer[lineno - 1] = line[:colno] + text + line[colno:] vim.current.window.cursor = (lineno, colno + len(text))
853e50fb7ca1a9ae339154f152d1b9ab483b0e4b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8284/853e50fb7ca1a9ae339154f152d1b9ab483b0e4b/ropevim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 977, 4672, 7586, 16, 645, 2135, 273, 365, 18, 9216, 980, 273, 365, 18, 4106, 63, 17782, 300, 404, 65, 365, 18, 4106, 63, 17782, 300, 404, 65, 273, 980, 10531, 129...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 977, 4672, 7586, 16, 645, 2135, 273, 365, 18, 9216, 980, 273, 365, 18, 4106, 63, 17782, 300, 404, 65, 365, 18, 4106, 63, 17782, 300, 404, 65, 273, 980, 10531, 129...
kwargs.get('variable_summary_linelength', 40)
kwargs.get('variable_summary_linelength', 55)
def __init__(self, docmap, **kwargs): """ Construct a new HTML formatter, using the given documentation map. @param docmap: The documentation to output. @type docmap: L{DocMap} @param kwargs: Keyword arguments: - C{prj_name}: The name of the project. Defaults to none. (type=C{string}) - C{prj_url}: The target for the...
dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1458, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 4453, 16, 1450, 326, 864, 7323, 852, 18, 632, 891, 997, 1458, 30, 1021, 7323, 358, 876, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 997, 1458, 16, 2826, 4333, 4672, 3536, 14291, 279, 394, 3982, 4453, 16, 1450, 326, 864, 7323, 852, 18, 632, 891, 997, 1458, 30, 1021, 7323, 358, 876, 18,...
request.user.username, ('student %s', userid),
request.user.username, ('student %s'% userid),
def marking_student(request, course_slug, activity_slug, userid): student = get_object_or_404(Person, userid = userid) course = get_object_or_404(CourseOffering, slug = course_slug) activity = get_object_or_404(NumericActivity, offering = course, slug = activity_slug) membership = get_object_or_404(Member, offering = c...
d832c09c14fff9f914b305031c156fb53c39da5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6634/d832c09c14fff9f914b305031c156fb53c39da5b/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24073, 67, 26240, 12, 2293, 16, 4362, 67, 6436, 16, 5728, 67, 6436, 16, 6709, 4672, 18110, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 8346, 16, 6709, 273, 6709, 13, 4362, 273, 336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24073, 67, 26240, 12, 2293, 16, 4362, 67, 6436, 16, 5728, 67, 6436, 16, 6709, 4672, 18110, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 8346, 16, 6709, 273, 6709, 13, 4362, 273, 336, ...
translations = [('auto', self._default_lang)]
translations = [('auto', self.default_lang)]
def parse(self, cmd): """Parse command structure and transform text""" if ':' not in cmd: raise BabelError('missing text to translate') cmd, text = [arg.strip() for arg in cmd.split(':', 1)] cmd = cmd.lower().split()
2c62efb7b37c7dc0e773b0e97053b2b35448ac27 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10942/2c62efb7b37c7dc0e773b0e97053b2b35448ac27/babel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1797, 4672, 3536, 3201, 1296, 3695, 471, 2510, 977, 8395, 309, 3921, 486, 316, 1797, 30, 1002, 605, 873, 668, 2668, 7337, 977, 358, 4204, 6134, 1797, 16, 977, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1797, 4672, 3536, 3201, 1296, 3695, 471, 2510, 977, 8395, 309, 3921, 486, 316, 1797, 30, 1002, 605, 873, 668, 2668, 7337, 977, 358, 4204, 6134, 1797, 16, 977, 273, ...
EXAMPLES:
EXAMPLES::
def extend(self): r""" A deliberately broken extend method.
a4aad1557cdf06ed8562711534ca467dff85c855 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/a4aad1557cdf06ed8562711534ca467dff85c855/explain_pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2133, 12, 2890, 4672, 436, 8395, 432, 1464, 14776, 5173, 12933, 2133, 707, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2133, 12, 2890, 4672, 436, 8395, 432, 1464, 14776, 5173, 12933, 2133, 707, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'supply_warehouse_id' : fields.many2one('stock.warehouse','Source Warehouse', help = "Warehouse used as source in supply pick move created by 'Supply from Another Warhouse'."), "stock_supply_location" : fields.boolean("Stock Supply Location", help = "Check to supply from Stock location of Supply Warehouse. " \
'supply_warehouse_id': fields.many2one('stock.warehouse','Source Warehouse', help = "Warehouse used as source in supply pick move created by 'Supply from Another Warhouse'."), "stock_supply_location": fields.boolean("Stock Supply Location", help = "Check to supply from Stock location of Supply Warehouse. " \
coeff = coeff_uom2def * coeff_def2uom
6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11943, 273, 11943, 67, 89, 362, 22, 536, 380, 11943, 67, 536, 22, 89, 362, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 11943, 273, 11943, 67, 89, 362, 22, 536, 380, 11943, 67, 536, 22, 89, 362, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
group_ip = ipaddr.IP(group)
addrinfo = socket.getaddrinfo(group, None)[0]
def sender(group): group_ip = ipaddr.IP(group) s = socket.socket(_sockfam(group_ip), socket.SOCK_DGRAM) # Set Time-to-live (optional) ttl_bin = struct.pack('@i', MYTTL) if group_ip.version == 4: s.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, ttl_bin) else: s.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_MULTI...
a617c6fdacb556b4c04b70016692e6a23ffe1100 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/a617c6fdacb556b4c04b70016692e6a23ffe1100/mcast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5793, 12, 1655, 4672, 3091, 1376, 273, 2987, 18, 588, 4793, 1376, 12, 1655, 16, 599, 25146, 20, 65, 225, 272, 273, 2987, 18, 7814, 24899, 15031, 74, 301, 12, 1655, 67, 625, 3631, 2987,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5793, 12, 1655, 4672, 3091, 1376, 273, 2987, 18, 588, 4793, 1376, 12, 1655, 16, 599, 25146, 20, 65, 225, 272, 273, 2987, 18, 7814, 24899, 15031, 74, 301, 12, 1655, 67, 625, 3631, 2987,...
"""
"""
def fl_select_mediancut_quantizer(): """ fl_select_mediancut_quantizer() """ _fl_select_mediancut_quantizer()
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 4025, 67, 22410, 5150, 67, 17753, 1824, 13332, 3536, 1183, 67, 4025, 67, 22410, 5150, 67, 17753, 1824, 1435, 3536, 225, 389, 2242, 67, 4025, 67, 22410, 5150, 67, 17753, 1824, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 4025, 67, 22410, 5150, 67, 17753, 1824, 13332, 3536, 1183, 67, 4025, 67, 22410, 5150, 67, 17753, 1824, 1435, 3536, 225, 389, 2242, 67, 4025, 67, 22410, 5150, 67, 17753, 1824, 1...
REFERENCES: - [Edmonds74] 'Angular Momentum in Quantum Mechanics', A. R. Edmonds, Princeton University Press (1974) - [Rasch03] 'Efficient Storage Scheme for Pre-calculated Wigner 3j, 6j and Gaunt Coefficients', J. Rasch and A. C. H. Yu, SIAM J. Sci. Comput. Volume 25, Issue 4, pp. 1416-1428 (2003)
def clebsch_gordan(j_1, j_2, j_3, m_1, m_2, m_3, prec=None): r""" Calculates the Clebsch-Gordan coefficient `< j_1 m_1 \; j_2 m_2 | j_3 m_3 >`. INPUT: - ``j_1``, ``j_2``, ``j_3``, ``m_1``, ``m_2``, ``m_3`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed ...
2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1619, 2038, 343, 67, 75, 517, 304, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 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, 1619, 2038, 343, 67, 75, 517, 304, 12, 78, 67, 21, 16, 525, 67, 22, 16, 525, 67, 23, 16, 312, 67, 21, 16, 312, 67, 22, 16, 312, 67, 23, 16, 13382, 33, 7036, 4672, 436, 8395, 26...
self.Bind(wx.EVT_PAINT, lambda evt: self.__DrawButton())
self.Bind(wx.EVT_PAINT, self.OnPaint)
def __init__ (self, parent, id_=wx.ID_ANY, label='', label2='', bmp=None, pos=wx.DefaultPosition, size=wx.DefaultSize, style=MB_STYLE_DEFAULT, name=wx.ButtonNameStr, start_color=(218,218,218), gradient_percent=15.0, highlight_color=(230,230,230), label_size=13, caption_size=11, button_margin=2, disable_after_click=0): ...
2af4733e06040a45799a4d6984634fe5947ee341 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/2af4733e06040a45799a4d6984634fe5947ee341/metallicbutton.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 982, 16, 612, 67, 33, 27226, 18, 734, 67, 15409, 16, 1433, 2218, 2187, 1433, 22, 2218, 2187, 324, 1291, 33, 7036, 16, 949, 33, 27226, 18, 1868, 2555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 982, 16, 612, 67, 33, 27226, 18, 734, 67, 15409, 16, 1433, 2218, 2187, 1433, 22, 2218, 2187, 324, 1291, 33, 7036, 16, 949, 33, 27226, 18, 1868, 2555, ...
else: context.currentRecord.undefineds.append(operands[0])
def parse_EBANKEquals(self, context, operands): retval = False if operands: op = Number(operands[0]) if op.isValid(): context.lastEbank = context.ebank context.ebank = op.value context.lastEbankEquals = True context.currentRecord.target = op.value else: entry = context.symtab.lookup(operands[0]) if entry != None: bank ...
ce86b3471a6458fe73066034f9048fcbd69ffe33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/ce86b3471a6458fe73066034f9048fcbd69ffe33/directive.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 29258, 1258, 6859, 6360, 12, 2890, 16, 819, 16, 14883, 4672, 5221, 273, 1083, 309, 14883, 30, 1061, 273, 3588, 12, 4063, 5708, 63, 20, 5717, 309, 1061, 18, 26810, 13332, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 29258, 1258, 6859, 6360, 12, 2890, 16, 819, 16, 14883, 4672, 5221, 273, 1083, 309, 14883, 30, 1061, 273, 3588, 12, 4063, 5708, 63, 20, 5717, 309, 1061, 18, 26810, 13332, 819, ...
logging.exception('OperationalError when upgrading database: %s', e
logging.exception('OperationalError when upgrading database: %s', e)
def upgrade_database(self): """Run any database upgrades that haven't been run.""" try: self._upgrade_database() except (KeyError, SystemError, databaseupgrade.DatabaseTooNewError): raise except sqlite3.OperationalError, e: logging.exception('OperationalError when upgrading database: %s', e raise UpgradeDiskSpaceError(...
5c2c3fac39e4b4b1673ff5986ba11bcd3ba95805 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/5c2c3fac39e4b4b1673ff5986ba11bcd3ba95805/storedatabase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 6231, 12, 2890, 4672, 3536, 1997, 1281, 2063, 28844, 716, 15032, 1404, 2118, 1086, 12123, 775, 30, 365, 6315, 15097, 67, 6231, 1435, 1335, 261, 653, 668, 16, 2332, 668, 16, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 6231, 12, 2890, 4672, 3536, 1997, 1281, 2063, 28844, 716, 15032, 1404, 2118, 1086, 12123, 775, 30, 365, 6315, 15097, 67, 6231, 1435, 1335, 261, 653, 668, 16, 2332, 668, 16, 206...
"process_id": "ilwd_char", "seg_def_map_id": "ilwd_char",
"process_id": "ilwd:char", "seg_def_map_id": "ilwd:char",
def set_band(self, band): self.central_freq = (band[0] + band[1])/2.0 self.bandwidth = band.duration()
e532b68a6569c39e65944f8b97c721d0225c0764 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/e532b68a6569c39e65944f8b97c721d0225c0764/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 12752, 12, 2890, 16, 8937, 4672, 365, 18, 71, 12839, 67, 10212, 273, 261, 12752, 63, 20, 65, 397, 8937, 63, 21, 5717, 19, 22, 18, 20, 365, 18, 29750, 273, 8937, 18, 8760, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 67, 12752, 12, 2890, 16, 8937, 4672, 365, 18, 71, 12839, 67, 10212, 273, 261, 12752, 63, 20, 65, 397, 8937, 63, 21, 5717, 19, 22, 18, 20, 365, 18, 29750, 273, 8937, 18, 8760, ...
physParts = re.findall(r'([0-9]\d+)', lines[5])
physParts = re.findall(r'([0-9]\d+)', lines[self.topIndex])
def getMemoryUsage(self): self.checksLogger.debug('getMemoryUsage: start') if sys.platform == 'linux2': self.checksLogger.debug('getMemoryUsage: linux2') try: self.checksLogger.debug('getMemoryUsage: attempting open') meminfoProc = open('/proc/meminfo', 'r') lines = meminfoProc.readlines() except IOError, e: self.c...
4d532be3d9385ce8f71da457552af270c669b1cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13266/4d532be3d9385ce8f71da457552af270c669b1cb/checks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27740, 5357, 12, 2890, 4672, 365, 18, 12366, 3328, 18, 4148, 2668, 588, 6031, 5357, 30, 787, 6134, 225, 309, 2589, 18, 9898, 422, 296, 20132, 22, 4278, 365, 18, 12366, 3328, 18, 4148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27740, 5357, 12, 2890, 4672, 365, 18, 12366, 3328, 18, 4148, 2668, 588, 6031, 5357, 30, 787, 6134, 225, 309, 2589, 18, 9898, 422, 296, 20132, 22, 4278, 365, 18, 12366, 3328, 18, 4148, ...
if isinstance(val, str) and not (':' in val): if len(val) < ethernetaddr.LEN: return None
if isinstance(val, str) and len(val) == ethernetaddr.LEN:
def convert_to_eaddr(val): if isinstance(val, ethernetaddr): return val if isinstance(val, array.array): val = val.tostring() if isinstance(val, str) and not (':' in val): if len(val) < ethernetaddr.LEN: return None return create_bin_eaddr(val) elif isinstance(val, str) or isinstance(val, int) or isinstance(val, long):...
c3fa89a8e5c55e66efbcee3ee32523c9eb5d76c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11602/c3fa89a8e5c55e66efbcee3ee32523c9eb5d76c9/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 869, 67, 684, 3069, 12, 1125, 4672, 309, 1549, 12, 1125, 16, 225, 2437, 82, 1167, 3069, 4672, 327, 1244, 309, 1549, 12, 1125, 16, 526, 18, 1126, 4672, 1244, 273, 1244, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 869, 67, 684, 3069, 12, 1125, 4672, 309, 1549, 12, 1125, 16, 225, 2437, 82, 1167, 3069, 4672, 327, 1244, 309, 1549, 12, 1125, 16, 526, 18, 1126, 4672, 1244, 273, 1244, 18, ...
def restore_files(files): sys.stdin = self.save_sydin
def restore_files(self): sys.stdin = self.save_stdin
def restore_files(files):
e3a335f9133cae9a1bbe5c112bf1c94316111187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e3a335f9133cae9a1bbe5c112bf1c94316111187/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 2354, 12, 2354, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 2354, 12, 2354, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
assert None == self.log ('shutdown', 'debug') if self.server_when == 0: self.handle_close () else:
self.log ('shutdown', 'info') if self.server_when:
def server_shutdown (self): "stop accepting connections, close all current when done" assert None == self.log ('shutdown', 'debug') if self.server_when == 0: self.handle_close () else: self.accepting = False for dispatcher in tuple (self.server_dispatchers): dispatcher.close_when_done () return True
f116ff77f0d9b8b3c7a03a89a9adc9438bd24b09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/f116ff77f0d9b8b3c7a03a89a9adc9438bd24b09/async_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 15132, 261, 2890, 4672, 315, 5681, 25806, 5921, 16, 1746, 777, 783, 1347, 2731, 6, 365, 18, 1330, 7707, 15132, 2187, 296, 1376, 6134, 309, 365, 18, 3567, 67, 13723, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 15132, 261, 2890, 4672, 315, 5681, 25806, 5921, 16, 1746, 777, 783, 1347, 2731, 6, 365, 18, 1330, 7707, 15132, 2187, 296, 1376, 6134, 309, 365, 18, 3567, 67, 13723, 30, 365, ...
if not do_print: s += """ <textarea class="%s" rows=%s cols=%s id = 'cell_input_%s' onKeyPress = 'return input_keypress(%s,event);' onInput = 'cell_input_resize(this); return true;' onBlur = 'cell_blur(%s); return true;' onClick = 'get_cell(%s).className = "cell_input_active"; return true;' %s >%s</te...
s += """ <textarea class="%s" rows=%s cols=%s id = 'cell_input_%s' onKeyPress = 'return input_keypress(%s,event);' onInput = 'cell_input_resize(this); return true;' onBlur = 'cell_blur(%s); return true;' onClick = 'get_cell(%s).className = "cell_input_active"; return true;' %s >%s</textarea> """%(cls,...
def html_in(self, do_print=False, ncols=200): s = '' id = self.__id t = self.__in.rstrip()
7c6154c87c89f84b67e8123b8371b79f2d72d099 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7c6154c87c89f84b67e8123b8371b79f2d72d099/cell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 267, 12, 2890, 16, 741, 67, 1188, 33, 8381, 16, 21330, 33, 6976, 4672, 272, 273, 875, 612, 273, 365, 16186, 350, 268, 273, 365, 16186, 267, 18, 86, 6406, 1435, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 67, 267, 12, 2890, 16, 741, 67, 1188, 33, 8381, 16, 21330, 33, 6976, 4672, 272, 273, 875, 612, 273, 365, 16186, 350, 268, 273, 365, 16186, 267, 18, 86, 6406, 1435, 2, -100, -10...
srcendp = curr + (self.nsources.value * 4) remaining = len(bytes) - curr srcendp = min(srcendp, remaining) while curr < srcendp: src = pcs.Field("", 32) [src.value, curr, byteBR] = src.decode(bytes, curr, byteBR) self.sources.append(src) auxdatalen = self.auxdatalen.value * 4 remaining = len(bytes) - curr if __debu...
srclen = self.nsources.value << 2 if srclen != 0: srclen = min(srclen, len(bytes)) endp = curr + srclen while curr < endp: src = pcs.Field("", 32) [src.value, curr, byteBR] = src.decode(bytes, curr, byteBR) self.sources.append(src) auxdatalen = self.auxdatalen.value << 2 if auxdatalen != 0: auxdatalen = min(auxdatalen...
def decode(self, bytes, curr, byteBR):
367c8a2e9d98b069c0e4064e92b1682e91965e39 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/367c8a2e9d98b069c0e4064e92b1682e91965e39/igmpv3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 1731, 16, 4306, 16, 1160, 7192, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 2495, 12, 2890, 16, 1731, 16, 4306, 16, 1160, 7192, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'last_modified': DateTimeDisplay(modified).when(0)['when'],
'last_modified': modified.age(),
def query_bugs(self, start_row=None, rows_per_page=10, order=-1, sort_col='number', filters=None, **params): if not filters: filters = {} filters = self._query_bugs_filter.filter(filters, conn=self) collection = filters.get('collection', 'Fedora') package = filters['package'] query = { 'product': collection, 'component...
101dd50f889b9e917edd4765279af44f06b474f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12732/101dd50f889b9e917edd4765279af44f06b474f5/bugzillaconnector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 19381, 12, 2890, 16, 787, 67, 492, 33, 7036, 16, 2595, 67, 457, 67, 2433, 33, 2163, 16, 1353, 29711, 21, 16, 1524, 67, 1293, 2218, 2696, 2187, 3415, 33, 7036, 16, 2826, 2010...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 19381, 12, 2890, 16, 787, 67, 492, 33, 7036, 16, 2595, 67, 457, 67, 2433, 33, 2163, 16, 1353, 29711, 21, 16, 1524, 67, 1293, 2218, 2696, 2187, 3415, 33, 7036, 16, 2826, 2010...
if not pipeline.db_has_object(param[3], param[2]):
if not pipeline.db_has_object(param.type, param.id):
def setPipeline(self, pipeline): """ setPipeline(pipeline: Pipeline) -> None Assign a pipeline to the current table """ if pipeline: for i in xrange(self.layout().count()): pEditor = self.layout().itemAt(i).widget() if pEditor and type(pEditor)==QParameterSetEditor: for param in pEditor.info[1]: if not pipeline.db_has...
cbb57d6d91d5a6ca58c33fadd1c3776ff49221ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/cbb57d6d91d5a6ca58c33fadd1c3776ff49221ab/pe_table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8798, 12, 2890, 16, 5873, 4672, 3536, 444, 8798, 12, 14511, 30, 13671, 13, 317, 599, 12093, 279, 5873, 358, 326, 783, 1014, 225, 3536, 309, 5873, 30, 364, 277, 316, 12314, 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, 444, 8798, 12, 2890, 16, 5873, 4672, 3536, 444, 8798, 12, 14511, 30, 13671, 13, 317, 599, 12093, 279, 5873, 358, 326, 783, 1014, 225, 3536, 309, 5873, 30, 364, 277, 316, 12314, 12, 289...
ids = list(set(ids).difference(_auto_ids))
ok_ids = list(set(ids).difference(_auto_ids)) ids = [i for i in ids if i in ok_ids]
def sync_to_device(self, on_card, delete_from_library, specific_format=None, send_ids=None, do_auto_convert=True): ids = [self.library_view.model().id(r) for r in self.library_view.selectionModel().selectedRows()] if send_ids is None else send_ids if not self.device_manager or not ids or len(ids) == 0: return
d7c94246d74f1797e70918b14493788aa8e10f42 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/d7c94246d74f1797e70918b14493788aa8e10f42/device.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 67, 869, 67, 5964, 12, 2890, 16, 603, 67, 3327, 16, 1430, 67, 2080, 67, 12083, 16, 2923, 67, 2139, 33, 7036, 16, 1366, 67, 2232, 33, 7036, 16, 741, 67, 6079, 67, 6283, 33, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 67, 869, 67, 5964, 12, 2890, 16, 603, 67, 3327, 16, 1430, 67, 2080, 67, 12083, 16, 2923, 67, 2139, 33, 7036, 16, 1366, 67, 2232, 33, 7036, 16, 741, 67, 6079, 67, 6283, 33, 55...
raise "\nERROR: In Order To Append/Insert A MultiLine Text You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT"
raise Exception("\nERROR: In Order To Append/Insert A MultiLine Text You Have To Use The Style TR_HAS_VARIABLE_ROW_HEIGHT")
def InsertItem(self, parentId, input, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Inserts an item after the given previous."""
e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8040, 1180, 12, 2890, 16, 11582, 16, 810, 16, 977, 16, 5691, 67, 723, 33, 20, 16, 341, 4880, 33, 7036, 16, 1316, 29711, 21, 16, 357, 2040, 29711, 21, 16, 501, 33, 7036, 4672, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8040, 1180, 12, 2890, 16, 11582, 16, 810, 16, 977, 16, 5691, 67, 723, 33, 20, 16, 341, 4880, 33, 7036, 16, 1316, 29711, 21, 16, 357, 2040, 29711, 21, 16, 501, 33, 7036, 4672, 3536, ...
if self.get_value(context[self.var], 'language') not in done_languages: output.append(self.nodelist.render(context)) done_languages.append(self.get_value(context[self.var], 'language'))
if self.get_value(context[self.var], 'language') not in done_languages: output.append(self.nodelist.render(context)) done_languages.append(self.get_value(context[self.var], 'language'))
def render(self, context): output = [] languages = context['languages']
9dff7b737749386a017588a0f8487ca1d061b5b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/9dff7b737749386a017588a0f8487ca1d061b5b9/repository_tags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 819, 4672, 876, 273, 5378, 8191, 273, 819, 3292, 14045, 3546, 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, 1743, 12, 2890, 16, 819, 4672, 876, 273, 5378, 8191, 273, 819, 3292, 14045, 3546, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
explicit.groups = Stuff( target=Stuff(quote=1, name=2), reference=Stuff(simple=1, phrase=2), substitution=Stuff(name=1))
def build_table_row(self, rowdata, tableline): row = nodes.row() for cell in rowdata: if cell is None: continue morerows, morecols, offset, cellblock = cell attributes = {} if morerows: attributes['morerows'] = morerows if morecols: attributes['morecols'] = morecols entry = nodes.entry(**attributes) row += entry if ''....
6782c922e166489b456fc617b1d5765e9532726e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/6782c922e166489b456fc617b1d5765e9532726e/states.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2121, 67, 492, 12, 2890, 16, 1027, 892, 16, 3246, 80, 3027, 4672, 1027, 273, 2199, 18, 492, 1435, 364, 2484, 316, 1027, 892, 30, 309, 2484, 353, 599, 30, 1324, 312, 8922, 5...
LOGDIR
LOGDIR = CUSTOM_SETTINGS['omero.web.logdir'])
def parse_boolean(s): s = s.strip().lower() if s in ('true', '1', 't'): return True return False
4caf148aba6713c843994a50ae9b609ae1ab8ec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/4caf148aba6713c843994a50ae9b609ae1ab8ec9/settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 6494, 12, 87, 4672, 272, 273, 272, 18, 6406, 7675, 8167, 1435, 309, 272, 316, 7707, 3767, 2187, 296, 21, 2187, 296, 88, 11, 4672, 327, 1053, 327, 1083, 225, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 6494, 12, 87, 4672, 272, 273, 272, 18, 6406, 7675, 8167, 1435, 309, 272, 316, 7707, 3767, 2187, 296, 21, 2187, 296, 88, 11, 4672, 327, 1053, 327, 1083, 225, 2, -100, -100, ...
data[e] = enew
result.append(enew)
def _expandMacrosInValues(self, data, maps): """ apply macro expansion on arbitrary values; takes care of recursive data like lists and dicts; only actually applies macros when a string is encountered on the way (look for calls to _expandString())""" result = data # intialize result # arrays if isinstance(data, types...
7ea45627bcc214587361e942c26d84edbe752bcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/7ea45627bcc214587361e942c26d84edbe752bcb/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 9990, 6973, 382, 1972, 12, 2890, 16, 501, 16, 7565, 4672, 3536, 2230, 11522, 17965, 603, 11078, 924, 31, 5530, 7671, 434, 5904, 501, 3007, 6035, 471, 15838, 31, 1338, 6013, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12320, 9990, 6973, 382, 1972, 12, 2890, 16, 501, 16, 7565, 4672, 3536, 2230, 11522, 17965, 603, 11078, 924, 31, 5530, 7671, 434, 5904, 501, 3007, 6035, 471, 15838, 31, 1338, 6013, 1...
elif progress_title != self.get_string('ubiquity/install/title') && \
elif progress_title != self.get_string('ubiquity/install/title') and \
def debconf_progress_start (self, progress_min, progress_max, progress_title): if self.current_page is not None: self.debconf_progress_window.set_transient_for(self.live_installer) # Metacity doesn't seem to respect the modal flag for normal # windows when the parent window is fullscreened. self.debconf_progress_window...
3c831b956dcbc9e00fac19681fbc8be248c4cc29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12903/3c831b956dcbc9e00fac19681fbc8be248c4cc29/gtk_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18202, 3923, 67, 8298, 67, 1937, 261, 2890, 16, 4007, 67, 1154, 16, 4007, 67, 1896, 16, 4007, 67, 2649, 4672, 309, 365, 18, 2972, 67, 2433, 353, 486, 599, 30, 365, 18, 31888, 3923, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18202, 3923, 67, 8298, 67, 1937, 261, 2890, 16, 4007, 67, 1154, 16, 4007, 67, 1896, 16, 4007, 67, 2649, 4672, 309, 365, 18, 2972, 67, 2433, 353, 486, 599, 30, 365, 18, 31888, 3923, 6...
os.rename(temp, dest)
shutil.copyfile(temp, dest)
def run(self, destdir, modname, xmlfile, wxPythonDir="wxPython"):
bbc916e23cee339de95a14f63c6b17f68802d0ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/bbc916e23cee339de95a14f63c6b17f68802d0ba/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1570, 1214, 16, 16037, 16, 2025, 768, 16, 7075, 15774, 1621, 1546, 27226, 15774, 6, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1570, 1214, 16, 16037, 16, 2025, 768, 16, 7075, 15774, 1621, 1546, 27226, 15774, 6, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
admin.site.register(BannerPreferences, BannerOptionsAdmin)
admin.site.register(BannerPreferences, BannerPreferencesAdmin)
def __init__(self, *args, **kwargs): """ Set url_name choices to url pattern names """ url_names = build_url_names() positions = build_positions() self.declared_fields['url_name'].choices = [('', '---------'),] + url_names self.declared_fields['position'].choices = [('', '---------'),] + positions super(BannerOptionAdm...
0673ebbda679a8706336abbe01d98bca1d1694d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12395/0673ebbda679a8706336abbe01d98bca1d1694d8/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1000, 880, 67, 529, 7246, 358, 880, 1936, 1257, 3536, 880, 67, 1973, 273, 1361, 67, 718, 67, 1973, 1435, 6865, 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, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1000, 880, 67, 529, 7246, 358, 880, 1936, 1257, 3536, 880, 67, 1973, 273, 1361, 67, 718, 67, 1973, 1435, 6865, 273...
self.prefixlen = int(addr[1]) self.netmask = self._ip_int_from_prefix(self.prefixlen)
self._prefixlen = int(addr[1]) self.netmask = self._ip_int_from_prefix(self._prefixlen)
def __init__(self, ipaddr): """Instantiate a new IPv4 object.
fff47fe8f2324dff8c8e9a139755e429be20efed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3510/fff47fe8f2324dff8c8e9a139755e429be20efed/ipaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2359, 4793, 4672, 3536, 22438, 279, 394, 7853, 24, 733, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2359, 4793, 4672, 3536, 22438, 279, 394, 7853, 24, 733, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
handler = self.handler(sock, self)
try: handler = self.handler(sock, self) except socket.error, err: logerror(str(err)) return
def handle_accept(self): """Called when remote client initiates a connection.""" try: sock, addr = self.accept() except TypeError: # sometimes accept() might return None (see issue 91) return except socket.error, err: # ECONNABORTED might be thrown on *BSD (see issue 105) if err[0] != errno.ECONNABORTED: logerror(trace...
cc7cf11e6fdb663e9eb2bba27ce2f38b8248326d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7236/cc7cf11e6fdb663e9eb2bba27ce2f38b8248326d/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 9436, 12, 2890, 4672, 3536, 8185, 1347, 2632, 1004, 1208, 16020, 279, 1459, 12123, 775, 30, 7313, 16, 3091, 273, 365, 18, 9436, 1435, 1335, 3580, 30, 468, 16594, 2791, 1435, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 9436, 12, 2890, 4672, 3536, 8185, 1347, 2632, 1004, 1208, 16020, 279, 1459, 12123, 775, 30, 7313, 16, 3091, 273, 365, 18, 9436, 1435, 1335, 3580, 30, 468, 16594, 2791, 1435, 48...
m.make('fire',type='fire',xyz=(0.7,0.7,0),parent=cfire.id)
m.make('fire',type='fire',xyz=(0,0,0),parent=cfire.id)
#def dontrunme():
621785333557a3ec8a3bc40103856abc96422ef5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12932/621785333557a3ec8a3bc40103856abc96422ef5/define_world.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 536, 2727, 313, 318, 3501, 13332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 536, 2727, 313, 318, 3501, 13332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
for i in range(len(attr_tmp_list)):
for i in range( len( attr_tmp_list ) ):
def getAttributesForJobList(self,jobIDList,attrList=[]): """ Get attributes for the jobs in the the jobIDList. Returns an S_OK structure with a dictionary of dictionaries as its Value: ValueDict[jobID][attribute_name] = attribute_value """ if not jobIDList: return S_OK({}) if attrList: attrNames = string.join(map(lambd...
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10183, 1290, 2278, 682, 12, 2890, 16, 4688, 24583, 16, 1747, 682, 33, 8526, 4672, 3536, 968, 1677, 364, 326, 6550, 316, 326, 326, 1719, 24583, 18, 2860, 392, 348, 67, 3141, 3695, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10183, 1290, 2278, 682, 12, 2890, 16, 4688, 24583, 16, 1747, 682, 33, 8526, 4672, 3536, 968, 1677, 364, 326, 6550, 316, 326, 326, 1719, 24583, 18, 2860, 392, 348, 67, 3141, 3695, 598, ...
description = 'Whipes tel from this computer'
description = 'Whipes the program from this computer'
def run(self): install.run(self) stream = open(INSTALL_LOG, 'w') outputs = map(os.path.normpath, self.get_outputs()) stream.write('\n'.join(outputs)) stream.write('\n') stream.close()
b989b48d397440412fdd5c0b7129d414e5bfa640 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/b989b48d397440412fdd5c0b7129d414e5bfa640/appdistutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3799, 18, 2681, 12, 2890, 13, 1407, 273, 1696, 12, 28865, 67, 4842, 16, 296, 91, 6134, 6729, 273, 852, 12, 538, 18, 803, 18, 7959, 803, 16, 365, 18, 588, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3799, 18, 2681, 12, 2890, 13, 1407, 273, 1696, 12, 28865, 67, 4842, 16, 296, 91, 6134, 6729, 273, 852, 12, 538, 18, 803, 18, 7959, 803, 16, 365, 18, 588, 67, ...
write_prop('URL', req.base_url + '/milestone/' + milestone['name']) if milestone.has_key('description'): write_prop('DESCRIPTION', milestone['description_text'])
write_prop('URL', req.base_url + '/milestone/' + milestone['name']) if milestone.has_key('description_source'): write_prop('DESCRIPTION', milestone['description_source'])
def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params)
f1247177d8bbe9edddd9819dd09d7c698998d191 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/f1247177d8bbe9edddd9819dd09d7c698998d191/Roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
sre.search(sre.escape(m_fix.group()) + '\s*[A-Za-z]', rebuilt_lines[x])
sre.search(sre.escape(m_next_mark.group()) \ + '\s*[A-Za-z]', current_line)
def correct_rebuilt_lines(rebuilt_lines, p_refmarker): """Try to correct any cases where a reference line has been incorrectly split based upon a wrong numeration marker. That is to say, given the following situation: [1] Smith, J blah blah [2] Brown, N blah blah see reference [56] for more info [3] Wills, A blah blah...
11ccb10bc99c9907d6df324bad7c06a4d678afe0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/11ccb10bc99c9907d6df324bad7c06a4d678afe0/refextract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3434, 67, 266, 12406, 67, 3548, 12, 266, 12406, 67, 3548, 16, 293, 67, 1734, 11145, 4672, 3536, 7833, 358, 3434, 1281, 6088, 1625, 279, 2114, 980, 711, 2118, 25621, 1416, 2511, 12318, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3434, 67, 266, 12406, 67, 3548, 12, 266, 12406, 67, 3548, 16, 293, 67, 1734, 11145, 4672, 3536, 7833, 358, 3434, 1281, 6088, 1625, 279, 2114, 980, 711, 2118, 25621, 1416, 2511, 12318, 27...
if context.get('product'):
if context.get('product') \ and isinstance(context['product'], (int, long)):
def view_header_get(self, cursor, user, value, view_type='form', context=None): product_obj = self.pool.get('product.product') uom_obj = self.pool.get('product.uom') if context is None: context = {} if context.get('product'): product_name = product_obj.name_get(cursor, user, context['product'], context=context)[0][1] p...
1cae397df63aacaa070ca816844215ea4a0fa9f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9298/1cae397df63aacaa070ca816844215ea4a0fa9f5/location.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 3374, 67, 588, 12, 2890, 16, 3347, 16, 729, 16, 460, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 4672, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 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, 1476, 67, 3374, 67, 588, 12, 2890, 16, 3347, 16, 729, 16, 460, 16, 1476, 67, 723, 2218, 687, 2187, 819, 33, 7036, 4672, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, ...
return LIGOTimeGPS(self.geocent_end_time, self.geocent_end_time_ns)
return self.get_time_geocent()
def get_end(self, site = None): if site is None: return LIGOTimeGPS(self.geocent_end_time, self.geocent_end_time_ns) else: return LIGOTimeGPS(getattr(self, "%s_end_time" % site.lower()), getattr(self, "%s_end_time_ns" % site.lower()))
ee6997b68a038a0bc10f6e0528d044e254080cf7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/ee6997b68a038a0bc10f6e0528d044e254080cf7/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 409, 12, 2890, 16, 2834, 273, 599, 4672, 309, 2834, 353, 599, 30, 327, 365, 18, 588, 67, 957, 67, 908, 504, 319, 1435, 469, 30, 327, 511, 3047, 51, 950, 28983, 12, 588, 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, 336, 67, 409, 12, 2890, 16, 2834, 273, 599, 4672, 309, 2834, 353, 599, 30, 327, 365, 18, 588, 67, 957, 67, 908, 504, 319, 1435, 469, 30, 327, 511, 3047, 51, 950, 28983, 12, 588, 17...
self.tk.call(self._w, 'attachwidget', widget._w)
self.tk.call(self._w, 'attachwidget', widget._w)
def attach_widget(self, widget):
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 67, 6587, 12, 2890, 16, 3604, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3306, 67, 6587, 12, 2890, 16, 3604, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Compile = ("gcc -gstabs+ " + ({ "SPARC32_LINUX" : "-m32 -munaligned-doubles", "SPARC64_LINUX" : "-m64 -munaligned-doubles", "LINUXLIBC6" : "-m32 -fPIC -mno-align-double", "AMD64_LINUX" : "-m64 -fPIC -mno-align-double"
Compile = ("gcc -g -fPIC " + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "LINUXLIBC6" : " -m32 -mno-align-double ", "MIPS64_OPENBSD" : " -mabi=64 ", "SPARC32_LINUX" : " -m32 -munaligned-doubles ", "SPARC64_LINUX" : " -m64 -munaligned-doubles ",
def Boot(): global BuildLocal BuildLocal += " -boot -keep" Version = "1" Compile = ("gcc -gstabs+ " + ({ "SPARC32_LINUX" : "-m32 -munaligned-doubles", "SPARC64_LINUX" : "-m64 -munaligned-doubles", "LINUXLIBC6" : "-m32 -fPIC -mno-align-double", "AMD64_LINUX" : "-m64 -fPIC -mno-align-double" }.get...
e5dd2e590d47712e5f74eb2b94a7ba475d779485 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/e5dd2e590d47712e5f74eb2b94a7ba475d779485/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 6, 225, 4049, 273, 315, 21, 6, 1377, 16143, 273, 7566, 75, 952, 300, 75, 300, 74, 20385, 315, 397, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 6, 225, 4049, 273, 315, 21, 6, 1377, 16143, 273, 7566, 75, 952, 300, 75, 300, 74, 20385, 315, 397, 10...
self._to_add.add(target)
self.added.add(target)
def copy_handler(self, source, target): source = self.normalize_key(source) target = self.normalize_key(target)
3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12681/3faba4a24cd4eaf0a1e3725c3cf35e7e68fc661b/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 4176, 12, 2890, 16, 1084, 16, 1018, 4672, 1084, 273, 365, 18, 12237, 67, 856, 12, 3168, 13, 1018, 273, 365, 18, 12237, 67, 856, 12, 3299, 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, 1610, 67, 4176, 12, 2890, 16, 1084, 16, 1018, 4672, 1084, 273, 365, 18, 12237, 67, 856, 12, 3168, 13, 1018, 273, 365, 18, 12237, 67, 856, 12, 3299, 13, 2, -100, -100, -100, -100, -10...
sage: eg = euler_gamma + euler_gamma;eg (euler_gamma + euler_gamma)
sage: eg = euler_gamma + euler_gamma; eg 2*euler_gamma
def floor(self): return Integer(0)
f489bb6b1c9fe3c89f83352d227e6497ed9e9961 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/f489bb6b1c9fe3c89f83352d227e6497ed9e9961/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6346, 12, 2890, 4672, 327, 2144, 12, 20, 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, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6346, 12, 2890, 4672, 327, 2144, 12, 20, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if next_text is not None:
if next_text is not None and next_text.has_key('href'):
def getReferences(self, follow_redirects=True, withTemplateInclusion=True, onlyTemplateInclusion=False, redirectsOnly=False): """Yield all pages that link to the page.
00ff3e222ddaaa05a6c452abaa76ff97357869a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/00ff3e222ddaaa05a6c452abaa76ff97357869a8/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 2980, 12, 2890, 16, 2805, 67, 22715, 33, 5510, 16, 598, 2283, 382, 15335, 33, 5510, 16, 1338, 2283, 382, 15335, 33, 8381, 16, 18064, 3386, 33, 8381, 4672, 3536, 16348, 777, 4689, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5561, 2980, 12, 2890, 16, 2805, 67, 22715, 33, 5510, 16, 598, 2283, 382, 15335, 33, 5510, 16, 1338, 2283, 382, 15335, 33, 8381, 16, 18064, 3386, 33, 8381, 4672, 3536, 16348, 777, 4689, ...
include_duplicates = self.source_config[source]['include_duplicates']
if source in self.source_config: include_duplicates = self.source_config[source].get('include_duplicates', False) else: include_duplicates = False
def GetTestsFromSource(self, source, count=50, select_mode=None): """Parse records from source, and returnrequest tuples to use for testing.
b6832af1d2cf58421301a686da44e8be138f1140 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4170/b6832af1d2cf58421301a686da44e8be138f1140/data_sources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 14650, 1265, 1830, 12, 2890, 16, 1084, 16, 1056, 33, 3361, 16, 2027, 67, 3188, 33, 7036, 4672, 3536, 3201, 3853, 628, 1084, 16, 471, 327, 2293, 10384, 358, 999, 364, 7769, 18, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 14650, 1265, 1830, 12, 2890, 16, 1084, 16, 1056, 33, 3361, 16, 2027, 67, 3188, 33, 7036, 4672, 3536, 3201, 3853, 628, 1084, 16, 471, 327, 2293, 10384, 358, 999, 364, 7769, 18, 2, ...
try:
src="Could not render the query template!" result=() try: src=self(REQUEST,1)
def manage_test(self, REQUEST):
47eff56d1f2c9cc7ed46d7a29ef15a29fd392e25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/47eff56d1f2c9cc7ed46d7a29ef15a29fd392e25/DA.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 3813, 12, 2890, 16, 12492, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 3813, 12, 2890, 16, 12492, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
showdefaults=self._showdefaults, ref=ref,
showdefaults=self._showdefaults, parent=parent,
def deepCopy(self, ref=None): """ Create a copy of a flag set, creating new Flag instances for all children """ new = Flag(value=self._value, name=self._name, showdefaults=self._showdefaults, ref=ref, createOnAccess=self._createOnAccess, required=self._required) new._overrides = self._overrides.copy() new._usedFlags = ...
1d86b8553b1fc36dd1c3948fcc6fd3d35472f0b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/1d86b8553b1fc36dd1c3948fcc6fd3d35472f0b6/use.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26762, 12, 2890, 16, 1278, 33, 7036, 4672, 3536, 1788, 279, 1610, 434, 279, 2982, 444, 16, 4979, 394, 9960, 3884, 364, 777, 2325, 3536, 394, 273, 9960, 12, 1132, 33, 2890, 6315, 1132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26762, 12, 2890, 16, 1278, 33, 7036, 4672, 3536, 1788, 279, 1610, 434, 279, 2982, 444, 16, 4979, 394, 9960, 3884, 364, 777, 2325, 3536, 394, 273, 9960, 12, 1132, 33, 2890, 6315, 1132, ...
print nexus.write()
print nexus.write()
def run_random(num_trees, nexus_obj): """ Returns a specified number (`num_trees`) of random trees from the nexus file. :param num_trees: The number of trees to resample :type num_trees: Integer :param nexus_obj: A `NexusReader` instance :type nexus_obj: NexusReader :return: A NexusReader instance. :raises Assertio...
482bbde58ec10539a1e77ab830b6e367df4de6fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1398/482bbde58ec10539a1e77ab830b6e367df4de6fc/nexus_treemanip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9188, 12, 2107, 67, 17204, 16, 290, 21029, 67, 2603, 4672, 3536, 2860, 279, 1269, 1300, 21863, 2107, 67, 17204, 24065, 434, 2744, 11491, 628, 326, 290, 21029, 585, 18, 225, 294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 9188, 12, 2107, 67, 17204, 16, 290, 21029, 67, 2603, 4672, 3536, 2860, 279, 1269, 1300, 21863, 2107, 67, 17204, 24065, 434, 2744, 11491, 628, 326, 290, 21029, 585, 18, 225, 294...
if string.find(c.parent.name, alogger.name) <> 0:
if c.parent.name[:namelen] != name:
def _fixupChildren(self, ph, alogger): """ Ensure that children of the placeholder ph are connected to the specified logger. """ #for c in ph.loggers: for c in ph.loggerMap.keys(): if string.find(c.parent.name, alogger.name) <> 0: alogger.parent = c.parent c.parent = alogger
ef7f3bf3b306cf8702496cb8ac2c7afdcf1b2fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ef7f3bf3b306cf8702496cb8ac2c7afdcf1b2fdb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 4212, 12, 2890, 16, 1844, 16, 279, 4901, 4672, 3536, 7693, 716, 2325, 434, 326, 6695, 1844, 854, 5840, 358, 326, 1269, 1194, 18, 3536, 468, 1884, 276, 316, 1844, 18, 133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 4212, 12, 2890, 16, 1844, 16, 279, 4901, 4672, 3536, 7693, 716, 2325, 434, 326, 6695, 1844, 854, 5840, 358, 326, 1269, 1194, 18, 3536, 468, 1884, 276, 316, 1844, 18, 133...
def WriteGLES2ImplementationImpl(self, func, file): """Overrriden from TypeHandler.""" pass
def WriteGLES2ImplementationImpl(self, func, file): """Overrriden from TypeHandler.""" pass
b4a937e280d5e05e48c8a7abf6caf1fdf5448b1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b4a937e280d5e05e48c8a7abf6caf1fdf5448b1b/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 43, 11386, 22, 13621, 2828, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 1342, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2598, 43, 11386, 22, 13621, 2828, 12, 2890, 16, 1326, 16, 585, 4672, 3536, 22042, 1691, 275, 628, 1412, 1503, 12123, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 786) else quickfix.IntField.__init__(self, 786, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 5292, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 5292, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 27...
d = time.strptime(data_cam.date_start,"%Y-%m-%d")
d = time.strptime(data_cam.date_start, "%Y-%m-%d")
def create(self,cr,uid,vals,context={}): type_id = self.pool.get('dm.campaign.type').search(cr, uid, [('code','=','model')])[0] if context.has_key('campaign_type') and context['campaign_type']=='model': vals['campaign_type_id']=type_id id_camp = super(dm_campaign,self).create(cr,uid,vals,context) data_cam = self.browse...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3353, 16, 1911, 16, 4524, 16, 2472, 12938, 4672, 618, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 14608, 18, 723, 16063, 3072, 12, 3353, 16, 4555, 16, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3353, 16, 1911, 16, 4524, 16, 2472, 12938, 4672, 618, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 10956, 18, 14608, 18, 723, 16063, 3072, 12, 3353, 16, 4555, 16, 3...
self._parent._contextlevel -= 1
self._parent._contextlevel = self._parent._contextlevel - 1
def _precomment(self) : """Outputs comments before the method call.""" if self._action == "showPage" : self._parent._PyWrite("\n # Ends page %i" % self._parent._pagenumber) elif self._action == "saveState" : state = {} d = self._parent._object.__dict__ for name in self._parent._object.STATE_ATTRIBUTES: state[name] =...
3e44ba24f2b4f661de43f0c0594c1d83be0e9816 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/3e44ba24f2b4f661de43f0c0594c1d83be0e9816/pycanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1484, 3469, 12, 2890, 13, 294, 3536, 13856, 5678, 1865, 326, 707, 745, 12123, 309, 365, 6315, 1128, 422, 315, 4500, 1964, 6, 294, 365, 6315, 2938, 6315, 9413, 3067, 31458, 82, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1484, 3469, 12, 2890, 13, 294, 3536, 13856, 5678, 1865, 326, 707, 745, 12123, 309, 365, 6315, 1128, 422, 315, 4500, 1964, 6, 294, 365, 6315, 2938, 6315, 9413, 3067, 31458, 82, 565, ...
def sysbox(size):
def sysbox(size, out={}):
def sysbox(size): canvas = {} # The system box of the computer. height = int(round(3*size)) width = int(round(17*size)) depth = int(round(2*size)) highlight = int(round(1*size)) bothighlight = int(round(0.49*size)) floppystart = int(round(19*size)) # measured in half-pixels floppyend = int(round(29*size)) # measured...
f3ddd15caee6adbcc98dcf72f6332664cf7e8c12 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7420/f3ddd15caee6adbcc98dcf72f6332664cf7e8c12/mkicon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2589, 2147, 12, 1467, 16, 596, 12938, 4672, 5953, 273, 2618, 225, 468, 1021, 2619, 3919, 434, 326, 26579, 18, 225, 2072, 273, 509, 12, 2260, 12, 23, 14, 1467, 3719, 1835, 273, 509, 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, 2589, 2147, 12, 1467, 16, 596, 12938, 4672, 5953, 273, 2618, 225, 468, 1021, 2619, 3919, 434, 326, 26579, 18, 225, 2072, 273, 509, 12, 2260, 12, 23, 14, 1467, 3719, 1835, 273, 509, 12,...
if hasattr(self.task, 'task'): return self.get_proxy()._rtm_to_gtg_status[self.task.task.completed\ == ""] else: return self.get_proxy()._rtm_to_gtg_status[self.task.completed == ""]
completed = self.__get_rtm_task_attribute("completed") return self.get_proxy()._rtm_to_gtg_status[completed == ""]
def _get_status(self): if hasattr(self.task, 'task'): return self.get_proxy()._rtm_to_gtg_status[self.task.task.completed\ == ""] else: return self.get_proxy()._rtm_to_gtg_status[self.task.completed == ""]
d899ae2e1efe5fef55fafe075da90275020f7f19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/d899ae2e1efe5fef55fafe075da90275020f7f19/rtmTask.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2327, 12, 2890, 4672, 309, 3859, 12, 2890, 18, 4146, 16, 296, 4146, 11, 4672, 327, 365, 18, 588, 67, 5656, 1435, 6315, 3797, 81, 67, 869, 67, 4521, 75, 67, 2327, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2327, 12, 2890, 4672, 309, 3859, 12, 2890, 18, 4146, 16, 296, 4146, 11, 4672, 327, 365, 18, 588, 67, 5656, 1435, 6315, 3797, 81, 67, 869, 67, 4521, 75, 67, 2327, 63, ...
self.update() self.theSession.updateFundamentalWindows()
def __loadData( self, *arg ) : """loads model or script file arg[0] --- ok button of FileSelection arg[1] --- 'Model'/'Script' (str) Return None """
222b923928a314421e899e2b5717fd1060d37af8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/222b923928a314421e899e2b5717fd1060d37af8/MainWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 751, 12, 365, 16, 380, 3175, 262, 294, 3536, 17135, 938, 578, 2728, 585, 1501, 63, 20, 65, 565, 9948, 282, 1529, 3568, 434, 1387, 6233, 1501, 63, 21, 65, 565, 9948, 282, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 945, 751, 12, 365, 16, 380, 3175, 262, 294, 3536, 17135, 938, 578, 2728, 585, 1501, 63, 20, 65, 565, 9948, 282, 1529, 3568, 434, 1387, 6233, 1501, 63, 21, 65, 565, 9948, 282, 2...
def _find_exe(exe): for v in get_devstudio_versions(): for p in get_msvc_paths('path',v): fn = os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): return fn try: for p in string.split(os.environ['Path'],';'): fn=os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): return fn except: pass return exe d...
def find_exe (exe, version_number): """Try to find an MSVC executable program 'exe' (from version 'version_number' of MSVC) in several places: first, one of the MSVC program search paths from the registry; next, the directories in the PATH environment variable. If any of those work, return an absolute path that is kno...
def _find_exe(exe): for v in get_devstudio_versions(): for p in get_msvc_paths('path',v): fn = os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): return fn #didn't find it; try existing path try: for p in string.split(os.environ['Path'],';'): fn=os.path.join(os.path.abspath(p),exe) if os.path.isfile(fn): retu...
018ef3a8c6b930e05ea82d0ffb0865e6b398f61e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/018ef3a8c6b930e05ea82d0ffb0865e6b398f61e/msvccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 14880, 12, 14880, 4672, 364, 331, 316, 336, 67, 5206, 334, 4484, 67, 10169, 13332, 364, 293, 316, 336, 67, 959, 4227, 67, 4481, 2668, 803, 2187, 90, 4672, 2295, 273, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 14880, 12, 14880, 4672, 364, 331, 316, 336, 67, 5206, 334, 4484, 67, 10169, 13332, 364, 293, 316, 336, 67, 959, 4227, 67, 4481, 2668, 803, 2187, 90, 4672, 2295, 273, 114...
if len(args) < 4 or len(args) > 6: print >> sys.stderr, "Usage: %s [-s] [CABWIZ_PATH] SOURCE_DIR PROGRAM_NAME CAB_FINAL_NAME" % args[0]
if len(args) < 4 or len(args) > 7: print >> sys.stderr, "Usage: %s [-s] [-faststart] [CABWIZ_PATH] SOURCE_DIR PROGRAM_NAME CAB_FINAL_NAME" % args[0]
def main(): args = sys.argv if len(args) < 4 or len(args) > 6: print >> sys.stderr, "Usage: %s [-s] [CABWIZ_PATH] SOURCE_DIR PROGRAM_NAME CAB_FINAL_NAME" % args[0] print >> sys.stderr, "Example: %s /c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/ fennec Fennec fennec-0.11.en-US.wince-arm.cab" % args[0] sys.exit(1) ar...
0e3823cbf8e1683d69edb96d082aebf901e1dd1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/0e3823cbf8e1683d69edb96d082aebf901e1dd1e/make_wince_cab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 833, 273, 2589, 18, 19485, 309, 562, 12, 1968, 13, 411, 1059, 578, 562, 12, 1968, 13, 405, 2371, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 5357, 30, 738, 87, 23059, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 833, 273, 2589, 18, 19485, 309, 562, 12, 1968, 13, 411, 1059, 578, 562, 12, 1968, 13, 405, 2371, 30, 1172, 1671, 2589, 18, 11241, 16, 315, 5357, 30, 738, 87, 23059, 87, ...
>>> from Bio.Seq import Seq, MutableSeq
def count(self, sub, start=0, end=sys.maxint): """Count method, like that of a python string.
30493b91a5b82d2f3a2d7bc31855c6ded51ed987 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/30493b91a5b82d2f3a2d7bc31855c6ded51ed987/Seq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 12, 2890, 16, 720, 16, 787, 33, 20, 16, 679, 33, 9499, 18, 1896, 474, 4672, 3536, 1380, 707, 16, 3007, 716, 434, 279, 5790, 533, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1056, 12, 2890, 16, 720, 16, 787, 33, 20, 16, 679, 33, 9499, 18, 1896, 474, 4672, 3536, 1380, 707, 16, 3007, 716, 434, 279, 5790, 533, 18, 2, -100, -100, -100, -100, -100, -100, -100...
names = self.pns_map_names (subject) if names != None: for name in names: self.pns_map_context (name, context, encoded)
for name in self.pns_map_names (subject): self.pns_map_context (name, context, encoded)
def pns_map_graph (self, subject, context): # encode the context first, then map it encoded = '%d:%s,' % (len (context), context) self.pns_map_context (subject, context, encoded) # recursively index the subject names names = self.pns_map_names (subject) if names != None: # and map them to this context too if any for na...
7ddc50691ab107bb7362d5201d0fb3886f3f1352 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/7ddc50691ab107bb7362d5201d0fb3886f3f1352/pns_inference.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2387, 67, 1458, 67, 4660, 261, 2890, 16, 3221, 16, 819, 4672, 468, 2017, 326, 819, 1122, 16, 1508, 852, 518, 3749, 273, 1995, 72, 5319, 87, 11189, 738, 261, 1897, 261, 2472, 3631,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 2387, 67, 1458, 67, 4660, 261, 2890, 16, 3221, 16, 819, 4672, 468, 2017, 326, 819, 1122, 16, 1508, 852, 518, 3749, 273, 1995, 72, 5319, 87, 11189, 738, 261, 1897, 261, 2472, 3631,...
definition.append('%sself.%s = {}'%(ID3, AttributeMixIn.typecode))
def _setContent(self): '''JRB What is the difference between instance data ns, name, -- type definition? sKlass, sKlassNS? -- element declaration? ''' definition = [] if self._is_array is True: # # SOAP-ENC:Array if _is_xsd_or_soap_ns(self.sKlassNS) is False and self.sKlass == 'Array': raise ContainerError, 'unknown ty...
95608c9d166b009a2f795386df86cd9904a4396a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/95608c9d166b009a2f795386df86cd9904a4396a/containers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 1350, 12, 2890, 4672, 9163, 46, 19437, 18734, 353, 326, 7114, 3086, 791, 501, 3153, 16, 508, 16, 1493, 618, 2379, 35, 272, 47, 459, 16, 272, 47, 459, 3156, 35, 1493, 930, 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, 389, 542, 1350, 12, 2890, 4672, 9163, 46, 19437, 18734, 353, 326, 7114, 3086, 791, 501, 3153, 16, 508, 16, 1493, 618, 2379, 35, 272, 47, 459, 16, 272, 47, 459, 3156, 35, 1493, 930, 8...
with timeout(seconds[, exc]): ... code block ...
Example:: with timeout(10): urllib2.open('http://example.com')
def cancel(self): pass
ef137327f8914ec709b8852c0042c74959d6bc9f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/ef137327f8914ec709b8852c0042c74959d6bc9f/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 12, 2890, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3755, 12, 2890, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
actual = collections.Counter(iter(actual_seq)) expected = collections.Counter(iter(expected_seq))
actual = collections.Counter(actual_seq) expected = collections.Counter(expected_seq)
def assertCountEqual(self, actual_seq, expected_seq, msg=None): """An unordered sequence specific comparison. It asserts that actual_seq and expected_seq have the same element counts. Equivalent to::
bb802144887f1b6a5287341da2f8532e520cd8aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/bb802144887f1b6a5287341da2f8532e520cd8aa/case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1380, 5812, 12, 2890, 16, 3214, 67, 5436, 16, 2665, 67, 5436, 16, 1234, 33, 7036, 4672, 3536, 979, 29573, 3102, 2923, 5826, 18, 2597, 26124, 716, 3214, 67, 5436, 471, 2665, 67, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 1380, 5812, 12, 2890, 16, 3214, 67, 5436, 16, 2665, 67, 5436, 16, 1234, 33, 7036, 4672, 3536, 979, 29573, 3102, 2923, 5826, 18, 2597, 26124, 716, 3214, 67, 5436, 471, 2665, 67, 5...
except OSError: pass try:
if os.path.exists(self.bad_dir_path):
def cleanup(self): """Make sure that the .pth file is deleted, self.imported is not in sys.modules, and that both self.good_dirname and self.bad_dirname are not existing directories.""" try: os.remove(self.file_path) except OSError: pass try: del sys.modules[self.imported] except KeyError: pass try: os.rmdir(self.good_...
343b86712c9fdcc8dbaf9e460ac6b9b23b23b555 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/343b86712c9fdcc8dbaf9e460ac6b9b23b23b555/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 12, 2890, 4672, 3536, 6464, 3071, 716, 326, 263, 2397, 585, 353, 4282, 16, 365, 18, 29266, 353, 486, 316, 2589, 18, 6400, 16, 471, 716, 3937, 365, 18, 19747, 67, 12287, 471, 365,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6686, 12, 2890, 4672, 3536, 6464, 3071, 716, 326, 263, 2397, 585, 353, 4282, 16, 365, 18, 29266, 353, 486, 316, 2589, 18, 6400, 16, 471, 716, 3937, 365, 18, 19747, 67, 12287, 471, 365,...
self.connection = make_connection(**connection_details) self.connection.is_persistent_connection = True try:
try: self.connection = make_connection(**connection_details) self.connection.is_persistent_connection = True
def initialize(self):
9b95da7e044c43b0c215296b4093591843534d45 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2550/9b95da7e044c43b0c215296b4093591843534d45/FluAzuD.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.pool.get('purchase.requisition').write(cr, uid, [po.requisition_id.id], {'state':'close','date_end':time.strftime('%Y-%m-%d %H:%M:%S')})
self.pool.get('purchase.requisition').write(cr, uid, [po.requisition_id.id], {'state':'done','date_end':time.strftime('%Y-%m-%d %H:%M:%S')})
def wkf_confirm_order(self, cr, uid, ids, context={}): res = super(purchase_order, self).wkf_confirm_order(cr, uid, ids, context) for po in self.browse(cr, uid, ids, context): if po.requisition_id and (po.requisition_id.exclusive=='exclusive'): for order in po.requisition_id.purchase_ids: if order.id<>po.id: wf_service...
f10e9aeca26fb5a74c233bcd6b5c6d4ec889fe53 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f10e9aeca26fb5a74c233bcd6b5c6d4ec889fe53/purchase_requisition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26987, 74, 67, 10927, 67, 1019, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 400, 273, 2240, 12, 12688, 12104, 67, 1019, 16, 365, 2934, 17736, 74, 67, 10927, 67, 1019,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26987, 74, 67, 10927, 67, 1019, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 400, 273, 2240, 12, 12688, 12104, 67, 1019, 16, 365, 2934, 17736, 74, 67, 10927, 67, 1019,...
register_cygwin=options.register_cygwin)
register_cygwin=options.register_cygwin, run_background=options.run_background)
def Stop(self, force=False): if not force and not self.IsRunning(): return
c99613d0bc1dd6d06839ac72e08a8f2dc6e7fa6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/c99613d0bc1dd6d06839ac72e08a8f2dc6e7fa6b/http_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5131, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 486, 365, 18, 2520, 7051, 13332, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5131, 12, 2890, 16, 2944, 33, 8381, 4672, 309, 486, 2944, 471, 486, 365, 18, 2520, 7051, 13332, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for index in range(0,len(data)): mapList[index] = self.getEasyName(data[index]) return mapList
for map in data: mapList.append(self.getEasyName(map)) return mapList
def getMaps(self): """Return the map list TODO""" data = self.write(('mapList.list',)) mapList = [] for index in range(0,len(data)): mapList[index] = self.getEasyName(data[index]) return mapList
fb2d204dd4a160f5781626ac3faf974112415f4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/fb2d204dd4a160f5781626ac3faf974112415f4b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8903, 12, 2890, 4672, 3536, 990, 326, 852, 666, 2660, 8395, 501, 273, 365, 18, 2626, 12, 2668, 1458, 682, 18, 1098, 2187, 3719, 852, 682, 273, 5378, 364, 852, 316, 501, 30, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8903, 12, 2890, 4672, 3536, 990, 326, 852, 666, 2660, 8395, 501, 273, 365, 18, 2626, 12, 2668, 1458, 682, 18, 1098, 2187, 3719, 852, 682, 273, 5378, 364, 852, 316, 501, 30, 852, ...
("Nicander","Ariston","Areus"),
("Nicander","Ariston","areus"),
def Precache(): pass#fixme
d63fd07c1902819d53e2b6e33c3c67ba3b9ddd7d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2883/d63fd07c1902819d53e2b6e33c3c67ba3b9ddd7d/faction_ships.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2962, 2493, 13332, 1342, 7, 904, 3501, 282, 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, 2962, 2493, 13332, 1342, 7, 904, 3501, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return client._makeGetterFactory( url, MarginallyImprovedHTTPClientFactory, *a, **kw ).deferred
scheme, host, port, path = _parse(url) factory = MarginallyImprovedHTTPClientFactory(url, *args, **kwargs) reactor.connectTCP(host, port, factory) return factory.deferred
def get_page(url, *a, **kw): return client._makeGetterFactory( url, MarginallyImprovedHTTPClientFactory, *a, **kw ).deferred
fc7308d09d03bd4571cc2a3ce662a01024856233 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6095/fc7308d09d03bd4571cc2a3ce662a01024856233/infobatdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2433, 12, 718, 16, 380, 69, 16, 2826, 9987, 4672, 4355, 16, 1479, 16, 1756, 16, 589, 273, 389, 2670, 12, 718, 13, 3272, 273, 490, 5243, 1230, 1170, 685, 2155, 26211, 1733, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2433, 12, 718, 16, 380, 69, 16, 2826, 9987, 4672, 4355, 16, 1479, 16, 1756, 16, 589, 273, 389, 2670, 12, 718, 13, 3272, 273, 490, 5243, 1230, 1170, 685, 2155, 26211, 1733, 1...
isLocal = 0
def processArchive (self, filename):
e4fc76fc16cb1b309ecd73c61b0da62f6e389fe1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4747/e4fc76fc16cb1b309ecd73c61b0da62f6e389fe1/archtool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 7465, 261, 2890, 16, 1544, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 7465, 261, 2890, 16, 1544, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
CopyFile("built/tmp/", STDTHIRDPARTY+"win-util/bison.simple")
CopyFile(PREFIX+"/tmp/", STDTHIRDPARTY+"win-util/bison.simple")
def CompileBison(pre,dstc,dsth,src): (base, fn) = os.path.split(src) dstc=base+"/"+dstc dsth=base+"/"+dsth if (older(dstc,src) or older(dsth,src)): CopyFile("built/tmp/", src) if (COMPILER=="MSVC7"): CopyFile("built/tmp/", STDTHIRDPARTY+"win-util/bison.simple") bisonFullPath=os.path.abspath(STDTHIRDPARTY+"win-util/biso...
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 4530, 12, 1484, 16, 11057, 71, 16, 11057, 76, 16, 4816, 4672, 261, 1969, 16, 2295, 13, 273, 1140, 18, 803, 18, 4939, 12, 4816, 13, 3046, 71, 33, 1969, 9078, 4898, 15, 1105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16143, 38, 4530, 12, 1484, 16, 11057, 71, 16, 11057, 76, 16, 4816, 4672, 261, 1969, 16, 2295, 13, 273, 1140, 18, 803, 18, 4939, 12, 4816, 13, 3046, 71, 33, 1969, 9078, 4898, 15, 1105...
boot_disk.setup_virtio_win2003(self.virtio_floppy)
boot_disk.setup_virtio_win2003(self.virtio_floppy, self.virtio_oemsetup_id)
def setup_boot_disk(self): answer_contents = self.render_answer_file()
7dcd2d711cfb4a49a72c5893f06fce27c785db9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/7dcd2d711cfb4a49a72c5893f06fce27c785db9b/unattended.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 7137, 67, 10863, 12, 2890, 4672, 5803, 67, 3980, 273, 365, 18, 5902, 67, 13490, 67, 768, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 7137, 67, 10863, 12, 2890, 4672, 5803, 67, 3980, 273, 365, 18, 5902, 67, 13490, 67, 768, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return value
return value
def p2p_link(value): tmp = result.__class__(result) if value.startswith("p2p file:"): (key,p2p_inode)=value.split(":") #We must be of the form p2p file:Itest|S137/138|CMSN8573970-684504 #Make a link to the inode print "p2p:%s" % p2p_inode tmp.link(value, FlagFramework.query_type((), family="Disk Forensics", case=query...
cf7fac3ff0c735f3f514d4f41c9e494e2787883c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/cf7fac3ff0c735f3f514d4f41c9e494e2787883c/MSN.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 22, 84, 67, 1232, 12, 1132, 4672, 1853, 273, 563, 16186, 1106, 972, 12, 2088, 13, 225, 309, 460, 18, 17514, 1918, 2932, 84, 22, 84, 585, 2773, 4672, 261, 856, 16, 84, 22, 84, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 22, 84, 67, 1232, 12, 1132, 4672, 1853, 273, 563, 16186, 1106, 972, 12, 2088, 13, 225, 309, 460, 18, 17514, 1918, 2932, 84, 22, 84, 585, 2773, 4672, 261, 856, 16, 84, 22, 84, ...
This is gauranteed to give correct results only if self was created with maximality_check=True. See the final example.
.. warning:: This may give the wrong answer if the simplicial complex was constructed with ``maximality_check`` set to False. See the final example.
def is_connected(self): """ Returns True if and only if self is connected.
a43266e69fcf20826b1d4817aae9e4f4c04928ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a43266e69fcf20826b1d4817aae9e4f4c04928ac/simplicial_complex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 8537, 12, 2890, 4672, 3536, 2860, 1053, 309, 471, 1338, 309, 365, 353, 5840, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 8537, 12, 2890, 4672, 3536, 2860, 1053, 309, 471, 1338, 309, 365, 353, 5840, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
requirements = classadJob.get_expression("Requirements") jobType = classadJob.get_expression("JobType") pilotType = classadJob.get_expression( "PilotType" )
requirements = classadJob.get_expression("Requirements").replace('"','') jobType = classadJob.get_expression("JobType").replace('"','') pilotType = classadJob.get_expression( "PilotType" ).replace('"','')
def insertJobInQueue(self,job): """ Check individual job and add to the Task Queue eventually. """ retVal = self.jobDB.getJobParameters(job,['Priority']) if retVal['OK']: if retVal['Value']: priority = retVal['Value']['Priority'] else: self.log.warn('No priority specified for job %d' % int(job)) priority = 0 else: prio...
0da87636326ee0ded927e31cc2abccc78b7f30fe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/0da87636326ee0ded927e31cc2abccc78b7f30fe/TaskQueueAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 2278, 382, 3183, 12, 2890, 16, 4688, 4672, 3536, 2073, 7327, 1719, 471, 527, 358, 326, 3837, 7530, 18011, 18, 3536, 12197, 273, 365, 18, 4688, 2290, 18, 588, 2278, 2402, 12, 4688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 2278, 382, 3183, 12, 2890, 16, 4688, 4672, 3536, 2073, 7327, 1719, 471, 527, 358, 326, 3837, 7530, 18011, 18, 3536, 12197, 273, 365, 18, 4688, 2290, 18, 588, 2278, 2402, 12, 4688, ...
lines.append(comment, None)
lines.append((comment, None))
def _load_state_from_file(self, file): values = {} lines = []
d4cab5a8fde945461a0111a08c25c4251fc0eee2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/d4cab5a8fde945461a0111a08c25c4251fc0eee2/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 945, 67, 2019, 67, 2080, 67, 768, 12, 2890, 16, 585, 4672, 924, 273, 2618, 2362, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 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, 389, 945, 67, 2019, 67, 2080, 67, 768, 12, 2890, 16, 585, 4672, 924, 273, 2618, 2362, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
counts = unpack('<qqq', extra[4:28])
counts = unpack('<QQQ', extra[4:28])
def _decodeExtra(self): # Try to decode the extra field. extra = self.extra unpack = struct.unpack while extra: tp, ln = unpack('<hh', extra[:4]) if tp == 1: if ln >= 24: counts = unpack('<qqq', extra[4:28]) elif ln == 16: counts = unpack('<qq', extra[4:20]) elif ln == 8: counts = unpack('<q', extra[4:12]) elif ln == 0...
1606943723c6c2fa513288a138401c1a8d31c650 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1606943723c6c2fa513288a138401c1a8d31c650/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 7800, 12, 2890, 4672, 468, 6161, 358, 2495, 326, 2870, 652, 18, 2870, 273, 365, 18, 7763, 6167, 273, 1958, 18, 17309, 1323, 2870, 30, 8071, 16, 7211, 273, 6167, 2668, 32, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 7800, 12, 2890, 4672, 468, 6161, 358, 2495, 326, 2870, 652, 18, 2870, 273, 365, 18, 7763, 6167, 273, 1958, 18, 17309, 1323, 2870, 30, 8071, 16, 7211, 273, 6167, 2668, 32, 21...
start = start + 1
def skip_leading_nodes(children, start, i): i = min(i, len(children)) while i > start: # skip over leading comments and whitespace: try: child = children[start] except IndexError: sys.stderr.write( "skip_leading_nodes() failed at index %d\n" % start) raise nodeType = child.nodeType if nodeType == xml.dom.core.COMMENT: ...
8d20f30e2bb3a6cee170c7f74006722d05264c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8d20f30e2bb3a6cee170c7f74006722d05264c26/docfixer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2488, 67, 27200, 67, 4690, 12, 5906, 16, 787, 16, 277, 4672, 277, 273, 1131, 12, 77, 16, 562, 12, 5906, 3719, 1323, 277, 405, 787, 30, 468, 2488, 1879, 7676, 5678, 471, 7983, 30, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 27200, 67, 4690, 12, 5906, 16, 787, 16, 277, 4672, 277, 273, 1131, 12, 77, 16, 562, 12, 5906, 3719, 1323, 277, 405, 787, 30, 468, 2488, 1879, 7676, 5678, 471, 7983, 30, 775...
crc = -1808088941
crc = 2486878355
def test_same_as_binascii_crc32(self): foo = 'abcdefghijklmnop' crc = -1808088941 self.assertEqual(binascii.crc32(foo), crc) self.assertEqual(zlib.crc32(foo), crc) self.assertEqual(binascii.crc32('spam'), zlib.crc32('spam'))
a84aa1e8fec247446d13f766c0aaaf088190b348 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/a84aa1e8fec247446d13f766c0aaaf088190b348/test_zlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 14307, 67, 345, 67, 4757, 9184, 67, 22988, 1578, 12, 2890, 4672, 8431, 273, 296, 28953, 17680, 8302, 16391, 13607, 556, 11, 10619, 273, 4248, 5292, 28, 8285, 23, 2539, 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, 67, 14307, 67, 345, 67, 4757, 9184, 67, 22988, 1578, 12, 2890, 4672, 8431, 273, 296, 28953, 17680, 8302, 16391, 13607, 556, 11, 10619, 273, 4248, 5292, 28, 8285, 23, 2539, 365, 18,...
self.cmdloop() self.commands_defining = False self.prompt = prompt_back
try: self.cmdloop() finally: self.commands_defining = False self.prompt = prompt_back
def do_commands(self, arg): """Defines a list of commands associated to a breakpoint.
47e763b3eea3c337309159854bf323b14b1bacda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/47e763b3eea3c337309159854bf323b14b1bacda/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 7847, 12, 2890, 16, 1501, 4672, 3536, 15109, 279, 666, 434, 4364, 3627, 358, 279, 18820, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 7847, 12, 2890, 16, 1501, 4672, 3536, 15109, 279, 666, 434, 4364, 3627, 358, 279, 18820, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
r""" Powers of 2: $a(n) = 2^n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000079;a Powers of 2: a(n) = 2^n. sage: a(0) 1 sage: a(2) 4 sage: a(8) 256 sage: a(100) 1267650600228229401496703205376 sage: a.list(9) [1, 2, 4, 8, 16, 32, 64, 128, 256] AUTHOR: -- Jaap Sp...
def __init__(self): r""" Powers of 2: $a(n) = 2^n$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000079;a Powers of 2: a(n) = 2^n. sage: a(0) 1 sage: a(2) 4 sage: a(8) 256 sage: a(100) 1267650600228229401496703205376 sage: a.list(9) [1, 2, 4, 8, 16, 32, 64, 128, 256]...
def _eval(self, n): return sum((-1)**(n-k)*arith.binomial(n, k)*sloane.A000108(k+1) for k in range(n+1))
8b300fed02e947af57b58146f62dccfc715cf0b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/8b300fed02e947af57b58146f62dccfc715cf0b9/sloane_functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2142, 12443, 17, 21, 13, 636, 12, 82, 17, 79, 17653, 297, 483, 18, 4757, 11496, 12, 82, 16, 417, 17653, 87, 383, 8806, 18, 37, 13304, 6840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 8622, 12, 2890, 16, 290, 4672, 327, 2142, 12443, 17, 21, 13, 636, 12, 82, 17, 79, 17653, 297, 483, 18, 4757, 11496, 12, 82, 16, 417, 17653, 87, 383, 8806, 18, 37, 13304, 6840, ...
""" Computes all n-colorings of the graph G by casting the graph
r""" Computes all `n`-colorings of the graph `G` by casting the graph
def all_graph_colorings(G,n,count_only=False): """ Computes all n-colorings of the graph G by casting the graph coloring problem into an exact cover problem, and passing this into an implementation of the Dancing Links algorithm described by Knuth (who attributes the idea to Hitotumatu and Noshita). The construction w...
508a8873a3ba22afe278450b7e712ddbd45b616d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/508a8873a3ba22afe278450b7e712ddbd45b616d/graph_coloring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 4660, 67, 3266, 899, 12, 43, 16, 82, 16, 1883, 67, 3700, 33, 8381, 4672, 436, 8395, 14169, 281, 777, 1375, 82, 68, 17, 3266, 899, 434, 326, 2667, 1375, 43, 68, 635, 27660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 67, 4660, 67, 3266, 899, 12, 43, 16, 82, 16, 1883, 67, 3700, 33, 8381, 4672, 436, 8395, 14169, 281, 777, 1375, 82, 68, 17, 3266, 899, 434, 326, 2667, 1375, 43, 68, 635, 27660, ...
if not scheme:
def __init__ (self, client, request, headers, content, nofilter, compress, mime=None): self.client = client self.request = request self.headers = headers self.compress = compress self.content = content self.nofilter = nofilter self.mime = mime debug(BRING_IT_ON, "Proxy:", `self.request`) self.method, self.url, protocol...
c781e1f42485024a59ee5e27b169bfce026aa971 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/c781e1f42485024a59ee5e27b169bfce026aa971/ClientServerMatchmaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1004, 16, 590, 16, 1607, 16, 913, 16, 290, 792, 1088, 16, 8099, 16, 4892, 33, 7036, 4672, 365, 18, 2625, 273, 1004, 365, 18, 2293, 273, 590, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1004, 16, 590, 16, 1607, 16, 913, 16, 290, 792, 1088, 16, 8099, 16, 4892, 33, 7036, 4672, 365, 18, 2625, 273, 1004, 365, 18, 2293, 273, 590, 365, 18, ...
self.server = ReftestServer(localAutomation, options)
self.server = ReftestServer(localAutomation, options, self.scriptDir)
def startWebServer(self, options): """ Create the webserver on the host and start it up """ remoteXrePath = options.xrePath remoteUtilityPath = options.utilityPath localAutomation = Automation()
d8153eeb556758ccf4599a5cc0eeface51ec22b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/d8153eeb556758ccf4599a5cc0eeface51ec22b1/remotereftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 4079, 2081, 12, 2890, 16, 702, 4672, 3536, 1788, 326, 732, 2266, 502, 603, 326, 1479, 471, 787, 518, 731, 3536, 2632, 60, 266, 743, 273, 702, 18, 92, 266, 743, 2632, 6497, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 4079, 2081, 12, 2890, 16, 702, 4672, 3536, 1788, 326, 732, 2266, 502, 603, 326, 1479, 471, 787, 518, 731, 3536, 2632, 60, 266, 743, 273, 702, 18, 92, 266, 743, 2632, 6497, 743, ...
"""List all k-cliques in a subnet of `net` induced by `nodes`.
"""List all k-cliques in a subnet induced by given nodes.
def kcliquesAtSubnet(nodes,net,k): """List all k-cliques in a subnet of `net` induced by `nodes`. Any implementation is fine, but as this routine is a part of a clique percolator anyway we will use itself to find cliques larger than 2. Cliques of size 1 and 2 are trivial. Parameters ---------- nodes : iterable Nodes ...
aedcbc095d687b4ff7e65010866f483adf54eb65 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/aedcbc095d687b4ff7e65010866f483adf54eb65/percolator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 4857, 29896, 861, 9577, 12, 4690, 16, 2758, 16, 79, 4672, 3536, 682, 777, 417, 17, 4857, 29896, 316, 279, 8821, 1547, 26372, 635, 864, 2199, 18, 225, 5502, 4471, 353, 11079, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 4857, 29896, 861, 9577, 12, 4690, 16, 2758, 16, 79, 4672, 3536, 682, 777, 417, 17, 4857, 29896, 316, 279, 8821, 1547, 26372, 635, 864, 2199, 18, 225, 5502, 4471, 353, 11079, 16, 1...
e.x_root = getint(X) e.y_root = getint(Y)
e.x_root = getint_event(X) e.y_root = getint_event(Y)
def _substitute(self, *args): """Internal function.""" if len(args) != len(self._subst_format): return args getboolean = self.tk.getboolean getint = int nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args # Missing: (a, c, d, m, o, v, B, R) e = Event() e.serial = getint(nsign) e.num = getint(b) try: e.fo...
043bbc7da387f613f3ce60c20063e2a29baff372 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/043bbc7da387f613f3ce60c20063e2a29baff372/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1717, 17207, 12, 2890, 16, 380, 1968, 4672, 3536, 3061, 445, 12123, 309, 562, 12, 1968, 13, 480, 562, 12, 2890, 6315, 1717, 334, 67, 2139, 4672, 327, 833, 336, 6494, 273, 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, 389, 1717, 17207, 12, 2890, 16, 380, 1968, 4672, 3536, 3061, 445, 12123, 309, 562, 12, 1968, 13, 480, 562, 12, 2890, 6315, 1717, 334, 67, 2139, 4672, 327, 833, 336, 6494, 273, 365, 18,...
self.did_move = grid.hero_down() or self.did_move
grid.hero_down()
def control(self, event): Stage.control(self, event) grid = self.grid if event.type == KEYDOWN: if event.key == K_LEFT: self.did_move = grid.hero_left() or self.did_move elif event.key == K_RIGHT: self.did_move = grid.hero_right() or self.did_move elif event.key == K_UP: self.did_move = grid.hero_up() or self.did_move ...
28d8c811a23bbd565d16a6687994cade484cd9b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5891/28d8c811a23bbd565d16a6687994cade484cd9b5/stages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3325, 12, 2890, 16, 871, 4672, 16531, 18, 7098, 12, 2890, 16, 871, 13, 3068, 273, 365, 18, 5222, 309, 871, 18, 723, 422, 5311, 12711, 30, 309, 871, 18, 856, 422, 1475, 67, 10066, 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, 3325, 12, 2890, 16, 871, 4672, 16531, 18, 7098, 12, 2890, 16, 871, 13, 3068, 273, 365, 18, 5222, 309, 871, 18, 723, 422, 5311, 12711, 30, 309, 871, 18, 856, 422, 1475, 67, 10066, 30,...
if not self._oids: self._oids = self._server.new_oids() self._oids.reverse() oid = self._oids.pop() self._oid_lock.release() return oid
try: if not self._oids: self._oids = self._server.new_oids() self._oids.reverse() return self._oids.pop() finally: self._oid_lock.release()
def new_oid(self, last=None): if self._is_read_only: raise POSException.ReadOnlyError() # avoid multiple oid requests to server at the same time self._oid_lock.acquire() if not self._oids: self._oids = self._server.new_oids() self._oids.reverse() oid = self._oids.pop() self._oid_lock.release() return oid
e665b885a307a437fa77dc8ae383c1c0fbf8e88d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e665b885a307a437fa77dc8ae383c1c0fbf8e88d/ClientStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 839, 12, 2890, 16, 1142, 33, 7036, 4672, 309, 365, 6315, 291, 67, 896, 67, 3700, 30, 1002, 12511, 503, 18, 12066, 668, 1435, 468, 4543, 3229, 7764, 3285, 358, 1438, 622, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 839, 12, 2890, 16, 1142, 33, 7036, 4672, 309, 365, 6315, 291, 67, 896, 67, 3700, 30, 1002, 12511, 503, 18, 12066, 668, 1435, 468, 4543, 3229, 7764, 3285, 358, 1438, 622, 326, ...
wquery = obj._where_calc(cr, user, self._domain, context=context)
domain = isinstance(self._domain, list) and self._domain or [] wquery = obj._where_calc(cr, user, domain, context=context)
def get(self, cr, obj, ids, name, user=None, offset=0, context=None, values=None): if not context: context = {} if not values: values = {} res = {} if not ids: return res for id in ids: res[id] = [] if offset: warnings.warn("Specifying offset at a many2many.get() may produce unpredictable results.", DeprecationWarning,...
1b32f7c21c598c814f83455a7df68da34d97e0ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/1b32f7c21c598c814f83455a7df68da34d97e0ed/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 1384, 33, 20, 16, 819, 33, 7036, 16, 924, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 309, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 4422, 16, 1081, 16, 3258, 16, 508, 16, 729, 33, 7036, 16, 1384, 33, 20, 16, 819, 33, 7036, 16, 924, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 309, 486, ...
iconPathName = os.path.abspath(os.path.join( os.path.split(sys.executable)[0], "pyc.ico" ))
iconPathName = os.path.abspath( "resources\\sbicon.ico" )
def __init__(self): # The ordering here is important - it is the order that they will # appear in the menu. As dicts don't have an order, this means # that the order is controlled by the id. Any items were the # function is None will appear as separators. self.control_functions = {1024 : ("Start SpamBayes", self.Star...
0254a2f4a8a68361bc59fecaadbe2435c61fa306 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/0254a2f4a8a68361bc59fecaadbe2435c61fa306/pop3proxy_tray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1021, 9543, 2674, 353, 10802, 300, 518, 353, 326, 1353, 716, 2898, 903, 468, 9788, 316, 326, 3824, 18, 225, 2970, 15838, 2727, 1404, 1240, 392, 1353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 468, 1021, 9543, 2674, 353, 10802, 300, 518, 353, 326, 1353, 716, 2898, 903, 468, 9788, 316, 326, 3824, 18, 225, 2970, 15838, 2727, 1404, 1240, 392, 1353...
for oid, value in column: beginoid, endoid = oid.rsplit('.', 1)
for o, value in column: beginoid, endoid = o.rsplit('.', 1)
def get_snmp_table(hostname, ip, oid_info): # oid_info is either ( oid, columns ) or # ( oid, suboids, columns ) # suboids is a list if OID-infixes that are put between baseoid # and the columns and also prefixed to the index column. This # allows to merge distinct SNMP subtrees with a similar structure # to one virtua...
97078e95b27bbcc54d141f03ec63aa98e551a4d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/97078e95b27bbcc54d141f03ec63aa98e551a4d2/snmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26527, 67, 2121, 12, 10358, 16, 2359, 16, 7764, 67, 1376, 4672, 468, 7764, 67, 1376, 353, 3344, 261, 7764, 16, 2168, 262, 578, 468, 261, 7764, 16, 720, 21061, 16, 2168, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26527, 67, 2121, 12, 10358, 16, 2359, 16, 7764, 67, 1376, 4672, 468, 7764, 67, 1376, 353, 3344, 261, 7764, 16, 2168, 262, 578, 468, 261, 7764, 16, 720, 21061, 16, 2168, 262, ...
self.outstream.write(">%s %s\n" % (id, description))
self.outstream.write(">%s %s%s" % (id, description,os.linesep))
def write(self, record): id = record.id description = record.description self.outstream.write(">%s %s\n" % (id, description))
842c7d3d15f376ed24a8bb00f08fad9db98860e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/842c7d3d15f376ed24a8bb00f08fad9db98860e9/generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1409, 4672, 612, 273, 1409, 18, 350, 2477, 273, 1409, 18, 3384, 225, 365, 18, 659, 3256, 18, 2626, 2932, 9822, 87, 738, 87, 64, 82, 6, 738, 261, 350, 16, 2477, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12, 2890, 16, 1409, 4672, 612, 273, 1409, 18, 350, 2477, 273, 1409, 18, 3384, 225, 365, 18, 659, 3256, 18, 2626, 2932, 9822, 87, 738, 87, 64, 82, 6, 738, 261, 350, 16, 2477, ...