rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
Huffman Encoding This class implements the basic functionalities of Huffman's encoding. It can build a Huffman code from a given string, or from the information of a dictionary associating to each key (the elements of the alphabet) a weight (most of the time, a probability value or a number of occurrences). For examp...
This class implements the basic functionalities of Huffman codes. It can build a Huffman code from a given string, or from the information of a dictionary associating to each key (the elements of the alphabet) a weight (most of the time, a probability value or a number of occurrences). INPUT: - ``string`` -- (defaul...
def frequency_table(string): r""" Return the frequency table corresponding to the given string. INPUT: - ``string`` -- a string EXAMPLE:: sage: from sage.coding.source_coding.huffman import frequency_table sage: str = "Sage is my most favorite general purpose computer algebra system" sage: frequency_table(str) {'a'...
0aa5d0e07206199e4e64708c13056046cecfe083 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0aa5d0e07206199e4e64708c13056046cecfe083/huffman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8670, 67, 2121, 12, 1080, 4672, 436, 8395, 2000, 326, 8670, 1014, 4656, 358, 326, 864, 533, 18, 225, 12943, 30, 225, 300, 12176, 1080, 10335, 1493, 279, 533, 225, 5675, 21373, 2866, 225,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8670, 67, 2121, 12, 1080, 4672, 436, 8395, 2000, 326, 8670, 1014, 4656, 358, 326, 864, 533, 18, 225, 12943, 30, 225, 300, 12176, 1080, 10335, 1493, 279, 533, 225, 5675, 21373, 2866, 225,...
self.layout_status = status_callback.getSubRange(0, 75)
self.layout_status = status_callback.getSubRange(1, 75)
def writeBook(self, output, coverimage=None, status_callback=None): self.numarticles = len(self.env.metabook.articles()) self.articlecount = 0 self.getArticleIDs() if status_callback: self.layout_status = status_callback.getSubRange(0, 75) self.layout_status(status='layouting') self.render_status = status_callback.get...
6e8666ba6b87dbd21652fefbb2e2276586580945 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12390/6e8666ba6b87dbd21652fefbb2e2276586580945/rlwriter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 9084, 12, 2890, 16, 876, 16, 5590, 2730, 33, 7036, 16, 1267, 67, 3394, 33, 7036, 4672, 365, 18, 2107, 16462, 273, 562, 12, 2890, 18, 3074, 18, 10578, 378, 1184, 18, 16462, 10756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 9084, 12, 2890, 16, 876, 16, 5590, 2730, 33, 7036, 16, 1267, 67, 3394, 33, 7036, 4672, 365, 18, 2107, 16462, 273, 562, 12, 2890, 18, 3074, 18, 10578, 378, 1184, 18, 16462, 10756,...
>>> es = Country('ES', 'es', '34', multilang(en='Spain', es='Espaa'))
>>> es = Country('ES', 'es', '34', multilang(en='Spain', es=u'Espaa'))
def parse(class_, text, world, place=None, default_place=None): r'''Parse a piece of text into an Address object. If there is a semicolon anywhere in the text, then semicolon is used as the line delimiter, otherwise comma is used. This supports addresses that contain commas.
8dbaa4ca41fe827e6def77e5043e6c57583b3b59 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10902/8dbaa4ca41fe827e6def77e5043e6c57583b3b59/address.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 1106, 67, 16, 977, 16, 9117, 16, 3166, 33, 7036, 16, 805, 67, 964, 33, 7036, 4672, 436, 26418, 3201, 279, 11151, 434, 977, 1368, 392, 5267, 733, 18, 225, 971, 1915, 353, 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, 1109, 12, 1106, 67, 16, 977, 16, 9117, 16, 3166, 33, 7036, 16, 805, 67, 964, 33, 7036, 4672, 436, 26418, 3201, 279, 11151, 434, 977, 1368, 392, 5267, 733, 18, 225, 971, 1915, 353, 27...
invariantinclusions = [ ('.*', 0400, stat.S_IFDIR)) ]
invariantinclusions = [ ('.*', 0400, stat.S_IFDIR), ]
def doFile(self, path): basename = os.path.basename(path) target = util.joinPaths(self.macros['initdir'], basename) if os.path.exists(self.macros['destdir'] + os.sep + target): raise policy.PolicyError( "Conflicting initscripts %s and %s installed" %( path, target)) util.mkdirChain(self.macros['destdir'] + os.sep + sel...
569ba3195f0e75c69987fde5efedbd30abb7e78b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7642/569ba3195f0e75c69987fde5efedbd30abb7e78b/normalize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 4882, 273, 1140, 18, 803, 18, 13909, 12, 803, 13, 1018, 273, 1709, 18, 5701, 4466, 12, 2890, 18, 5821, 6973, 3292, 2738, 1214, 17337, 4882, 13, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 4882, 273, 1140, 18, 803, 18, 13909, 12, 803, 13, 1018, 273, 1709, 18, 5701, 4466, 12, 2890, 18, 5821, 6973, 3292, 2738, 1214, 17337, 4882, 13, 309, ...
hg.update(repo, newparent, wlock=wlock)
hg.clean(repo, newparent, wlock=wlock)
def postincoming(other, modheads): if modheads == 0: return 0 if modheads == 1: return hg.update(repo, repo.changelog.tip(), wlock=wlock) newheads = repo.heads(parent) newchildren = [n for n in repo.heads(parent) if n != parent] newparent = parent if newchildren: newparent = newchildren[0] hg.update(repo, newparent, wl...
91f3d45e539a5deac588c09f576fe8e4b9dbae3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/91f3d45e539a5deac588c09f576fe8e4b9dbae3e/fetch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 31033, 12, 3011, 16, 681, 20263, 4672, 309, 681, 20263, 422, 374, 30, 327, 374, 309, 681, 20263, 422, 404, 30, 327, 22576, 18, 2725, 12, 7422, 16, 3538, 18, 24083, 12970, 18, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1603, 31033, 12, 3011, 16, 681, 20263, 4672, 309, 681, 20263, 422, 374, 30, 327, 374, 309, 681, 20263, 422, 404, 30, 327, 22576, 18, 2725, 12, 7422, 16, 3538, 18, 24083, 12970, 18, 145...
ParseDbg.add("REQ expr2 == %s" % expr2)
self.pdbg("REQ expr2 == %s" % expr2)
def parse_statement(self, rule, msg, expr): ParseDbg.add("parse_statement(%s, %s, %s)" % (rule, msg, expr)) expr = expr.strip() if msg == "": if expr == "": self.parse_message_block() expr = self.buffer else: self.message = [msg] if expr == "": if not self.readline(): return else: self.buffer = expr msg = "" if self.me...
57b9dbd56a9e011788ef60900e9a91776ddbb48d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2827/57b9dbd56a9e011788ef60900e9a91776ddbb48d/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 11516, 12, 2890, 16, 1720, 16, 1234, 16, 3065, 4672, 2884, 4331, 75, 18, 1289, 2932, 2670, 67, 11516, 9275, 87, 16, 738, 87, 16, 738, 87, 2225, 738, 261, 5345, 16, 1234, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 11516, 12, 2890, 16, 1720, 16, 1234, 16, 3065, 4672, 2884, 4331, 75, 18, 1289, 2932, 2670, 67, 11516, 9275, 87, 16, 738, 87, 16, 738, 87, 2225, 738, 261, 5345, 16, 1234, 16...
if k % 5 == 0:
proutn("%-12s " % key) emitted += 1 if emitted % 5 == 4:
def listCommands(): "Generate a list of legal commands." proutn(_("LEGAL COMMANDS ARE:")) for (k, key) in enumerate(commands): if not commands[key] or (commands[key] & game.options): if k % 5 == 0: skip(1) proutn("%-12s " % key) skip(1)
00866f423e80e6c2316619d955e3bbda3d343e09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/00866f423e80e6c2316619d955e3bbda3d343e09/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 9127, 13332, 315, 4625, 279, 666, 434, 19286, 4364, 1199, 450, 322, 82, 24899, 2932, 19384, 1013, 5423, 9560, 3948, 432, 862, 2773, 3719, 364, 261, 79, 16, 498, 13, 316, 4241, 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, 666, 9127, 13332, 315, 4625, 279, 666, 434, 19286, 4364, 1199, 450, 322, 82, 24899, 2932, 19384, 1013, 5423, 9560, 3948, 432, 862, 2773, 3719, 364, 261, 79, 16, 498, 13, 316, 4241, 12, ...
self._report_dir = os.path.join(chrome_web_dir, test,current_version)
self._report_dir = os.path.join(chrome_web_dir, test, current_version)
def __init__(self, options, args, test): # the known list of tests self._test_list = {"test_shell": self.TestTestShell, "unit": self.TestUnit, "net": self.TestNet, "ipc": self.TestIpc, "base": self.TestBase, "layout": self.TestLayout, "dll": self.TestDll, "layout_all": self.TestLayoutAll, "ui": self.TestUI}
80ed27631dfc12248faa97fe3e11cdf477a2ea19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/80ed27631dfc12248faa97fe3e11cdf477a2ea19/chrome_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 702, 16, 833, 16, 1842, 4672, 468, 326, 4846, 666, 434, 7434, 365, 6315, 3813, 67, 1098, 273, 12528, 3813, 67, 10304, 6877, 365, 18, 4709, 4709, 13220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 702, 16, 833, 16, 1842, 4672, 468, 326, 4846, 666, 434, 7434, 365, 6315, 3813, 67, 1098, 273, 12528, 3813, 67, 10304, 6877, 365, 18, 4709, 4709, 13220, 1...
uri = os.path.join(url, absattr(ob.id))
uri = urljoin(url, absattr(ob.id))
def apply(self, obj, creator=None, depth='infinity', token=None, result=None, url=None, top=1): """ Apply, built for recursion (so that we may lock subitems of a collection if requested """
8c4695a1bab040aadcc8d1bcb1d85fa74fc507a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8c4695a1bab040aadcc8d1bcb1d85fa74fc507a8/davcmds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 1081, 16, 11784, 33, 7036, 16, 3598, 2218, 267, 7850, 2187, 1147, 33, 7036, 16, 563, 33, 7036, 16, 880, 33, 7036, 16, 1760, 33, 21, 4672, 3536, 5534, 16, 6650, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 1081, 16, 11784, 33, 7036, 16, 3598, 2218, 267, 7850, 2187, 1147, 33, 7036, 16, 563, 33, 7036, 16, 880, 33, 7036, 16, 1760, 33, 21, 4672, 3536, 5534, 16, 6650, 36...
if self.modules[m_id].isSelected:
if self.modules[m_id].isSelected():
def setupScene(self, pipeline): """ setupScene(pipeline: Pipeline) -> None Construct the scene to view a pipeline """ old_pipeline = self.pipeline self.pipeline = pipeline
bb5e4e6e1f45b2acc9dd36ba0e6d8b580347ac97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/bb5e4e6e1f45b2acc9dd36ba0e6d8b580347ac97/pipeline_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 14370, 12, 2890, 16, 5873, 4672, 3536, 3875, 14370, 12, 14511, 30, 13671, 13, 317, 599, 14291, 326, 9065, 358, 1476, 279, 5873, 225, 3536, 1592, 67, 14511, 273, 365, 18, 14511, 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, 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, 14370, 12, 2890, 16, 5873, 4672, 3536, 3875, 14370, 12, 14511, 30, 13671, 13, 317, 599, 14291, 326, 9065, 358, 1476, 279, 5873, 225, 3536, 1592, 67, 14511, 273, 365, 18, 14511, 365...
if (self.taskTimerVerbose): import fpformat str += ('total'.ljust(taskNameWidth) + fpformat.fix(totalDt*1000, 2).rjust(dtWidth) + fpformat.fix(totalAvgDt*1000, 2).rjust(dtWidth) + '\n') else: str += ('total'.ljust(taskNameWidth) + '----'.rjust(dtWidth) + '----'.rjust(dtWidth) + '\n')
def __repr__(self): taskNameWidth = 32 dtWidth = 10 priorityWidth = 10 totalDt = 0 totalAvgDt = 0 str = "The taskMgr is handling:\n" str += ('taskList'.ljust(taskNameWidth) + 'dt(ms)'.rjust(dtWidth) + 'avg'.rjust(dtWidth) + 'max'.rjust(dtWidth) + 'priority'.rjust(priorityWidth) + '\n') str += '-------------------------...
d300812b0d426bcde501f23e5e4f8a87f04857f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/d300812b0d426bcde501f23e5e4f8a87f04857f0/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 20172, 2384, 273, 3847, 3681, 2384, 273, 1728, 4394, 2384, 273, 1728, 2078, 19739, 273, 374, 2078, 22823, 19739, 273, 374, 609, 273, 315, 1986, 1562, 9455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 20172, 2384, 273, 3847, 3681, 2384, 273, 1728, 4394, 2384, 273, 1728, 2078, 19739, 273, 374, 2078, 22823, 19739, 273, 374, 609, 273, 315, 1986, 1562, 9455...
url = 'http://participatoryculture.org/democracytest/normalpage.txt'
url = u'http://participatoryculture.org/democracytest/normalpage.txt'
def testDownload(self): url = 'http://participatoryculture.org/democracytest/normalpage.txt' self.downloader = TestingDownloader(self, url, "ID1") self.downloader.statusCallback = self.stopOnFinished self.runEventLoop() self.assertEquals(self.getDownloadedData(), "I AM A NORMAL PAGE\n")
feaff95a712c28dbbcb3fa5c150bf8074ed96a02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/feaff95a712c28dbbcb3fa5c150bf8074ed96a02/httpdownloadertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7109, 12, 2890, 4672, 880, 273, 582, 11, 2505, 2207, 2680, 24629, 8452, 71, 29923, 18, 3341, 19, 19117, 504, 354, 2431, 3813, 19, 6130, 2433, 18, 5830, 11, 365, 18, 2378, 6714, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 7109, 12, 2890, 4672, 880, 273, 582, 11, 2505, 2207, 2680, 24629, 8452, 71, 29923, 18, 3341, 19, 19117, 504, 354, 2431, 3813, 19, 6130, 2433, 18, 5830, 11, 365, 18, 2378, 6714, 2...
self.stats.add(line)
if self.stats: self.stats.add(line) else: print("No statistics object is loaded.", file=self.stream)
def do_add(self, line): self.stats.add(line) return 0
6267a03b19fa4b8d47068e7363b93d64e232a029 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/6267a03b19fa4b8d47068e7363b93d64e232a029/pstats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 1289, 12, 2890, 16, 980, 4672, 309, 365, 18, 5296, 30, 365, 18, 5296, 18, 1289, 12, 1369, 13, 469, 30, 1172, 2932, 2279, 7691, 733, 353, 4203, 1199, 16, 585, 33, 2890, 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, 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, 1289, 12, 2890, 16, 980, 4672, 309, 365, 18, 5296, 30, 365, 18, 5296, 18, 1289, 12, 1369, 13, 469, 30, 1172, 2932, 2279, 7691, 733, 353, 4203, 1199, 16, 585, 33, 2890, 18, ...
_cache = weakref.WeakKeyDictionary()
_cache = weakref.WeakValueDictionary()
def build_number(name, type): try: return _numbertypes[type] except KeyError: pass if name is None: raise ValueError('No matching lowlevel type for %r'%type) number = _numbertypes[type] = Number(name, type) return number
2190702654cb450e584e78f8f8b60296305c44aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/2190702654cb450e584e78f8f8b60296305c44aa/lltype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2696, 12, 529, 16, 618, 4672, 775, 30, 327, 389, 2696, 2352, 63, 723, 65, 1335, 4999, 30, 1342, 309, 508, 353, 599, 30, 1002, 2068, 2668, 2279, 3607, 4587, 2815, 618, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 2696, 12, 529, 16, 618, 4672, 775, 30, 327, 389, 2696, 2352, 63, 723, 65, 1335, 4999, 30, 1342, 309, 508, 353, 599, 30, 1002, 2068, 2668, 2279, 3607, 4587, 2815, 618, 364, ...
field = table.find("**/Cube") field.setTexture(texField) table.setTransparency(1)
def near_callback(args, geom1, geom2): contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: if (geom1 in kickerGeom) or (geom2 in kickerGeom) or (geom1 in kickerGeom2) or (geom2 in kickerGeom2): c.setMu(5E10) #kickers have high friction, minimal bounce - FIXME: does not work. you still can...
33d8bc18b4dfd23c88b51c5ab871b613f1dc5e4e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12834/33d8bc18b4dfd23c88b51c5ab871b613f1dc5e4e/kickern.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13378, 67, 3394, 12, 1968, 16, 7364, 21, 16, 7364, 22, 4672, 14841, 33, 390, 18, 1293, 8130, 12, 10049, 21, 16, 7364, 22, 13, 9117, 16, 5388, 1655, 273, 833, 364, 276, 316, 14841, 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, 13378, 67, 3394, 12, 1968, 16, 7364, 21, 16, 7364, 22, 4672, 14841, 33, 390, 18, 1293, 8130, 12, 10049, 21, 16, 7364, 22, 13, 9117, 16, 5388, 1655, 273, 833, 364, 276, 316, 14841, 30...
sage: NumberField(x^3 + 2*x + 1, 'a').galois_group(pari_group=False)
sage: NumberField(x^3 + 2*x + 1, 'a').galois_group(pari_group=False)
def galois_group(self, pari_group = True, algorithm='pari'): r""" Return the Galois group of the Galois closure of this number field as an abstract group.
a4c2285a3d716e951074417f8a60c0e590508386 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a4c2285a3d716e951074417f8a60c0e590508386/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 1655, 12, 2890, 16, 779, 77, 67, 1655, 273, 1053, 16, 4886, 2218, 1065, 77, 11, 4672, 436, 8395, 2000, 326, 611, 287, 19606, 1041, 434, 326, 611, 287, 19606, 7213, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24902, 19606, 67, 1655, 12, 2890, 16, 779, 77, 67, 1655, 273, 1053, 16, 4886, 2218, 1065, 77, 11, 4672, 436, 8395, 2000, 326, 611, 287, 19606, 1041, 434, 326, 611, 287, 19606, 7213, 43...
from _spe.plugins.spe_winpdb import Runner
try: from _spe.plugins.spe_winpdb import Runner except ImportError: self.messageError('You need to install\n' 'winpdb for this feature.') return
def debug(self): child = self.app.childActive if not child.confirmSave(): return if child.isNew(): return if not self.runner: from _spe.plugins.spe_winpdb import Runner self.runner = Runner(self.app) self.runner.debug()
3297a811fde121a34b04e766bb0d64586dae5601 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2464/3297a811fde121a34b04e766bb0d64586dae5601/Parent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 12, 2890, 4672, 1151, 10402, 273, 365, 18, 2910, 18, 3624, 3896, 309, 486, 1151, 18, 10927, 4755, 13332, 327, 309, 1151, 18, 291, 1908, 13332, 327, 309, 486, 365, 18, 18156, 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, 1198, 12, 2890, 4672, 1151, 10402, 273, 365, 18, 2910, 18, 3624, 3896, 309, 486, 1151, 18, 10927, 4755, 13332, 327, 309, 1151, 18, 291, 1908, 13332, 327, 309, 486, 365, 18, 18156, 30, ...
doc, 'Method Summary')
doc, doc.groups(), 'Method Summary')
def _class_to_html(self, uid): """ @return: An HTML page describing the class identified by C{uid}. @rtype: C{string} @param uid: The unique identifier for the class that should be documented. @type uid: L{UID} """ # Get the module's documentation doc = self._docmap[uid] # Write the header & navigation bar. str = self...
36d55ba570a7b20eabb1f20282f2d10ee3127367 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/36d55ba570a7b20eabb1f20282f2d10ee3127367/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1106, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 667, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, 385, 95, 1080, 97, 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, 389, 1106, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 3536, 632, 2463, 30, 1922, 3982, 1363, 16868, 326, 667, 9283, 635, 385, 95, 1911, 5496, 632, 86, 723, 30, 385, 95, 1080, 97, 6...
sage: octave.set('x', '2')
sage: octave.set('x', '2')
def get(self, var): """ Get the value of the variable var.
5f6c41ba894a5d39a375091b2a4576027772256e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/5f6c41ba894a5d39a375091b2a4576027772256e/octave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 569, 4672, 3536, 968, 326, 460, 434, 326, 2190, 569, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 12, 2890, 16, 569, 4672, 3536, 968, 326, 460, 434, 326, 2190, 569, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if self.item_menu:
if not self.item_menu:
def _update_listing(self): """ Update the listing. """ if self.item_menu: # not in the stack anymore self.query = None else: # update menu self.item_menu.set_items(self._get_items())
5e71cc346c98adc612fce38a24865324d9bda68d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11399/5e71cc346c98adc612fce38a24865324d9bda68d/directory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 21228, 12, 2890, 4672, 3536, 2315, 326, 11591, 18, 3536, 309, 486, 365, 18, 1726, 67, 5414, 30, 468, 486, 316, 326, 2110, 16828, 365, 18, 2271, 273, 599, 469, 30, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 21228, 12, 2890, 4672, 3536, 2315, 326, 11591, 18, 3536, 309, 486, 365, 18, 1726, 67, 5414, 30, 468, 486, 316, 326, 2110, 16828, 365, 18, 2271, 273, 599, 469, 30, 468, ...
query1="select file.location, element.li_name, substr(element.name, 0, 2) as etype, element.name, element.file_id, element.reference_file_id from element, file where element.file_id=file.id and element.type in ('ID','IM') and element.reference_file_id=? and etype in ("+nFilter+");" query2="select file.location, element...
query1="select file.location, element.li_name, substr(element.name, 1, 2) as etype, element.name, element.file_id, element.reference_file_id from element, file where element.file_id=file.id and element.type in ('ID','IM') and element.reference_file_id=? and etype in ("+nFilter+");" query2="select file.location, element...
def queryDependancyNeighbour(productionId, fileId, filter): connection = sqlite3.connect(settings.SQLITE3_CONNECTIONURL) result = [] if filter=="all": query1="select file.location, element.li_name, substr(element.name, 0, 2) as etype, element.name, element.file_id, element.reference_file_id from element, file where e...
fcf005804af38f0418292d95f06959889eeed301 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4259/fcf005804af38f0418292d95f06959889eeed301/indexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 4584, 12514, 13577, 477, 12, 17273, 548, 16, 21223, 16, 1034, 4672, 1459, 273, 16184, 23, 18, 3612, 12, 4272, 18, 3997, 5398, 23, 67, 15461, 1785, 13, 225, 563, 273, 5378, 225, 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, 843, 4584, 12514, 13577, 477, 12, 17273, 548, 16, 21223, 16, 1034, 4672, 1459, 273, 16184, 23, 18, 3612, 12, 4272, 18, 3997, 5398, 23, 67, 15461, 1785, 13, 225, 563, 273, 5378, 225, 30...
if __debug__: stderr = re.sub(r"\[\d+ refs\]\r?\n?$", "", stderr) return stderr
return re.sub(r"\[\d+ refs\]\r?\n?$", "", stderr)
def remove_stderr_debug_decorations(stderr): if __debug__: stderr = re.sub(r"\[\d+ refs\]\r?\n?$", "", stderr) return stderr
aaf8a8d151ed30d9684b1edeb9aba210f1f14ad2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/aaf8a8d151ed30d9684b1edeb9aba210f1f14ad2/test_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 11241, 67, 4148, 67, 11880, 1012, 12, 11241, 4672, 327, 283, 18, 1717, 12, 86, 12691, 7438, 72, 15, 9047, 64, 13944, 86, 10936, 82, 35, 8, 3113, 23453, 4514, 13, 225, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 11241, 67, 4148, 67, 11880, 1012, 12, 11241, 4672, 327, 283, 18, 1717, 12, 86, 12691, 7438, 72, 15, 9047, 64, 13944, 86, 10936, 82, 35, 8, 3113, 23453, 4514, 13, 225, 2, -1...
print " $Revision: 1.30 $" print " $Date: 2004/12/02 01:02:48 $"
print " $Revision: 1.31 $" print " $Date: 2004/12/03 19:06:51 $"
def showVersion(): print print "RCS" print " $Revision: 1.30 $" print " $Date: 2004/12/02 01:02:48 $" print " $Author: noel $" print " $Source: /home/noel/active/NoelOTL/RCS/otl2html.py,v $" print
0a6a8442b3f1f0d6e3b9fe5379cd4ca8aa2efd0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6154/0a6a8442b3f1f0d6e3b9fe5379cd4ca8aa2efd0a/otl2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1444, 13332, 1172, 1172, 315, 54, 4596, 6, 1172, 315, 271, 7939, 30, 404, 18, 6938, 271, 6, 1172, 315, 271, 1626, 30, 4044, 24, 19, 2138, 19, 4630, 5342, 30, 7677, 30, 10593, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 1444, 13332, 1172, 1172, 315, 54, 4596, 6, 1172, 315, 271, 7939, 30, 404, 18, 6938, 271, 6, 1172, 315, 271, 1626, 30, 4044, 24, 19, 2138, 19, 4630, 5342, 30, 7677, 30, 10593, 2...
elif "U" in player["titles"]: icon = guesticon
elif "*" in player["titles"]: icon = adminicon
def __getPlayerIcon (cls, player, size=15): assert type(size) == int, "size not an int: %s" % str(size) computericon = load_icon(size, "stock_notebook", "computer") guesticon = load_icon(size, "stock_people", "system-users") if "C" in player["titles"]: icon = computericon elif "U" in player["titles"]: icon = guesticon...
190f369603f9dcefca57e0e84d425e0698e3cbb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/190f369603f9dcefca57e0e84d425e0698e3cbb1/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 12148, 5554, 261, 6429, 16, 7291, 16, 963, 33, 3600, 4672, 1815, 618, 12, 1467, 13, 422, 509, 16, 315, 1467, 486, 392, 509, 30, 738, 87, 6, 738, 609, 12, 1467, 13, 5305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 12148, 5554, 261, 6429, 16, 7291, 16, 963, 33, 3600, 4672, 1815, 618, 12, 1467, 13, 422, 509, 16, 315, 1467, 486, 392, 509, 30, 738, 87, 6, 738, 609, 12, 1467, 13, 5305, ...
manage_workspace__roles__=('Anonymous',)
manage_workspace__roles__=('Authenticated',)
def filtered_manage_options(self, REQUEST=None):
4ffa7ebb313d6db69f04197aa4804a104044af33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/4ffa7ebb313d6db69f04197aa4804a104044af33/Management.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5105, 67, 12633, 67, 2116, 12, 2890, 16, 12492, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5105, 67, 12633, 67, 2116, 12, 2890, 16, 12492, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._group
def __init__(self): U = "( 1, 3, 8, 6)( 2, 5, 7, 4)( 9,33,25,17)(10,34,26,18)(11,35,27,19)" ## U = top L = "( 9,11,16,14)(10,13,15,12)( 1,17,41,40)( 4,20,44,37)( 6,22,46,35)" ## L = left F = "(17,19,24,22)(18,21,23,20)( 6,25,43,16)( 7,28,42,13)( 8,30,41,11)" ## F = front R = "(25,27,32,30)(26,29,31,28)( 3,38,43,19)( 5,...
682d310039cd3f0ff12792c4704e67066e622b98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/682d310039cd3f0ff12792c4704e67066e622b98/cubegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 587, 273, 7751, 404, 16, 890, 16, 1725, 16, 1666, 21433, 576, 16, 1381, 16, 2371, 16, 1059, 21433, 2468, 16, 3707, 16, 2947, 16, 4033, 21433, 2163, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 587, 273, 7751, 404, 16, 890, 16, 1725, 16, 1666, 21433, 576, 16, 1381, 16, 2371, 16, 1059, 21433, 2468, 16, 3707, 16, 2947, 16, 4033, 21433, 2163, 16,...
if accept_lang == '*' or data.normalize_code(accept_lang) in ['en-us', 'en']: return gettext.get_default_translation() lang_obj = get_lang_obj(accept_lang) return gettext.get_lang(lang_obj)
if accept_lang == '*': return None normalized = data.simplify_to_common(accept_lang) if normalized in ['en-us', 'en']: return None if normalized in supported: return normalized
def get_lang_from_http_header(request): """If the user's browser sends a list of preferred languages in the HTTP_ACCEPT_LANGUAGE header, parse it into a list. Then walk through the list, and for each entry, we check whether we have a matching pootle translation project. If so, we return it. If nothing is found, return...
22217057e0d5202ecc0d82ce297829c564eab061 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/22217057e0d5202ecc0d82ce297829c564eab061/user_lang_discovery.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4936, 67, 2080, 67, 2505, 67, 3374, 12, 2293, 4672, 3536, 2047, 326, 729, 1807, 4748, 9573, 279, 666, 434, 9119, 8191, 316, 326, 2239, 67, 21417, 67, 15547, 1446, 16, 1109, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4936, 67, 2080, 67, 2505, 67, 3374, 12, 2293, 4672, 3536, 2047, 326, 729, 1807, 4748, 9573, 279, 666, 434, 9119, 8191, 316, 326, 2239, 67, 21417, 67, 15547, 1446, 16, 1109, 51...
"""
If a polynomial is univariate, the appropriate univariate factorization code is called. sage: R.<z> = PolynomialRing(CC,1) sage: f = z^4 - 6*z + 3 sage: f.factor() (z - 1.60443920904349) * (z - 0.511399619393097) * (z + 1.05791941421830 - 1.59281852704435*I) * (z + 1.05791941421830 + 1.59281852704435*I) """
def factor(self): r""" Compute the irreducible factorization of this polynomial.
a7dfecac33c9a29d1e37aaa57c7407d65e83bd69 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a7dfecac33c9a29d1e37aaa57c7407d65e83bd69/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 12, 2890, 4672, 436, 8395, 8155, 326, 9482, 1118, 5286, 1523, 5578, 1588, 434, 333, 16991, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5578, 12, 2890, 4672, 436, 8395, 8155, 326, 9482, 1118, 5286, 1523, 5578, 1588, 434, 333, 16991, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except : raise Exception(exceptions.html_error_template().render())
except Exception, e: raise except_osv(exceptions.html_error_template().render())
def create_single_pdf(self, cursor, uid, ids, data, report_xml, context=None): """generate the PDF""" if context is None: context={} if report_xml.report_type != 'webkit': return super(WebKitParser,self).create_single_pdf(cursor, uid, ids, data, report_xml, context=context)
0716a455a609d62b1b5b1d2e5358c9c943a5646b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0716a455a609d62b1b5b1d2e5358c9c943a5646b/webkit_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7526, 67, 7699, 12, 2890, 16, 3347, 16, 4555, 16, 3258, 16, 501, 16, 2605, 67, 2902, 16, 819, 33, 7036, 4672, 3536, 7163, 326, 12667, 8395, 225, 309, 819, 353, 599, 30, 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, 752, 67, 7526, 67, 7699, 12, 2890, 16, 3347, 16, 4555, 16, 3258, 16, 501, 16, 2605, 67, 2902, 16, 819, 33, 7036, 4672, 3536, 7163, 326, 12667, 8395, 225, 309, 819, 353, 599, 30, 819,...
domain=["('id', '=', context.get('company', 0))"])
domain=["('id', 'company' in context and '=' or '!=', " \ "context.get('company', 0))"])
def get_purchase_price(self, cursor, user, ids, quantity=0, context=None): ''' Return purchase price for product ids.
2e7bee8052432092525045a680d069aab4f3ab07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9276/2e7bee8052432092525045a680d069aab4f3ab07/purchase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12688, 12104, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 10457, 33, 20, 16, 819, 33, 7036, 4672, 9163, 2000, 23701, 6205, 364, 3017, 3258, 18, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12688, 12104, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 10457, 33, 20, 16, 819, 33, 7036, 4672, 9163, 2000, 23701, 6205, 364, 3017, 3258, 18, 2, -100, -100, -100, ...
act_win['domain'] = [('id','in',[(','.join(map(str,invoices)))]),('type','=','out_invoice')]
act_win['domain'] = [('id','in',invoices),('type','=','out_invoice')]
def _do_create(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) analytic_account_obj = pool.get('account.analytic.account') res_partner_obj = pool.get('res.partner') account_payment_term_obj = pool.get('account.payment.term')
df9f5fb23c9649fb07f5757dcc94bc76405db808 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/df9f5fb23c9649fb07f5757dcc94bc76405db808/hr_timesheet_invoice_create.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 392, 7834, 335, 67, 4631, 67, 2603, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 501, 16, 819, 4672, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 392, 7834, 335, 67, 4631, 67, 2603, 273, ...
o2tf.printlog('crdel_gen_files: dirlen = (%s)' % dirlen,
o2tf.printlog('crdel_del_files: dirlen = (%s)' % dirlen,
def DeleteAll(top):
ed4f6ba5e9fdd8691abfa902b7601651ead1f4e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1915/ed4f6ba5e9fdd8691abfa902b7601651ead1f4e3/crdel_del_files.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 1595, 12, 3669, 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, ...
[ 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, 2504, 1595, 12, 3669, 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, -...
self.open_tag(close_tag)
self.open_tag(open_tag, close_tag)
def simple_tag_handler(self, open_tag, close_tag): """Generic handler for simple binary style tags""" if self.tag_open_p(close_tag): return self.close_tag(close_tag) else: self.open_tag(close_tag) return open_tag
92c4897f3386550e19f7beebdb2369c29518b3ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/92c4897f3386550e19f7beebdb2369c29518b3ce/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 67, 2692, 67, 4176, 12, 2890, 16, 1696, 67, 2692, 16, 1746, 67, 2692, 4672, 3536, 7014, 1838, 364, 4143, 3112, 2154, 2342, 8395, 309, 365, 18, 2692, 67, 3190, 67, 84, 12, 4412, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4143, 67, 2692, 67, 4176, 12, 2890, 16, 1696, 67, 2692, 16, 1746, 67, 2692, 4672, 3536, 7014, 1838, 364, 4143, 3112, 2154, 2342, 8395, 309, 365, 18, 2692, 67, 3190, 67, 84, 12, 4412, ...
def _tr_init(self, set_conf=0):
def _tr_init(self, set_conf=0, transform=None):
def _tr_init(self, set_conf=0): """ initialize the zope transform by loading the wrapped transform """ __traceback_info__ = (self.module, ) m = import_from_name(self.module) if not hasattr(m, 'register'): raise TransformException('Unvalid transform module %s: no register function defined' % module)
5f07e6334dbfb0c195bb3c087a40a55a9e7378a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/5f07e6334dbfb0c195bb3c087a40a55a9e7378a5/TransformTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 313, 67, 2738, 12, 2890, 16, 444, 67, 3923, 33, 20, 16, 2510, 33, 7036, 4672, 3536, 4046, 326, 998, 1306, 2510, 635, 7153, 326, 5805, 2510, 3536, 1001, 21696, 67, 1376, 972, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 313, 67, 2738, 12, 2890, 16, 444, 67, 3923, 33, 20, 16, 2510, 33, 7036, 4672, 3536, 4046, 326, 998, 1306, 2510, 635, 7153, 326, 5805, 2510, 3536, 1001, 21696, 67, 1376, 972, 273, ...
"can't pickle %s objects" % `t.__name__`
"can't pickle %s object: %s" % (`t.__name__`, `object`)
def save(self, object, pers_save = 0): memo = self.memo
ef935424120e72c2e7ff5f797408944c6c53a7f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ef935424120e72c2e7ff5f797408944c6c53a7f7/pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 733, 16, 13508, 67, 5688, 273, 374, 4672, 11063, 273, 365, 18, 19521, 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, 1923, 12, 2890, 16, 733, 16, 13508, 67, 5688, 273, 374, 4672, 11063, 273, 365, 18, 19521, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
import locale encoding = locale.getdefaultlocale()[1] or 'ascii' L = [] for k in self.__class__.c.keys(): value = getattr(self, k, '') if isinstance(value, unicode): value = value.encode(encoding) L.append("%s=%r" % (k, value))
L = ["%s=%r" % (key, getattr(self, key, '')) for key in self.__class__.c.keys()]
def __repr__(self): import locale encoding = locale.getdefaultlocale()[1] or 'ascii' L = [] for k in self.__class__.c.keys(): value = getattr(self, k, '') if isinstance(value, unicode): value = value.encode(encoding) L.append("%s=%r" % (k, value)) return '%s(%s)' % (self.__class__.__name__, ','.join(L))
3882bb864beb577dcc25fe06b8c0bdd11d0629bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/3882bb864beb577dcc25fe06b8c0bdd11d0629bb/sqlsoup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 511, 273, 8247, 9, 87, 5095, 86, 6, 738, 261, 856, 16, 3869, 12, 2890, 16, 498, 16, 875, 3719, 364, 498, 316, 365, 16186, 1106, 25648, 71, 18, 2452,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 511, 273, 8247, 9, 87, 5095, 86, 6, 738, 261, 856, 16, 3869, 12, 2890, 16, 498, 16, 875, 3719, 364, 498, 316, 365, 16186, 1106, 25648, 71, 18, 2452,...
('&None', 'Neither display forgeground layer nor background layer', self.on_display_none)
('&None', 'Neither display the foreground layer nor the background layer', self.on_display_none)
def __init__(self): wx.Frame.__init__(self, None, size=wx.Size(640, 480)) self.Connect(-1, -1, wx.EVT_DJVU_MESSAGE, self.handle_message) self.context = Context(self) self.splitter = wx.SplitterWindow(self, -1, style = wx.SP_LIVE_UPDATE) self.sidebar = wx.Panel(self.splitter, -1, size = (5, 5)) self.scrolled_panel = wx....
0329b5baf947629a55a3d0c5ec1af36250b8ceaa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3683/0329b5baf947629a55a3d0c5ec1af36250b8ceaa/smooth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 963, 33, 27226, 18, 1225, 12, 1105, 20, 16, 1059, 3672, 3719, 365, 18, 5215, 19236, 21, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 963, 33, 27226, 18, 1225, 12, 1105, 20, 16, 1059, 3672, 3719, 365, 18, 5215, 19236, 21, 16, ...
if request.method == 'POST': if(id): district = District.objects.get(id = id) form = DistrictForm(request.POST, instance = district) else: form = DistrictForm(request.POST) if form.is_valid(): form.save() return HttpResponse('') else: return HttpResponse(form.errors.as_text(),status = 201) else: if(id): district = Dis...
if request.method == 'POST': if(id): district = District.objects.get(id = id) form = DistrictForm(request.POST, instance = district) else: form = DistrictForm(request.POST) if form.is_valid(): form.save() return HttpResponse('') else: return HttpResponse(form.errors.as_text(),status = 201) else: if(id): district = Dis...
def save_district_online(request,id): if request.method == 'POST': if(id): district = District.objects.get(id = id) form = DistrictForm(request.POST, instance = district) else: form = DistrictForm(request.POST) if form.is_valid(): form.save() return HttpResponse('') else: return HttpResponse(form.errors.as_text(),stat...
7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 22602, 67, 21026, 12, 2293, 16, 350, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 309, 12, 350, 4672, 1015, 5792, 273, 3035, 5792, 18, 6911, 18, 588, 12, 350, 273, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 22602, 67, 21026, 12, 2293, 16, 350, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 309, 12, 350, 4672, 1015, 5792, 273, 3035, 5792, 18, 6911, 18, 588, 12, 350, 273, 612, ...
_fl_set_browser_dblclick_callback(ob, c_cb, a) _fl_get_browser_xoffset = cfuncproto(so_libforms, "fl_get_browser_xoffset", FL_Coord, [cty.POINTER(FL_OBJECT)],
_fl_set_browser_dblclick_callback(pObject, c_cb, a) _fl_get_browser_xoffset = cfuncproto(so_libforms, "fl_get_browser_xoffset", FL_Coord, [cty.POINTER(FL_OBJECT)],
def fl_set_browser_dblclick_callback(ob, pycb, a): """ fl_set_browser_dblclick_callback(ob, pycb, a) """ c_cb = FL_CALLBACKPTR(pycb) _cfunc_refs[get_rand_dictkey()] = c_cb _fl_set_browser_dblclick_callback(ob, c_cb, a)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 11213, 67, 1966, 80, 7475, 67, 3394, 12, 947, 16, 2395, 7358, 16, 279, 4672, 3536, 1183, 67, 542, 67, 11213, 67, 1966, 80, 7475, 67, 3394, 12, 947, 16, 2395, 7358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 11213, 67, 1966, 80, 7475, 67, 3394, 12, 947, 16, 2395, 7358, 16, 279, 4672, 3536, 1183, 67, 542, 67, 11213, 67, 1966, 80, 7475, 67, 3394, 12, 947, 16, 2395, 7358,...
self.tk.call(self._w, 'dropsite', 'set', index)
self.tk.call(self._w, 'dropsite', 'set', index)
def dropsite_set(self, index):
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, 29535, 1137, 67, 542, 12, 2890, 16, 770, 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,...
[ 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, 29535, 1137, 67, 542, 12, 2890, 16, 770, 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, ...
self.assertRaises(OverflowError, '%c'.__mod__, 0x1234)
self.assertRaises(OverflowError, '%c'.__mod__, 0x12341234)
def test_formatting(self): string_tests.MixinStrUnicodeUserStringTest.test_formatting(self) self.assertRaises(OverflowError, '%c'.__mod__, 0x1234)
98aba94a49bbf141142e793cbef79e97d498df5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/98aba94a49bbf141142e793cbef79e97d498df5f/test_str.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2139, 1787, 12, 2890, 4672, 533, 67, 16341, 18, 14439, 1585, 16532, 1299, 780, 4709, 18, 3813, 67, 2139, 1787, 12, 2890, 13, 365, 18, 11231, 12649, 6141, 12, 15526, 668, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2139, 1787, 12, 2890, 4672, 533, 67, 16341, 18, 14439, 1585, 16532, 1299, 780, 4709, 18, 3813, 67, 2139, 1787, 12, 2890, 13, 365, 18, 11231, 12649, 6141, 12, 15526, 668, 16, ...
vList.append(Violation(self, line.number, "Missing leading underscore"))
vList.append(Violation(self, line, "Missing leading underscore"))
def apply(self, lines): if (self.getFiletype() in self.getTypeList()): vList = [] for line in lines: if line.inPrivate: for variable in line.variableNames: tmp = re.sub("\s*[\*\&]\s*", "", variable) inParens1 = re.search("\([^\)]*" + tmp + "[^\)]*$", line.stripped) inParens2 = re.search("^[^\)]*" + tmp + "[^\)]*\)", li...
cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 331, 682, 273, 5378, 364, 980, 316, 2362, 30, 309, 980, 18, 267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 12, 2890, 16, 2362, 4672, 309, 261, 2890, 18, 588, 25579, 5872, 1435, 316, 365, 18, 588, 559, 682, 1435, 4672, 331, 682, 273, 5378, 364, 980, 316, 2362, 30, 309, 980, 18, 267, ...
a = o.partner_id.property_account_payable.id
a = o.partner_id.property_account_payable.id journal_ids = journal_obj.search(cr, uid, [('type', '=','purchase')], limit=1)
def action_invoice_create(self, cr, uid, ids, *args): res = False for o in self.browse(cr, uid, ids): il = [] for ol in o.order_line:
464a9f533b9e92e04ea5b666a7072a0737d3acc2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/464a9f533b9e92e04ea5b666a7072a0737d3acc2/purchase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 16119, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 400, 273, 1083, 364, 320, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 14254, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 16119, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 400, 273, 1083, 364, 320, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 14254, 273, ...
outvideobitrate = 5000
outvideobitrate = "5000k"
def encodeNuvToMPEG2(chanid, starttime, mediafile, destvideofile, folder, profile, usecutlist): """Encodes a nuv video source file to MPEG2 video and AC3 audio, using mythtranscode & ffmpeg""" # make sure mythtranscode hasn't left some stale fifos hanging around if ((doesFileExist(os.path.join(folder, "audout")) or do...
6cd5ac5b57bc29cebf74953316b6f344e7d59235 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/6cd5ac5b57bc29cebf74953316b6f344e7d59235/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 50, 16303, 774, 49, 16533, 22, 12, 7472, 350, 16, 23437, 16, 3539, 768, 16, 1570, 9115, 768, 16, 3009, 16, 3042, 16, 999, 5150, 1098, 4672, 3536, 19771, 279, 9244, 90, 6191, 1084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 50, 16303, 774, 49, 16533, 22, 12, 7472, 350, 16, 23437, 16, 3539, 768, 16, 1570, 9115, 768, 16, 3009, 16, 3042, 16, 999, 5150, 1098, 4672, 3536, 19771, 279, 9244, 90, 6191, 1084...
if d == 0: raise TypeError, "P = %s is a Weierstrass point. Use local_coordinates_at_weierstrass instead!"%P
if d == 0: raise TypeError, "P = %s is a Weierstrass point. Use local_coordinates_at_weierstrass instead!"%P
def local_coordinates_at_nonweierstrass(self, P, prec = 20, name = 't'): """ For a non-Weierstrass point P = (a,b) on the hyperelliptic curve y^2 = f(x), returns (x(t), y(t)) such that (y(t))^2 = f(x(t)), where t = x - a is the local parameter.
030d54071a81b42f8cb0b5bdab1d15f4f3edce25 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/030d54071a81b42f8cb0b5bdab1d15f4f3edce25/hyperelliptic_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 5836, 1814, 20778, 313, 428, 12, 2890, 16, 453, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 279, 1661, 17, 3218, 20778, 313, 428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 5836, 1814, 20778, 313, 428, 12, 2890, 16, 453, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 279, 1661, 17, 3218, 20778, 313, 428, ...
@var instance_name: the name of the instance
@ivar instance_name: the name of the instance
def Summary(self): """Generates a summary description of this opcode.
2f907a8c2ca947bc5bdd061fd85f4c11133c89d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/2f907a8c2ca947bc5bdd061fd85f4c11133c89d4/opcodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17967, 12, 2890, 4672, 3536, 6653, 279, 4916, 2477, 434, 333, 11396, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17967, 12, 2890, 4672, 3536, 6653, 279, 4916, 2477, 434, 333, 11396, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
Name("Test").Caption("HTML Content").
Caption("HTML Content").
def OnCreateHTML(self, event):
de824c0c9cec70a6369d011fb635c8ba12bdacea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de824c0c9cec70a6369d011fb635c8ba12bdacea/AUI_DockingWindowMgr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1684, 4870, 12, 2890, 16, 871, 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, 2755, 1684, 4870, 12, 2890, 16, 871, 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...
"ls -l non_existent_file ; exit 0"], stderr=subprocess.STDOUT)
... "ls -l non_existent_file ; exit 0"], ... stderr=subprocess.STDOUT)
def check_output(*popenargs, **kwargs): """Run command with arguments and return its output as a byte string. If the exit code was non-zero it raises a CalledProcessError. The CalledProcessError object will have the return code in the returncode attribute and output in the output attribute. The arguments are the sam...
be43c4857b885bc239c9cd0919a288fa8634eb7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/be43c4857b885bc239c9cd0919a288fa8634eb7b/subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2844, 30857, 84, 3190, 1968, 16, 2826, 4333, 4672, 3536, 1997, 1296, 598, 1775, 471, 327, 2097, 876, 487, 279, 1160, 533, 18, 225, 971, 326, 2427, 981, 1703, 1661, 17, 7124, 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, 866, 67, 2844, 30857, 84, 3190, 1968, 16, 2826, 4333, 4672, 3536, 1997, 1296, 598, 1775, 471, 327, 2097, 876, 487, 279, 1160, 533, 18, 225, 971, 326, 2427, 981, 1703, 1661, 17, 7124, 5...
def read_meta(self, entry): raw = self._read_content(entry.offset, entry.size)
def _read_meta(self): raw = self.get_file('/meta')
def read_meta(self, entry): raw = self._read_content(entry.offset, entry.size) xml = OPF_DECL + unicode(UnBinary(raw, self.manifest, OPF_MAP)) self.meta = xml
006182e5f46ea8f5da43607ab530dff752a12d94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/006182e5f46ea8f5da43607ab530dff752a12d94/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 3901, 12, 2890, 4672, 1831, 273, 365, 18, 588, 67, 768, 2668, 19, 3901, 6134, 2025, 273, 7247, 42, 67, 23956, 397, 5252, 12, 984, 5905, 12, 1899, 16, 365, 18, 14357, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 3901, 12, 2890, 4672, 1831, 273, 365, 18, 588, 67, 768, 2668, 19, 3901, 6134, 2025, 273, 7247, 42, 67, 23956, 397, 5252, 12, 984, 5905, 12, 1899, 16, 365, 18, 14357, 16...
return ('katipo-url-detail', (str(self.run_id), str(self.url),))
return ('katipo-url-detail', (str(self.run_id), str(urlquote(self.url, '')),))
def get_absolute_url(self): return ('katipo-url-detail', (str(self.run_id), str(self.url),))
358c197f28bccf78d53c066d90bc880b1f14cd3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4572/358c197f28bccf78d53c066d90bc880b1f14cd3f/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12547, 67, 718, 12, 2890, 4672, 327, 7707, 79, 270, 625, 83, 17, 718, 17, 8992, 2187, 261, 701, 12, 2890, 18, 2681, 67, 350, 3631, 609, 12, 718, 6889, 12, 2890, 18, 718, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12547, 67, 718, 12, 2890, 4672, 327, 7707, 79, 270, 625, 83, 17, 718, 17, 8992, 2187, 261, 701, 12, 2890, 18, 2681, 67, 350, 3631, 609, 12, 718, 6889, 12, 2890, 18, 718, 1...
header = 'Proxy-Authorization'
auth_header = 'Proxy-Authorization'
def http_error_401(self, req, fp, code, msg, headers): host = urlparse.urlparse(req.get_full_url())[1] return self.http_error_auth_reqed('www-authenticate', host, req, headers)
52a17becbcc8bba8d4750926c58f6ac6e41464b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/52a17becbcc8bba8d4750926c58f6ac6e41464b7/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 27002, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 1479, 273, 15185, 18, 718, 2670, 12, 3658, 18, 588, 67, 2854, 67, 718, 10756, 63, 21, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1062, 67, 1636, 67, 27002, 12, 2890, 16, 1111, 16, 4253, 16, 981, 16, 1234, 16, 1607, 4672, 1479, 273, 15185, 18, 718, 2670, 12, 3658, 18, 588, 67, 2854, 67, 718, 10756, 63, 21, 65, ...
pixbuf = gtk.gdk.pixbuf_new_from_file(image_path) [w,h] = self.export_image.get_size_request() pixbuf = pixbuf.scale_simple(w, h, gtk.gdk.INTERP_BILINEAR) self.export_image.set_from_pixbuf(pixbuf)
if os.path.isfile(image_path): pixbuf = gtk.gdk.pixbuf_new_from_file(image_path) [w,h] = self.export_image.get_size_request() pixbuf = pixbuf.scale_simple(w, h, gtk.gdk.INTERP_BILINEAR) self.export_image.set_from_pixbuf(pixbuf) else: self.export_image.clear()
def on_export_combo_changed(self, widget = None): if not self.export_check_template(): pass else: image_path = os.path.dirname(self.export_template_path) image_path = image_path + '/' + os.path.basename(\ self.export_template_path).replace("template_","thumbnail_") pixbuf = gtk.gdk.pixbuf_new_from_file(image_path) [w,h...
5dfaf6e17cf13aed205788b84d54c82c1ed9be22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/5dfaf6e17cf13aed205788b84d54c82c1ed9be22/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 6530, 67, 25053, 67, 6703, 12, 2890, 16, 3604, 273, 599, 4672, 309, 486, 365, 18, 6530, 67, 1893, 67, 3202, 13332, 1342, 469, 30, 1316, 67, 803, 273, 1140, 18, 803, 18, 1228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 6530, 67, 25053, 67, 6703, 12, 2890, 16, 3604, 273, 599, 4672, 309, 486, 365, 18, 6530, 67, 1893, 67, 3202, 13332, 1342, 469, 30, 1316, 67, 803, 273, 1140, 18, 803, 18, 1228...
'service_product': 'You can not use service product for a move!',
'service_product': 'You can not use service products for a move!',
def __init__(self): super(Move, self).__init__() self._sql_constraints += [ ('check_move_qty_pos', 'CHECK(quantity >= 0.0)', 'Move quantity must be positive'), ('check_from_to_locations', 'CHECK(from_location != to_location)', 'Source and destination location must be different'), ('check_packing_in_out', 'CHECK(NOT(pac...
eb405b29343a3e4cdf3307af8e597e5e636c1b26 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9298/eb405b29343a3e4cdf3307af8e597e5e636c1b26/move.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 2240, 12, 7607, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 4669, 67, 11967, 1011, 306, 7707, 1893, 67, 8501, 67, 85, 4098, 67, 917, 2187, 296, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2240, 12, 7607, 16, 365, 2934, 972, 2738, 972, 1435, 365, 6315, 4669, 67, 11967, 1011, 306, 7707, 1893, 67, 8501, 67, 85, 4098, 67, 917, 2187, 296, 106...
if isinstance(res,pointer_IAccessible):
if isinstance(res,IAccessible):
def accChild(ia,child): try: res=ia.accChild(child) if isinstance(res,pointer_IAccessible): new_ia=res new_child=0 elif isinstance(res,comtypesClient._Dispatch): new_ia=res.QueryInterface(IAccessible) new_child=0 elif isinstance(res,int): new_ia=ia new_child=res return (new_ia,new_child) except: return None
54f5fb8ca408d94e0671d354611b49eb4bb2b114 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/54f5fb8ca408d94e0671d354611b49eb4bb2b114/IAccessibleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4078, 1763, 12, 1155, 16, 3624, 4672, 775, 30, 400, 33, 1155, 18, 8981, 1763, 12, 3624, 13, 309, 1549, 12, 455, 16, 45, 10451, 4672, 394, 67, 1155, 33, 455, 394, 67, 3624, 33, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4078, 1763, 12, 1155, 16, 3624, 4672, 775, 30, 400, 33, 1155, 18, 8981, 1763, 12, 3624, 13, 309, 1549, 12, 455, 16, 45, 10451, 4672, 394, 67, 1155, 33, 455, 394, 67, 3624, 33, 20, ...
distl = self._site.family.disambig(self._site.lang)
default = set(self._site.family.disambig('_default')) try: distl = self._site.family.disambig(self._site.lang, fallback=False) except KeyError: distl = None
def isDisambig(self): """Return True if this is a disambiguation page, False otherwise.
dcbf2729ca0234c3325a941211be64d8a20f9a0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/dcbf2729ca0234c3325a941211be64d8a20f9a0b/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1669, 2536, 360, 12, 2890, 4672, 3536, 990, 1053, 309, 333, 353, 279, 1015, 26011, 367, 1363, 16, 1083, 3541, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 1669, 2536, 360, 12, 2890, 4672, 3536, 990, 1053, 309, 333, 353, 279, 1015, 26011, 367, 1363, 16, 1083, 3541, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
assert sns.prefix() is not None sns.setModulePath('%s%s' % (module_path_prefix, sns.prefix())) print '%s module %s' % (sns.uri(), sns.modulePath())
if sns.prefix() is not None: sns.setModulePath('%s%s' % (module_path_prefix, sns.prefix()))
def _PrepareNamespaceForGeneration (sns, module_path_prefix, all_std, all_ctd, all_ed): if sns.modulePath() is None: assert sns.prefix() is not None sns.setModulePath('%s%s' % (module_path_prefix, sns.prefix())) print '%s module %s' % (sns.uri(), sns.modulePath()) std = set() ctd = set() ed = set() for c in sns.compone...
23819161a61115af02ee59cf780f4f67f777b865 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/23819161a61115af02ee59cf780f4f67f777b865/generate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7543, 3402, 1290, 13842, 261, 87, 2387, 16, 1605, 67, 803, 67, 3239, 16, 777, 67, 5084, 16, 777, 67, 299, 72, 16, 777, 67, 329, 4672, 309, 23625, 18, 2978, 743, 1435, 353, 599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7543, 3402, 1290, 13842, 261, 87, 2387, 16, 1605, 67, 803, 67, 3239, 16, 777, 67, 5084, 16, 777, 67, 299, 72, 16, 777, 67, 329, 4672, 309, 23625, 18, 2978, 743, 1435, 353, 599, ...
if svc_title == "" or svc_title == None: return commandstring = "clusvcadm -q -R \"" + svc_name + "\""
svc_state = model.get_value(iter, S_STATE_COL) if '<span' in svc_state: svc_state = svc_state.replace('</span>', '') svc_state = svc_state.replace(svc_state[svc_state.find('<span'):svc_state.find('>')+1], '').strip() if svc_title == "" or svc_title == None or svc_name == '' or svc_name == None or svc_state == '' or svc...
def on_svc_restart(self, button): selection = self.servicetree.get_selection() model,iter = selection.get_selected() if iter == None: return svc_name = model.get_value(iter, S_NAME_COL) svc_title = model.get_value(iter,S_TITLE_COL) if svc_title == "" or svc_title == None: return commandstring = "clusvcadm -q -R \"" + s...
dd487b28db04c8912e69fa23c40dcb0f301a0d72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/dd487b28db04c8912e69fa23c40dcb0f301a0d72/MgmtTab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 30992, 67, 19164, 12, 2890, 16, 3568, 4672, 4421, 273, 365, 18, 23039, 335, 31303, 18, 588, 67, 10705, 1435, 938, 16, 2165, 273, 4421, 18, 588, 67, 8109, 1435, 309, 1400, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 30992, 67, 19164, 12, 2890, 16, 3568, 4672, 4421, 273, 365, 18, 23039, 335, 31303, 18, 588, 67, 10705, 1435, 938, 16, 2165, 273, 4421, 18, 588, 67, 8109, 1435, 309, 1400, 422,...
fail_test(str(e))
integrationtestlib.log("Failed to call ntp_time_updatetime(). Returned with exception: " +str(e)) notify_str += "\nFailed to call ntp_time_updatetime(). Returned with exception: " +str(e)
def main(): # initialize the gmail module success,explanation_str = send_gmail.init_gmail() if not success: integrationtestlib.log(explanation_str) sys.exit(0) notify_str = '' #add Eric Kimbrel to the email notify list integrationtestlib.notify_list.append("lekimbrel@gmail.com") integrationtestlib.log("Starting tes...
d43d0d28962c92a4839a4439ff332a18328be765 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/d43d0d28962c92a4839a4439ff332a18328be765/test_time_tcp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 4046, 326, 314, 4408, 1605, 2216, 16, 338, 15854, 67, 701, 273, 1366, 67, 75, 4408, 18, 2738, 67, 75, 4408, 1435, 309, 486, 2216, 30, 12040, 3813, 2941, 18, 1330, 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, 2774, 13332, 468, 4046, 326, 314, 4408, 1605, 2216, 16, 338, 15854, 67, 701, 273, 1366, 67, 75, 4408, 18, 2738, 67, 75, 4408, 1435, 309, 486, 2216, 30, 12040, 3813, 2941, 18, 1330, 12,...
for seriesnode in forcedseries:
for iseries,seriesnode in enumerate(forcedseries):
def update(self): """Update the figure. Everything happens here. The current set of customized properties is interpreted, data slices are obtained from the data sources, default figure properties are set based on properties of the obtained data, and the figure is built and shown. """ # We are called whenever figure p...
6f8bfc03c14f31a5af33c14d02bf8e6e69d86bb0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/381/6f8bfc03c14f31a5af33c14d02bf8e6e69d86bb0/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 1891, 326, 7837, 18, 225, 26553, 10555, 2674, 18, 1021, 783, 444, 434, 29063, 1790, 353, 19898, 16, 501, 12390, 854, 12700, 628, 326, 501, 5550, 16, 805, 7837...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 3536, 1891, 326, 7837, 18, 225, 26553, 10555, 2674, 18, 1021, 783, 444, 434, 29063, 1790, 353, 19898, 16, 501, 12390, 854, 12700, 628, 326, 501, 5550, 16, 805, 7837...
if typedesc is None or \ typedesc.has_arg != bool(fieldarg):
typename = typedesc.name if typedesc is None or typedesc.has_arg != bool(fieldarg):
def transform(self, node): """Transform a single field list *node*.""" typemap = self.typemap
f78f0e616faaac1c878d4830729d38c5d3618bbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/f78f0e616faaac1c878d4830729d38c5d3618bbf/docfields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 2890, 16, 756, 4672, 3536, 4059, 279, 2202, 652, 666, 380, 2159, 14, 12123, 618, 1458, 273, 365, 18, 723, 1458, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 2890, 16, 756, 4672, 3536, 4059, 279, 2202, 652, 666, 380, 2159, 14, 12123, 618, 1458, 273, 365, 18, 723, 1458, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if self.site().family != getSite().family: return u'[[%s:%s:%s]]' % (self.site().family.name, self.site().lang, self.title(savetitle=True))
if self.site().family != getSite().family \ and self.site().family.name != self.site().lang: return u'[[%s:%s:%s]]' % (self.site().family.name, self.site().lang, self.title(savetitle=True))
def aslink(self, forceInterwiki=False, textlink=False, noInterwiki=False): """Return a string representation in the form of a wikilink.
a7dae3fdaae37131896fd727993106444cd27d2c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/a7dae3fdaae37131896fd727993106444cd27d2c/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 487, 1232, 12, 2890, 16, 2944, 2465, 13044, 33, 8381, 16, 977, 1232, 33, 8381, 16, 1158, 2465, 13044, 33, 8381, 4672, 3536, 990, 279, 533, 4335, 316, 326, 646, 434, 279, 341, 1766, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 487, 1232, 12, 2890, 16, 2944, 2465, 13044, 33, 8381, 16, 977, 1232, 33, 8381, 16, 1158, 2465, 13044, 33, 8381, 4672, 3536, 990, 279, 533, 4335, 316, 326, 646, 434, 279, 341, 1766, 330...
- ``'pari'`` - use PARI's factorial function
- ``'pari'`` - use PARI's factorial function
def factorial(n, algorithm='gmp'): r""" Compute the factorial of `n`, which is the product `1\cdot 2\cdot 3 \cdots (n-1)\cdot n`. INPUT: - ``n`` - an integer - ``algorithm`` - string (default: 'gmp') - ``'gmp'`` - use the GMP C-library factorial function - ``'pari'`` - use PARI's factorial function OUTPUT: an...
c25fe4fc4fb747ffb263e9dc30e590c49b031d43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c25fe4fc4fb747ffb263e9dc30e590c49b031d43/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5578, 649, 12, 82, 16, 4886, 2218, 75, 1291, 11, 4672, 436, 8395, 8155, 326, 5578, 649, 434, 1375, 82, 9191, 1492, 353, 326, 3017, 1375, 21, 64, 4315, 352, 576, 64, 4315, 352, 890, 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, 5578, 649, 12, 82, 16, 4886, 2218, 75, 1291, 11, 4672, 436, 8395, 8155, 326, 5578, 649, 434, 1375, 82, 9191, 1492, 353, 326, 3017, 1375, 21, 64, 4315, 352, 576, 64, 4315, 352, 890, 5...
raise 'FATAL', '(param, l) = %r' % ((param, l),)
raise ValueError('(param, l) = %r' % ((param, l),))
def _compute_len(param): mant, l = math.frexp(float(param)) bitmask = 1 << l if bitmask <= param: raise 'FATAL', '(param, l) = %r' % ((param, l),) while l: bitmask = bitmask >> 1 if param & bitmask: break l = l - 1 return l
2f90a321638fb1f4de88189adc913324bf6d1dfa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/2f90a321638fb1f4de88189adc913324bf6d1dfa/bitvec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9200, 67, 1897, 12, 891, 4672, 20414, 16, 328, 273, 4233, 18, 74, 266, 23829, 12, 5659, 12, 891, 3719, 24941, 273, 404, 2296, 328, 309, 24941, 1648, 579, 30, 1002, 2068, 2668, 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, 389, 9200, 67, 1897, 12, 891, 4672, 20414, 16, 328, 273, 4233, 18, 74, 266, 23829, 12, 5659, 12, 891, 3719, 24941, 273, 404, 2296, 328, 309, 24941, 1648, 579, 30, 1002, 2068, 2668, 12,...
'reportlab.fonts',
def run(): LIBS = [] setup( name="Reportlab", version="1.15.3", description="Reportlab PDF generation tools", author="The boys from SW19", author_email="info@reportlab.com", url="http://www.reportlab.com/", package_dir = {'': '..'}, packages=[ # include anything with an __init__ 'reportlab', 'reportlab.docs', 'report...
3d98c85095bfb26ef062b09b88057d05b3f35850 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/3d98c85095bfb26ef062b09b88057d05b3f35850/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 8961, 12692, 273, 5378, 3875, 12, 508, 1546, 4820, 7411, 3113, 1177, 1546, 21, 18, 3600, 18, 23, 3113, 2477, 1546, 4820, 7411, 12667, 9377, 8513, 3113, 2869, 1546, 1986, 800, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 8961, 12692, 273, 5378, 3875, 12, 508, 1546, 4820, 7411, 3113, 1177, 1546, 21, 18, 3600, 18, 23, 3113, 2477, 1546, 4820, 7411, 12667, 9377, 8513, 3113, 2869, 1546, 1986, 800, ...
Write a string to the app.
Write a string to the app.
def write( self, line ): """ Write a string to the app. """ try: self.child.tochild.write(line) self.child.tochild.flush() except (IOError, ValueError): pass
7b173ef85ef3f4f3130a22716674b50fd2154f41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/7b173ef85ef3f4f3130a22716674b50fd2154f41/popen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 365, 16, 980, 262, 30, 3536, 2598, 279, 533, 358, 326, 595, 18, 3536, 775, 30, 365, 18, 3624, 18, 869, 3624, 18, 2626, 12, 1369, 13, 365, 18, 3624, 18, 869, 3624, 18, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12, 365, 16, 980, 262, 30, 3536, 2598, 279, 533, 358, 326, 595, 18, 3536, 775, 30, 365, 18, 3624, 18, 869, 3624, 18, 2626, 12, 1369, 13, 365, 18, 3624, 18, 869, 3624, 18, 113...
q = (C.base_ring()).order() P = C.sd_duursma_q(type,d0)
P = C.sd_duursma_q(typ,d0)
def sd_zeta_polynomial(C,type=1): r""" Returns the Duursma zeta function of a self-dual code using the construction in [D].
90ff33abb51043d1baa7fdf15f610546756cd0b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/90ff33abb51043d1baa7fdf15f610546756cd0b7/linear_code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8349, 67, 94, 1066, 67, 3915, 13602, 12, 39, 16, 723, 33, 21, 4672, 436, 8395, 2860, 326, 463, 89, 25152, 2540, 998, 1066, 445, 434, 279, 365, 17, 72, 1462, 981, 1450, 326, 16171, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8349, 67, 94, 1066, 67, 3915, 13602, 12, 39, 16, 723, 33, 21, 4672, 436, 8395, 2860, 326, 463, 89, 25152, 2540, 998, 1066, 445, 434, 279, 365, 17, 72, 1462, 981, 1450, 326, 16171, 31...
peer_db.updatePeerIPPort(hispermid, "127.0.0.1", 5678)
peer_db.addPeer(hispermid,{'ip':"127.0.0.1", 'port':5678})
def singtest_receive(self): print >> sys.stderr,"test: test_receive" self.wanted = True self.wanted2 = True # register handler for messages self.peer2.secure_overlay.register_recv_callback(self.receive_msg_callback)
ea5b6bdfe334b3d2bb4810326934e4bb0038ba4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/ea5b6bdfe334b3d2bb4810326934e4bb0038ba4f/test_secure_overlay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4864, 3813, 67, 18149, 12, 2890, 4672, 1172, 1671, 2589, 18, 11241, 10837, 3813, 30, 1842, 67, 18149, 6, 365, 18, 25861, 273, 1053, 365, 18, 25861, 22, 273, 1053, 468, 1744, 1838, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4864, 3813, 67, 18149, 12, 2890, 4672, 1172, 1671, 2589, 18, 11241, 10837, 3813, 30, 1842, 67, 18149, 6, 365, 18, 25861, 273, 1053, 365, 18, 25861, 22, 273, 1053, 468, 1744, 1838, 364, ...
if values != None: pos = values[row] value = setting.Info[1][2][pos] comboBox.set_active(value)
value = values and setting.Info[1][2][values[row]] or 0 comboBox.set_active(value)
def MatchChanged(widget, match, entry): entry.set_text(match)
262f2ac64347d3ff0966eed8107b2f5eab5ff73b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7183/262f2ac64347d3ff0966eed8107b2f5eab5ff73b/Settings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4639, 5033, 12, 6587, 16, 845, 16, 1241, 4672, 1241, 18, 542, 67, 955, 12, 1916, 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, ...
[ 1, 1, 1, 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, 4639, 5033, 12, 6587, 16, 845, 16, 1241, 4672, 1241, 18, 542, 67, 955, 12, 1916, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
while data and '\n' not in buf:
while data and b'\n' not in buf:
def dgram_examine(self, proto, addr): s = socket.socket(proto, socket.SOCK_DGRAM) s.sendto(TEST_STR, addr) buf = data = receive(s, 100) while data and '\n' not in buf: data = receive(s, 100) buf += data self.assertEquals(buf, TEST_STR) s.close()
c190864e386a020aa922a1f36acf2200f2b77d7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/c190864e386a020aa922a1f36acf2200f2b77d7b/test_socketserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 3295, 67, 338, 301, 558, 12, 2890, 16, 3760, 16, 3091, 4672, 272, 273, 2987, 18, 7814, 12, 9393, 16, 2987, 18, 3584, 3507, 67, 40, 15370, 13, 272, 18, 4661, 869, 12, 16961, 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, 302, 3295, 67, 338, 301, 558, 12, 2890, 16, 3760, 16, 3091, 4672, 272, 273, 2987, 18, 7814, 12, 9393, 16, 2987, 18, 3584, 3507, 67, 40, 15370, 13, 272, 18, 4661, 869, 12, 16961, 67, ...
if not os.path.exists(overrides_file):
if not os.path.exists(overrides_path):
def test_expectations_overrides(self): try: overrides_file = self.path_from_chromium_base('webkit', 'tools', 'layout_tests', 'test_expectations.txt') except AssertionError: return None if not os.path.exists(overrides_file): return None with codecs.open(overrides_file, "r", "utf-8") as file return file.read()
bcb8d84079ed58d2a72f8ca9dcf8e5aa1ba723f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/bcb8d84079ed58d2a72f8ca9dcf8e5aa1ba723f5/chromium.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12339, 1012, 67, 19775, 12, 2890, 4672, 775, 30, 9515, 67, 768, 273, 365, 18, 803, 67, 2080, 67, 16298, 5077, 67, 1969, 2668, 29319, 2187, 296, 6642, 2187, 296, 6741, 67, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12339, 1012, 67, 19775, 12, 2890, 4672, 775, 30, 9515, 67, 768, 273, 365, 18, 803, 67, 2080, 67, 16298, 5077, 67, 1969, 2668, 29319, 2187, 296, 6642, 2187, 296, 6741, 67, 163...
self.displayName = _winreg.QueryValueEx( key, "Display" )[0] self.standardName = _winreg.QueryValueEx( key, "Std" )[0] self.daylightName = _winreg.QueryValueEx( key, "Dlt" )[0] self.staticInfo = WinTZI( key, "TZI" ) self._LoadDynamicInfoFromKey( key ) def _LoadDynamicInfoFromKey( self, key ):
self.displayName = _winreg.QueryValueEx(key, "Display")[0] self.standardName = _winreg.QueryValueEx(key, "Std")[0] self.daylightName = _winreg.QueryValueEx(key, "Dlt")[0] self.staticInfo = WinTZI(key, "TZI") self._LoadDynamicInfoFromKey(key) def _LoadDynamicInfoFromKey(self, key):
def _LoadInfoFromKey( self, key ): """Loads the information from an opened time zone registry key into relevant fields of this TZI object""" self.displayName = _winreg.QueryValueEx( key, "Display" )[0] self.standardName = _winreg.QueryValueEx( key, "Std" )[0] self.daylightName = _winreg.QueryValueEx( key, "Dlt" )[0] se...
c68039a3f4004e3fe46621e4c6512fd2401398fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/677/c68039a3f4004e3fe46621e4c6512fd2401398fc/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2563, 966, 1265, 653, 12, 365, 16, 498, 262, 30, 3536, 7968, 326, 1779, 628, 392, 10191, 813, 4157, 4023, 498, 1368, 9368, 1466, 434, 333, 399, 62, 45, 733, 8395, 365, 18, 5417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2563, 966, 1265, 653, 12, 365, 16, 498, 262, 30, 3536, 7968, 326, 1779, 628, 392, 10191, 813, 4157, 4023, 498, 1368, 9368, 1466, 434, 333, 399, 62, 45, 733, 8395, 365, 18, 5417, ...
def readFileToTraceGroup(self, filename, reclen = -1, timetol = -1, sampratetol = -1, dataflag = 1, skipnotdata = 1, dataquality = 1, verbose = 0):
def readFileToTraceGroup(self, filename, reclen= -1, timetol= -1, sampratetol= -1, dataflag=1, skipnotdata=1, dataquality=1, verbose=0):
def writeMSTraces(self, trace_list, outfile, reclen= -1, encoding=-1, byteorder=-1, flush=-1, verbose=0): """ Write Miniseed file from trace_list @param trace_list: List containing header informations and data. @param outfile: Name of the output file @param reclen: should be set to the desired data record length in by...
da81b4ce7064a28a168b56663efe435b307a52d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/da81b4ce7064a28a168b56663efe435b307a52d4/libmseed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 49, 882, 354, 764, 12, 2890, 16, 2606, 67, 1098, 16, 8756, 16, 283, 830, 275, 33, 300, 21, 16, 2688, 29711, 21, 16, 1160, 1019, 29711, 21, 16, 3663, 29711, 21, 16, 3988, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 49, 882, 354, 764, 12, 2890, 16, 2606, 67, 1098, 16, 8756, 16, 283, 830, 275, 33, 300, 21, 16, 2688, 29711, 21, 16, 1160, 1019, 29711, 21, 16, 3663, 29711, 21, 16, 3988, 33, ...
record_name = str(name) print "record history", record_history del record_history[:] print "record history", record_history record_history.register()
record_name = str(name) record_history.register() del record_history[:]
def start_recording(name): global record_name record_name = str(name) print "record history", record_history del record_history[:] print "record history", record_history record_history.register()
d4eb00e6e43f92aba44fc77c590809a545eb20c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6570/d4eb00e6e43f92aba44fc77c590809a545eb20c2/_cmdmemory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 3366, 310, 12, 529, 4672, 2552, 1409, 67, 529, 1409, 67, 529, 273, 609, 12, 529, 13, 1409, 67, 8189, 18, 4861, 1435, 1464, 1409, 67, 8189, 10531, 65, 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, 787, 67, 3366, 310, 12, 529, 4672, 2552, 1409, 67, 529, 1409, 67, 529, 273, 609, 12, 529, 13, 1409, 67, 8189, 18, 4861, 1435, 1464, 1409, 67, 8189, 10531, 65, 225, 2, -100, -100, -10...
security.declareProtected(permissions.View, 'pre_validate')
security.declareProtected(CMFCorePermissions.View, 'pre_validate')
def validate_field(self, name, value, errors): """Field's validate hook.
460696da815e0d1149ab34005370b03bdbb656a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/460696da815e0d1149ab34005370b03bdbb656a6/BaseObject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 1518, 12, 2890, 16, 508, 16, 460, 16, 1334, 4672, 3536, 974, 1807, 1954, 3953, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 1518, 12, 2890, 16, 508, 16, 460, 16, 1334, 4672, 3536, 974, 1807, 1954, 3953, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
nic_vf: Virtual Functions nic_pf: Physical Function (actual hardware)
vf: Virtual Functions pf: Physical Function (actual hardware)
def __init__(self, type="nic_vf", driver=None, driver_option=None, names=None, devices_requested=None): """ Initialize parameter 'type' which could be: nic_vf: Virtual Functions nic_pf: Physical Function (actual hardware) mixed: Both includes VFs and PFs
6e8f171f2a2144057363a038a74c2eb5ca549497 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/6e8f171f2a2144057363a038a74c2eb5ca549497/kvm_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 618, 1546, 18738, 67, 90, 74, 3113, 3419, 33, 7036, 16, 3419, 67, 3482, 33, 7036, 16, 1257, 33, 7036, 16, 7166, 67, 19065, 33, 7036, 4672, 3536, 9190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 618, 1546, 18738, 67, 90, 74, 3113, 3419, 33, 7036, 16, 3419, 67, 3482, 33, 7036, 16, 1257, 33, 7036, 16, 7166, 67, 19065, 33, 7036, 4672, 3536, 9190, ...
podcast_item, created = PodcastItem.objects.get_or_create(podcast=podcast, guid=id)
try: podcast_item, created = PodcastItem.objects.get_or_create(podcast=podcast, guid=id) except PodcastItem.MultipleObjectsReturned: PodcastItem.objects.filter(podcast=podcast, guid=id).delete() podcast_item, created = PodcastItem.objects.get_or_create(podcast=podcast, guid=id)
def gct(node, names): for name in names: if node.find(name) is None: continue value = node.find(name).text if name == 'pubDate': value = datetime.fromtimestamp( email.utils.mktime_tz( email.utils.parsedate_tz(value))) elif name == atom('published'): value = dateutil.parser.parse(value) elif name == '{itunes:}duration':...
d012e447e804bb8fe64ac0b7960b24f01d3945cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/d012e447e804bb8fe64ac0b7960b24f01d3945cc/rss.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 299, 12, 2159, 16, 1257, 4672, 364, 508, 316, 1257, 30, 309, 756, 18, 4720, 12, 529, 13, 353, 599, 30, 1324, 460, 273, 756, 18, 4720, 12, 529, 2934, 955, 309, 508, 422, 296, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 299, 12, 2159, 16, 1257, 4672, 364, 508, 316, 1257, 30, 309, 756, 18, 4720, 12, 529, 13, 353, 599, 30, 1324, 460, 273, 756, 18, 4720, 12, 529, 2934, 955, 309, 508, 422, 296, 1...
DebugPrint (0, "ERROR: " + str(e) + " exception caught while processing record ") DebugPrint (0, " This record has been LOST") return "ERROR: record lost due to internal error!"
DebugPrint (0, "ERROR: " + str(e) + " exception caught while processing record ") DebugPrint (0, " This record has been LOST") DebugPrintTraceback() return "ERROR: record lost due to internal error!"
def Send(record): global failedSendCount global suppressedCount global successfulSendCount try: DebugPrint(0, "***********************************************************") DebugPrint(4, "DEBUG: In Send(record)") DebugPrint(4, "DEBUG: Printing record to send") record.Print() DebugPrint(4, "DEBUG: Printing record to se...
b5229961d4b4d9734248596436019a238ceb3c4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/b5229961d4b4d9734248596436019a238ceb3c4b/Gratia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 12, 3366, 4672, 2552, 2535, 3826, 1380, 2552, 24448, 1380, 2552, 6873, 3826, 1380, 225, 775, 30, 4015, 5108, 12, 20, 16, 315, 5021, 19482, 636, 7388, 13, 4015, 5108, 12, 24, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2479, 12, 3366, 4672, 2552, 2535, 3826, 1380, 2552, 24448, 1380, 2552, 6873, 3826, 1380, 225, 775, 30, 4015, 5108, 12, 20, 16, 315, 5021, 19482, 636, 7388, 13, 4015, 5108, 12, 24, 16, ...
res = self._findFiles(ancestors,connection=connection)
res = self._findFiles( ancestors, connection = connection )
def _populateFileAncestors(self,lfns,connection=False): connection = self._getConnection(connection) successful = {} failed = {} for lfn,lfnDict in lfns.items(): originalFileID = lfnDict['FileID'] originalDepth = lfnDict.get('AncestorDepth',1) ancestors = lfnDict.get('Ancestors',[]) if lfn in ancestors: ancestors.remov...
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19936, 812, 28304, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 2535, 273, 2618, 364, 328, 4293, 16, 80, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19936, 812, 28304, 12, 2890, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 6873, 273, 2618, 2535, 273, 2618, 364, 328, 4293, 16, 80, 42...
'''This makes sure that no system resources are left open.
"""This makes sure that no system resources are left open.
def __del__(self): '''This makes sure that no system resources are left open. Python only garbage collects Python objects. Since OS file descriptors are not Python objects, so they must be handled manually. ''' if self.child_fd is not -1: os.close (self.child_fd)
a6436229531e4cc3cceb58c0322f4ecc258e53d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/a6436229531e4cc3cceb58c0322f4ecc258e53d4/pexpect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 2890, 4672, 3536, 2503, 7297, 3071, 716, 1158, 2619, 2703, 854, 2002, 1696, 18, 6600, 1338, 15340, 30976, 6600, 2184, 18, 7897, 5932, 585, 14215, 854, 486, 6600, 2184,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3771, 972, 12, 2890, 4672, 3536, 2503, 7297, 3071, 716, 1158, 2619, 2703, 854, 2002, 1696, 18, 6600, 1338, 15340, 30976, 6600, 2184, 18, 7897, 5932, 585, 14215, 854, 486, 6600, 2184,...
if number_format_id <= 164:
if number_format_id < 164:
def read_style_table(xml_source): table = {} xmlns = 'http://schemas.openxmlformats.org/spreadsheetml/2006/main' root = fromstring(text = xml_source) custom_num_formats = parse_custom_num_formats(root, xmlns) builtin_formats = NumberFormat._BUILTIN_FORMATS cell_xfs = root.find(QName(xmlns, 'cellXfs').text) cell_...
6ef56f5473c970123f75c0d395cd5423389e9616 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1351/6ef56f5473c970123f75c0d395cd5423389e9616/style.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4060, 67, 2121, 12, 2902, 67, 3168, 4672, 225, 1014, 273, 2618, 225, 12302, 273, 296, 2505, 2207, 17928, 18, 3190, 2902, 11962, 18, 3341, 19, 26007, 8118, 781, 19, 6976, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4060, 67, 2121, 12, 2902, 67, 3168, 4672, 225, 1014, 273, 2618, 225, 12302, 273, 296, 2505, 2207, 17928, 18, 3190, 2902, 11962, 18, 3341, 19, 26007, 8118, 781, 19, 6976, 26, 1...
self.announce ("making hard links in %s..." % base_dir)
try: link = os.link msg = "making hard links in %s..." % base_dir except AttributeError: link = 0 msg = "copying files to %s..." % base_dir self.announce (msg)
def make_release_tree (self, base_dir, files):
295279b0a41fae4e77cc443c4f7827918bfcba06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/295279b0a41fae4e77cc443c4f7827918bfcba06/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 9340, 67, 3413, 261, 2890, 16, 1026, 67, 1214, 16, 1390, 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...
[ 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, 1221, 67, 9340, 67, 3413, 261, 2890, 16, 1026, 67, 1214, 16, 1390, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self._menub.SetValue(True)
if wx.Platform == '__WXMAC__': self._menub.SetValue(True)
def OnButton(self, evt): """Pops the menu open when the button has been clicked on""" e_id = evt.GetId() if e_id == self.ID_PATHS: men_rect = self._menub.GetRect() pos = wx.Point(0, men_rect.GetY() + men_rect.GetHeight()) self._menub.SetValue(True) self._menub.PopupMenu(self._menu, pos) self._menub.SetValue(False) else...
e90e499ee5b7bec434002466ca98e8c18ca9a363 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/e90e499ee5b7bec434002466ca98e8c18ca9a363/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3616, 12, 2890, 16, 6324, 4672, 3536, 52, 4473, 326, 3824, 1696, 1347, 326, 3568, 711, 2118, 17688, 603, 8395, 425, 67, 350, 273, 6324, 18, 967, 548, 1435, 309, 425, 67, 350, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 3616, 12, 2890, 16, 6324, 4672, 3536, 52, 4473, 326, 3824, 1696, 1347, 326, 3568, 711, 2118, 17688, 603, 8395, 425, 67, 350, 273, 6324, 18, 967, 548, 1435, 309, 425, 67, 350, 422...
zipfname = os.path.basename(filename) name_in_archive = zipfname if len(zipfname) > 3: dot = zipfname.rfind('.') name_in_archive = zipfname[:dot] xmlfname = os.path.join(core.system.temporary_directory(),name_in_archive)
"""save_vistrail_to_zip_xml(vistrail: Vistrail, filename:str)-> None Generate a zip compressed version of vistrail. It raise an Exception if there was an error """ (file_, xmlfname) = tempfile.mkstemp(suffix='.xml') os.close(file_) name_in_archive = os.path.join(os.path.dirname(xmlfname),'vistrail')
def save_vistrail_to_zip_xml(vistrail, filename): zipfname = os.path.basename(filename) name_in_archive = zipfname if len(zipfname) > 3: dot = zipfname.rfind('.') name_in_archive = zipfname[:dot] xmlfname = os.path.join(core.system.temporary_directory(),name_in_archive) save_vistrail_to_xml(vistrail,xmlfname) core.requ...
d2e792d72bd9ef0551682768f3b59ab7ada66fae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/d2e792d72bd9ef0551682768f3b59ab7ada66fae/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 90, 3337, 671, 67, 869, 67, 4450, 67, 2902, 12, 90, 3337, 671, 16, 1544, 4672, 3536, 5688, 67, 90, 3337, 671, 67, 869, 67, 4450, 67, 2902, 12, 90, 3337, 671, 30, 776, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 90, 3337, 671, 67, 869, 67, 4450, 67, 2902, 12, 90, 3337, 671, 16, 1544, 4672, 3536, 5688, 67, 90, 3337, 671, 67, 869, 67, 4450, 67, 2902, 12, 90, 3337, 671, 30, 776, 333...
query_result = run_sql(SQL_query) if len(query_result) > 0: for row in query_result : i+=1 list += ["""<A href="../youralerts.py/modify?idq=%d&name=%s&freq=%s&notif=%s&idb=%d&old_idb=%d">%s</A> """%(row[0],row[5],row[6],row[7],id_basket,old_id_basket,row[5])] options += """<OPTION value=%d>%s</OPTION>""" % (i,row[5])...
query_result = run_sql(SQL_query) out += """<FORM name="displayalert" action="../youralerts.py/list" method="post">"""
def account_list_alerts(uid, action="", id_alert=0, id_basket=0,old_id_basket=0,newname=""): i=0 # set variables out = "" options = "" id_user = uid # XXX list=[] SQL_query = """ SELECT q.id, q.urlargs, a.id_user, a.id_query, a.id_basket, a.alert_name, a.frequency, a.notification, DATE_FORMAT(a.date_creation,'%%d %%b %...
a3db399b0debac6b3502af9381c04d5ee1aa6082 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/a3db399b0debac6b3502af9381c04d5ee1aa6082/webalert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 1098, 67, 11798, 87, 12, 1911, 16, 1301, 1546, 3113, 612, 67, 11798, 33, 20, 16, 612, 67, 26219, 33, 20, 16, 1673, 67, 350, 67, 26219, 33, 20, 16, 2704, 529, 1546, 6, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2236, 67, 1098, 67, 11798, 87, 12, 1911, 16, 1301, 1546, 3113, 612, 67, 11798, 33, 20, 16, 612, 67, 26219, 33, 20, 16, 1673, 67, 350, 67, 26219, 33, 20, 16, 2704, 529, 1546, 6, 467...
print 'Making ', os.path.join(dir, subdir)
def initializeMaildir(dir): if not os.path.isdir(dir): os.mkdir(dir) for subdir in ['new', 'cur', 'tmp', '.Trash']: print 'Making ', os.path.join(dir, subdir) os.mkdir(os.path.join(dir, subdir)) for subdir in ['new', 'cur', 'tmp']: print 'Making ', os.path.join(dir, '.Trash', subdir) os.mkdir(os.path.join(dir, '.Trash'...
f62141284f70e03e38c8b10f4f5067d1711d8d0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/f62141284f70e03e38c8b10f4f5067d1711d8d0a/maildir.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 49, 69, 545, 481, 12, 1214, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 1214, 4672, 1140, 18, 26686, 12, 1214, 13, 364, 16921, 316, 10228, 2704, 2187, 296, 1397, 2187, 296,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 49, 69, 545, 481, 12, 1214, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 1214, 4672, 1140, 18, 26686, 12, 1214, 13, 364, 16921, 316, 10228, 2704, 2187, 296, 1397, 2187, 296,...
for i in xrange(self.latticeSize.width):
for i in xrange(x) :
def update_factor_concentrations(self, currentState): """Update function of the simulator, calculates the factor concentrations of the next timestep.
c0740bdaa035187eb5e0596d71a0ffb7dfff28a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1770/c0740bdaa035187eb5e0596d71a0ffb7dfff28a9/translattice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 6812, 67, 11504, 8230, 1012, 12, 2890, 16, 17773, 4672, 3536, 1891, 445, 434, 326, 3142, 11775, 16, 17264, 326, 5578, 20570, 8230, 1012, 434, 326, 1024, 27072, 18, 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, 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, 1089, 67, 6812, 67, 11504, 8230, 1012, 12, 2890, 16, 17773, 4672, 3536, 1891, 445, 434, 326, 3142, 11775, 16, 17264, 326, 5578, 20570, 8230, 1012, 434, 326, 1024, 27072, 18, 2, -100, -10...
self.endTagHandler.default = self.processAnythingElse
self.endTagHandler.default = self.endTagOther
def __init__(self, parser, tree): Phase.__init__(self, parser, tree)
0bf97576c038bea022065520abf38c5ff3c96688 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/0bf97576c038bea022065520abf38c5ff3c96688/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 4672, 19459, 16186, 2738, 972, 12, 2890, 16, 2082, 16, 2151, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sortedDoLaterList.sort()
sortedDoLaterList.sort(lambda a,b: cmp(a.getWakeTime(), b.getWakeTime()))
def __repr__(self): taskNameWidth = 32 dtWidth = 10 priorityWidth = 10 totalDt = 0 totalAvgDt = 0 str = "The taskMgr is handling:\n" str += ('taskList'.ljust(taskNameWidth) + 'dt(ms)'.rjust(dtWidth) + 'avg'.rjust(dtWidth) + 'max'.rjust(dtWidth) + 'priority'.rjust(priorityWidth) + '\n') str += '-------------------------...
2d3afd2dcc65fb55a060b2607109eb4ffa65711d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/2d3afd2dcc65fb55a060b2607109eb4ffa65711d/Task.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 20172, 2384, 273, 3847, 3681, 2384, 273, 1728, 4394, 2384, 273, 1728, 2078, 19739, 273, 374, 2078, 22823, 19739, 273, 374, 609, 273, 315, 1986, 1562, 9455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 20172, 2384, 273, 3847, 3681, 2384, 273, 1728, 4394, 2384, 273, 1728, 2078, 19739, 273, 374, 2078, 22823, 19739, 273, 374, 609, 273, 315, 1986, 1562, 9455...
return gtk.Dialog.run(self)
return super(AddTagDialog, self).run()
def run(self): self.show() self.__val.set_activates_default(True) self.__tag.grab_focus() return gtk.Dialog.run(self)
e17c14923098f5b9bcd8929f8359fdba9ad0bf96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/e17c14923098f5b9bcd8929f8359fdba9ad0bf96/edittags.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 365, 18, 4500, 1435, 365, 16186, 1125, 18, 542, 67, 11422, 815, 67, 1886, 12, 5510, 13, 365, 16186, 2692, 18, 2752, 70, 67, 13923, 1435, 327, 22718, 18, 6353, 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, 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, 4672, 365, 18, 4500, 1435, 365, 16186, 1125, 18, 542, 67, 11422, 815, 67, 1886, 12, 5510, 13, 365, 16186, 2692, 18, 2752, 70, 67, 13923, 1435, 327, 22718, 18, 6353, 18,...
read = read + str(buf[0:n]) if self.timeout == 0: break
read = read + str(buf[:n]) if getq != n: break
def read(self, size=1): "read num bytes from serial port" if not self.hComPort: raise portNotOpenError #print "read %d" %size ####debug read = '' if size > 0: while len(read) < size: flags, comstat = win32file.ClearCommError( self.hComPort ) rc, buf = win32file.ReadFile(self.hComPort, size-len(read), self.ove...
e82f860cad57f21d2a95478817dfedc9358b7404 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/e82f860cad57f21d2a95478817dfedc9358b7404/serialwin32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 21, 4672, 315, 896, 818, 1731, 628, 2734, 1756, 6, 309, 486, 365, 18, 76, 799, 2617, 30, 1002, 1756, 1248, 3678, 668, 468, 1188, 315, 896, 738, 72, 6, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 21, 4672, 315, 896, 818, 1731, 628, 2734, 1756, 6, 309, 486, 365, 18, 76, 799, 2617, 30, 1002, 1756, 1248, 3678, 668, 468, 1188, 315, 896, 738, 72, 6, 7...
checkViewer('a Postscript previewer', ['kghostview', 'evince', 'gv', 'ghostview -swap'],
checkViewer('a Postscript previewer', ['xdg-open', 'kghostview', 'evince', 'gv', 'ghostview -swap'],
def checkFormatEntries(dtl_tools): ''' Check all formats (\Format entries) ''' checkViewer('a Tgif viewer and editor', ['tgif'], rc_entry = [r'\Format tgif obj Tgif "" "%%" "%%" "vector"']) # checkViewer('a FIG viewer and editor', ['xfig'], rc_entry = [r'\Format fig fig FIG ...
b716ccd1a0f454f33b10214b6de221249c43bcbb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/b716ccd1a0f454f33b10214b6de221249c43bcbb/configure.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1630, 5400, 12, 72, 6172, 67, 6642, 4672, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 18415, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 1630, 5400, 12, 72, 6172, 67, 6642, 4672, 9163, 2073, 777, 6449, 17938, 1630, 3222, 13, 9163, 866, 18415, 2668, 69, 399, 13905, 14157, 471, 4858, 2187, 10228, 88, 13905, 17337, 4519, ...
def properties_to_dict(self, properties, version={}):
def properties_to_dict(self, properties, version=None):
def properties_to_dict(self, properties, version={}): """ Add the given "properties" as Property objects or Property objects list to the given dictionnary "version". """ # Fix the type for name, value in properties.items(): datatype = self.get_datatype(name) if getattr(datatype, 'multiple', False) is True: if not isins...
12710aa5a777bcfd382c45d1bb58eef6b1b58fe9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/12710aa5a777bcfd382c45d1bb58eef6b1b58fe9/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1790, 67, 869, 67, 1576, 12, 2890, 16, 1790, 16, 1177, 33, 7036, 4672, 3536, 1436, 326, 864, 315, 4738, 6, 487, 4276, 2184, 578, 4276, 2184, 666, 358, 326, 864, 302, 2228, 82, 814, 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, 1790, 67, 869, 67, 1576, 12, 2890, 16, 1790, 16, 1177, 33, 7036, 4672, 3536, 1436, 326, 864, 315, 4738, 6, 487, 4276, 2184, 578, 4276, 2184, 666, 358, 326, 864, 302, 2228, 82, 814, 3...
if DEBUGLEVEL > 0:
if cfg_webalert_debug_level > 0:
def email_notify(alert, records, argstr): if len(records) == 0: return msg = "" if DEBUGLEVEL > 0: msg = "*** THIS MESSAGE WAS SENT IN DEBUG MODE ***\n\n" url = weburl + "/search?" + argstr # Extract the pattern and catalogue list from the formatted query query = parse_qs(argstr) pattern = query.get('p', [''])[0] ...
4fd01212b0b6dbfa56793eba65cfa032cbf36bc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/4fd01212b0b6dbfa56793eba65cfa032cbf36bc9/alert_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 12336, 12, 11798, 16, 3853, 16, 833, 313, 4672, 225, 309, 562, 12, 7094, 13, 422, 374, 30, 327, 225, 1234, 273, 1408, 225, 309, 2776, 67, 4875, 11798, 67, 4148, 67, 2815, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 12336, 12, 11798, 16, 3853, 16, 833, 313, 4672, 225, 309, 562, 12, 7094, 13, 422, 374, 30, 327, 225, 1234, 273, 1408, 225, 309, 2776, 67, 4875, 11798, 67, 4148, 67, 2815, 4...
self.list.append(getConfigListEntry("", currLnb.longitudeOrientation))
self.list.append(getConfigListEntry(" ", currLnb.longitudeOrientation))
def createSetup(self): print "Creating setup" self.list = [ ]
9367972819cbb4afbedb465e32167cc7ef310c54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/9367972819cbb4afbedb465e32167cc7ef310c54/Satconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 7365, 12, 2890, 4672, 1172, 315, 11092, 3875, 6, 365, 18, 1098, 273, 306, 308, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 7365, 12, 2890, 4672, 1172, 315, 11092, 3875, 6, 365, 18, 1098, 273, 306, 308, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.tk.call(self._w, 'delete', 'siblings', entry)
self.tk.call(self._w, 'delete', 'siblings', entry)
def delete_siblings(self, entry):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 6044, 11603, 12, 2890, 16, 1241, 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, ...
[ 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, 1430, 67, 6044, 11603, 12, 2890, 16, 1241, 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...
does this itself and make sure everything is reloaded properly
does this itself and make sure everything is reloaded properly
def reload_settings(self, proc): """ Used to re-load settings after the settings dialog has been closed. FIXME: This probably doesn't belong here, ideally the settings manager does this itself and make sure everything is reloaded properly after the settings dialogs saves. """ def do_reload_settings(): globals()["sett...
6268447808016e08552fea26797a7dc725fdd8d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/6268447808016e08552fea26797a7dc725fdd8d3/RabbitVCS.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 67, 4272, 12, 2890, 16, 5418, 4672, 3536, 10286, 358, 283, 17, 945, 1947, 1839, 326, 1947, 6176, 711, 2118, 4375, 18, 225, 9852, 30, 1220, 8656, 3302, 1404, 10957, 2674, 16, 10572,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7749, 67, 4272, 12, 2890, 16, 5418, 4672, 3536, 10286, 358, 283, 17, 945, 1947, 1839, 326, 1947, 6176, 711, 2118, 4375, 18, 225, 9852, 30, 1220, 8656, 3302, 1404, 10957, 2674, 16, 10572,...
print "Eeek - couldn't get the folder to check valid"
print "Eeek - couldn't get the folder to check " \ "valid:", details
def _CheckSelectionsValid(self, is_close = False): if self.in_check_selections_valid: return self.in_check_selections_valid = True try: if self.single_select: if is_close: # Make sure one is selected. for ignore in self._YieldCheckedChildren(): break else: self.manager.ReportInformation("You must select a folder") retu...
668659e1cf010b74d2fb2f93e0b6a930a72b4ced /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/668659e1cf010b74d2fb2f93e0b6a930a72b4ced/FolderSelector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1564, 29913, 1556, 12, 2890, 16, 353, 67, 4412, 273, 1083, 4672, 309, 365, 18, 267, 67, 1893, 67, 10705, 87, 67, 877, 30, 327, 365, 18, 267, 67, 1893, 67, 10705, 87, 67, 877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1564, 29913, 1556, 12, 2890, 16, 353, 67, 4412, 273, 1083, 4672, 309, 365, 18, 267, 67, 1893, 67, 10705, 87, 67, 877, 30, 327, 365, 18, 267, 67, 1893, 67, 10705, 87, 67, 877, ...
return "[+ FOR kernel +]" + under_conditional(each_platform(lambda p: kernel(p))) + "[+ ENDFOR +]"
return "[+ FOR kernel +]" + each_platform( lambda p: under_platform_specific_conditionals(p, kernel(p))) + "[+ ENDFOR +]"
def kernel_rules(): return "[+ FOR kernel +]" + under_conditional(each_platform(lambda p: kernel(p))) + "[+ ENDFOR +]"
c8d22d34fb910911782f3cb62d58a3495edc8286 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9475/c8d22d34fb910911782f3cb62d58a3495edc8286/gentpl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5536, 67, 7482, 13332, 327, 5158, 15, 12108, 5536, 397, 4279, 397, 1517, 67, 9898, 12, 3195, 293, 30, 3613, 67, 9898, 67, 12524, 67, 4175, 1031, 12, 84, 16, 5536, 12, 84, 20349, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5536, 67, 7482, 13332, 327, 5158, 15, 12108, 5536, 397, 4279, 397, 1517, 67, 9898, 12, 3195, 293, 30, 3613, 67, 9898, 67, 12524, 67, 4175, 1031, 12, 84, 16, 5536, 12, 84, 20349, 397, ...
directive = m.group(0)
directive = m.group(0).strip()
as they would be in makefile syntax. Internal define/endef pairs are ignored.
5dfffff0e6f806c56671187b4bf1035cd2e88570 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7005/5dfffff0e6f806c56671187b4bf1035cd2e88570/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 487, 2898, 4102, 506, 316, 1221, 768, 6279, 18, 3186, 4426, 19, 275, 536, 5574, 854, 5455, 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, 487, 2898, 4102, 506, 316, 1221, 768, 6279, 18, 3186, 4426, 19, 275, 536, 5574, 854, 5455, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print "Doing make " + dbgStr + " " + clean + " all binaries install\n" log.write("Doing make " + dbgStr + " " + clean + " all binaries install\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr, clean, "all binaries install" ])
buildCmds = ' all binaries install' print "Doing make " + dbgStr + " " + clean + buildCmds + "\n" log.write("Doing make " + dbgStr + " " + clean + buildCmds + "\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr, clean, buildCmds ])
def doBuild(buildmode, workingDir, log, cvsChanges, clean='realclean'): # We only build external if there were changes in it # We build internal if external or internal were changed # We never build in chandler, because there is nothing to build if buildmode == "debug": dbgStr = "DEBUG=1" else: dbgStr = "" buildRoot =...
a67f4c3d0dc689961680b8791270b83556cb91ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a67f4c3d0dc689961680b8791270b83556cb91ad/fullchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3116, 12, 3510, 3188, 16, 5960, 1621, 16, 613, 16, 276, 6904, 7173, 16, 2721, 2218, 7688, 6200, 11, 4672, 468, 1660, 1338, 1361, 3903, 309, 1915, 4591, 3478, 316, 518, 468, 1660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3116, 12, 3510, 3188, 16, 5960, 1621, 16, 613, 16, 276, 6904, 7173, 16, 2721, 2218, 7688, 6200, 11, 4672, 468, 1660, 1338, 1361, 3903, 309, 1915, 4591, 3478, 316, 518, 468, 1660, ...