rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
if notification.data.registration is not None: route = notification.data.route if notification.data.next_route: next_route = notification.data.next_route next_route_text = 'Trying next route %s:%d;transport=%s.' % (next_route.address, next_route.port, next_route.transport) else: next_route_text = 'No more routes to try...
self.output.put('%s Failed to register contact for sip:%s: %s (retrying in %.2f seconds)\n' % (datetime.now().replace(microsecond=0), self.account.id, notification.data.error, notification.data.timeout))
def _NH_SIPAccountRegistrationDidFail(self, notification): if notification.data.registration is not None: route = notification.data.route if notification.data.next_route: next_route = notification.data.next_route next_route_text = 'Trying next route %s:%d;transport=%s.' % (next_route.address, next_route.port, next_rout...
10da3d316b246fbfc61503bf1361db6c121c92c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/10da3d316b246fbfc61503bf1361db6c121c92c8/sip_message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 17739, 3032, 7843, 18250, 3754, 12, 2890, 16, 3851, 4672, 309, 3851, 18, 892, 18, 14170, 353, 486, 599, 30, 1946, 273, 3851, 18, 892, 18, 5547, 309, 3851, 18, 892, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50, 44, 67, 17739, 3032, 7843, 18250, 3754, 12, 2890, 16, 3851, 4672, 309, 3851, 18, 892, 18, 14170, 353, 486, 599, 30, 1946, 273, 3851, 18, 892, 18, 5547, 309, 3851, 18, 892, 1...
model, selection_iter = selection.get_selected()
model, selection_iter = selection.get_selected()
def get_selected_task(self, tv=None): uid = None if not tv: tview = self.task_tview else: tview = tv # Get the selection in the gtk.TreeView selection = tview.get_selection() #If we don't have anything and no tview specified #Let's have a look in the closed task view if selection and selection.count_selected_rows() <= ...
fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8109, 67, 4146, 12, 2890, 16, 13521, 33, 7036, 4672, 4555, 273, 599, 309, 486, 13521, 30, 268, 1945, 273, 365, 18, 4146, 67, 88, 1945, 469, 30, 268, 1945, 273, 13521, 468, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8109, 67, 4146, 12, 2890, 16, 13521, 33, 7036, 4672, 4555, 273, 599, 309, 486, 13521, 30, 268, 1945, 273, 365, 18, 4146, 67, 88, 1945, 469, 30, 268, 1945, 273, 13521, 468, 9...
data.byteswap()
if big_endian: data.byteswap()
def readframes(self, nframes): if self._data_seek_needed: self._data_chunk.rewind() pos = self._soundpos * self._framesize if pos: self._data_chunk.setpos(pos) self._data_seek_needed = 0 if nframes == 0: return '' if self._sampwidth > 1: # unfortunately the fromfile() method does not take # something that only looks li...
ebb9c922cb1f1b72fe929cfba223e42df7492a1c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ebb9c922cb1f1b72fe929cfba223e42df7492a1c/wave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 10278, 12, 2890, 16, 290, 10278, 4672, 309, 365, 6315, 892, 67, 16508, 67, 17471, 30, 365, 6315, 892, 67, 6551, 18, 266, 10094, 1435, 949, 273, 365, 6315, 29671, 917, 380, 365, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 10278, 12, 2890, 16, 290, 10278, 4672, 309, 365, 6315, 892, 67, 16508, 67, 17471, 30, 365, 6315, 892, 67, 6551, 18, 266, 10094, 1435, 949, 273, 365, 6315, 29671, 917, 380, 365, 63...
"""
""" % (release, release)
def makeSource(release): return """deb http://archive.ubuntu.com/ubuntu/ %s main restricted universe multiverse
b2193d52ad9353e3581ae854c5da52d2073f1610 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3102/b2193d52ad9353e3581ae854c5da52d2073f1610/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1830, 12, 9340, 4672, 327, 3536, 31888, 1062, 2207, 10686, 18, 373, 25348, 18, 832, 19, 373, 25348, 19, 738, 87, 2774, 15693, 29235, 1778, 17488, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1830, 12, 9340, 4672, 327, 3536, 31888, 1062, 2207, 10686, 18, 373, 25348, 18, 832, 19, 373, 25348, 19, 738, 87, 2774, 15693, 29235, 1778, 17488, 2, -100, -100, -100, -100, -100, -...
and not hasattr(self, "ladder"):
and not (self.isAxisChunk() or self.isStrandChunk()):
def setDisplay(self, disp): # TODO: optimize when self.display == disp, since I just reviewed # all calls and this looks safe. (Ditto with Atom version of this # method.) [bruce comment 080305 @@@@] """ change self's display mode """ if self.display == disp: #bruce 080305 optimization; looks safe after review of all ca...
4224694ce5c1dddab7e2ae38be893359901c4e54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4224694ce5c1dddab7e2ae38be893359901c4e54/chunk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23512, 12, 2890, 16, 16232, 4672, 468, 2660, 30, 10979, 1347, 365, 18, 5417, 422, 16232, 16, 3241, 467, 2537, 10725, 329, 468, 777, 4097, 471, 333, 10192, 4183, 18, 261, 40, 305, 869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23512, 12, 2890, 16, 16232, 4672, 468, 2660, 30, 10979, 1347, 365, 18, 5417, 422, 16232, 16, 3241, 467, 2537, 10725, 329, 468, 777, 4097, 471, 333, 10192, 4183, 18, 261, 40, 305, 869, ...
if options.silent: self.displayShortResults(sys.stdout, True, None, self.counters) else: sys.stdout.write("===========================\n") self.displayResults(sys.stdout, True, None, self.counters)
if options.silent: self.displayShortResults(sys.stdout, True, None, self.counters) else: sys.stdout.write("===========================\n") self.displayResults(sys.stdout, True, None, self.counters)
def run(self):
a918b5b08ac20d4e7c765bdce653969ebad6c315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/a918b5b08ac20d4e7c765bdce653969ebad6c315/xstc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
result += "-0x%x" % abs(self._disp)
result += "-0x%x" % abs(self.disp)
def _toText(self): if self._type == OPERAND_IMMEDIATE: if self._value >= 0: return "0x%x" % self._value else: return "-0x%x" % abs(self._value) elif self._type == OPERAND_REGISTER: return self.GetName() elif self._type == OPERAND_ABSOLUTE_ADDRESS: return '[0x%x]' % self._disp elif self._type == OPERAND_FAR_MEMORY: retu...
7c2914851425839fab07457054443c7767eb9683 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8360/7c2914851425839fab07457054443c7767eb9683/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1528, 12, 2890, 4672, 309, 365, 6315, 723, 422, 17205, 4307, 67, 3445, 15971, 1777, 30, 309, 365, 6315, 1132, 1545, 374, 30, 327, 315, 20, 92, 9, 92, 6, 738, 365, 6315, 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, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1528, 12, 2890, 4672, 309, 365, 6315, 723, 422, 17205, 4307, 67, 3445, 15971, 1777, 30, 309, 365, 6315, 1132, 1545, 374, 30, 327, 315, 20, 92, 9, 92, 6, 738, 365, 6315, 113...
- ``u`` - vertex at which to start search - ``ignore_direction`` - (default False) only applies to directed graphs. If True, searches across edges in either direction. EXAMPLES:: sage: G = Graph( { 0: {1: 1}, 1: {2: 1}, 2: {3: 1}, 3: {4: 2}, 4: {0: 2} } )
- ``start`` - vertex or list of vertices from which to start the traversal - ``ignore_direction`` - (default False) only applies to directed graphs. If True, searches across edges in either direction. - ``distance`` - the maximum distance from the ``start`` nodes to traverse. The ``start`` nodes are distance zero fr...
def breadth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a breadth-first ordering.
9d535ef33940ee3901e4b9966c012168cfeef72c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9d535ef33940ee3901e4b9966c012168cfeef72c/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 25254, 67, 3645, 67, 3072, 12, 2890, 16, 582, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 6928, 316, 279, 324, 25254, 17, 3645, 9543, 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, 324, 25254, 67, 3645, 67, 3072, 12, 2890, 16, 582, 16, 2305, 67, 9855, 33, 8381, 4672, 3536, 2860, 392, 2775, 1879, 6928, 316, 279, 324, 25254, 17, 3645, 9543, 18, 2, -100, -100, -100,...
["../waste/Static Libraries"])
["../"*n + "waste/Static Libraries" for n in (0,1,2,3,4)])
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
86da0b3d77eb01699271cbb263b578f077f88a51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/86da0b3d77eb01699271cbb263b578f077f88a51/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
_wordchars_re = re.compile(r'[^\\\'\"\ ]*')
_wordchars_re = re.compile(r'[^\\\'\"%s ]*' % string.whitespace)
def grok_environment_error (exc, prefix="error: "): """Generate a useful error message from an EnvironmentError (IOError or OSError) exception object. Handles Python 1.5.1 and 1.5.2 styles, and does what it can to deal with exception objects that don't have a filename (which happens when the error is due to a two-file...
808d09497c0f1bdb0f5c30f4816d58ac8eb49002 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/808d09497c0f1bdb0f5c30f4816d58ac8eb49002/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 3250, 67, 10274, 67, 1636, 261, 10075, 16, 1633, 1546, 1636, 30, 315, 4672, 3536, 4625, 279, 5301, 555, 883, 628, 392, 7518, 668, 261, 4294, 668, 578, 10002, 13, 1520, 733, 18, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3250, 67, 10274, 67, 1636, 261, 10075, 16, 1633, 1546, 1636, 30, 315, 4672, 3536, 4625, 279, 5301, 555, 883, 628, 392, 7518, 668, 261, 4294, 668, 578, 10002, 13, 1520, 733, 18, 22...
) as inq
def getNewTroveList(self, authToken, clientVersion, mark): try: mark = long(mark) except: # deny invalid marks raise errors.InsufficientPermission
91d7ab7a8240dbb3ab80a0adefc061f13820982c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/91d7ab7a8240dbb3ab80a0adefc061f13820982c/netserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12654, 56, 303, 537, 682, 12, 2890, 16, 24050, 16, 1004, 1444, 16, 2267, 4672, 775, 30, 2267, 273, 1525, 12, 3355, 13, 1335, 30, 468, 17096, 2057, 13999, 1002, 1334, 18, 5048, 11339, 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, 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, 12654, 56, 303, 537, 682, 12, 2890, 16, 24050, 16, 1004, 1444, 16, 2267, 4672, 775, 30, 2267, 273, 1525, 12, 3355, 13, 1335, 30, 468, 17096, 2057, 13999, 1002, 1334, 18, 5048, 11339, 5...
node.type.key_type = self._resolve(element_type[0]) node.type.value_type = self._resolve(element_type[1])
node.type.key_type = self._resolve(element_type[0], parent) node.type.value_type = self._resolve(element_type[1], parent)
def _apply_annotations_element_type(self, parent, node, options): element_type_opt = options.get(OPT_ELEMENT_TYPE) element_type = element_type_opt.flat() if isinstance(node.type, ast.List): assert len(element_type) == 1 node.type.element_type = self._resolve(element_type[0]) elif isinstance(node.type, ast.Map): assert ...
4577bf1a7f6dc33d1ff566ae8d1360f1fde769f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/4577bf1a7f6dc33d1ff566ae8d1360f1fde769f9/maintransformer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9010, 67, 14670, 67, 2956, 67, 723, 12, 2890, 16, 982, 16, 756, 16, 702, 4672, 930, 67, 723, 67, 3838, 273, 702, 18, 588, 12, 15620, 67, 10976, 67, 2399, 13, 930, 67, 723, 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, 9010, 67, 14670, 67, 2956, 67, 723, 12, 2890, 16, 982, 16, 756, 16, 702, 4672, 930, 67, 723, 67, 3838, 273, 702, 18, 588, 12, 15620, 67, 10976, 67, 2399, 13, 930, 67, 723, 273...
self.learner = learner or SVMLearner(kernel_type=orange.SVMLearner.Linear)
self.learner = learner or SVMLearner(kernel_type=orange.SVMLearner.Linear, normalization=False)
def __init__(self, learner=None): self.learner = learner or SVMLearner(kernel_type=orange.SVMLearner.Linear)
5b752fa297e4e1a9f47e1fd1094721a4f0810d7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/5b752fa297e4e1a9f47e1fd1094721a4f0810d7b/orngSVM.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 884, 24834, 33, 7036, 4672, 365, 18, 298, 24834, 273, 884, 24834, 578, 29537, 1495, 2091, 1224, 12, 8111, 67, 723, 33, 280, 726, 18, 23927, 1495, 2091, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 884, 24834, 33, 7036, 4672, 365, 18, 298, 24834, 273, 884, 24834, 578, 29537, 1495, 2091, 1224, 12, 8111, 67, 723, 33, 280, 726, 18, 23927, 1495, 2091, 1...
print (path, garbage)
def retrieve(self, url, filename=None): url = unwrap(url) if self.tempcache and self.tempcache.has_key(url): return self.tempcache[url] type, url1 = splittype(url) if not filename and (not type or type == 'file'): try: fp = self.open_local_file(url1) hdrs = fp.info() del fp return url2pathname(splithost(url1)[1]), hdrs...
d3ae7bd68cbe12dc8de31911aa5c8abf07b5a127 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d3ae7bd68cbe12dc8de31911aa5c8abf07b5a127/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 4672, 880, 273, 11014, 12, 718, 13, 309, 365, 18, 874, 2436, 807, 471, 365, 18, 874, 2436, 807, 18, 5332, 67, 856, 12, 718, 4672, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4614, 12, 2890, 16, 880, 16, 1544, 33, 7036, 4672, 880, 273, 11014, 12, 718, 13, 309, 365, 18, 874, 2436, 807, 471, 365, 18, 874, 2436, 807, 18, 5332, 67, 856, 12, 718, 4672, 327, ...
try: self['threads'][thread]['downloads'][-1]['minSize'] = self.getint(thread, i)
try: self['threads'][thread]['downloads'][-1]['minSize'] = ( self.getint(thread, i))
def parse(self): for option in self.boolOptionsGlobal: try: if option.lower() in self.options('global'): try: self['global'][option] = self.getboolean('global', option) except ValueError: print >> sys.stderr, u'failed to parse option %s in global' % option except ConfigParser.NoSectionError, m: raise SystemExit(unicode...
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 364, 1456, 316, 365, 18, 6430, 1320, 5160, 30, 775, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 364, 1456, 316, 365, 18, 6430, 1320, 5160, 30, 775, 30, 309, 1456, 18, 8167, 1435, 316, 365, 18, 2116, 2668, 6347, 11, 4672, 775, 30, 365, 3292, 6347, 3546, 63, ...
print 'SKIP URL ' + text
if debug: print 'SKIP URL ' + text
def check_list(text, cl): for entry in cl: if entry: if text.find(entry) != -1: print 'SKIP URL ' + text #print 'DEBUG: ' + entry return True
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1098, 12, 955, 16, 927, 4672, 364, 1241, 316, 927, 30, 309, 1241, 30, 309, 977, 18, 4720, 12, 4099, 13, 480, 300, 21, 30, 1172, 296, 22589, 1976, 296, 397, 977, 468, 1188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 1098, 12, 955, 16, 927, 4672, 364, 1241, 316, 927, 30, 309, 1241, 30, 309, 977, 18, 4720, 12, 4099, 13, 480, 300, 21, 30, 1172, 296, 22589, 1976, 296, 397, 977, 468, 1188, ...
elif _token_ == 'OPEN_PAREN': OPEN_PAREN = self._scan('OPEN_PAREN')
elif _token_ == 'PLACEHOLDER_OPEN_PAREN': PLACEHOLDER_OPEN_PAREN = self._scan('PLACEHOLDER_OPEN_PAREN')
def placeholder_suffix_expression(self, _previous_primary): _token_ = self._peek('DOT', 'OPEN_PAREN', 'OPEN_BRACKET') if _token_ == 'DOT': DOT = self._scan('DOT') ID = self._scan('ID') _primary = GetUDNNode(_previous_primary, ID) elif _token_ == 'OPEN_PAREN': OPEN_PAREN = self._scan('OPEN_PAREN') _arg_list = None if se...
021a128968e749a38255378c63ac9abcc4edb9e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4381/021a128968e749a38255378c63ac9abcc4edb9e6/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6695, 67, 8477, 67, 8692, 12, 2890, 16, 389, 11515, 67, 8258, 4672, 389, 2316, 67, 273, 365, 6315, 347, 3839, 2668, 17591, 2187, 296, 11437, 67, 15111, 2187, 296, 11437, 67, 21217, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6695, 67, 8477, 67, 8692, 12, 2890, 16, 389, 11515, 67, 8258, 4672, 389, 2316, 67, 273, 365, 6315, 347, 3839, 2668, 17591, 2187, 296, 11437, 67, 15111, 2187, 296, 11437, 67, 21217, 6134,...
test_support.run_unittest(VectorTest, NumberTest, MiscTest, DictTest, ListTest)
test_support.run_unittest(VectorTest, NumberTest, MiscTest, DictTest, ListTest, HashableTest)
def test_main(): test_support.run_unittest(VectorTest, NumberTest, MiscTest, DictTest, ListTest)
a7db97636653b6820f3ed9ac2eb87189e37fca7b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/a7db97636653b6820f3ed9ac2eb87189e37fca7b/test_richcmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 5018, 4709, 16, 3588, 4709, 16, 16584, 71, 4709, 16, 9696, 4709, 16, 987, 4709, 16, 2474, 429, 4709, 13, 225, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 5018, 4709, 16, 3588, 4709, 16, 16584, 71, 4709, 16, 9696, 4709, 16, 987, 4709, 16, 2474, 429, 4709, 13, 225, 2, ...
return(array(dbars))
return(ravel(dbars))
def dbar(self, bs=[]): #{{{2 """ Return the mean L{mhd} from the L{Lineament} to its doppelgangers having the given backrotation. If no doppelgangers have that backrotation, generate them.
3ce7bee8800eba157d17edf5e5b124d917ff6021 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/3ce7bee8800eba157d17edf5e5b124d917ff6021/lineament.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 297, 12, 2890, 16, 7081, 33, 8526, 4672, 3735, 12187, 22, 3536, 2000, 326, 3722, 511, 95, 81, 22057, 97, 628, 326, 511, 95, 1670, 14773, 97, 358, 2097, 302, 556, 84, 292, 75, 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, 1319, 297, 12, 2890, 16, 7081, 33, 8526, 4672, 3735, 12187, 22, 3536, 2000, 326, 3722, 511, 95, 81, 22057, 97, 628, 326, 511, 95, 1670, 14773, 97, 358, 2097, 302, 556, 84, 292, 75, 5...
pass
global _completer_delims, _completer_delims_set _completer_delims = string _completer_delims_set = set(string)
def set_completer_delims(string): pass
24d3df536f1a55ecda3dd9e7f94f30c1a507dddb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/24d3df536f1a55ecda3dd9e7f94f30c1a507dddb/readline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 832, 17754, 67, 3771, 12097, 12, 1080, 4672, 2552, 389, 832, 17754, 67, 3771, 12097, 16, 389, 832, 17754, 67, 3771, 12097, 67, 542, 389, 832, 17754, 67, 3771, 12097, 273, 533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 832, 17754, 67, 3771, 12097, 12, 1080, 4672, 2552, 389, 832, 17754, 67, 3771, 12097, 16, 389, 832, 17754, 67, 3771, 12097, 67, 542, 389, 832, 17754, 67, 3771, 12097, 273, 533, ...
print "Couldn't find that builder, or build did not compile."
print "I could not find that builder, or build did not compile." print "Check that the builder name matches exactly (case sensitive)," print "and wrap quotes around builder names that have spaces."
def _ScrapeBuilderOutput(self): # If the build log file is specified, use that instead of scraping. if self.builder_output_log_file: log = open(self.builder_output_log_file, 'r') return "".join(log.readlines())
36ab901b4725c5605ff2df5df681c32a3782a143 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/36ab901b4725c5605ff2df5df681c32a3782a143/failure_finder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1541, 25360, 1263, 1447, 12, 2890, 4672, 468, 971, 326, 1361, 613, 585, 353, 1269, 16, 999, 716, 3560, 434, 888, 1266, 310, 18, 309, 365, 18, 9574, 67, 2844, 67, 1330, 67, 768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1541, 25360, 1263, 1447, 12, 2890, 4672, 468, 971, 326, 1361, 613, 585, 353, 1269, 16, 999, 716, 3560, 434, 888, 1266, 310, 18, 309, 365, 18, 9574, 67, 2844, 67, 1330, 67, 768, ...
if self.setup[6]:
if not self.setup[14]:
def processEmail(mailbox, data, idList, account, count, id, tmpData): conds = ["%s.find(%s)>-1", "not %s.find(%s)>-1", "%s==%s", "not %s==%s", "%s.startswith(%s)", "%s.endswith(%s)"] msg = myParser.parsestr(data) parts = GetParts(msg) flag = False if self.setup[4] == 1: #filter AND mode i = 0 while i < 6: what, cond, s...
13d01fd8c7f4aa0f76ad65c4e2acaf56decc3fae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/13d01fd8c7f4aa0f76ad65c4e2acaf56decc3fae/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 4134, 12, 4408, 2147, 16, 501, 16, 29174, 16, 2236, 16, 1056, 16, 612, 16, 1853, 751, 4672, 30958, 273, 8247, 9, 87, 18, 4720, 9275, 87, 13, 34, 17, 21, 3113, 315, 902, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 4134, 12, 4408, 2147, 16, 501, 16, 29174, 16, 2236, 16, 1056, 16, 612, 16, 1853, 751, 4672, 30958, 273, 8247, 9, 87, 18, 4720, 9275, 87, 13, 34, 17, 21, 3113, 315, 902, 738, ...
text += "<nobr>Unhandled exception of type <b>%s </b> occured at %d:%02d:%02d:</nobr><br><nobr>Traceback:</nobr><br>" % ( str(type) , t[3],t[4],t[5])
text += "<nobr>Unhandled exception of type <b>%s </b> occured at %d:%02d:%02d:</nobr><br><nobr>Traceback:</nobr><br>" % ( str(type).replace("<", "(").replace(">", ")") , t[3],t[4],t[5])
def exceptionHandler(self, type, value, tracebackInfo): if self.focusOnCatchException: self.canvasDlg.menuItemShowOutputWindow() #self.canvasDlg.workspace.cascade() # cascade shown windows
40829685cd29c8dfe4184ee8d3348b4e8d4571ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/40829685cd29c8dfe4184ee8d3348b4e8d4571ea/orngOutput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 1503, 12, 2890, 16, 618, 16, 460, 16, 10820, 966, 4672, 309, 365, 18, 13923, 1398, 14842, 503, 30, 365, 18, 15424, 40, 23623, 18, 5414, 1180, 5706, 1447, 3829, 1435, 468, 2890, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1520, 1503, 12, 2890, 16, 618, 16, 460, 16, 10820, 966, 4672, 309, 365, 18, 13923, 1398, 14842, 503, 30, 365, 18, 15424, 40, 23623, 18, 5414, 1180, 5706, 1447, 3829, 1435, 468, 2890, 1...
nn = gap.eval("NumeratorOfRationalFunction(ff)") dd = gap.eval("DenominatorOfRationalFunction(ff)")
nn = gap.eval("NumeratorOfRationalFunction(ff)").replace("x_1","x") dd = gap.eval("DenominatorOfRationalFunction(ff)").replace("x_1","x")
def poincare_series(self, p=2, n=10): """ Returns the Poincare series of G mod p (p must be a prime), for n>1 large. In other words, if you input a finite group G, a prime p, and a positive integer n, it returns a quotient of polynomials f(x)=P(x)/Q(x) whose coefficient of $x^k$ equals the rank of the vector space $H_k...
dec2af0d3a1e0445413373435894862c1e9fe7bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/dec2af0d3a1e0445413373435894862c1e9fe7bf/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 885, 71, 834, 67, 10222, 12, 2890, 16, 293, 33, 22, 16, 290, 33, 2163, 4672, 3536, 2860, 326, 453, 885, 71, 834, 4166, 434, 611, 681, 293, 261, 84, 1297, 506, 279, 17014, 3631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 885, 71, 834, 67, 10222, 12, 2890, 16, 293, 33, 22, 16, 290, 33, 2163, 4672, 3536, 2860, 326, 453, 885, 71, 834, 4166, 434, 611, 681, 293, 261, 84, 1297, 506, 279, 17014, 3631, ...
computed bound is greater than a value set by the eclib
computed bound is greater than a value set by the ``eclib``
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura...
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
self.tk.call(self._w, 'appendhistory', str)
self.tk.call(self._w, 'appendhistory', str)
def append_history(self, str):
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, 714, 67, 8189, 12, 2890, 16, 609, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 714, 67, 8189, 12, 2890, 16, 609, 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, ...
sys.path.append(load_path) try: import simplejson as Simplejson simplejson = Simplejson except ImportError, e: msg = "%s expects to live within a Chromium checkout" % sys.argv[0] raise Exception, "Error trying to import simplejson from %s (%s)" % \ (load_path, msg) finally: sys.path = old_path return True
def CheckChangeOnCommit(input_api, output_api): run_tests = False for path in input_api.LocalPaths(): if PERF_EXPECTATIONS == input_api.os_path.basename(path): run_tests = True
def OnTestsLoad(): old_path = sys.path script_path = os.path.dirname(sys.argv[0]) load_path = None global simplejson # This test script should be stored in src/tools/perf_expectations/. That # directory will most commonly live in 2 locations: # # - a regular Chromium checkout, in which case src/third_party # is...
fec974ab6785fd2a4a3c3fcfe3552188fb83e24b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/fec974ab6785fd2a4a3c3fcfe3552188fb83e24b/PRESUBMIT.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 14650, 2563, 13332, 1592, 67, 803, 273, 2589, 18, 803, 2728, 67, 803, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 19485, 63, 20, 5717, 1262, 67, 803, 273, 599, 2552, 4143, 1977,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14650, 2563, 13332, 1592, 67, 803, 273, 2589, 18, 803, 2728, 67, 803, 273, 1140, 18, 803, 18, 12287, 12, 9499, 18, 19485, 63, 20, 5717, 1262, 67, 803, 273, 599, 2552, 4143, 1977,...
if shared_storage: parsed = parser.Section else: items = [(key, parser.Section[key]) for key in parser.Section.keys()] parsed = Deb822Dict(items)
parsed = TagFileWrapper(parser) if not shared_storage: parsed = Deb822Dict(parsed)
def iter_paragraphs(cls, sequence, fields=None, use_apt_pkg=True, shared_storage=False): """Generator that yields a Deb822 object for each paragraph in sequence.
7e62dda78541fb310e19ef904981a0c46ea3ac9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12282/7e62dda78541fb310e19ef904981a0c46ea3ac9d/deb822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 22445, 87, 12, 6429, 16, 3102, 16, 1466, 33, 7036, 16, 999, 67, 1657, 67, 10657, 33, 5510, 16, 5116, 67, 5697, 33, 8381, 4672, 3536, 3908, 716, 16932, 279, 1505, 70, 24532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 67, 22445, 87, 12, 6429, 16, 3102, 16, 1466, 33, 7036, 16, 999, 67, 1657, 67, 10657, 33, 5510, 16, 5116, 67, 5697, 33, 8381, 4672, 3536, 3908, 716, 16932, 279, 1505, 70, 24532, ...
if not sngl.ifo in frametype: frametype = sngl.ifo + "_" + frametype
frametype=__patchFrameTypeDef__(frametype,sngl.ifo,sngl.time)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
3e6e8bbd837c63c0eef55b1609ca590b8fd82088 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/3e6e8bbd837c63c0eef55b1609ca590b8fd82088/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
yield "<div id='log'>\n"
yield "<div id='log'>"
def render(self, myself, tree, host, compiler, rev, plain_logs=False): """view one build in detail"""
6f759d61aa9f4714f83d32476fcc23e0c846d5e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/6f759d61aa9f4714f83d32476fcc23e0c846d5e7/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 3399, 2890, 16, 2151, 16, 1479, 16, 5274, 16, 5588, 16, 7351, 67, 10011, 33, 8381, 4672, 3536, 1945, 1245, 1361, 316, 7664, 8395, 2, -100, -100, -100, -100, -100, -...
try: if self.pendingCmds == []: cmds = self.collectCmds() else: cmds = self.pendingCmds self.pendingCmds = [] if cmds == []: self.src.set_eos() self.sendEvent(events.eos()) return for cmd in cmds: cmd(self) except: traceback.print_exc() sys.exit(1)
while src.get_property('vobu-start') == -1: try: if self.pendingCmds == []: cmds = self.collectCmds() else: cmds = self.pendingCmds self.pendingCmds = [] if cmds == []: self.sendEvent(events.eos()) return for cmd in cmds: cmd(self) except: traceback.print_exc() sys.exit(1)
def vobuRead(self, src): """Invoked by the source element after reading a complete VOBU."""
ff674cf9cd62c1a0d5c649021cc73e38a2d71a77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5222/ff674cf9cd62c1a0d5c649021cc73e38a2d71a77/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 947, 89, 1994, 12, 2890, 16, 1705, 4672, 3536, 26215, 635, 326, 1084, 930, 1839, 6453, 279, 3912, 776, 51, 3000, 12123, 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, 331, 947, 89, 1994, 12, 2890, 16, 1705, 4672, 3536, 26215, 635, 326, 1084, 930, 1839, 6453, 279, 3912, 776, 51, 3000, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
path = self.__resolveFileID(dir_path)
path = self.__resolveFileID( dir_path )
def export_listDirectory( self, dir_path, mode ): """ Return the dir_path directory listing """ is_file = False path = self.__resolveFileID(dir_path) if not os.path.exists( path ): return S_ERROR( 'Directory %s does not exist' % dir_path ) elif os.path.isfile( path ): fname = os.path.basename( path ) is_file = True els...
9f0650a3e23eb441883664794fa6606e35b7f93c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9f0650a3e23eb441883664794fa6606e35b7f93c/StorageElementHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1098, 2853, 12, 365, 16, 1577, 67, 803, 16, 1965, 262, 30, 3536, 2000, 326, 1577, 67, 803, 1867, 11591, 3536, 353, 67, 768, 273, 1083, 589, 273, 365, 16186, 10828, 812, 734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1098, 2853, 12, 365, 16, 1577, 67, 803, 16, 1965, 262, 30, 3536, 2000, 326, 1577, 67, 803, 1867, 11591, 3536, 353, 67, 768, 273, 1083, 589, 273, 365, 16186, 10828, 812, 734, ...
elif dict['status'] == 2:
elif urlDict['status'] == 2:
def removeFile(self,path): """Remove physically the file specified by its path """ if type(path) == types.StringType: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.removeFile: Supplied path must be string or list of strings")
0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 803, 4672, 3536, 3288, 24758, 6478, 326, 585, 1269, 635, 2097, 589, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 1327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 803, 4672, 3536, 3288, 24758, 6478, 326, 585, 1269, 635, 2097, 589, 3536, 309, 618, 12, 803, 13, 422, 1953, 18, 780, 559, 30, 6903, 273, 306, 803, 65, 1327, ...
verbose=False, **kwds):
verbose=False, fixed_random_seed=True, **kwds):
def exercise(self, xray_structure=None, space_group_info=None, verbose=False, **kwds): assert [xray_structure, space_group_info].count(None) == 1 if xray_structure is None: self.xs = self.random_structure(space_group_info, set_grads=True) else: self.xs = xray_structure self.do_exercise(verbose)
61930a13b3bf1fa3177d3f0f62bd4c79b8fcb0d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/61930a13b3bf1fa3177d3f0f62bd4c79b8fcb0d0/tst_standard_xray.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 12, 2890, 16, 619, 435, 67, 7627, 33, 7036, 16, 3476, 67, 1655, 67, 1376, 33, 7036, 16, 3988, 33, 8381, 16, 5499, 67, 9188, 67, 12407, 33, 5510, 16, 2826, 25577, 4672, 1815, 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, 24165, 12, 2890, 16, 619, 435, 67, 7627, 33, 7036, 16, 3476, 67, 1655, 67, 1376, 33, 7036, 16, 3988, 33, 8381, 16, 5499, 67, 9188, 67, 12407, 33, 5510, 16, 2826, 25577, 4672, 1815, 3...
for table in ['FC_Files','FC_FileInfo','FC_GUID_To_File']:
for table in ['FC_Files','FC_FileInfo','FC_GUID_to_File']:
def removeFile(self,lfns,credDict): """ Bulk file removal method """ result = checkArgumentFormat(lfns) if not result['OK']: return result arguments = result['Value'] successful = {} failed = {} files = arguments.keys() result = self.findFile(files) fileDict = result['Value'] if not fileDict["Successful"]: return S_OK...
5a06e26755f442e1df253700263a4f66ae3732c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5a06e26755f442e1df253700263a4f66ae3732c9/FileCatalogDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 20850, 2387, 16, 20610, 5014, 4672, 3536, 18184, 585, 14817, 707, 3536, 563, 273, 10788, 1630, 12, 20850, 2387, 13, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 812, 12, 2890, 16, 20850, 2387, 16, 20610, 5014, 4672, 3536, 18184, 585, 14817, 707, 3536, 563, 273, 10788, 1630, 12, 20850, 2387, 13, 309, 486, 563, 3292, 3141, 3546, 30, 327, 563...
table[(fen,board.color)] = moves else: log.warn("Unable to get egtb data for position: %s.\nData was: %s" % (board.asFen(), repr(data)))
table[(fen,color)] = moves elif color == board.color and board.opIsChecked(): log.warn("Asked endgametable for a won position: %s" % fen) elif color == board.color: log.warn("Unable to get %s data for position: %s.\nData was: %s" % (reprColor[color], fen, repr(data)))
def probeEndGameTable (board): fen = board.asFen().split()[0] + " w - - 0 1" if (fen,board.color) in table: return table[(fen,board.color)] # k4it has all 6-men tables except 5 vs. 1 whites = bitLength(board.friends[WHITE]) blacks = bitLength(board.friends[BLACK]) if whites >= 5 or blacks >= 5 or whites+blacks >= 7: ...
2938467cb07839fd68786e0e9a310306cfd4652c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/2938467cb07839fd68786e0e9a310306cfd4652c/egtb_k4it.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 375...
hbox.add(button)
hbox.pack_start(button, False, False)
def add_table_content(self, table): entry = gtk.Entry() entry.set_width_chars(12) entry.set_editable(False) self.file = entry button = gtk.Button("Select...") button.connect("clicked", self.select_file_cb) hbox = gtk.HBox() hbox.add(entry) hbox.add(button)
eb03ca1df3dad695b454d009fb3a4d190e2e8e09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8501/eb03ca1df3dad695b454d009fb3a4d190e2e8e09/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2121, 67, 1745, 12, 2890, 16, 1014, 4672, 1241, 273, 22718, 18, 1622, 1435, 1241, 18, 542, 67, 2819, 67, 7549, 12, 2138, 13, 1241, 18, 542, 67, 19653, 12, 8381, 13, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2121, 67, 1745, 12, 2890, 16, 1014, 4672, 1241, 273, 22718, 18, 1622, 1435, 1241, 18, 542, 67, 2819, 67, 7549, 12, 2138, 13, 1241, 18, 542, 67, 19653, 12, 8381, 13, 365, 18,...
bookmarks = bookmarked+':'+res
if bookmarked: bookmarks = bookmarked+':'+res else: bookmarks = res
def command_bookmark(self, arg): """ /bookmark [room][/nick] """ args = arg.split() nick = None if not isinstance(self.current_tab(), MucTab): return if len(args) == 0: room = self.current_tab().get_room() roomname = self.current_tab().get_name() if room.joined: nick = room.own_nick else: info = args[0].split('/') if l...
2102085f9ee65f1c65729096ac259fa1964798ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/2102085f9ee65f1c65729096ac259fa1964798ea/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 3618, 3355, 12, 2890, 16, 1501, 4672, 3536, 342, 3618, 3355, 306, 13924, 6362, 19, 17091, 65, 3536, 833, 273, 1501, 18, 4939, 1435, 10909, 273, 599, 309, 486, 1549, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1296, 67, 3618, 3355, 12, 2890, 16, 1501, 4672, 3536, 342, 3618, 3355, 306, 13924, 6362, 19, 17091, 65, 3536, 833, 273, 1501, 18, 4939, 1435, 10909, 273, 599, 309, 486, 1549, 12, 2890, ...
self._block_update(clear=1)
self._runstats_update(clear=1)
def _start_helper(self, temp=None, train=None): self._savestate() if self.startfn: if not self.running: self._loadmenu.disableall() if int(self.rig_common.query('testing')): if ask("pype", "testing mode ok?", ("yes", "no")) == 1: return if temp: fname = './%s.tmp' % self.uname if posixpath.exists(fname): posix.unlink(...
58eb14000e09a21a3d1a6cc1aaa23c4e126e0cb5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/58eb14000e09a21a3d1a6cc1aaa23c4e126e0cb5/pype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 4759, 12, 2890, 16, 1906, 33, 7036, 16, 4691, 33, 7036, 4672, 365, 6315, 87, 842, 395, 340, 1435, 225, 309, 365, 18, 1937, 4293, 30, 309, 486, 365, 18, 8704, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1937, 67, 4759, 12, 2890, 16, 1906, 33, 7036, 16, 4691, 33, 7036, 4672, 365, 6315, 87, 842, 395, 340, 1435, 225, 309, 365, 18, 1937, 4293, 30, 309, 486, 365, 18, 8704, 30, 365, ...
if buildenv['version'] == 'debug': additional_path = buildenv['root'] + os.sep + 'debug' + os.sep + \ 'lib' additional_path_rel = buildenv['root'] + os.sep + 'release' + \ os.sep + 'lib' additional_path = additional_path + os.pathsep + additional_path_rel else: additional_path = buildenv['root'] + os.sep + 'release' + ...
ver = buildenv['version'] additional_path=os.path.join(buildenv['root'],ver,'lib')+\ os.pathsep + os.path.join(buildenv['root'],ver,'db','lib')+\ os.pathsep + os.path.join(buildenv['root'],ver,'dbxml','lib')
def setupEnvironment(buildenv): if buildenv['version'] == 'debug': path = buildenv['root'] + os.sep + 'debug' + os.sep + 'bin' + \ os.pathsep + buildenv['path'] os.putenv('BUILDMODE', 'debug') if buildenv['version'] == 'release': path = buildenv['root'] + os.sep + 'release' + os.sep + 'bin' + \ os.pathsep + buildenv[...
0b7e8d2d269791eb53c95ed3984a921d080e5c67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/0b7e8d2d269791eb53c95ed3984a921d080e5c67/hardhatlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 5494, 12, 3510, 3074, 4672, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 4148, 4278, 589, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 296, 4148, 11, 397, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 5494, 12, 3510, 3074, 4672, 225, 309, 1361, 3074, 3292, 1589, 3546, 422, 296, 4148, 4278, 589, 273, 1361, 3074, 3292, 3085, 3546, 397, 1140, 18, 10814, 397, 296, 4148, 11, 397, 114...
if inspect.ismethod(object): object = object.im_func
realname = object.__name__ name = name or realname anchor = clname + '-' + realname note = '' if inspect.ismethod(object): if not clname: note = self.small(self.grey( object.im_self and 'method of ' + self.repr(object.im_self) or ' unbound %s method' % object.im_class.__name__)) object = object.im_func if name == real...
def docroutine(self, object, funcs={}, classes={}, methods={}, clname=''): """Produce HTML documentation for a function or method object.""" if inspect.ismethod(object): object = object.im_func if inspect.isbuiltin(object): decl = '<a name="%s"><strong>%s</strong>(...)</a>\n' % ( clname + '-' + object.__name__, object....
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 22640, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 28793, 2590, 28793, 927, 529, 2218, 11, 4672, 3536, 25884, 3982, 7323, 364, 279, 445, 578, 707, 733, 12123, 2863, 529, 273, 733, 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, 997, 22640, 12, 2890, 16, 733, 16, 15630, 28793, 3318, 28793, 2590, 28793, 927, 529, 2218, 11, 4672, 3536, 25884, 3982, 7323, 364, 279, 445, 578, 707, 733, 12123, 2863, 529, 273, 733, 16...
if fragment[-1] in string.whitespace:
if fragment[-1] in WHITESPACE:
def handleSpecialCharacters(engine, text, program=None, greeks=greeks): from string import whitespace # add space prefix if space here if text[0:1] in whitespace: program.append(" ") #print "handling", repr(text) # shortcut if 0 and "&" not in text: result = [] for x in text.split(): result.append(x+" ") if result: las...
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12193, 11600, 12, 8944, 16, 977, 16, 5402, 33, 7036, 16, 314, 992, 7904, 33, 75, 992, 7904, 4672, 628, 533, 1930, 7983, 468, 527, 3476, 1633, 309, 3476, 2674, 309, 977, 63, 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, 1640, 12193, 11600, 12, 8944, 16, 977, 16, 5402, 33, 7036, 16, 314, 992, 7904, 33, 75, 992, 7904, 4672, 628, 533, 1930, 7983, 468, 527, 3476, 1633, 309, 3476, 2674, 309, 977, 63, 20, ...
supported (limitation of greenlet), use api.spawn to work around that.
supported (limitation of greenlet), use spawn() to work around that.
def spawn_greenlet(function, *args): """Create a new greenlet that will run `function(*args)'. The current greenlet won't be unscheduled. Keyword arguments aren't supported (limitation of greenlet), use api.spawn to work around that. """ g = api.Greenlet(function) g.parent = api.get_hub().greenlet api.get_hub().schedul...
7c3ebda3db3ed480a43e50044ac06b222cafbcdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/7c3ebda3db3ed480a43e50044ac06b222cafbcdc/proc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 67, 11571, 1810, 12, 915, 16, 380, 1968, 4672, 3536, 1684, 279, 394, 10004, 1810, 716, 903, 1086, 1375, 915, 30857, 1968, 2506, 18, 1021, 783, 10004, 1810, 8462, 1404, 506, 640, 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, 12560, 67, 11571, 1810, 12, 915, 16, 380, 1968, 4672, 3536, 1684, 279, 394, 10004, 1810, 716, 903, 1086, 1375, 915, 30857, 1968, 2506, 18, 1021, 783, 10004, 1810, 8462, 1404, 506, 640, 2...
self.buffer.append(value)
if len(self.buffer) > self.screen_top + self.screen_height - 1: self.buffer[len(self.buffer) - 1] = value else: self.buffer.append(value)
def append(self, value): self.buffer.append(value) logging.debug('checking new line ' + str(len(self.buffer)) + ' against top ' + str(self.screen_top) + ' + height ' + str(self.screen_height) + ' - 1 = ' + str(self.screen_top + self.screen_height - 1)) if len(self.buffer) > self.screen_top + self.screen_height - 1: sel...
d61afb98c1bca51dfe8a07f5d35aaf13361afa85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8972/d61afb98c1bca51dfe8a07f5d35aaf13361afa85/conque_screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 460, 4672, 309, 562, 12, 2890, 18, 4106, 13, 405, 365, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 300, 404, 30, 365, 18, 4106, 63, 1897, 12, 2890, 18, 410...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 460, 4672, 309, 562, 12, 2890, 18, 4106, 13, 405, 365, 18, 9252, 67, 3669, 397, 365, 18, 9252, 67, 4210, 300, 404, 30, 365, 18, 4106, 63, 1897, 12, 2890, 18, 410...
if c in '/\\':
if c in ['/','\\']:
def splitext(p): root, ext = '', '' for c in p: if c in '/\\': root, ext = root + ext + c, '' elif c == '.' or ext: ext = ext + c else: root = root + c return root, ext
0521a7c2b5a51a9a9121cdb0d36fabf9538d0130 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0521a7c2b5a51a9a9121cdb0d36fabf9538d0130/ntpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11975, 12, 84, 4672, 1365, 16, 1110, 273, 10226, 875, 364, 276, 316, 293, 30, 309, 276, 316, 10228, 19, 17023, 1695, 3546, 30, 1365, 16, 1110, 273, 1365, 397, 1110, 397, 276, 16, 875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11975, 12, 84, 4672, 1365, 16, 1110, 273, 10226, 875, 364, 276, 316, 293, 30, 309, 276, 316, 10228, 19, 17023, 1695, 3546, 30, 1365, 16, 1110, 273, 1365, 397, 1110, 397, 276, 16, 875, ...
f = zipf.open("foo.txt") for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'') self.assertEqual(f.read(), b"O, for a Muse of Fire!")
with zipf.open("foo.txt") as f: for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'') self.assertEqual(f.read(), b"O, for a Muse of Fire!")
def test_read0(self): """Check that calling read(0) on a ZipExtFile object returns an empty string and doesn't advance file pointer.""" with zipfile.ZipFile(TESTFN, mode="w") as zipf: zipf.writestr("foo.txt", "O, for a Muse of Fire!") # read the data to make sure the file is there f = zipf.open("foo.txt") for i in rang...
8fb9b868bd8415347ffa608eec324055ff9f66d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8fb9b868bd8415347ffa608eec324055ff9f66d7/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 20, 12, 2890, 4672, 3536, 1564, 716, 4440, 855, 12, 20, 13, 603, 279, 8603, 2482, 812, 733, 1135, 392, 1008, 533, 471, 3302, 1404, 8312, 585, 4407, 12123, 598, 18823, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 896, 20, 12, 2890, 4672, 3536, 1564, 716, 4440, 855, 12, 20, 13, 603, 279, 8603, 2482, 812, 733, 1135, 392, 1008, 533, 471, 3302, 1404, 8312, 585, 4407, 12123, 598, 18823, 18...
app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename'])
app.cli_interpreter.do_mythtv_item_remove(item[u'videoFilename'])
def main(): """Support mirobridge from the command line returns True """ global localhostname, simulation, verbose, storagegroups, ffmpeg, channel_id, channel_num global flat, download_sleeptime, channel_watch_only, channel_mythvideo_only, channel_new_watch_copy global vid_graphics_dirs, storagegroups, imagemagick, sta...
cefa7947527c8e9e2184befa6fb1cdca04096461 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/cefa7947527c8e9e2184befa6fb1cdca04096461/mirobridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 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, 2774, 13332, 3536, 6289, 312, 11373, 18337, 628, 326, 1296, 980, 1135, 1053, 3536, 2552, 1191, 10358, 16, 14754, 16, 3988, 16, 2502, 4650, 16, 6875, 19951, 16, 1904, 67, 350, 16, 1904, 6...
revert = [[336, [revert_display_enum]],
revert = [[337, [revert_polytonicgreek]], [336, [revert_display_enum]],
def revert_plainlayout(document): " Convert 'PlainLayout' to 'Plain Layout'" i = 0 while True: i = find_token(document.body, '\\begin_layout PlainLayout', i) if i == -1: return # This will be incorrect for some document classes, since Standard is not always # the default. But (a) it is probably the best we can do and (...
e2e78fa20ab0d1a7685d11d13c4082a691c9b205 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/e2e78fa20ab0d1a7685d11d13c4082a691c9b205/lyx_1_6.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7446, 6741, 12, 5457, 4672, 315, 4037, 296, 13360, 3744, 11, 358, 296, 13360, 9995, 4970, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 7446, 6741, 12, 5457, 4672, 315, 4037, 296, 13360, 3744, 11, 358, 296, 13360, 9995, 4970, 277, 273, 374, 1323, 1053, 30, 277, 273, 1104, 67, 2316, 12, 5457, 18, 3432, 16, 37...
nm_pid = (updater_out.split())[1]
nm_pid = (nm_out.split())[1]
def nmclient_rawsay(nmip, nmport, *args): fullresponse = nmclient_rawcommunicate(nmip, nmport, *args) try: (response, status) = fullresponse.rsplit('\n',1) except KeyError: raise NMClientException, "Communication error '"+fullresponse+"'" if status == 'Success': return response elif status == 'Error': raise NMClientE...
a57461edbf68311778343fa139551d18c414e9af /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7277/a57461edbf68311778343fa139551d18c414e9af/testprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8442, 2625, 67, 1899, 87, 528, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968, 4672, 1983, 2740, 273, 8442, 2625, 67, 1899, 5702, 318, 2659, 12, 15094, 625, 16, 8442, 655, 16, 380, 1968,...
if os.environ.has_key('CFLAGS'): extra_args.extend(string.split(os.environ['CFLAGS']))
for undef in ext.undef_macros: macros.append((undef,))
0a8374cd4647d0eab542d96901893cc768341540 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0a8374cd4647d0eab542d96901893cc768341540/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 640, 536, 316, 1110, 18, 318, 536, 67, 5821, 6973, 30, 24302, 18, 6923, 12443, 318, 536, 16, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 364, 640, 536, 316, 1110, 18, 318, 536, 67, 5821, 6973, 30, 24302, 18, 6923, 12443, 318, 536, 16, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return (1, 1)
return (1, 1)
def set_defaults_lam(tmpDir): """ Set defaults for lamboot and Rslaves and number procs based on the size of the data file. This is all heuristic, but works for us with 6 GB RAM per node. The key idea is to prevent swapping. ncpu are the Rslaves spawned by lamd, or the cpu=ncpu in the lamb-host file. max_num_procs is t...
d2b293ea2543b9cd51915938ddf922f1fdd7d895 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6464/d2b293ea2543b9cd51915938ddf922f1fdd7d895/runAndCheck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 7606, 67, 28448, 12, 5645, 1621, 4672, 3536, 1000, 3467, 364, 17310, 7137, 471, 534, 2069, 6606, 471, 1300, 27009, 2511, 603, 326, 963, 434, 326, 501, 585, 18, 1220, 353, 777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 7606, 67, 28448, 12, 5645, 1621, 4672, 3536, 1000, 3467, 364, 17310, 7137, 471, 534, 2069, 6606, 471, 1300, 27009, 2511, 603, 326, 963, 434, 326, 501, 585, 18, 1220, 353, 777, ...
call([innosetup_exe, winmerge_iss_path])
call([innosetup_exe, 'WinMerge.iss']) os.chdir(cur_path)
def build_innosetup_installer(target_folder): """Builds the InnoSetup installer for the WinMerge.""" innosetup_exe = os.path.join(prog.innosetup_path, 'iscc.exe') cur_path = os.getcwd() winmerge_iss_path = os.path.join(cur_path, 'Installer\\InnoSetup\\WinMerge.iss') #output_switch = '/O"' + target_folder + '"' prin...
e5da116fb46d59d18c1d38792b0d2455b83fedd4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5857/e5da116fb46d59d18c1d38792b0d2455b83fedd4/create_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 267, 18050, 278, 416, 67, 20163, 12, 3299, 67, 5609, 4672, 3536, 7746, 326, 657, 2135, 7365, 16050, 364, 326, 21628, 6786, 12123, 225, 316, 18050, 278, 416, 67, 14880, 273, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 267, 18050, 278, 416, 67, 20163, 12, 3299, 67, 5609, 4672, 3536, 7746, 326, 657, 2135, 7365, 16050, 364, 326, 21628, 6786, 12123, 225, 316, 18050, 278, 416, 67, 14880, 273, 114...
elif len(opt['type']) == 2 and opt['type'][0] == 'chooseFrom':
elif type(opt['type']) in (tuple, list) and \ len(opt['type']) == 2 and opt['type'][0] == 'chooseFrom':
def addOption(self, pos=-1, **kwargs): ''' Append an entry to the parameter specification list. Dictionary entries should be specified as keyword arguments such as ``name='option'``. More specifically, you can specify parameters ``name`` (required), ``label``, ``default`` (required), ``description``, ``validator``, ``t...
0808dd362a5f2dd5d90d950500fd972461718062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/0808dd362a5f2dd5d90d950500fd972461718062/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12966, 12, 2890, 16, 949, 29711, 21, 16, 2826, 4333, 4672, 9163, 6181, 392, 1241, 358, 326, 1569, 7490, 666, 18, 16447, 3222, 1410, 506, 1269, 487, 4932, 1775, 4123, 487, 12176, 529, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12966, 12, 2890, 16, 949, 29711, 21, 16, 2826, 4333, 4672, 9163, 6181, 392, 1241, 358, 326, 1569, 7490, 666, 18, 16447, 3222, 1410, 506, 1269, 487, 4932, 1775, 4123, 487, 12176, 529, 221...
requirements = []
requirements = [] version = "0.6.5" long_version = os.environ.get('BEAH_VER', version) + os.environ.get('BEAH_DEV', strftime(".dev%Y%m%d%H%M"))
def glob_to(prefix, new_prefix, dirs): if prefix and prefix[-1]!='/': prefix += '/' return list([(new_prefix+'/'+dir, glob_(prefix, dir+'/*')) for dir in dirs])
2a1e42d6e4a958facae10ff4b01b12daf5bf0f0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/2a1e42d6e4a958facae10ff4b01b12daf5bf0f0e/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4715, 67, 869, 12, 3239, 16, 394, 67, 3239, 16, 7717, 4672, 309, 1633, 471, 1633, 18919, 21, 65, 5, 2218, 2473, 30, 1633, 1011, 2023, 327, 666, 3816, 12, 2704, 67, 3239, 6797, 2473, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4715, 67, 869, 12, 3239, 16, 394, 67, 3239, 16, 7717, 4672, 309, 1633, 471, 1633, 18919, 21, 65, 5, 2218, 2473, 30, 1633, 1011, 2023, 327, 666, 3816, 12, 2704, 67, 3239, 6797, 2473, ...
security.declareProtected(view_management_screens, 'getCheckedin()')
security.declareProtected(view_management_screens, 'getCheckedin')
def getPoolSize(self): """ """ return self._wrapper._engine.connection_provider._pool.size()
ea56c7724f3fef53caac3a02e9ee68fb11aead62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6817/ea56c7724f3fef53caac3a02e9ee68fb11aead62/da.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28575, 1225, 12, 2890, 4672, 3536, 3536, 327, 365, 6315, 8376, 6315, 8944, 18, 4071, 67, 6778, 6315, 6011, 18, 1467, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28575, 1225, 12, 2890, 4672, 3536, 3536, 327, 365, 6315, 8376, 6315, 8944, 18, 4071, 67, 6778, 6315, 6011, 18, 1467, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"Expected: %s\nActual: %s" % (index+1, kw.name, expected, actual))
"Expected: %s\nActual: %s.\n%s" % (index+1, kw.name, expected, actual, kw.messages[index].message))
def _check_log_level(expected, test, kw, index): actual = kw.messages[index].level if actual == expected: return True test.status = 'FAIL' test.message = ("Wrong level for message %d of keyword '%s'.\n\n" "Expected: %s\nActual: %s" % (index+1, kw.name, expected, actual)) return False
2865fa2ccf936c93613f972b5a74872ab9cc2961 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/2865fa2ccf936c93613f972b5a74872ab9cc2961/statuschecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1330, 67, 2815, 12, 3825, 16, 1842, 16, 5323, 16, 770, 4672, 3214, 273, 5323, 18, 6833, 63, 1615, 8009, 2815, 309, 3214, 422, 2665, 30, 327, 1053, 1842, 18, 2327, 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, 1893, 67, 1330, 67, 2815, 12, 3825, 16, 1842, 16, 5323, 16, 770, 4672, 3214, 273, 5323, 18, 6833, 63, 1615, 8009, 2815, 309, 3214, 422, 2665, 30, 327, 1053, 1842, 18, 2327, 273, ...
return "Card(game, %s, %s)" % (`self.suit`, `self.value`)
"""Return a string for debug print statements.""" return "Card(%s, %s)" % (`self.suit`, `self.value`)
def __repr__(self):
20ce2dd6aa77ea628b49c0c6b820d66211a9a61d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/20ce2dd6aa77ea628b49c0c6b820d66211a9a61d/solitaire.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def _point_morphism_class(self):
def _point_morphism_class(self, *args, **kwds):
def _point_morphism_class(self): """ EXAMPLES:: sage: X = Spec(QQ) sage: X._point_morphism_class() Traceback (most recent call last): ... NotImplementedError """ raise NotImplementedError
346c87d10dff49f592ee9e1bc94a030715beedd5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/346c87d10dff49f592ee9e1bc94a030715beedd5/scheme.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1153, 67, 81, 7657, 6228, 67, 1106, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 1139, 273, 4185, 12, 53, 53, 13, 272, 410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1153, 67, 81, 7657, 6228, 67, 1106, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 1139, 273, 4185, 12, 53, 53, 13, 272, 410, ...
beta = zeros(ndims, typecode)
beta = numpy.zeros(ndims, typecode)
def train(xs, ys, update_fn=None, typecode=None): """train(xs, ys[, update_fn]) -> LogisticRegression Train a logistic regression classifier on a training set. xs is a list of observations and ys is a list of the class assignments, which should be 0 or 1. xs and ys should contain the same number of elements. update...
d809647947d1c1b04931b9b9e5a02913cee6914f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/d809647947d1c1b04931b9b9e5a02913cee6914f/LogisticRegression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 12, 13713, 16, 16036, 16, 1089, 67, 4293, 33, 7036, 16, 618, 710, 33, 7036, 4672, 3536, 9754, 12, 13713, 16, 16036, 63, 16, 1089, 67, 4293, 5717, 317, 1827, 5846, 1617, 16345, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 12, 13713, 16, 16036, 16, 1089, 67, 4293, 33, 7036, 16, 618, 710, 33, 7036, 4672, 3536, 9754, 12, 13713, 16, 16036, 63, 16, 1089, 67, 4293, 5717, 317, 1827, 5846, 1617, 16345, 22...
userfolder = root.get_object('users')
userfolder = root.get_handler('users')
def permissions(self, context): # Permissions to remove if context.has_form_value('delete'): for username in context.get_form_values('delusers'): self.del_roles(username) return context.come_back(u"Members deleted.")
04c6d0abb5fe26ace47e9ab825ea2ef81c9ab57f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/04c6d0abb5fe26ace47e9ab825ea2ef81c9ab57f/access.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 12, 2890, 16, 819, 4672, 468, 15684, 358, 1206, 309, 819, 18, 5332, 67, 687, 67, 1132, 2668, 3733, 11, 4672, 364, 2718, 316, 819, 18, 588, 67, 687, 67, 2372, 2668, 3771, 5577, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4371, 12, 2890, 16, 819, 4672, 468, 15684, 358, 1206, 309, 819, 18, 5332, 67, 687, 67, 1132, 2668, 3733, 11, 4672, 364, 2718, 316, 819, 18, 588, 67, 687, 67, 2372, 2668, 3771, 5577, ...
source.Refresh()
source.RefreshCanvasItems(resort=False)
def OnEnter(self, x, y, dragResult): source = self.GetDraggedFromWidget() if source not in (self, None): # On Linux, OnLeave doesn't reliably happen before OnEnter source.OnLeave()
62b435afe8af2920119a51dbd26e22abbedd9daa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/62b435afe8af2920119a51dbd26e22abbedd9daa/CollectionCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10237, 12, 2890, 16, 619, 16, 677, 16, 8823, 1253, 4672, 1084, 273, 365, 18, 967, 11728, 2423, 1265, 4609, 1435, 309, 1084, 486, 316, 261, 2890, 16, 599, 4672, 468, 2755, 13318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10237, 12, 2890, 16, 619, 16, 677, 16, 8823, 1253, 4672, 1084, 273, 365, 18, 967, 11728, 2423, 1265, 4609, 1435, 309, 1084, 486, 316, 261, 2890, 16, 599, 4672, 468, 2755, 13318, ...
self.s_apply(self.r_reload, args)
return self.s_apply(self.r_reload, args)
def s_reload(self, *args): self.s_apply(self.r_reload, args)
134dfb4160d53248b554c39b556538d7ad7478e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/134dfb4160d53248b554c39b556538d7ad7478e2/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 67, 17517, 12, 2890, 16, 380, 1968, 4672, 365, 18, 87, 67, 9010, 12, 2890, 18, 86, 67, 17517, 16, 833, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 67, 17517, 12, 2890, 16, 380, 1968, 4672, 365, 18, 87, 67, 9010, 12, 2890, 18, 86, 67, 17517, 16, 833, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if name.startswith("__abc_"):
if name.startswith("_ABCMeta__"):
def _dump_registry(cls, file=None): """Debug helper to print the ABC registry.""" print("Class: %s.%s" % (cls.__module__, cls.__name__), file=file) print("Inv.counter: %s" % ABCMeta.__invalidation_counter, file=file) for name in sorted(cls.__dict__.keys()): if name.startswith("__abc_"): value = getattr(cls, name) print...
cb88f0a3236e12ead30dd32558b147766f1a033c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb88f0a3236e12ead30dd32558b147766f1a033c/abc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 9893, 12, 6429, 16, 585, 33, 7036, 4672, 3536, 2829, 4222, 358, 1172, 326, 29253, 4023, 12123, 1172, 2932, 797, 30, 738, 87, 7866, 87, 6, 738, 261, 6429, 16186, 2978, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8481, 67, 9893, 12, 6429, 16, 585, 33, 7036, 4672, 3536, 2829, 4222, 358, 1172, 326, 29253, 4023, 12123, 1172, 2932, 797, 30, 738, 87, 7866, 87, 6, 738, 261, 6429, 16186, 2978, 97...
self.fileClean( params ) self.fileBuild( params )
self.fileBuild( params, "rebuild" )
def fileRebuild( self, params ): """Rebuild (clean & build) a .bb file""" self.fileClean( params ) self.fileBuild( params )
b7b4747e707bea6f9dee836e6b04b0f9ff9fedab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/b7b4747e707bea6f9dee836e6b04b0f9ff9fedab/shell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 426, 3510, 12, 365, 16, 859, 262, 30, 3536, 426, 3510, 261, 6200, 473, 1361, 13, 279, 263, 9897, 585, 8395, 365, 18, 768, 7605, 12, 859, 262, 365, 18, 768, 3116, 12, 859, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 426, 3510, 12, 365, 16, 859, 262, 30, 3536, 426, 3510, 261, 6200, 473, 1361, 13, 279, 263, 9897, 585, 8395, 365, 18, 768, 7605, 12, 859, 262, 365, 18, 768, 3116, 12, 859, 262, ...
self.root_accel = AcceleratorList("^X", "Ctrl-TAB", "Ctrl-X Ctrl-S", "C-x C-c", frame=self)
self.root_accel = AcceleratorList("^X", "Ctrl-TAB", "Ctrl-X Ctrl-S", "C-x C-c")
def setAlternateMenu(self): self.root_accel.unbindEvents(self.ctrl) menuBar = wx.MenuBar() gmap = wx.Menu() self.root_accel = AcceleratorList("^X", "Ctrl-TAB", "Ctrl-X Ctrl-S", "C-x C-c", frame=self) self.menuAddM(menuBar, gmap, "Alternate", "Global key map") self.menuAdd(gmap, "New\tC-N", StatusUpdater) self.menuAdd...
06dbd30848e3f3b419df2c1574810e7baa52289b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/06dbd30848e3f3b419df2c1574810e7baa52289b/multikey.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 25265, 4599, 12, 2890, 4672, 365, 18, 3085, 67, 30737, 18, 318, 4376, 3783, 12, 2890, 18, 16277, 13, 225, 3824, 5190, 273, 7075, 18, 4599, 5190, 1435, 314, 1458, 273, 7075, 18, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 25265, 4599, 12, 2890, 4672, 365, 18, 3085, 67, 30737, 18, 318, 4376, 3783, 12, 2890, 18, 16277, 13, 225, 3824, 5190, 273, 7075, 18, 4599, 5190, 1435, 314, 1458, 273, 7075, 18, 45...
good = arg
good.append(arg)
def main(): """Main program; parse options and go.""" try: opts, args = getopt.getopt(sys.argv[1:], 'hdfg:s:p:u:') except getopt.error, msg: usage(2, msg) if not opts: usage(2, "No options given") pck = DEFAULTDB good = spam = unknown = None do_filter = usedb = False for opt, arg in opts: if opt == '-h': usage(0) eli...
c9870420a64c1bd5a600a2397e137afd48384e63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/c9870420a64c1bd5a600a2397e137afd48384e63/hammie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 31, 1109, 702, 471, 1960, 12123, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 22057, 2137, 30, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 6376, 5402, 31, 1109, 702, 471, 1960, 12123, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 22057, 2137, 30, 87, ...
if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'darwin'):
if (sys.platform.startswith('linux') or sys.platform.startswith('freebsd') or sys.platform.startswith('netbsd') or sys.platform == 'darwin'):
def testGetServBy(self): eq = self.assertEqual # Find one service that exists, then check all the related interfaces. # I've ordered this by protocols that have both a tcp and udp # protocol, at least for modern Linuxes. if sys.platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8', 'darwin')...
b603d03f156888671f1fb492e7edd22d1560c21f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/b603d03f156888671f1fb492e7edd22d1560c21f/test_socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 967, 827, 90, 858, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 4163, 1245, 1156, 716, 1704, 16, 1508, 866, 777, 326, 3746, 7349, 18, 468, 467, 8081, 5901, 333, 635, 165...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 827, 90, 858, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 468, 4163, 1245, 1156, 716, 1704, 16, 1508, 866, 777, 326, 3746, 7349, 18, 468, 467, 8081, 5901, 333, 635, 165...
log("TagReader timeout:", self.sound_file.get_filename_for_display())
def work(self): if not self.run_start_time: self.run_start_time = time.time() if self.sound_file.mime_type in tag_blacklist: log("%s: type is %s, tag reading blacklisted" % (self.sound_file.get_filename_for_display(), self.sound_file.mime_type)) return False
3e69b215dc239d79bf32256eda93e76cd783fa53 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2369/3e69b215dc239d79bf32256eda93e76cd783fa53/soundconverter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1440, 12, 2890, 4672, 309, 486, 365, 18, 2681, 67, 1937, 67, 957, 30, 365, 18, 2681, 67, 1937, 67, 957, 273, 813, 18, 957, 1435, 309, 365, 18, 29671, 67, 768, 18, 11757, 67, 723, 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, 1440, 12, 2890, 4672, 309, 486, 365, 18, 2681, 67, 1937, 67, 957, 30, 365, 18, 2681, 67, 1937, 67, 957, 273, 813, 18, 957, 1435, 309, 365, 18, 29671, 67, 768, 18, 11757, 67, 723, 3...
result[propo.id]='No segments defined'
result[propo.id] = 'No segments defined'
def _quantity_planned_get(self, cr, uid, ids, name, args, context={}): result ={} for propo in self.browse(cr,uid,ids): if not propo.segment_ids: result[propo.id]='No segments defined' continue qty = 0 for segment in propo.segment_ids: if segment.quantity_planned == 0: result[propo.id]='planned Quantity missing in a Se...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 412, 10041, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 450, 1631, 316, 365, 18, 25731, 12, 3353, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16172, 67, 412, 10041, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 450, 1631, 316, 365, 18, 25731, 12, 3353, 16...
def db_lookup():
def db_lookup(field, key, publish_year=None):
def db_lookup(): sql = 'select sum(ebook_count) as num from subjects where field=$field and key=$key' if publish_year: if isinstance(publish_year, list): sql += ' and publish_year between $y1 and $y2' (y1, y2) = publish_year else: sql += ' and publish_year=$publish_year' return list(ebook_count_db.query(sql, vars=local...
7ee2813ee865b1ea2e86442585e8582bfea5983e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/7ee2813ee865b1ea2e86442585e8582bfea5983e/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 8664, 12, 1518, 16, 498, 16, 3808, 67, 6874, 33, 7036, 4672, 1847, 273, 296, 4025, 2142, 12, 73, 3618, 67, 1883, 13, 487, 818, 628, 16782, 1625, 652, 13295, 1518, 471, 498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1319, 67, 8664, 12, 1518, 16, 498, 16, 3808, 67, 6874, 33, 7036, 4672, 1847, 273, 296, 4025, 2142, 12, 73, 3618, 67, 1883, 13, 487, 818, 628, 16782, 1625, 652, 13295, 1518, 471, 498, ...
table_navigation.attach(gtk.Label(), 1, 2, 1, 2, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) navlabel = gtk.Label() navlabel.set_markup('<b>' + _('Navigation') + '</b>') navlabel.set_alignment(0, 1) table_navigation.attach(navlabel, 1, 2, 2, 3, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 15, 0) mousewheelnav = gtk.Ch...
table_navigation.attach(gtk.Label(), 1, 2, 1, 2, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 0, 0) navlabel = gtk.Label() navlabel.set_markup('<b>' + _('Navigation') + '</b>') navlabel.set_alignment(0, 1) table_navigation.attach(navlabel, 1, 2, 2, 3, gtk.FILL|gtk.EXPAND, gtk.FILL|gtk.EXPAND, 15, 0) mousewheelnav = gtk.Ch...
def show_prefs(self, action): self.prefs_dialog = gtk.Dialog(title=_("Mirage Preferences"), parent=self.window) self.prefs_dialog.set_has_separator(False) self.prefs_dialog.set_resizable(False) # Add "Interface" prefs:
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1484, 2556, 12, 2890, 16, 1301, 4672, 365, 18, 1484, 2556, 67, 12730, 273, 22718, 18, 6353, 12, 2649, 33, 67, 2932, 49, 481, 410, 28310, 6, 3631, 982, 33, 2890, 18, 5668, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 1484, 2556, 12, 2890, 16, 1301, 4672, 365, 18, 1484, 2556, 67, 12730, 273, 22718, 18, 6353, 12, 2649, 33, 67, 2932, 49, 481, 410, 28310, 6, 3631, 982, 33, 2890, 18, 5668, 1...
chooser.set_current_name(os.path.split(self.config["filename"])[1])
chooser.set_current_folder(os.path.dirname(self.config["filename"])) chooser.set_current_name(os.path.basename(self.config["filename"]))
def configure(self): """ See MixdownAction.configure """ buttons = (gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_SAVE,gtk.RESPONSE_OK) chooser = gtk.FileChooserDialog(_("Export as"), None, gtk.FILE_CHOOSER_ACTION_SAVE, buttons) chooser.set_current_folder(os.path.expanduser("~")) chooser.set_do_overwrite_confirmation(...
684d605d4c1afbdc6dbe9420469e3066c364423c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/684d605d4c1afbdc6dbe9420469e3066c364423c/MixdownProfiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 4672, 3536, 2164, 31043, 2378, 1803, 18, 14895, 3536, 9502, 273, 261, 4521, 79, 18, 31487, 3507, 67, 25268, 16, 4521, 79, 18, 14508, 67, 25268, 16, 4521, 79, 18, 31487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 12, 2890, 4672, 3536, 2164, 31043, 2378, 1803, 18, 14895, 3536, 9502, 273, 261, 4521, 79, 18, 31487, 3507, 67, 25268, 16, 4521, 79, 18, 14508, 67, 25268, 16, 4521, 79, 18, 31487, ...
``character_table_values(G)``\*`[v_1, ..., v_n] = [c_1, ..., c_n]`, where `[v_1, ...,v_n]` = ``character_table_values(G)`` `^{-1}[c_1, ...,c_n]`.
``character_table_values(G)``\* [v_1, ..., v_n] = [c_1, ..., c_n], where [v_1, ..., v_n] = ``character_table_values(G)`` ^(-1)[c_1, ..., c_n].
def character_table(self): r""" Returns the matrix of values of the irreducible characters of a permutation group `G` at the conjugacy classes of `G`. The columns represent the the conjugacy classes of `G` and the rows represent the different irreducible characters in the ordering given by GAP. EXAMPLES:: sage: G = P...
6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
exts.append( Extension('nis', ['nismodule.c'], libraries = ['nsl']) )
libs = ['nsl'] else: libs = [] exts.append( Extension('nis', ['nismodule.c'], libraries = libs) )
def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.append('/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.append( '/usr/local/include' )
e98b82c9e287c91a53020cb0b5e25d55f0874f8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e98b82c9e287c91a53020cb0b5e25d55f0874f8c/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 309, 1173, 13640, 19, 3729, 19, 2941, 11, 486, 316, 365, 18, 9576, 18, 12083, 67, 8291, 30, 365, ...
elif len(f) == 1:
elif len(clientdata) == 1:
def FetchMetadata(self, client, image=None, profile=None): if ((image != None) and (profile != None)): # Client asserted profile/image self.clients[client] = (image, profile) f = [x for x in self.element.findall("Client") if x.attrib['name'] == client] if len(f) == 0: # non-existent client SubElement(self.element, "Cli...
8ce27b3c73b1f4b17f1b558f7e5f1d4f57c2559d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/8ce27b3c73b1f4b17f1b558f7e5f1d4f57c2559d/Metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8065, 2277, 12, 2890, 16, 1004, 16, 1316, 33, 7036, 16, 3042, 33, 7036, 4672, 309, 14015, 2730, 480, 599, 13, 471, 261, 5040, 480, 599, 3719, 30, 468, 2445, 1815, 329, 3042, 19, 2730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8065, 2277, 12, 2890, 16, 1004, 16, 1316, 33, 7036, 16, 3042, 33, 7036, 4672, 309, 14015, 2730, 480, 599, 13, 471, 261, 5040, 480, 599, 3719, 30, 468, 2445, 1815, 329, 3042, 19, 2730, ...
RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'true')
RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'true', 'jsdocs/')
def BuildO3DJSDocs(js_files, ezt_output_dir, html_output_dir): RunJSDocToolkit(js_files, ezt_output_dir, html_output_dir, 'js_0_1_', 'true')
57366dfa28d4548bfa0f89fbfa6f61c959f50a28 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/57366dfa28d4548bfa0f89fbfa6f61c959f50a28/build_docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 51, 23, 40, 6479, 12656, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 4672, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 51, 23, 40, 6479, 12656, 12, 2924, 67, 2354, 16, 8012, 88, 67, 2844, 67, 1214, 16, 1729, 67, 2844, 67, 1214, 4672, 1939, 6479, 1759, 6364, 8691, 12, 2924, 67, 2354, 16, 8012, 8...
sites = gConfig.getSections('/Resources/Sites/%s' %grid,[])
sites = gConfig.getSections( '/Resources/Sites/%s' % grid, [] )
def getCESiteMapping(gridName=''): """ Returns a dictionary of all CEs and their associated site, e.g. {'ce101.cern.ch':'LCG.CERN.ch', ...]} Assumes CS structure of: /Resources/Sites/<GRIDNAME>/<SITENAME> """ ceSiteMapping = {} gridTypes = gConfig.getSections('/Resources/Sites/',[]) if not gridTypes['OK']: gLogger.warn...
22589f96877819f2316c9c3a130752773212d632 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/22589f96877819f2316c9c3a130752773212d632/SiteCEMapping.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1441, 4956, 3233, 12, 5222, 461, 2218, 11, 4672, 3536, 2860, 279, 3880, 434, 777, 385, 6705, 471, 3675, 3627, 2834, 16, 425, 18, 75, 18, 13666, 311, 15168, 18, 14770, 18, 343, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1441, 4956, 3233, 12, 5222, 461, 2218, 11, 4672, 3536, 2860, 279, 3880, 434, 777, 385, 6705, 471, 3675, 3627, 2834, 16, 425, 18, 75, 18, 13666, 311, 15168, 18, 14770, 18, 343, 11,...
self.assert_(int(groups[2]) == pid,
self.assertEqual(int(groups[2]), pid,
def test_create_tmp(self, repetitions=10): # Create files in tmp directory hostname = socket.gethostname() if '/' in hostname: hostname = hostname.replace('/', r'\057') if ':' in hostname: hostname = hostname.replace(':', r'\072') pid = os.getpid() pattern = re.compile(r"(?P<time>\d+)\.M(?P<M>\d{1,6})P(?P<P>\d+)" r"Q(?...
7731c36bc6f787ca91b8429603fe004822f1f2d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/7731c36bc6f787ca91b8429603fe004822f1f2d8/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2640, 67, 5645, 12, 2890, 16, 22265, 5029, 33, 2163, 4672, 468, 1788, 1390, 316, 1853, 1867, 5199, 273, 2987, 18, 75, 546, 669, 529, 1435, 309, 2023, 316, 5199, 30, 5199, 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, 1842, 67, 2640, 67, 5645, 12, 2890, 16, 22265, 5029, 33, 2163, 4672, 468, 1788, 1390, 316, 1853, 1867, 5199, 273, 2987, 18, 75, 546, 669, 529, 1435, 309, 2023, 316, 5199, 30, 5199, 273...
log.info( "User has selected group %s" % group )
gLogger.info( "User %s has selected group %s" % ( sessionManager.getUsername(), group ) )
def changeGroup( self ): group = request.environ[ 'pylons.routes_dict' ][ 'id' ] log.info( "User has selected group %s" % group ) sessionManager.setSelectedGroup( group ) if 'HTTP_REFERER' in request.environ: return redirect_to( request.environ[ 'HTTP_REFERER' ] ) else: return redirect_to( helpers.url_for( "/" ) )
20b560b9ffd6f2e058fef618affa7c04aef43902 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/20b560b9ffd6f2e058fef618affa7c04aef43902/userdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 1114, 12, 365, 262, 30, 1041, 273, 590, 18, 28684, 63, 296, 2074, 80, 7008, 18, 10854, 67, 1576, 11, 308, 63, 296, 350, 11, 308, 314, 3328, 18, 1376, 12, 315, 1299, 738, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 1114, 12, 365, 262, 30, 1041, 273, 590, 18, 28684, 63, 296, 2074, 80, 7008, 18, 10854, 67, 1576, 11, 308, 63, 296, 350, 11, 308, 314, 3328, 18, 1376, 12, 315, 1299, 738, 87, ...
elif statmatch(np, st) and supported_type(np, st): yield util.pconvert(np), st
if statmatch(np, st) and np in dc: yield 'm', util.pconvert(np), st elif statmatch(np, st): if self.supported_type(np, st): yield 'f', util.pconvert(np), st elif np in dc: yield 'm', util.pconvert(np), st
def findfiles(s): retfiles = [] work = [s] while work: top = work.pop() names = os.listdir(top) names.sort() # nd is the top of the repository dir tree nd = util.normpath(top[len(self.root) + 1:]) if nd == '.': nd = '' for f in names: np = os.path.join(nd, f) if seen(np): continue p = os.path.join(top, f) # don't trip ...
96032505f683e49a6628cd8635161914c169b238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/96032505f683e49a6628cd8635161914c169b238/dirstate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 325, 2354, 273, 5378, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 2354, 12, 87, 4672, 325, 2354, 273, 5378, 1440, 273, 306, 87, 65, 1323, 1440, 30, 1760, 273, 1440, 18, 5120, 1435, 1257, 273, 1140, 18, 1098, 1214, 12, 3669, 13, 1257, 18, 3804, ...
elif ask_key: options.extend([ "-oStrictHostKeyChecking=ask", ])
else: if ask_key: options.append("-oStrictHostKeyChecking=ask") elif strict_host_check: options.append("-oStrictHostKeyChecking=yes") else: options.append("-oStrictHostKeyChecking=no")
def _BuildSshOptions(self, batch, ask_key, use_cluster_key, strict_host_check): """Builds a list with needed SSH options.
e66d9f1abf0e6be79dd5677054ba8c3aae9dc799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/e66d9f1abf0e6be79dd5677054ba8c3aae9dc799/ssh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3116, 27364, 1320, 12, 2890, 16, 2581, 16, 6827, 67, 856, 16, 999, 67, 7967, 67, 856, 16, 5490, 67, 2564, 67, 1893, 4672, 3536, 7746, 279, 666, 598, 3577, 9892, 702, 18, 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, 389, 3116, 27364, 1320, 12, 2890, 16, 2581, 16, 6827, 67, 856, 16, 999, 67, 7967, 67, 856, 16, 5490, 67, 2564, 67, 1893, 4672, 3536, 7746, 279, 666, 598, 3577, 9892, 702, 18, 2, -100...
curve.setStyle(Qwt.QwtPlotCurve.Spline) curve.setSplineSize(200)
curve.setStyle(Qwt.QwtPlotCurve.Lines) curve.setCurveAttribute(Qwt.QwtPlotCurve.Fitted) curveFitter = Qwt.QwtSplineCurveFitter() curveFitter.setSplineSize(200) curve.setCurveFitter(curveFitter)
def __init__(self, *args): Qt.QFrame.__init__(self, *args)
d85a8df3501e76ed1335abceb1d616a0e44cd179 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5650/d85a8df3501e76ed1335abceb1d616a0e44cd179/CurveDemo3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 7354, 18, 53, 3219, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 7354, 18, 53, 3219, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
from twisted.trial.util import deferredResult
def encodeTokens(obj, debug=0): from twisted.trial.util import deferredResult b = TokenStorageBanana() b.debug = debug d = b.send(obj) deferredResult(d) return b.tokens
e81e73b104949eb8b76f68e6a0459dcecd6c2afd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e81e73b104949eb8b76f68e6a0459dcecd6c2afd/debug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2017, 5157, 12, 2603, 16, 1198, 33, 20, 4672, 324, 273, 3155, 3245, 38, 304, 13848, 1435, 324, 18, 4148, 273, 1198, 302, 273, 324, 18, 4661, 12, 2603, 13, 7045, 1253, 12, 72, 13, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2017, 5157, 12, 2603, 16, 1198, 33, 20, 4672, 324, 273, 3155, 3245, 38, 304, 13848, 1435, 324, 18, 4148, 273, 1198, 302, 273, 324, 18, 4661, 12, 2603, 13, 7045, 1253, 12, 72, 13, 327...
'SAGE Scripts',
'Sage Scripts',
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file).
9f49a1c307694e045ec245b9406a55b5387d5935 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/9f49a1c307694e045ec245b9406a55b5387d5935/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 335...
title = url2unicode(title, site = insite)
title = url2unicode(title, site = insite, site2 = site)
def __init__(self, site, title = None, insite = None, tosite = None): """ Constructor. Normally called with two arguments: Parameters: 1) The wikimedia site on which the page resides 2) The title of the page as a unicode string The argument insite can be specified to help decode the name; it is the wikimedia site wher...
c5f4e8dd5dbd882a62c2b5357da93298bbc3ecea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/c5f4e8dd5dbd882a62c2b5357da93298bbc3ecea/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2834, 16, 2077, 273, 599, 16, 2763, 1137, 273, 599, 16, 358, 4256, 273, 599, 4672, 3536, 11417, 18, 24773, 1230, 2566, 598, 2795, 1775, 30, 7012, 30, 404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2834, 16, 2077, 273, 599, 16, 2763, 1137, 273, 599, 16, 358, 4256, 273, 599, 4672, 3536, 11417, 18, 24773, 1230, 2566, 598, 2795, 1775, 30, 7012, 30, 404...
if c in self.xmpp_connections.itervalues(): if hasattr(c, 'Process'): c.Process(0.01) c.lock.release()
if hasattr(c, 'Process'): c.Process(0.01) c.lock.release()
def _xmpp_loop(self): """[Internal] XMPP infinite loop.""" while True: try: if len(self.xmpp_connections) == 1: sleep(0.5) # avoid bot connection being locked all the time for c in self.xmpp_connections.itervalues(): if hasattr(c, 'lock'): c.lock.acquire() if c in self.xmpp_connections.itervalues(): if hasattr(c, 'Pro...
e731e28ac68f7a1254208cca8ecb0d415514c7c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/e731e28ac68f7a1254208cca8ecb0d415514c7c1/bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 92, 24109, 67, 6498, 12, 2890, 4672, 3536, 63, 3061, 65, 23216, 14853, 2798, 12123, 1323, 1053, 30, 775, 30, 309, 562, 12, 2890, 18, 92, 24109, 67, 13313, 13, 422, 404, 30, 5329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 92, 24109, 67, 6498, 12, 2890, 4672, 3536, 63, 3061, 65, 23216, 14853, 2798, 12123, 1323, 1053, 30, 775, 30, 309, 562, 12, 2890, 18, 92, 24109, 67, 13313, 13, 422, 404, 30, 5329, ...
fp = open(fss.as_pathname(), 'w') fss.SetCreatorType('Pyth', 'TEXT') fp.write('"""Suite %s: %s\n' % (name, desc)) fp.write("Level %d, version %d\n\n" % (level, version)) fp.write("Generated from %s\n"%fname) fp.write("AETE/AEUT resource version %d/%d, language %d, script %d\n" % \ (major, minor, language, script)) fp....
def compilesuite(suite, major, minor, language, script, fname, basepackage=None): """Generate code for a single suite""" [name, desc, code, level, version, events, classes, comps, enums] = suite modname = identify(name) if len(modname) > 28: modname = modname[:27] fss, ok = macfs.StandardPutFile('Python output file', ...
b18e37723e6f3e7fe6bae03f14e954721df23eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b18e37723e6f3e7fe6bae03f14e954721df23eaf/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1161, 1449, 9519, 12, 30676, 16, 7888, 16, 8439, 16, 2653, 16, 2728, 16, 5299, 16, 1026, 5610, 33, 7036, 4672, 3536, 4625, 981, 364, 279, 2202, 11371, 8395, 306, 529, 16, 3044, 16, 981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1161, 1449, 9519, 12, 30676, 16, 7888, 16, 8439, 16, 2653, 16, 2728, 16, 5299, 16, 1026, 5610, 33, 7036, 4672, 3536, 4625, 981, 364, 279, 2202, 11371, 8395, 306, 529, 16, 3044, 16, 981...
if dir == '.': dir = '' if dir.startswith('..') or dir[0] == '/':
if dir == '.': dir = '' if dir.startswith('..') or (dir and dir[0] == '/'):
def get_module_filetree(module, dir='.'): path = get_module_path(module) if not path: return False dir = os.path.normpath(dir) if dir == '.': dir = '' if dir.startswith('..') or dir[0] == '/': raise Exception('Cannot access file outside the module') if not os.path.isdir(path): # zipmodule zip = zipfile.ZipFile(path +...
09d28729528bb27ea9c8c78ad4a3afecc54ecbc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/09d28729528bb27ea9c8c78ad4a3afecc54ecbc1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 67, 7540, 31303, 12, 2978, 16, 1577, 2218, 1093, 4672, 589, 273, 336, 67, 2978, 67, 803, 12, 2978, 13, 309, 486, 589, 30, 327, 1083, 225, 1577, 273, 1140, 18, 803, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2978, 67, 7540, 31303, 12, 2978, 16, 1577, 2218, 1093, 4672, 589, 273, 336, 67, 2978, 67, 803, 12, 2978, 13, 309, 486, 589, 30, 327, 1083, 225, 1577, 273, 1140, 18, 803, 18,...
for ch in s: if _entitymap.has_key(ch): res = res + "&" + _entitymap[ch] + ";" else: res = res + ch
if s is not None: for ch in s: if _entitymap.has_key(ch): res = res + "&" + _entitymap[ch] + ";" else: res = res + ch
def htmlEncode(s): res = "" for ch in s: if _entitymap.has_key(ch): res = res + "&" + _entitymap[ch] + ";" else: res = res + ch return res
d3843e17612f84bb1410479bfebe54ab881ff694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/d3843e17612f84bb1410479bfebe54ab881ff694/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 5509, 12, 87, 4672, 400, 273, 1408, 309, 272, 353, 486, 599, 30, 364, 462, 316, 272, 30, 309, 389, 1096, 1458, 18, 5332, 67, 856, 12, 343, 4672, 400, 273, 400, 397, 16347, 397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 5509, 12, 87, 4672, 400, 273, 1408, 309, 272, 353, 486, 599, 30, 364, 462, 316, 272, 30, 309, 389, 1096, 1458, 18, 5332, 67, 856, 12, 343, 4672, 400, 273, 400, 397, 16347, 397,...
self.body.append('\\addtocounter{enumi}{%d}\n' \
self.out.append('\\addtocounter{enumi}{%d}\n' \
def visit_enumerated_list (self, node): #LaTeXTranslator has a very complicated #visit_enumerated_list that throws out much of what latex #does to handle them for us. I am going back to relying #on latex. if ('contents' in getattr (self, 'topic_classes', [])): if self.use_latex_toc: raise nodes.SkipNode self.body.appe...
37db8ffa549b63ebad9bbc3310aeafe2a276f03b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5620/37db8ffa549b63ebad9bbc3310aeafe2a276f03b/rst2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 7924, 19007, 67, 1098, 261, 2890, 16, 756, 4672, 468, 30745, 21575, 60, 12233, 711, 279, 8572, 31312, 468, 11658, 67, 7924, 19007, 67, 1098, 716, 1216, 596, 9816, 434, 4121, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 7924, 19007, 67, 1098, 261, 2890, 16, 756, 4672, 468, 30745, 21575, 60, 12233, 711, 279, 8572, 31312, 468, 11658, 67, 7924, 19007, 67, 1098, 716, 1216, 596, 9816, 434, 4121, 25...
sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFilePath))
if self.LoadFixAddress != 0: sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFilePath))
def _SaveMapFile (self, MapBuffer, Wa): # # Map file path is got. # MapFilePath = os.path.join(Wa.BuildDir, Wa.Name + '.map') # # Save address map into MAP file. # SaveFileOnChange(MapFilePath, MapBuffer.getvalue(), False) MapBuffer.close() sys.stdout.write ("\nLoad Module At Fix Address Map file saved to %s\n" %(MapFi...
9ff69f35c75043c955fc92ca465db39f6bf1ead5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/9ff69f35c75043c955fc92ca465db39f6bf1ead5/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4755, 863, 812, 261, 2890, 16, 1635, 1892, 16, 678, 69, 4672, 468, 468, 1635, 585, 589, 353, 2363, 18, 468, 1635, 5598, 273, 1140, 18, 803, 18, 5701, 12, 59, 69, 18, 3116, 1621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4755, 863, 812, 261, 2890, 16, 1635, 1892, 16, 678, 69, 4672, 468, 468, 1635, 585, 589, 353, 2363, 18, 468, 1635, 5598, 273, 1140, 18, 803, 18, 5701, 12, 59, 69, 18, 3116, 1621,...
domain = orange.Domain(self.data.domain.attributes + [self.data.domain.classVar]) for m in metas: domain.addmeta(orange.newmetaid(), m) predictions = orange.ExampleTable(domain, self.data) predictions.name = self.data.name self.send("Predictions", predictions) def selection(self): def cmpclasses(clist): """returns Tr...
def predictions(self): if self.freezeAttChange: return if not self.data or not self.classifiers: self.send("Predictions", None)
63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13067, 12, 2890, 4672, 309, 365, 18, 29631, 3075, 3043, 30, 327, 309, 486, 365, 18, 892, 578, 486, 365, 18, 1106, 3383, 30, 365, 18, 4661, 2932, 20766, 87, 3113, 599, 13, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13067, 12, 2890, 4672, 309, 365, 18, 29631, 3075, 3043, 30, 327, 309, 486, 365, 18, 892, 578, 486, 365, 18, 1106, 3383, 30, 365, 18, 4661, 2932, 20766, 87, 3113, 599, 13, 2, -100, -1...
if auth.provider.domain != 'db': raise Exception("Invalid domainm for object service") if method not in self._auth_commands['db']:
if auth.provider.domain not in self._auth_commands: raise Exception("Invalid domain for object service") if method not in self._auth_commands[auth.provider.domain]:
def new_dispatch(self, method, auth, params, auth_domain=None): # Double check, that we have the correct authentication: if not auth: raise Exception("Not auth domain for object service") if auth.provider.domain != 'db': raise Exception("Invalid domainm for object service") if method not in self._auth_commands['db']: r...
d4129a2f8ce3f5552f0539e68a7e8f41c03af215 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/d4129a2f8ce3f5552f0539e68a7e8f41c03af215/web_services.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 10739, 12, 2890, 16, 707, 16, 1357, 16, 859, 16, 1357, 67, 4308, 33, 7036, 4672, 468, 3698, 866, 16, 716, 732, 1240, 326, 3434, 5107, 30, 309, 486, 1357, 30, 1002, 1185, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 10739, 12, 2890, 16, 707, 16, 1357, 16, 859, 16, 1357, 67, 4308, 33, 7036, 4672, 468, 3698, 866, 16, 716, 732, 1240, 326, 3434, 5107, 30, 309, 486, 1357, 30, 1002, 1185, 293...
def export_installDatabase(self,rootpwd,dbname): """ Install a DIRAC database named dbname """ diracpwd = gConfig.getValue('/Systems/Databases/Password','') if not diracpwd: return S_ERROR('Database password is not defined') currentEnv = os.environ currentEnv['MYSQL_ROOT_PWD'] = rootpwd currentEnv['MYSQL_DIRAC_PWD'] = ...
def export_installDatabase( self, dbName ): """ Install a DIRAC database named dbName """ return InstallTools.installDatabase( dbName ) types_addDatabaseOptionsToCS = [ StringTypes, StringTypes ] def export_addDatabaseOptionsToCS( self, system, database, overwrite = False ): """ Add the section with the database optio...
def export_installDatabase(self,rootpwd,dbname): """ Install a DIRAC database named dbname """ diracpwd = gConfig.getValue('/Systems/Databases/Password','') if not diracpwd: return S_ERROR('Database password is not defined') currentEnv = os.environ currentEnv['MYSQL_ROOT_PWD'] = rootpwd currentEnv['MYSQL_DIRAC_PWD'] = ...
12be5ded5b2add0661f20d7fa8bd6def28fb091b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/12be5ded5b2add0661f20d7fa8bd6def28fb091b/SystemAdministratorHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5425, 4254, 12, 2890, 16, 3085, 27487, 16, 20979, 4672, 3536, 10284, 279, 18544, 2226, 2063, 4141, 18448, 3536, 4314, 354, 4057, 3623, 273, 314, 809, 18, 24805, 2668, 19, 31072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 5425, 4254, 12, 2890, 16, 3085, 27487, 16, 20979, 4672, 3536, 10284, 279, 18544, 2226, 2063, 4141, 18448, 3536, 4314, 354, 4057, 3623, 273, 314, 809, 18, 24805, 2668, 19, 31072, ...
stdout.replace('\r\n', '\n')
stdout = stdout.replace('\r\n', '\n')
def resolve(self, variables, setting): cline = self._arguments[0].resolve(variables, setting)
b66e40a7cc617c10995bc1d57161877ed32f82ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7005/b66e40a7cc617c10995bc1d57161877ed32f82ee/functions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 3152, 16, 3637, 4672, 927, 558, 273, 365, 6315, 7099, 63, 20, 8009, 10828, 12, 7528, 16, 3637, 13, 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, 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, 2245, 12, 2890, 16, 3152, 16, 3637, 4672, 927, 558, 273, 365, 6315, 7099, 63, 20, 8009, 10828, 12, 7528, 16, 3637, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
class RulesetController(object): """Listens for messages used to store and query rulesets""" def __init__(self, hub, storage): self.storage = storage self.hub = hub self.addClients() def addClients(self): """Add our clients to the Message.Hub. This uses an extra level of indirection so that rebuild() can replace refer...
def flatten(self): """Return a flat list of all Ruleset objects so we can store 'em""" return [delivery.ruleset for delivery in self.rulesetMap.itervalues()]
f0ed2b2783639365fa45d590280a741f40e144f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/f0ed2b2783639365fa45d590280a741f40e144f0/Ruleset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 4672, 3536, 990, 279, 3569, 666, 434, 777, 15718, 278, 2184, 1427, 732, 848, 1707, 296, 351, 8395, 327, 306, 15703, 18, 7482, 278, 364, 7912, 316, 365, 18, 7482, 278, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5341, 12, 2890, 4672, 3536, 990, 279, 3569, 666, 434, 777, 15718, 278, 2184, 1427, 732, 848, 1707, 296, 351, 8395, 327, 306, 15703, 18, 7482, 278, 364, 7912, 316, 365, 18, 7482, 278, 8...
q.append('SELECT 2 as type, summary AS title, ' ' description AS message, reporter AS author, keywords,' ' id AS data, time,0 AS ver' ' FROM ticket WHERE %s OR %s OR %s OR %s OR %s' % (self.query_to_sql(query, 'summary'),
q.append('SELECT DISTINCT 2 as type, a.summary AS title, ' ' a.description AS message, a.reporter AS author, a.keywords as keywords,' ' a.id AS data, a.time as time, 0 AS ver' ' FROM ticket a LEFT JOIN ticket_change b ON a.id = b.ticket' ' WHERE (b.field=\'comment\' AND %s ) OR' ' %s OR %s OR %s OR %s OR %s' % (self.qu...
def perform_query (self, query, changeset, tickets, wiki, page=0): keywords = query.split(' ')
a30e9db32eaba65a3abf27a070778bceb20c21a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/a30e9db32eaba65a3abf27a070778bceb20c21a5/Search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2271, 261, 2890, 16, 843, 16, 22463, 16, 24475, 16, 9050, 16, 1363, 33, 20, 4672, 7093, 273, 843, 18, 4939, 2668, 8624, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2271, 261, 2890, 16, 843, 16, 22463, 16, 24475, 16, 9050, 16, 1363, 33, 20, 4672, 7093, 273, 843, 18, 4939, 2668, 8624, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.canvas.set_size_request(self.bg.get_width(), self.bg.get_height())
def __init__(self, deferred, netclient, fps): self.fps = fps self.deferred = deferred self.netclient = netclient
b678ac7eff46d2af5d07c3c0b6b3064a0f4ca389 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/b678ac7eff46d2af5d07c3c0b6b3064a0f4ca389/frontend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7045, 16, 2901, 2625, 16, 26067, 4672, 365, 18, 74, 1121, 273, 26067, 365, 18, 26622, 273, 7045, 365, 18, 2758, 2625, 273, 2901, 2625, 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, 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, 7045, 16, 2901, 2625, 16, 26067, 4672, 365, 18, 74, 1121, 273, 26067, 365, 18, 26622, 273, 7045, 365, 18, 2758, 2625, 273, 2901, 2625, 2, -100, -100, -10...
b = a / math.sqrt(1.0 - sim.pol_ellipse_e**2)
b = a * math.sqrt(1.0 - sim.pol_ellipse_e**2)
def hrss_in_instrument(sim, instrument): """ Given an injection and an instrument, compute and return the h_rss of the injection as should be observed in the instrument. That is, project the waveform onto the instrument, and return the root integrated strain squared. """ # semimajor and semiminor axes of polarization ...
eb2a4e0e06bac7f07ca7059a215b8b2e994ea43d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/eb2a4e0e06bac7f07ca7059a215b8b2e994ea43d/SimBurstUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15407, 1049, 67, 267, 67, 22818, 12, 9812, 16, 10353, 4672, 3536, 16803, 392, 10380, 471, 392, 10353, 16, 3671, 471, 327, 326, 366, 67, 25151, 434, 326, 10380, 487, 1410, 506, 12117, 316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15407, 1049, 67, 267, 67, 22818, 12, 9812, 16, 10353, 4672, 3536, 16803, 392, 10380, 471, 392, 10353, 16, 3671, 471, 327, 326, 366, 67, 25151, 434, 326, 10380, 487, 1410, 506, 12117, 316...
sel.connect_object('changed', copool.add, self.__songs_selected, sel)
sel.connect_object('changed', copool.add, self.__songs_selected, dt)
def __init__(self, library, player): super(FileSystem, self).__init__() self.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) self.set_shadow_type(gtk.SHADOW_IN)
12833e0deddfd67ebe8af2a49e6edf4601963575 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/12833e0deddfd67ebe8af2a49e6edf4601963575/filesystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5313, 16, 7291, 4672, 2240, 12, 11785, 16, 365, 2934, 972, 2738, 972, 1435, 365, 18, 542, 67, 5086, 12, 4521, 79, 18, 26366, 67, 37, 1693, 1872, 11781, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5313, 16, 7291, 4672, 2240, 12, 11785, 16, 365, 2934, 972, 2738, 972, 1435, 365, 18, 542, 67, 5086, 12, 4521, 79, 18, 26366, 67, 37, 1693, 1872, 11781, ...