rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
self.bondBefore = bondBefore self.bondAfter = bondAfter
def __init__(self, currentChainModel, structureEditor, resSeqNum, chosenCoordinates, viewer, bondBefore=None, bondAfter=None, description=None): super(CommandAcceptAtomPlacement, self).__init__(description) self.currentChainModel = currentChainModel self.structureEditor = structureEditor self.resSeqNum = resSeqNum self.chosenCoordinates = chosenCoordinates self.viewer = viewer self.bondBefore = bondBefore self.bondAfter = bondAfter
be290785c9222be753703ba6feed159f62895298 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4399/be290785c9222be753703ba6feed159f62895298/structure_editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 783, 3893, 1488, 16, 3695, 6946, 16, 400, 6926, 2578, 16, 10447, 13431, 16, 14157, 16, 8427, 4649, 33, 7036, 16, 8427, 4436, 33, 7036, 16, 2477, 33, 7036...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 783, 3893, 1488, 16, 3695, 6946, 16, 400, 6926, 2578, 16, 10447, 13431, 16, 14157, 16, 8427, 4649, 33, 7036, 16, 8427, 4436, 33, 7036, 16, 2477, 33, 7036...
str = str + c
token.append(c)
def parseaddr(address): import string str = '' email = '' comment = '' backslash = 0 dquote = 0 space = 0 paren = 0 bracket = 0 seen_bracket = 0 for c in address: if backslash: str = str + c backslash = 0 continue if c == '\\': backslash = 1 continue if dquote: if c == '"': dquote = 0 else: str = str + c continue if c == '"': dquote = 1 continue if c in string.whitespace: space = 1 continue if space: str = str + ' ' space = 0 if paren: if c == '(': paren = paren + 1 str = str + c continue if c == ')': paren = paren - 1 if paren == 0: comment = comment + str str = '' continue if c == '(': paren = paren + 1 if bracket: email = email + str str = '' elif not seen_bracket: email = email + str str = '' continue if bracket: if c == '>': bracket = 0 email = email + str str = '' continue if c == '<': bracket = 1 seen_bracket = 1 comment = comment + str str = '' email = '' continue if c == '#' and not bracket and not paren: # rest is comment break str = str + c if str: if seen_bracket: if bracket: email = str else: comment = comment + str else: if paren: comment = comment + str else: email = email + str return string.strip(comment), string.strip(email)
a27c46cb14f5161823e8286256b61e46ad0634c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a27c46cb14f5161823e8286256b61e46ad0634c5/rfc822.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 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, 1109, 4793, 12, 2867, 4672, 1930, 533, 609, 273, 875, 2699, 273, 875, 2879, 273, 875, 23253, 273, 374, 302, 6889, 273, 374, 3476, 273, 374, 22146, 273, 374, 9843, 273, 374, 5881, 67, 2...
elif buffer == self.mode.buffer:
elif buffer == self.buffer:
def execute(self): """Operate on all the flags for each of the buffers. For each buffer item, process the flags to perform the requested action. """ delete_self = None try: list_count = self.GetItemCount() for index in range(list_count): key = self.GetItem(index, 5).GetText() flags = self.flags[key] dprint("flags %s for %s" % (flags, key)) if not flags: continue self.updating = True buffer = Dired.findBufferByURL(key) if 'S' in flags: buffer.save() if 'D' in flags: if buffer.modified: Publisher().sendMessage('peppy.log.error', "Buffer %s modified. Not deleting.\n" % key) elif buffer == self.mode.buffer: # BadThings happen if you try to delete this buffer # in the middle of the delete process! dprint("Deleting me! Save till later") delete_self = buffer elif not buffer.permanent: buffer.removeAllViewsAndDelete() del self.flags[key] # skip processing any other flags if the buffer has # been deleted. continue elif 'M' in flags: self.mode.frame.newBuffer(buffer) self.flags[key] = "" finally: if delete_self is not None: dprint("OK, now deleting myself") self.deletePreHook() # delete the buffer using call after to allow any pending # events to the list to be cleaned up wx.CallAfter(delete_self.removeAllViewsAndDelete) elif self.updating: self.updating = False self.reset()
5cfb102115321ea923828cfe2331e4b8f8a43e20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5cfb102115321ea923828cfe2331e4b8f8a43e20/dired.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 3542, 340, 603, 777, 326, 2943, 364, 1517, 434, 326, 9664, 18, 225, 2457, 1517, 1613, 761, 16, 1207, 326, 2943, 358, 3073, 326, 3764, 1301, 18, 3536, 1430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 3536, 3542, 340, 603, 777, 326, 2943, 364, 1517, 434, 326, 9664, 18, 225, 2457, 1517, 1613, 761, 16, 1207, 326, 2943, 358, 3073, 326, 3764, 1301, 18, 3536, 1430, ...
writefile(os.path.join(distutils_path, 'distutils.cfg'), DISTUTILS_CFG, overwrite=False)
writefile(os.path.join(distutils_path, 'distutils.cfg'), distutils_cfg, overwrite=False)
def install_distutils(lib_dir): distutils_path = os.path.join(lib_dir, 'distutils') mkdir(distutils_path) writefile(os.path.join(distutils_path, '__init__.py'), DISTUTILS_INIT) writefile(os.path.join(distutils_path, 'distutils.cfg'), DISTUTILS_CFG, overwrite=False)
c470644f69661b102e212e3e763de440c46f14f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12981/c470644f69661b102e212e3e763de440c46f14f8/virtualenv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 4413, 5471, 12, 2941, 67, 1214, 4672, 2411, 5471, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2941, 67, 1214, 16, 296, 4413, 5471, 6134, 6535, 12, 4413, 5471, 67, 803, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 4413, 5471, 12, 2941, 67, 1214, 4672, 2411, 5471, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2941, 67, 1214, 16, 296, 4413, 5471, 6134, 6535, 12, 4413, 5471, 67, 803, 13, 1...
'mvto':mvto,
'to':mvto,
def move(self, mvto, reason=False, movetalk=False, noredirect=False, watch=False, unwatch=False): """ Move the page Most params are self-explanatory mvto (move to) is the only required param must have "suppressredirect" right to use noredirect """ if not self.exists: raise NoPage token = self.getToken('move') params = { 'action': 'move', 'fromid':self.pageid, 'mvto':mvto, 'token':token, } if reason: params['reason'] = reason.encode('utf-8') if movetalk: params['movetalk'] = '1' if noredirect: params['noredirect'] = '1' if watch: params['watch'] = '1' if unwatch: params['unwatch'] = '1' req = api.APIRequest(self.site, params, write=False) result = req.query() if 'move' in result: self.title = result['move']['to'] if not isinstance(self.title, unicode): self.title = unicode(self.title, 'utf-8') self.urltitle = urllib.quote(self.title.encode('utf-8')).replace('%20', '_').replace('%2F', '/') else: self.urltitle = urllib.quote(self.title.encode('utf-8')).replace('%20', '_').replace('%2F', '/') return result
bf82abe3ecbe2a7fd86fcbd203ee221d9624a5d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8398/bf82abe3ecbe2a7fd86fcbd203ee221d9624a5d5/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 12, 2890, 16, 7701, 869, 16, 3971, 33, 8381, 16, 5730, 278, 2960, 33, 8381, 16, 290, 479, 7205, 33, 8381, 16, 4267, 33, 8381, 16, 640, 7585, 33, 8381, 4672, 3536, 9933, 326, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 12, 2890, 16, 7701, 869, 16, 3971, 33, 8381, 16, 5730, 278, 2960, 33, 8381, 16, 290, 479, 7205, 33, 8381, 16, 4267, 33, 8381, 16, 640, 7585, 33, 8381, 4672, 3536, 9933, 326, 13...
message = slskmessages.FileSearchResult(None, user, geoip, searchid, results, fileindex, slotsavail, self.speed, queuesizes, fifoqueue)
message = slskmessages.FileSearchResult(None, self.config.sections["server"]["login"], geoip, searchid, results, fileindex, slotsavail, self.speed, queuesizes, fifoqueue)
def processSearchRequest(self, searchterm, user, searchid, direct = 0): if searchterm is None: return
9aef0c1eee141aab4ff5f302f25da270d2e16a74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/9aef0c1eee141aab4ff5f302f25da270d2e16a74/pynicotine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2979, 691, 12, 2890, 16, 1623, 6408, 16, 729, 16, 1623, 350, 16, 2657, 273, 374, 4672, 309, 1623, 6408, 353, 599, 30, 327, 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, 1207, 2979, 691, 12, 2890, 16, 1623, 6408, 16, 729, 16, 1623, 350, 16, 2657, 273, 374, 4672, 309, 1623, 6408, 353, 599, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
smtp_server = config['smtp_server'] if smtp_server.startswith('maildir:/'): from mailbox import Maildir maildir_path = smtp_server[8:] try: mdir = Maildir(maildir_path,factory=None, create = True) mdir.add(msg.as_string(True)) return True except Exception,e: netsvc.Logger().notifyChannel('email_send (maildir)', netsvc.LOG_ERROR, e) return False return _email_send(msg, openobject_id=openobject_id, debug=debug)
return _email_send(email_from, flatten([email_to, email_cc, email_bcc]), msg, openobject_id=openobject_id, ssl=ssl, debug=debug)
def write(self, s): self.logger.notifyChannel('email_send', netsvc.LOG_DEBUG, s)
3d8d4a173b87927fdf5ffb9de8e423ad1b1599b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/3d8d4a173b87927fdf5ffb9de8e423ad1b1599b5/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 272, 4672, 365, 18, 4901, 18, 12336, 2909, 2668, 3652, 67, 4661, 2187, 21954, 4227, 18, 4842, 67, 9394, 16, 272, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 272, 4672, 365, 18, 4901, 18, 12336, 2909, 2668, 3652, 67, 4661, 2187, 21954, 4227, 18, 4842, 67, 9394, 16, 272, 13, 2, -100, -100, -100, -100, -100, -100, -100, -1...
if not f90: raise CompilerNotFound('f90')
def set_exe(exe_key, f77=None, f90=None): cmd = self.executables.get(exe_key, None) if not cmd: return None # Note that we get cmd[0] here if the environment doesn't # have anything set exe_from_environ = getattr(self.command_vars, exe_key) if not exe_from_environ: possibles = [f90, f77] + self.possible_executables else: possibles = [exe_from_environ] + self.possible_executables
888d6eddcb686d7b4b502b34be35be9acec84f6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/888d6eddcb686d7b4b502b34be35be9acec84f6b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 14880, 12, 14880, 67, 856, 16, 284, 4700, 33, 7036, 16, 284, 9349, 33, 7036, 4672, 1797, 273, 365, 18, 4177, 322, 1538, 18, 588, 12, 14880, 67, 856, 16, 599, 13, 309, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 14880, 12, 14880, 67, 856, 16, 284, 4700, 33, 7036, 16, 284, 9349, 33, 7036, 4672, 1797, 273, 365, 18, 4177, 322, 1538, 18, 588, 12, 14880, 67, 856, 16, 599, 13, 309, 486, ...
remainderString = " "+ number_to_string(remainder)
remainderString = " "+ number_to_words(remainder)
def number_to_words(number): if number == 0: return "none" if number < 20: return [ "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" ][number] if number < 100: factor = (number / 10) - 2 remainder = number % 10 if remainder: remainderString = " "+ number_to_string(remainder) return [ "twenty", "thirty", "fourty", "fifty", "sixty", "seventy", "eighty", "ninety" ][factor] + remainderString if number < 1000: factor = (number / 100) remainder = number % 100 parts = [ number_to_words(factor) +" hundred" ] if remainder: parts.append(number_to_words(remainder)) return " and ".join(parts) if number < 1000000: factor = number / 1000 remainder = number % 1000 parts = [ number_to_words(factor) +" thousand" ] if remainder: parts.append(number_to_words(remainder)) if remainder < 100: return " and ".join(parts) return ", ".join(parts) factor = number / 1000000 remainder = number % 1000000 parts = [ number_to_words(factor) +" million" ] if remainder: parts.append(number_to_words(remainder)) if remainder < 100: return " and ".join(parts) return ", ".join(parts)
7838c4218c8625ee01295721a88c709cad84abc4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/7838c4218c8625ee01295721a88c709cad84abc4/textsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1300, 67, 869, 67, 3753, 12, 2696, 4672, 309, 1300, 422, 374, 30, 327, 315, 6102, 6, 225, 309, 1300, 411, 4200, 30, 327, 306, 315, 476, 3113, 315, 15415, 3113, 315, 451, 992, 3113, 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, 1300, 67, 869, 67, 3753, 12, 2696, 4672, 309, 1300, 422, 374, 30, 327, 315, 6102, 6, 225, 309, 1300, 411, 4200, 30, 327, 306, 315, 476, 3113, 315, 15415, 3113, 315, 451, 992, 3113, 3...
self.extension_path = extension_path
self.extension_path = extension_path
def __init__(self, name=ANONYMOUS_PROFILE_NAME, port=DEFAULT_PORT, template_profile=None, extension_path=None): """Creates a FirefoxProfile.
fe70a540da47b72418f8f98fe1949a5bc7f7cb65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3504/fe70a540da47b72418f8f98fe1949a5bc7f7cb65/firefox_profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 33, 1258, 673, 61, 5980, 3378, 67, 22462, 67, 1985, 16, 1756, 33, 5280, 67, 6354, 16, 1542, 67, 5040, 33, 7036, 16, 2710, 67, 803, 33, 7036, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 33, 1258, 673, 61, 5980, 3378, 67, 22462, 67, 1985, 16, 1756, 33, 5280, 67, 6354, 16, 1542, 67, 5040, 33, 7036, 16, 2710, 67, 803, 33, 7036, 4672,...
>>> a = TM(p, o2, o3) >>> type(a).__name__ '_Proxy' >>> a = removeSecurityProxy(a) >>> a.context[0] is o, a.context[1] is o2, a.context[2] is o3 (True, True, True) >>> a = TM(p, ProxyFactory(o2), ProxyFactory(o3)) >>> type(a).__name__ '_Proxy' >>> a = removeSecurityProxy(a) >>> a.context[0] is o, a.context[1] is o2, a.context[2] is o3 (True, True, True) The __parent__ will be set to the first object if the adapter is a location. M isn't a location, so the adapter has no __parent__: >>> a.__parent__ Traceback (most recent call last): ... AttributeError: 'M' object has no attribute '__parent__' But if we create an adapter that is a Location: >>> class L(A, Location): ... pass >>> TL = TrustedAdapterFactory(L) Then __parent__ will be set: >>> TL(o).__parent__ is o True >>> removeSecurityProxy(TL(p)).__parent__ is o True The factory adapter has the __name__ and __module__ of the factory it adapts: >>> (TA.__module__, TA.__name__) == (A.__module__, A.__name__) True """
see adapter.txt """
... def __init__(self, *context):
c4df19b7123c032c70b5860013f9a3c864759b7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9520/c4df19b7123c032c70b5860013f9a3c864759b7f/adapter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 2472, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 2472, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def validate(self, value):
def _validate(self, value):
def validate(self, value): if not isinstance(value, decimal.Decimal): raise zope.schema.ValidationError( "Value must be of type 'Decimal', not '%s'." % ( type(value).__name__) )
2bb51952418355129fdd1bbd0aa61b3c4cbe1ffa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8726/2bb51952418355129fdd1bbd0aa61b3c4cbe1ffa/field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 12, 2890, 16, 460, 4672, 309, 486, 1549, 12, 1132, 16, 6970, 18, 5749, 4672, 1002, 998, 1306, 18, 4821, 18, 12101, 12, 315, 620, 1297, 506, 434, 618, 296, 5749, 2187, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5662, 12, 2890, 16, 460, 4672, 309, 486, 1549, 12, 1132, 16, 6970, 18, 5749, 4672, 1002, 998, 1306, 18, 4821, 18, 12101, 12, 315, 620, 1297, 506, 434, 618, 296, 5749, 2187, 486, ...
class _SSLBioProxy:
class _BioProxy:
def listenTCP(port, factory, backlog=5, interface='', reactor=twisted.internet.reactor, postConnectionCheck=None): """ A convenience function to listen for TCP connections using Twisted. NOTE: You must call startTLS(ctx) to go into SSL/TLS mode. See IReactorTCP interface in Twisted. """ wrappingFactory = policies.WrappingFactory(factory) wrappingFactory.protocol = lambda factory, wrappedProtocol: \ TLSProtocolWrapper(factory, wrappedProtocol, startPassThrough=1, client=0, contextFactory=None, postConnectionCheck=postConnectionCheck) return reactor.listenTCP(port, wrappingFactory, backlog, interface)
a99db2ef84a088d900677844b0f1a047a8cfd25a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10522/a99db2ef84a088d900677844b0f1a047a8cfd25a/TwistedProtocolWrapper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 13891, 12, 655, 16, 3272, 16, 1473, 1330, 33, 25, 16, 1560, 2218, 2187, 19178, 33, 11246, 25444, 18, 267, 14726, 18, 266, 3362, 16, 1603, 1952, 1564, 33, 7036, 4672, 3536, 432, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 13891, 12, 655, 16, 3272, 16, 1473, 1330, 33, 25, 16, 1560, 2218, 2187, 19178, 33, 11246, 25444, 18, 267, 14726, 18, 266, 3362, 16, 1603, 1952, 1564, 33, 7036, 4672, 3536, 432, 1...
if invalid_module.internal_version != invalid_module.module_descriptor.version:
desc = None try:
def attempt_automatic_upgrade(controller, pipeline, module_id, function_remap={}, src_port_remap={}, dst_port_remap={}, annotation_remap={}): """attempt_automatic_upgrade(module_id, pipeline): [Action]
6599e17ec5695db0a0389e47986fbae0d2b583d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/6599e17ec5695db0a0389e47986fbae0d2b583d5/upgradeworkflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 67, 5854, 4941, 67, 15097, 12, 5723, 16, 5873, 16, 1605, 67, 350, 16, 445, 67, 266, 1458, 28793, 1705, 67, 655, 67, 266, 1458, 28793, 3046, 67, 655, 67, 266, 1458, 28793, 3204, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4395, 67, 5854, 4941, 67, 15097, 12, 5723, 16, 5873, 16, 1605, 67, 350, 16, 445, 67, 266, 1458, 28793, 1705, 67, 655, 67, 266, 1458, 28793, 3046, 67, 655, 67, 266, 1458, 28793, 3204, ...
try: unicode('abc\001', codecname) except UnicodeError: print '\\001 maps to undefined: OK' else: print '*** check failed: \\001 does not map to undefined'
def test_maptoundefined(self): self.assertRaises(UnicodeError, unicode, 'abc\001', codecname) def test_main(): suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(CharmapCodecTest)) test.test_support.run_suite(suite) if __name__ == "__main__": test_main()
def check(a, b): if a != b: print '*** check failed: %s != %s' % (repr(a), repr(b)) else: print '%s == %s: OK' % (a, b)
1413fdd21de7ea15a17172fb1461ea80e82f70fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1413fdd21de7ea15a17172fb1461ea80e82f70fc/test_charmapcodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 69, 16, 324, 4672, 309, 279, 480, 324, 30, 1172, 296, 14465, 866, 2535, 30, 738, 87, 480, 738, 87, 11, 738, 261, 12715, 12, 69, 3631, 8480, 12, 70, 3719, 469, 30, 1172, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 69, 16, 324, 4672, 309, 279, 480, 324, 30, 1172, 296, 14465, 866, 2535, 30, 738, 87, 480, 738, 87, 11, 738, 261, 12715, 12, 69, 3631, 8480, 12, 70, 3719, 469, 30, 1172, 19...
"type" : "JClassDepJob",
"type" : "JCompileJob",
def listJobTriggers(self): return {
f5d4ca3e2e1dc0f3d07bc854aac0f88163180ebf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/f5d4ca3e2e1dc0f3d07bc854aac0f88163180ebf/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 2278, 15114, 12, 2890, 4672, 327, 288, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 2278, 15114, 12, 2890, 4672, 327, 288, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.parser.parseError()
self.parser.parseError(_(u"Unexpected end tag (col). " u"col has no end tag."))
def endTagCol(self, name): self.parser.parseError()
d714b17ea5dc88de01658fc32a1153e84dbce4ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/d714b17ea5dc88de01658fc32a1153e84dbce4ff/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 914, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 914, 12, 2890, 16, 508, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.location == 0:
if self.location == 0:
def put_zoom_image_to_window(self, currimg_preloaded):
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, 1378, 67, 14932, 67, 2730, 67, 869, 67, 5668, 12, 2890, 16, 4306, 6081, 67, 1484, 4230, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 67, 14932, 67, 2730, 67, 869, 67, 5668, 12, 2890, 16, 4306, 6081, 67, 1484, 4230, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_)
def build(self, node): self.buildAttributes(node, node.attrib, []) self.valueOf_ = get_all_text_(node) if node.text is not None: obj_ = self.mixedclass_(MixedContainer.CategoryText, MixedContainer.TypeNone, '', node.text) self.content_.append(obj_) for child in node: nodeName_ = Tag_pattern_.match(child.tag).groups()[-1] self.buildChildren(child, nodeName_)
9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 756, 4672, 365, 18, 3510, 2498, 12, 2159, 16, 756, 18, 14588, 16, 5378, 13, 364, 1151, 316, 756, 30, 7553, 67, 273, 4034, 67, 4951, 27799, 1916, 12, 3624, 18, 269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 16, 756, 4672, 365, 18, 3510, 2498, 12, 2159, 16, 756, 18, 14588, 16, 5378, 13, 364, 1151, 316, 756, 30, 7553, 67, 273, 4034, 67, 4951, 27799, 1916, 12, 3624, 18, 269...
tokenNumber = self.PcdTokenNumber[pcd.TokenSpaceGuidCName, pcd.TokenCName]
tokenNumber = self.PcdTokenNumber[pcd.TokenCName, pcd.TokenSpaceGuidCName]
def CreateModulePcdCode(self, pcd): # # Write PCDs # #for TokenSpaceGuidCName in self.Module.Pcds: # Platform.PcdDatabase[ModuleSA]: # for C_Name in Platform.PcdDatabase[ModuleSA][TokenSpaceGuidCName]: # Pcd = Platform.PcdDatabase[ModuleSA][TokenSpaceGuidCName][C_Name] pcdTokenName = '_PCD_TOKEN_' + pcd.TokenCName if pcd.Type == TAB_PCDS_DYNAMIC_EX: tokenNumber = pcd.TokenValue else: tokenNumber = self.PcdTokenNumber[pcd.TokenSpaceGuidCName, pcd.TokenCName] self.AutoGenH.Append('#define %s %d\n' % (pcdTokenName, tokenNumber))
502c7f8e852c690f3cb00ab852f2902d8eb0db4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/502c7f8e852c690f3cb00ab852f2902d8eb0db4f/AutoGen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3120, 52, 4315, 1085, 12, 2890, 16, 293, 4315, 4672, 468, 468, 2598, 453, 10160, 87, 468, 468, 1884, 3155, 3819, 22549, 39, 461, 316, 365, 18, 3120, 18, 28136, 2377, 30, 468, 118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 3120, 52, 4315, 1085, 12, 2890, 16, 293, 4315, 4672, 468, 468, 2598, 453, 10160, 87, 468, 468, 1884, 3155, 3819, 22549, 39, 461, 316, 365, 18, 3120, 18, 28136, 2377, 30, 468, 118...
if os.path.isabs(self.target_file._name) and self.target_file._name.startswith(MEDIA_URL): self.target_file._name = self.target_file._name[len(MEDIA_URL):]
if os.path.isabs(self.target_file.name) and self.target_file.name.startswith(MEDIA_URL): self.target_file.name = self.target_file.name[len(MEDIA_URL):]
def delete(self, *args, **kwargs): """ Delete entry; provide hack to fix old absolute-path-storing. """ import os # If needby, strip URL prefix if os.path.isabs(self.target_file._name) and self.target_file._name.startswith(MEDIA_URL): self.target_file._name = self.target_file._name[len(MEDIA_URL):] # In case trailing slash missing if self.target_file._name[0] is '/': self.target_file._name = self.target_file._name[1:] super(Media, self).delete(*args, **kwargs)
536e646a98dfecbbbc9af869621b9b089e72c04d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/536e646a98dfecbbbc9af869621b9b089e72c04d/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2504, 1241, 31, 5615, 11769, 358, 2917, 1592, 4967, 17, 803, 17, 334, 6053, 18, 3536, 1930, 1140, 468, 971, 1608, 1637, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 2504, 1241, 31, 5615, 11769, 358, 2917, 1592, 4967, 17, 803, 17, 334, 6053, 18, 3536, 1930, 1140, 468, 971, 1608, 1637, 16, 2...
maxwidth = minwidth + ((2 ** auxdatalen.width) * 8) +
maxwidth = minwidth + ((2 ** auxdatalen.width) * 8) + \
def bounds(self, value): """Check the bounds of this field."""
5eccb02e90045c72191131d83261a0bde537827b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/5eccb02e90045c72191131d83261a0bde537827b/igmpv3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4972, 12, 2890, 16, 460, 4672, 3536, 1564, 326, 4972, 434, 333, 652, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4972, 12, 2890, 16, 460, 4672, 3536, 1564, 326, 4972, 434, 333, 652, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
un = self.getPureUserNames()
un = map(lambda x: x.getId(), self.getPureUsers())
def listUsersBatches(self,): """ listUsersBatches(self,) => return a list of (start, end) tuples. Return None if batching is not necessary """ # Time-consuming stuff ! un = self.getPureUserNames() if len(un) <= MAX_USERS_PER_PAGE: return None un.sort()
349a95cc3d754ca8884f37d7aef37803b7793cb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/349a95cc3d754ca8884f37d7aef37803b7793cb3/GroupUserFolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6588, 31584, 12, 2890, 16, 4672, 3536, 666, 6588, 31584, 12, 2890, 16, 13, 516, 327, 279, 666, 434, 261, 1937, 16, 679, 13, 10384, 18, 2000, 599, 309, 2581, 310, 353, 486, 4573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 6588, 31584, 12, 2890, 16, 4672, 3536, 666, 6588, 31584, 12, 2890, 16, 13, 516, 327, 279, 666, 434, 261, 1937, 16, 679, 13, 10384, 18, 2000, 599, 309, 2581, 310, 353, 486, 4573, ...
def doDistribution(releaseMode, workingDir, log, outputDir, buildVersion, buildVersionEscaped, distOption, hardhatScript):
def doDistribution(releaseMode, workingDir, log, outputDir, buildVersion, buildVersionEscaped, hardhatScript):
def doDistribution(releaseMode, workingDir, log, outputDir, buildVersion, buildVersionEscaped, distOption, hardhatScript): # Create end-user, developer distributions print "Making distribution files for " + releaseMode log.write(separator) log.write("Making distribution files for " + releaseMode + "\n") if releaseMode == "debug": distOption = "-dD" else: distOption = "-D" try: outputList = hardhatutil.executeCommandReturnOutput( [hardhatScript, "-o", os.path.join(outputDir, buildVersion), distOption, buildVersionEscaped]) hardhatutil.dumpOutputList(outputList, log) except Exception, e: doCopyLog("***Error during distribution building process*** ", workingDir, logPath, log) raise e
b7d96f6e38cf31b878fa8c3597e8b8b36ca61582 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b7d96f6e38cf31b878fa8c3597e8b8b36ca61582/newchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 9003, 12, 9340, 2309, 16, 5960, 1621, 16, 613, 16, 21412, 16, 1361, 1444, 16, 1361, 1444, 17208, 16, 7877, 11304, 3651, 4672, 468, 282, 1788, 679, 17, 1355, 16, 8751, 23296, 1172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 9003, 12, 9340, 2309, 16, 5960, 1621, 16, 613, 16, 21412, 16, 1361, 1444, 16, 1361, 1444, 17208, 16, 7877, 11304, 3651, 4672, 468, 282, 1788, 679, 17, 1355, 16, 8751, 23296, 1172, ...
length = length - 2
length = length - 1 break elif platformId == 1 and encodingId == 0 and languageId == 0 \ and nameId == 6: psName = self.get_chunk(string_data_offset + offset, length) for char in psName: char = ord(char) if char < 33 or char > 126 or chr(char) in \ ('[', ']', '(', ')', '{', '}', '<', '>', '/', '%'): raise TTFError, "PostScript contains invalid character %02X" % char break
def extractInfo(self, charInfo=1): """Extract typographic information from the loaded font file.
07507b8a952bfffc6323d9fd017854aa4f8705ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/07507b8a952bfffc6323d9fd017854aa4f8705ae/ttfonts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 966, 12, 2890, 16, 1149, 966, 33, 21, 4672, 3536, 4976, 3815, 16983, 1779, 628, 326, 4203, 3512, 585, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 966, 12, 2890, 16, 1149, 966, 33, 21, 4672, 3536, 4976, 3815, 16983, 1779, 628, 326, 4203, 3512, 585, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
nodeConnections.append(0)
def crackConnections(crackConnectionImage): edges = [None] nodeImage = GrayImage(crackConnectionImage.size()) nodePositions = [None] for startPos in meshIter(crackConnectionImage.size()): #startPos = Point2D(*startPos) nodeConn = int(crackConnectionImage[startPos]) if isNode(nodeConn): startNode = int(nodeImage[startPos]) if not startNode: nodeImage[startPos] = startNode = len(nodePositions) << 4 nodePositions.append(Vector2(*startPos) - Vector2(0.5, 0.5)) nodeConnections.append(0) for direction, startConn in enumerate(connections): if nodeConn & startConn and not startNode & startConn: edge, endPos, endConn = followEdge( crackConnectionImage, startPos, direction) endNode = int(nodeImage[endPos]) if not endNode: endNode = len(nodePositions) << 4 nodePositions.append(Vector2(*endPos) - Vector2(0.5, 0.5)) assert not endNode & endConn, "double connection?" edges.append((startNode >> 4, endNode >> 4, Polygon(edge))) startNode |= startConn if endNode >> 4 == startNode >> 4: startNode |= endConn nodeImage[startPos] = startNode else: nodeImage[startPos] = startNode nodeImage[endPos] = endNode | endConn return nodePositions, edges
2daee55c485c15dd62d69be06fc16ad48f1752ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/2daee55c485c15dd62d69be06fc16ad48f1752ec/crackConvert.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 21580, 9314, 12, 71, 21580, 1952, 2040, 4672, 5231, 273, 306, 7036, 65, 756, 2040, 273, 12435, 2040, 12, 71, 21580, 1952, 2040, 18, 1467, 10756, 756, 11024, 273, 306, 7036, 65, 364,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 21580, 9314, 12, 71, 21580, 1952, 2040, 4672, 5231, 273, 306, 7036, 65, 756, 2040, 273, 12435, 2040, 12, 71, 21580, 1952, 2040, 18, 1467, 10756, 756, 11024, 273, 306, 7036, 65, 364,...
print "nextPktNum: New Time"
LOG.debug( "nextPktNum: New Time" )
def nextPktNum(self):
94194b78b83de3d89b6ffd035804de2c82bbaff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4752/94194b78b83de3d89b6ffd035804de2c82bbaff0/dtella_bridgeserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 7789, 88, 2578, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 7789, 88, 2578, 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, -10...
This example involves a `p`-adic number. ::
This example involves a `p`-adic number::
def algdep(z, degree, known_bits=None, use_bits=None, known_digits=None, use_digits=None, height_bound=None, proof=False): """ Returns a polynomial of degree at most `degree` which is approximately satisfied by the number `z`. Note that the returned polynomial need not be irreducible, and indeed usually won't be if `z` is a good approximation to an algebraic number of degree less than `degree`. You can specify the number of known bits or digits with ``known_bits=k`` or ``known_digits=k``; Pari is then told to compute the result using `0.8k` of these bits/digits. (The Pari documentation recommends using a factor between .6 and .9, but internally defaults to .8.) Or, you can specify the precision to use directly with ``use_bits=k`` or ``use_digits=k``. If none of these are specified, then the precision is taken from the input value. A height bound may specified to indicate the maximum coefficient size of the returned polynomial; if a sufficiently small polyomial is not found then ``None`` wil be returned. If ``proof=True`` then the result is returned only if it can be proved correct (i.e. the only possible minimal polynomial satisfying the height bound, or no such polynomial exists). Otherwise a ``ValueError`` is raised indicating that higher precision is required. ALGORITHM: Uses LLL for real/complex inputs, PARI C-library algdep command otherwise. Note that ``algebraic_dependency`` is a synonym for ``algdep``. INPUT: - ``z`` - real, complex, or `p`-adic number - ``degree`` - an integer - ``height_bound`` - an integer (default ``None``) specifying the maximum coefficient size for the returned polynomial - ``proof`` - a boolean (default ``False``), requres height_bound to be set EXAMPLES:: sage: algdep(1.888888888888888, 1) 9*x - 17 sage: algdep(0.12121212121212,1) 33*x - 4 sage: algdep(sqrt(2),2) x^2 - 2 This example involves a complex number. :: sage: z = (1/2)*(1 + RDF(sqrt(3)) *CC.0); z 0.500000000000000 + 0.866025403784439*I sage: p = algdep(z, 6); p x^3 + 1 sage: p.factor() (x + 1) * (x^2 - x + 1) sage: z^2 - z + 1 0 This example involves a `p`-adic number. :: sage: K = Qp(3, print_mode = 'series') sage: a = K(7/19); a 1 + 2*3 + 3^2 + 3^3 + 2*3^4 + 2*3^5 + 3^8 + 2*3^9 + 3^11 + 3^12 + 2*3^15 + 2*3^16 + 3^17 + 2*3^19 + O(3^20) sage: algdep(a, 1) 19*x - 7 These examples show the importance of proper precision control. We compute a 200-bit approximation to sqrt(2) which is wrong in the 33'rd bit. :: sage: z = sqrt(RealField(200)(2)) + (1/2)^33 sage: p = algdep(z, 4); p 227004321085*x^4 - 216947902586*x^3 - 99411220986*x^2 + 82234881648*x - 211871195088 sage: factor(p) 227004321085*x^4 - 216947902586*x^3 - 99411220986*x^2 + 82234881648*x - 211871195088 sage: algdep(z, 4, known_bits=32) x^2 - 2 sage: algdep(z, 4, known_digits=10) x^2 - 2 sage: algdep(z, 4, use_bits=25) x^2 - 2 sage: algdep(z, 4, use_digits=8) x^2 - 2 Using the ``height_bound`` and ``proof`` parameters, we can see that `pi` is not the root of an integer polynomial of degree at most 5 and coefficients bounded above by 10. :: sage: algdep(pi.n(), 5, height_bound=10, proof=True) is None True For stronger results, we need more precicion. :: sage: algdep(pi.n(), 5, height_bound=100, proof=True) is None Traceback (most recent call last): ... ValueError: insufficient precision for non-existence proof sage: algdep(pi.n(200), 5, height_bound=100, proof=True) is None True sage: algdep(pi.n(), 10, height_bound=10, proof=True) is None Traceback (most recent call last): ... ValueError: insufficient precision for non-existence proof sage: algdep(pi.n(200), 10, height_bound=10, proof=True) is None True We can also use ``proof=True`` to get positive results. :: sage: a = sqrt(2) + sqrt(3) + sqrt(5) sage: algdep(a.n(), 8, height_bound=1000, proof=True) Traceback (most recent call last): ... ValueError: insufficient precision for uniqueness proof sage: f = algdep(a.n(1000), 8, height_bound=1000, proof=True); f x^8 - 40*x^6 + 352*x^4 - 960*x^2 + 576 sage: f(a).expand() 0 """ if proof and not height_bound: raise ValueError, "height_bound must be given for proof=True" x = ZZ['x'].gen() if isinstance(z, (int, long, integer.Integer)): if height_bound and abs(z) >= height_bound: return None return x - ZZ(z) degree = ZZ(degree) if isinstance(z, (sage.rings.rational.Rational)): if height_bound and max(abs(z.denominator()), abs(z.numerator())) >= height_bound: return None return z.denominator()*x - z.numerator() if isinstance(z, float): z = sage.rings.real_mpfr.RR(z) elif isinstance(z, complex): z = sage.rings.complex_field.CC(z) if isinstance(z, (sage.rings.real_mpfr.RealNumber, sage.rings.complex_number.ComplexNumber)): log2_10 = 3.32192809488736 prec = z.prec() - 6 if known_digits is not None: known_bits = known_digits * log2_10 if known_bits is not None: use_bits = known_bits * 0.8 if use_digits is not None: use_bits = use_digits * log2_10 if use_bits is not None: prec = int(use_bits) is_complex = isinstance(z, sage.rings.complex_number.ComplexNumber) n = degree+1 from sage.matrix.all import matrix M = matrix(ZZ, n, n+1+int(is_complex)) r = ZZ(1) << prec M[0, 0] = 1 M[0,-1] = r for k in range(1, degree+1): M[k,k] = 1 r *= z if is_complex: M[k, -1] = r.real().round() M[k, -2] = r.imag().round() else: M[k, -1] = r.round() LLL = M.LLL(delta=.75) coeffs = LLL[0][:n] if height_bound: def norm(v): # norm on an integer vector invokes Integer.sqrt() which tries to factor... from sage.rings.real_mpfi import RIF return v.change_ring(RIF).norm() if max(abs(a) for a in coeffs) > height_bound: if proof: # Given an LLL reduced basis $b_1, ..., b_n$, we only # know that $|b_1| <= 2^((n-1)/2) |x|$ for non-zero $x \in L$. if norm(LLL[0]) <= 2**((n-1)/2) * n.sqrt() * height_bound: raise ValueError, "insufficient precision for non-existence proof" return None elif proof and norm(LLL[1]) < 2**((n-1)/2) * max(norm(LLL[0]), n.sqrt()*height_bound): raise ValueError, "insufficient precision for uniqueness proof" if coeffs[degree] < 0: coeffs = -coeffs f = list(coeffs) elif proof or height_bound: raise NotImplementedError, "proof and height bound only implemented for real and complex numbers" else: y = pari(z) f = y.algdep(degree) return x.parent()(f)
77a54f69e28a7333c3cd3eba5214f2a668319f2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/77a54f69e28a7333c3cd3eba5214f2a668319f2c/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11989, 15037, 12, 94, 16, 10782, 16, 4846, 67, 6789, 33, 7036, 16, 999, 67, 6789, 33, 7036, 16, 4846, 67, 16649, 33, 7036, 16, 999, 67, 16649, 33, 7036, 16, 2072, 67, 3653, 33, 7036,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11989, 15037, 12, 94, 16, 10782, 16, 4846, 67, 6789, 33, 7036, 16, 999, 67, 6789, 33, 7036, 16, 4846, 67, 16649, 33, 7036, 16, 999, 67, 16649, 33, 7036, 16, 2072, 67, 3653, 33, 7036,...
if self.kana[-2:]=="-2": self.kana = self.kana[:-2] if answer==self.kana:
if self.kana[-2:] == "-2": self.kana = self.kana[:-2] if answer == self.kana:
def checkAnswer(self,widget): """Check the given answer, update the score and display the result. """
64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 13203, 12, 2890, 16, 6587, 4672, 3536, 1564, 326, 864, 5803, 16, 1089, 326, 4462, 471, 2562, 326, 563, 18, 225, 3536, 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, 866, 13203, 12, 2890, 16, 6587, 4672, 3536, 1564, 326, 864, 5803, 16, 1089, 326, 4462, 471, 2562, 326, 563, 18, 225, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
DeleteKey(key, "sub_key")
DeleteKey(key, subkeystr)
def DeleteTestData(self, root_key): key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) sub_key = OpenKey(key, "sub_key", 0, KEY_ALL_ACCESS) # It is not necessary to delete the values before deleting # the key (although subkeys must not exist). We delete them # manually just to prove we can :-) for value_name, value_data, value_type in test_data: DeleteValue(sub_key, value_name)
27c230b00f34c7b812823e0eb8f7f9a484a40253 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/27c230b00f34c7b812823e0eb8f7f9a484a40253/test_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 498, 273, 3502, 653, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 16, 374, 16, 5311, 67, 4685, 67, 13204, 13, 720, 67, 856, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2504, 4709, 751, 12, 2890, 16, 1365, 67, 856, 4672, 498, 273, 3502, 653, 12, 3085, 67, 856, 16, 1842, 67, 856, 67, 529, 16, 374, 16, 5311, 67, 4685, 67, 13204, 13, 720, 67, 856, 27...
('01__actual__name', 'actual__name'), ]:
('01__actual__name.tsv', 'actual__name.tsv'), ('no_prefix_here.html', 'no_prefix_here.html') ]:
def test_remove_prefix(self): for inp, exp in [ ('01__hello', 'hello'), ('textual_prefix__hello', 'hello'), ('01__actual__name', 'actual__name'), ]: assert_equals(_remove_prefix(inp), exp)
017e22f3d6d4d6035562ac7608112fbbb0e0c22c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/017e22f3d6d4d6035562ac7608112fbbb0e0c22c/test_misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4479, 67, 3239, 12, 2890, 4672, 364, 12789, 16, 1329, 316, 306, 7707, 1611, 972, 23711, 2187, 296, 23711, 19899, 7707, 955, 1462, 67, 3239, 972, 23711, 2187, 296, 23711, 19899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 67, 3239, 12, 2890, 4672, 364, 12789, 16, 1329, 316, 306, 7707, 1611, 972, 23711, 2187, 296, 23711, 19899, 7707, 955, 1462, 67, 3239, 972, 23711, 2187, 296, 23711, 19899, ...
pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll))
pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll))
def main(): # Use Makefile for windows. distutils doesn't work well with windows. if sys.platform == 'win32': pydll = ('C:\windows\system32\python%s.dll' % sysconfig.get_config_vars('VERSION')[0]) os.system('make -f Makefile.win32 %s PY_HOME="%s" PY_DLL="%s"' % (' '.join(sys.argv[1:]), sys.prefix, pydll)) return pacparser_module = Extension('_pacparser', include_dirs = ['../spidermonkey/js/src', '..'], sources = ['pacparser_py.c'], extra_objects = ['../pacparser.o', '../libjs.a']) setup (name = 'pacparser', version = '1', description = 'Pacparser package', author = 'Manu Garg', author_email = 'manugarg@gmail.com', url = 'http://code.google.com/p/pacparser', long_description = 'python library to parse proxy auto-config (PAC) ' 'files.', license = 'LGPL', ext_package = 'pacparser', ext_modules = [pacparser_module], py_modules = ['pacparser.__init__'])
85d193ec0c9cfe2cb12c1e3d7b46ecada64a2873 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9887/85d193ec0c9cfe2cb12c1e3d7b46ecada64a2873/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 2672, 4344, 768, 364, 9965, 18, 2411, 5471, 3302, 1404, 1440, 5492, 598, 9965, 18, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2395, 27670, 273, 7707, 39, 5581, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 2672, 4344, 768, 364, 9965, 18, 2411, 5471, 3302, 1404, 1440, 5492, 598, 9965, 18, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2395, 27670, 273, 7707, 39, 5581, 13...
print "DEBUG: data:" print data
print "DEBUG: str1='%s', str2='%s', str3='%s', str4='%s'" %(str1, str2, str3, str4)
def destroy(obj, event, data): print "DEBUG: window destroy callback called!" print "DEBUG: data:" print data elementary.exit()
dff3caa2ec713908f112c4970120d3d880226170 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/dff3caa2ec713908f112c4970120d3d880226170/test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5546, 12, 2603, 16, 871, 16, 501, 4672, 1172, 315, 9394, 30, 2742, 5546, 1348, 2566, 4442, 1172, 315, 9394, 30, 609, 21, 28713, 87, 2187, 609, 22, 28713, 87, 2187, 609, 23, 28713, 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, 5546, 12, 2603, 16, 871, 16, 501, 4672, 1172, 315, 9394, 30, 2742, 5546, 1348, 2566, 4442, 1172, 315, 9394, 30, 609, 21, 28713, 87, 2187, 609, 22, 28713, 87, 2187, 609, 23, 28713, 87, ...
'shadow': 'fo:text-shadow'}
'shadow': 'fo:text-shadow', 'stroke': 'draw:stroke', 'fill_color': 'draw:fill-color', 'fill_image_width': 'draw:fill-image-width', 'fill_image_height': 'draw:fill-image-height', 'textarea_vertical_align': 'draw:textarea-vertical-align', 'line_distance': 'draw:line-distance', 'guide_overhang': 'draw:guide-overhang', 'guide_distance': 'draw:guide-distance' }
def _expand_properties(properties): # This mapping is not exhaustive, it only contains cases where replacing # '_' with '-' and adding the "fo:" prefix is not enough mapping = {# text 'font': 'style:font-name', 'size': 'fo:font-size', 'weight': 'fo:font-weight', 'style': 'fo:font-style', 'underline': 'style:text-underline-style', 'display': 'text:display', # paragraph 'align': 'fo:text-align', 'align-last': 'fo:text-align-last', 'indent': 'fo:text-indent', 'together': 'fo:keep-together', # TODO 'page-break-before': 'fo:page-break-before', # TODO 'page-break-after': 'fo:page-break-after', 'shadow': 'fo:text-shadow'} def map_key(key): key = mapping.get(key, key).replace('_', '-') if ":" not in key: key = "fo:" + key return key if type(properties) is dict: expanded = {} for key, value in properties.iteritems(): key = map_key(key) expanded[key] = value elif type(properties) is list: expanded = [] for key in properties: key = map_key(key) expanded.append(key) return expanded
ce033cd55fb60df835dde8066e973f6c4b1a713b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10612/ce033cd55fb60df835dde8066e973f6c4b1a713b/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 67, 4738, 12, 4738, 4672, 468, 1220, 2874, 353, 486, 19575, 641, 688, 16, 518, 1338, 1914, 6088, 1625, 13993, 468, 4427, 598, 4014, 471, 6534, 326, 315, 617, 2773, 1633, 353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 67, 4738, 12, 4738, 4672, 468, 1220, 2874, 353, 486, 19575, 641, 688, 16, 518, 1338, 1914, 6088, 1625, 13993, 468, 4427, 598, 4014, 471, 6534, 326, 315, 617, 2773, 1633, 353,...
assert oct(wa) == zs
def test01_SimpleMethods(self): if verbose: print '\n', '-=' * 30 print "Running %s.test01_SimpleMethods..." % \ self.__class__.__name__ print "\ta:\t%s\t%s\t0x%x" % (type(self.a), self.a, self.a) print "\tb:\t%s\t%s\t0x%x" % (type(self.b), self.b, self.b) print "\tc:\t%s\t%s\t0x%x" % (type(self.c), self.c, self.c)
3f6155b6e28fedbc1e082dbf1bca55535715aa77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1057/3f6155b6e28fedbc1e082dbf1bca55535715aa77/test_methods.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 5784, 4712, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 1611, 67, 5784, 4712, 7070, 738, 521, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1611, 67, 5784, 4712, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 1611, 67, 5784, 4712, 7070, 738, 521, 365, 1...
should be a single type object
should be a single string describing thd desired type
def __instantiator(self, type_blob, relative_to, **kwargs): """ Instantiate a type, which is defined by a type blob in the following format:
1971fbb523d07729bbc5e3fee87b01faf4378828 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12876/1971fbb523d07729bbc5e3fee87b01faf4378828/runner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 24628, 10620, 12, 2890, 16, 618, 67, 10721, 16, 3632, 67, 869, 16, 2826, 4333, 4672, 3536, 26492, 279, 618, 16, 1492, 353, 2553, 635, 279, 618, 4795, 316, 326, 3751, 740, 30, 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, 1001, 24628, 10620, 12, 2890, 16, 618, 67, 10721, 16, 3632, 67, 869, 16, 2826, 4333, 4672, 3536, 26492, 279, 618, 16, 1492, 353, 2553, 635, 279, 618, 4795, 316, 326, 3751, 740, 30, 2, ...
"""returns an invalid value and expected parse result by index."""
"""overridden from Argument."""
def GetInvalidArg(self, offset, index): """returns an invalid value and expected parse result by index.""" return ("-1", "kNoError", "GL_INVALID_VALUE")
1ef566cc7626f0180e4b8b44da00e60fdbb0de8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/1ef566cc7626f0180e4b8b44da00e60fdbb0de8e/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 327, 7566, 17, 21, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 4051, 7923, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1941, 4117, 12, 2890, 16, 1384, 16, 770, 4672, 3536, 83, 1107, 2794, 628, 5067, 12123, 327, 7566, 17, 21, 3113, 315, 79, 2279, 668, 3113, 315, 11261, 67, 9347, 67, 4051, 7923, 2, ...
children = list(self.getChildrenView()) for child in children: if child.is_watched_folder(): child.setVisible(False) child.set_folder(None) else: child.remove(moveItemsTo) DDBObject.remove(self)
"""Remove this folder and children. """ raise NotImplementedError()
def remove(self, moveItemsTo=None): children = list(self.getChildrenView()) for child in children: if child.is_watched_folder(): child.setVisible(False) # just hide watched folders child.set_folder(None) else: child.remove(moveItemsTo) DDBObject.remove(self)
7620b23064f4a74fedddd7c100a1abbfec02879a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/7620b23064f4a74fedddd7c100a1abbfec02879a/folder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 3635, 3126, 774, 33, 7036, 4672, 2325, 273, 666, 12, 2890, 18, 588, 4212, 1767, 10756, 364, 1151, 316, 2325, 30, 309, 1151, 18, 291, 67, 7585, 329, 67, 5609, 13332,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 3635, 3126, 774, 33, 7036, 4672, 2325, 273, 666, 12, 2890, 18, 588, 4212, 1767, 10756, 364, 1151, 316, 2325, 30, 309, 1151, 18, 291, 67, 7585, 329, 67, 5609, 13332,...
elif ((skipFlags & SKIP_WIDGET) and
elif base.direct and\ ((skipFlags & SKIP_WIDGET) and
def findCollisionEntry(self, skipFlags = SKIP_NONE, startIndex = 0): # Init self.index and self.entry self.setCurrentIndex(-1) self.setCurrentEntry(None) # Pick out the closest object that isn't a widget for i in range(startIndex, self.getNumEntries()): entry = self.getEntry(i) nodePath = entry.getIntoNodePath() if (skipFlags & SKIP_HIDDEN) and nodePath.isHidden(): # Skip if hidden node pass elif (skipFlags & SKIP_BACKFACE) and self.isEntryBackfacing(entry): # Skip, if backfacing poly pass elif ((skipFlags & SKIP_CAMERA) and (camera in nodePath.getAncestors())): # Skip if parented to a camera. pass # Can pick unpickable, use the first visible node elif ((skipFlags & SKIP_UNPICKABLE) and (nodePath.getName() in self.unpickable)): # Skip if in unpickable list pass elif ((skipFlags & SKIP_WIDGET) and (nodePath.getTag('WidgetName') != base.direct.widget.getName())): # Skip if this widget part is not belong to current widget pass elif ((skipFlags & SKIP_WIDGET) and base.direct.fControl and (nodePath.getName()[2:] == 'ring')): # Skip when ununiformly scale in ortho view pass else: self.setCurrentIndex(i) self.setCurrentEntry(entry) break return self.getCurrentEntry()
e47bc0df7261e22b72e796cc4d9b1c6e1f4defd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e47bc0df7261e22b72e796cc4d9b1c6e1f4defd9/DirectSelection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 13535, 1951, 1622, 12, 2890, 16, 2488, 5094, 273, 18420, 67, 9826, 16, 10588, 273, 374, 4672, 468, 4378, 365, 18, 1615, 471, 365, 18, 4099, 365, 18, 542, 3935, 1016, 19236, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 13535, 1951, 1622, 12, 2890, 16, 2488, 5094, 273, 18420, 67, 9826, 16, 10588, 273, 374, 4672, 468, 4378, 365, 18, 1615, 471, 365, 18, 4099, 365, 18, 542, 3935, 1016, 19236, 21, 1...
height -= self.toolbar.size_request()[1]
height -= self.toolbar.size_request()[1]
def available_image_height(self): height = self.window.get_size()[1] if self.fullscreen_mode == False: height -= self.menubar.size_request()[1] if self.toolbar_show == True: height -= self.toolbar.size_request()[1] if self.statusbar_show == True: height -= self.statusbar.size_request()[1] return height
f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 67, 2730, 67, 4210, 12, 2890, 4672, 2072, 273, 365, 18, 5668, 18, 588, 67, 1467, 1435, 63, 21, 65, 309, 365, 18, 2854, 9252, 67, 3188, 422, 1083, 30, 2072, 3947, 365, 18, 27617...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 67, 2730, 67, 4210, 12, 2890, 4672, 2072, 273, 365, 18, 5668, 18, 588, 67, 1467, 1435, 63, 21, 65, 309, 365, 18, 2854, 9252, 67, 3188, 422, 1083, 30, 2072, 3947, 365, 18, 27617...
eval("%s(%s)" % (colType.__name__, header[col])) except:
colType(header[col]) except ValueError, TypeError:
def seval(item): """ Strips parens from item prior to calling eval in an attempt to make it safer """ return eval(item.replace('(', '').replace(')', ''))
6083e9fc91e30426ec5fcbabb206495280cb6395 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6083e9fc91e30426ec5fcbabb206495280cb6395/csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 695, 1125, 12, 1726, 4672, 3536, 3978, 7146, 30821, 628, 761, 6432, 358, 4440, 5302, 316, 392, 4395, 358, 1221, 518, 7864, 586, 3536, 327, 5302, 12, 1726, 18, 2079, 2668, 12, 2187, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 695, 1125, 12, 1726, 4672, 3536, 3978, 7146, 30821, 628, 761, 6432, 358, 4440, 5302, 316, 392, 4395, 358, 1221, 518, 7864, 586, 3536, 327, 5302, 12, 1726, 18, 2079, 2668, 12, 2187, 875, ...
whenV = translate(str(whenV), maketrans("", ""), "-:")
whenV = mkDATE(whenV)
def doDateTime(self, sts, when, propName, predName): """ helper function to output general date value""" w = self._w
a644513b944044743f3746502b01eb01e9388d24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/a644513b944044743f3746502b01eb01e9388d24/toIcal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 5096, 12, 2890, 16, 27099, 16, 1347, 16, 9994, 16, 3479, 461, 4672, 3536, 4222, 445, 358, 876, 7470, 1509, 460, 8395, 341, 273, 365, 6315, 91, 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, 741, 5096, 12, 2890, 16, 27099, 16, 1347, 16, 9994, 16, 3479, 461, 4672, 3536, 4222, 445, 358, 876, 7470, 1509, 460, 8395, 341, 273, 365, 6315, 91, 2, -100, -100, -100, -100, -100, -10...
self.admin_user = options['admin-user']
self.admin_user = options.get('admin-user', 'admin')
def __init__(self, buildout, name, options): self.buildout, self.name, self.options = buildout, name, options options['location'] = os.path.join( buildout['buildout']['bin-directory'], self.name, ) # suppress script generation. self.options['scripts'] = '' options['bin-directory'] = buildout['buildout']['bin-directory'] # all the options that will be passed on to the 'run' script self.site_id = options['site-id'] self.site_replace = options.get('site-replace', '').lower() in TRUISMS self.admin_user = options['admin-user'] self.products_initial = options.get('products-initial', "").split() self.profiles_initial = options.get('profiles-initial', "").split() self.products = options.get('products', "").split() self.profiles = options.get('profiles', "").split() options['args'] = self.createArgs() # We can disable the starting of zope and zeo. useful from the # command line: # $ bin/buildout -v plonesite:enabled=false self.enabled = options.get('enabled', 'true').lower() in TRUISMS # figure out if we need a zeo server started, and if it's on windows # this code was borrowed from plone.recipe.runscript is_win = sys.platform[:3].lower() == "win" instance = buildout[options["instance"]] instance_home = instance['location'] instance_script = os.path.basename(instance_home) if is_win: instance_script = "%s.exe" % instance_script options['instance-script'] = instance_script self.zeoserver = options.get('zeoserver', False) if self.zeoserver: if is_win: zeo_script = 'zeoservice.exe' else: zeo_home = buildout[self.zeoserver]['location'] zeo_script = os.path.basename(zeo_home) options['zeo-script'] = zeo_script
0894a4bbf68b522813db357a0f1b78c45e3f201f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10968/0894a4bbf68b522813db357a0f1b78c45e3f201f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1361, 659, 16, 508, 16, 702, 4672, 365, 18, 3510, 659, 16, 365, 18, 529, 16, 365, 18, 2116, 273, 1361, 659, 16, 508, 16, 702, 702, 3292, 3562, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 659, 16, 508, 16, 702, 4672, 365, 18, 3510, 659, 16, 365, 18, 529, 16, 365, 18, 2116, 273, 1361, 659, 16, 508, 16, 702, 702, 3292, 3562, 3546, ...
p.destroy_index = None
p.destroy_index = -1
def _fixup_param_destroy(self, parent, param): for p in parent.parameters: if p is not param and p.destroy_index == param.destroy_index: p.destroy_index = None
2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/2f7066d7ba462641e1c5b6bc8d5fc5ee850ca87f/annotationparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 67, 891, 67, 11662, 12, 2890, 16, 982, 16, 579, 4672, 364, 293, 316, 982, 18, 3977, 30, 309, 293, 353, 486, 579, 471, 293, 18, 11662, 67, 1615, 422, 579, 18, 11662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 416, 67, 891, 67, 11662, 12, 2890, 16, 982, 16, 579, 4672, 364, 293, 316, 982, 18, 3977, 30, 309, 293, 353, 486, 579, 471, 293, 18, 11662, 67, 1615, 422, 579, 18, 11662, ...
G = DiGraph(self._nxg, name=self._nxg.name, pos=self._pos, boundary=self._boundary)
G = DiGraph(self._nxg.copy(), name=self._nxg.name, pos=self._pos, boundary=self._boundary)
def copy(self): """ Creates a copy of the graph.
712b137d61271e8a94869b7f53f6e80ed15116d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/712b137d61271e8a94869b7f53f6e80ed15116d1/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 10210, 279, 1610, 434, 326, 2667, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 3536, 10210, 279, 1610, 434, 326, 2667, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
compile_dir(fullname, maxlevels - 1, dfile, force)
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx): success = 0
def compile_dir(dir, maxlevels=10, ddir=None, force=0): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default 10) ddir: if given, purported directory name (this is the directory name that will show up in error messages) force: if 1, force compilation, even if timestamps are up-to-date """ print 'Listing', dir, '...' try: names = os.listdir(dir) except os.error: print "Can't list", dir names = [] names.sort() success = 1 for name in names: fullname = os.path.join(dir, name) if ddir: dfile = os.path.join(ddir, name) else: dfile = None if os.path.isfile(fullname): head, tail = name[:-3], name[-3:] if tail == '.py': cfile = fullname + (__debug__ and 'c' or 'o') ftime = os.stat(fullname)[stat.ST_MTIME] try: ctime = os.stat(cfile)[stat.ST_MTIME] except os.error: ctime = 0 if (ctime > ftime) and not force: continue print 'Compiling', fullname, '...' try: py_compile.compile(fullname, None, dfile) except KeyboardInterrupt: raise KeyboardInterrupt except: if type(sys.exc_type) == type(''): exc_type_name = sys.exc_type else: exc_type_name = sys.exc_type.__name__ print 'Sorry:', exc_type_name + ':', print sys.exc_value success = 0 elif maxlevels > 0 and \ name != os.curdir and name != os.pardir and \ os.path.isdir(fullname) and \ not os.path.islink(fullname): compile_dir(fullname, maxlevels - 1, dfile, force) return success
12b6457e24924ff60cf89fd19a584185a5d6c256 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/12b6457e24924ff60cf89fd19a584185a5d6c256/compileall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 33, 2163, 16, 302, 1214, 33, 7036, 16, 2944, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 4381, 316, 326, 864, 1867, 2151, 18, 225, 13599, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 1214, 12, 1214, 16, 943, 12095, 33, 2163, 16, 302, 1214, 33, 7036, 16, 2944, 33, 20, 4672, 3536, 3216, 17, 11100, 777, 4381, 316, 326, 864, 1867, 2151, 18, 225, 13599, 261, ...
print self.SendMessage(
self.SendMessage(
def PressButton(self, button_identifier): "Find where the button is and click it"
75e0b2db2c7b34042f6458edeefb54edfdc3ba39 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6953/75e0b2db2c7b34042f6458edeefb54edfdc3ba39/common_controls.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29806, 3616, 12, 2890, 16, 3568, 67, 5644, 4672, 315, 3125, 1625, 326, 3568, 353, 471, 4682, 518, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29806, 3616, 12, 2890, 16, 3568, 67, 5644, 4672, 315, 3125, 1625, 326, 3568, 353, 471, 4682, 518, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
typ.fields = dict.fromkeys(cls.__slots__)
typ.fields = dict((k,{}) for k in cls.__slots__)
def _init_schema_item(cls,typ): typ.fields = dict.fromkeys(cls.__slots__) typ.implementationTypes = {'python': cls}
9560b4df23894e4608f05c840d6adf170993215b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9560b4df23894e4608f05c840d6adf170993215b/schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 4821, 67, 1726, 12, 6429, 16, 12846, 4672, 3815, 18, 2821, 273, 2065, 12443, 79, 16, 2916, 13, 364, 417, 316, 2028, 16186, 18875, 972, 13, 3815, 18, 30810, 2016, 273, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 4821, 67, 1726, 12, 6429, 16, 12846, 4672, 3815, 18, 2821, 273, 2065, 12443, 79, 16, 2916, 13, 364, 417, 316, 2028, 16186, 18875, 972, 13, 3815, 18, 30810, 2016, 273, 13...
t1.drop()
metadata.drop_all()
def test_default_exec(self): metadata = MetaData(testing.db) t1 = Table('t1', metadata, Column(u'special_col', Integer, Sequence('special_col'), primary_key=True), Column('data', String(50)) # to appease SQLite without DEFAULT VALUES ) t1.create()
1a352c69f9c66bdc7ef90ecaffcc0c65b5911073 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1074/1a352c69f9c66bdc7ef90ecaffcc0c65b5911073/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1886, 67, 4177, 12, 2890, 4672, 1982, 273, 27512, 12, 3813, 310, 18, 1966, 13, 268, 21, 273, 3555, 2668, 88, 21, 2187, 1982, 16, 4753, 12, 89, 1807, 705, 649, 67, 1293, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 67, 4177, 12, 2890, 4672, 1982, 273, 27512, 12, 3813, 310, 18, 1966, 13, 268, 21, 273, 3555, 2668, 88, 21, 2187, 1982, 16, 4753, 12, 89, 1807, 705, 649, 67, 1293, 218...
go_back_logo = """<img src="http://pcuds36.cern.ch/img/wb-go-back.png" />"""
go_back_logo = """<img src="%s/img/wb-go-back.png" />""" % (CFG_SITE_URL,)
def tmpl_public_basket_single_item_header(self, bskid, name, nb_items, previous_item_recid, next_item_recid, item_index, ln=CFG_SITE_LANG): """Template for public basket's single item header display."""
21fbd39770d792689a5af9cad650e20c36ad4f24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/21fbd39770d792689a5af9cad650e20c36ad4f24/webbasket_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 482, 67, 26219, 67, 7526, 67, 1726, 67, 3374, 12, 2890, 16, 7081, 79, 350, 16, 508, 16, 4264, 67, 3319, 16, 2416, 67, 1726, 67, 3927, 350, 16, 1024, 67, 1726, 67, 3927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 482, 67, 26219, 67, 7526, 67, 1726, 67, 3374, 12, 2890, 16, 7081, 79, 350, 16, 508, 16, 4264, 67, 3319, 16, 2416, 67, 1726, 67, 3927, 350, 16, 1024, 67, 1726, 67, 3927, ...
raise SMTPSenderRefused('%s: %s' % (from_addr, resp))
raise SMTPSenderRefused(code, resp, from_addr)
def sendmail(self, from_addr, to_addrs, msg, mail_options=[], rcpt_options=[]): """This command performs an entire mail transaction.
7ce512fd70a64eb7cf9563bb31dd4291a44254dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/7ce512fd70a64eb7cf9563bb31dd4291a44254dd/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 4408, 12, 2890, 16, 628, 67, 4793, 16, 358, 67, 23305, 16, 1234, 16, 4791, 67, 2116, 22850, 6487, 4519, 337, 67, 2116, 33, 8526, 4672, 3536, 2503, 1296, 11199, 392, 7278, 4791, 2...
0.27395725 + 0.58370113*I
0.27395 + 0.58370*I
def __pow__(self, right): """ EXAMPLES: sage: C, i = ComplexField(20).objgen() sage: a = i^2; a -1.0000000 sage: a.parent() Complex Field with 20 bits of precision sage: a = (1+i)^i; a 0.42882919 + 0.15487170*I sage: (1+i)^(1+i) 0.27395725 + 0.58370113*I sage: a.parent() Complex Field with 20 bits of precision sage: i^i 0.20787954 sage: (2+i)^(0.5) 1.4553471 + 0.34356070*I """ if isinstance(right, (int, long, integer.Integer)): return ring_element.RingElement.__pow__(self, right) z = self._pari_() P = self.parent() w = P(right)._pari_() m = z**w return P(m)
193380da4580283517e8b5d85f0bf8d1c6d47fce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/193380da4580283517e8b5d85f0bf8d1c6d47fce/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23509, 972, 12, 2890, 16, 2145, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 385, 16, 277, 273, 16060, 974, 12, 3462, 2934, 2603, 4507, 1435, 272, 410, 30, 279, 273, 277, 66,...
SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR + "ssh_host_rsa_key"
SSH_HOST_RSA_PRIV = SSH_CONFIG_DIR + "/ssh_host_rsa_key"
def SplitVersion(version): """Splits version number stored in an int. Returns: tuple; (major, minor, revision) """ assert isinstance(version, int) (major, remainder) = divmod(version, 1000000) (minor, revision) = divmod(remainder, 10000) return (major, minor, revision)
553bd93f0905a4b93d899377b792a354049ea595 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/553bd93f0905a4b93d899377b792a354049ea595/constants.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5385, 1444, 12, 1589, 4672, 3536, 16582, 1177, 1300, 4041, 316, 392, 509, 18, 225, 2860, 30, 3193, 31, 261, 14019, 16, 8439, 16, 6350, 13, 225, 3536, 1815, 1549, 12, 1589, 16, 509, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5385, 1444, 12, 1589, 4672, 3536, 16582, 1177, 1300, 4041, 316, 392, 509, 18, 225, 2860, 30, 3193, 31, 261, 14019, 16, 8439, 16, 6350, 13, 225, 3536, 1815, 1549, 12, 1589, 16, 509, 13,...
taskMgr.step()
def run(self): from time import sleep while self.isRunning: sleep(self.FPS) taskMgr.step() else: render.analyze() # TODO do cleanup logger.info("Quitting application, have fun")
f2fb2af7d3b6c28fa60acafbf13a85fe1a5884b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7999/f2fb2af7d3b6c28fa60acafbf13a85fe1a5884b1/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 813, 1930, 5329, 1323, 365, 18, 291, 7051, 30, 5329, 12, 2890, 18, 42, 5857, 13, 469, 30, 1743, 18, 304, 9508, 1435, 468, 2660, 741, 6686, 1194, 18, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 628, 813, 1930, 5329, 1323, 365, 18, 291, 7051, 30, 5329, 12, 2890, 18, 42, 5857, 13, 469, 30, 1743, 18, 304, 9508, 1435, 468, 2660, 741, 6686, 1194, 18, 1376, ...
gMonitor.addMark("%Files" % status,len(files.keys())) pfnDict = {}
pfnIDs= {}
def __getFiles(self,se,status): # Get files with the given status and se from the database res = self.MigrationMonitoringDB.getFiles(se,status) if not res['OK']: return res files = res['Value'] gMonitor.addMark("%Files" % status,len(files.keys())) pfnDict = {} if len(files.keys()) > 0: for fileID,metadataDict in files.items(): pfn = metadataDict['PFN'] pfnIDs[pfn] = fileID return S_OK({'PFNIDs':pfnIDs,'MigratingFiles':files})
4f91556b86199dede4b08bee27f08eea5a1de278 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/4f91556b86199dede4b08bee27f08eea5a1de278/MigrationMonitoringAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2697, 12, 2890, 16, 307, 16, 2327, 4672, 468, 968, 1390, 598, 326, 864, 1267, 471, 695, 628, 326, 2063, 400, 273, 365, 18, 10224, 18410, 2290, 18, 588, 2697, 12, 307, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2697, 12, 2890, 16, 307, 16, 2327, 4672, 468, 968, 1390, 598, 326, 864, 1267, 471, 695, 628, 326, 2063, 400, 273, 365, 18, 10224, 18410, 2290, 18, 588, 2697, 12, 307, 16, ...
self.d.BringToFront() self.d.HideWindow()
self.w.BringToFront() self.w.HideWindow() del self.w
def __del__( self ): self.d.BringToFront() self.d.HideWindow() del self.d
0f86aa1080c85d22253db2524dab56c3a8565e6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0f86aa1080c85d22253db2524dab56c3a8565e6b/EasyDialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 365, 262, 30, 365, 18, 91, 18, 38, 8022, 774, 9580, 1435, 365, 18, 91, 18, 15690, 3829, 1435, 1464, 365, 18, 91, 1464, 365, 18, 72, 225, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 972, 12, 365, 262, 30, 365, 18, 91, 18, 38, 8022, 774, 9580, 1435, 365, 18, 91, 18, 15690, 3829, 1435, 1464, 365, 18, 91, 1464, 365, 18, 72, 225, 2, -100, -100, -100, -...
re_key = re.compile("^ *ui_strings\.([^ ]*)") file = codecs.open(path, "r", "utf_8_sig")
re_key = re.compile("^ *ui_strings\.([^ =]*)") fp = codecs.open(path, "r", "utf_8_sig")
def _get_string_keys(path): """Grab all the string keys of out a language file""" re_key = re.compile("^ *ui_strings\.([^ ]*)") file = codecs.open(path, "r", "utf_8_sig") lang_keys = set() for line in file: lang_keys.update(re_key.findall(line)) file.close() return lang_keys
9d99784e561c0304ae746a4c36cbdab657b682e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10925/9d99784e561c0304ae746a4c36cbdab657b682e6/dfbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1080, 67, 2452, 12, 803, 4672, 3536, 14571, 70, 777, 326, 533, 1311, 434, 596, 279, 2653, 585, 8395, 283, 67, 856, 273, 283, 18, 11100, 2932, 66, 380, 4881, 67, 10219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1080, 67, 2452, 12, 803, 4672, 3536, 14571, 70, 777, 326, 533, 1311, 434, 596, 279, 2653, 585, 8395, 283, 67, 856, 273, 283, 18, 11100, 2932, 66, 380, 4881, 67, 10219, ...
if self.InterestDebug: print 'INTEREST DEBUG: interestDone(): handle=%s' % handle
if self.__verbose(): print 'CR::INTEREST.interestDone(handle=%s)' % handle
def handleInterestDoneMessage(self, di): """ This handles the interest done messages and may dispatch an event """ assert DoInterestManager.notify.debugCall() handle = di.getUint16() scopeId = di.getUint32() if self.InterestDebug: print 'INTEREST DEBUG: interestDone(): handle=%s' % handle DoInterestManager.notify.debug( "handleInterestDoneMessage--> Received handle %s, scope %s" % ( handle, scopeId)) eventsToSend = [] # if the scope matches, send out the event if scopeId == DoInterestManager._interests[handle].scope: DoInterestManager._interests[handle].scope = NO_SCOPE # the event handlers may call back into the interest manager. Send out # the events after we're once again in a stable state. #DoInterestManager._interests[handle].sendEvents() eventsToSend = list(DoInterestManager._interests[handle].getEvents()) DoInterestManager._interests[handle].clearEvents() else: DoInterestManager.notify.warning( "handleInterestDoneMessage--> handle: %s: Expecting scope %s, got %s" % ( handle, DoInterestManager._interests[handle].scope, scopeId)) if __debug__: state = DoInterestManager._interests[handle] self._addDebugInterestHistory( "finished", state.desc, handle, scopeId, state.parentId, state.zoneIdList) self._considerRemoveInterest(handle) for event in eventsToSend: messenger.send(event) # if there are no more outstanding interest-completes, send out global all-done event if self._completeEventCount.num == 0: # wait for 3 frames, if no new interests, send out all-done event def checkMoreInterests(): return self._completeEventCount.num > 0 def sendEvent(): messenger.send(self.getAllInterestsCompleteEvent()) for callback in self._allInterestsCompleteCallbacks: callback() self._allInterestsCompleteCallbacks = [] self.cleanupWaitAllInterestsClosed() self._completeDelayedCallback = FrameDelayedCallback( 'waitForAllInterestCompletes', frames=3, callback=sendEvent, cancelFunc=checkMoreInterests) checkMoreInterests = None sendEvent = None assert self.printInterestsIfDebug()
0ad3bac423d39b998827d489a97d947c4e85743a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/0ad3bac423d39b998827d489a97d947c4e85743a/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29281, 7387, 1079, 12, 2890, 16, 4314, 4672, 3536, 1220, 7372, 326, 16513, 2731, 2743, 471, 2026, 3435, 392, 871, 3536, 1815, 2256, 29281, 1318, 18, 12336, 18, 4148, 1477, 1435, 1640...
print >>sys.stderr, ('\nWarning: could not find UID for '+
if sys.stderr.softspace: print >>sys.stderr print >>sys.stderr, ('Warning: could not find UID for '+
def _dom_link_to_html(self, target, name, container): uid = findUID(target, container, self._docmap) if uid is None: print >>sys.stderr, ('\nWarning: could not find UID for '+ 'L{%s} in %s' % (target, container)) return self._uid_to_href(uid, name, 'link')
771e91d9f27aff69c7681d17285ac18c37519cc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/771e91d9f27aff69c7681d17285ac18c37519cc0/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 1232, 67, 869, 67, 2620, 12, 2890, 16, 1018, 16, 508, 16, 1478, 4672, 4555, 273, 1104, 3060, 12, 3299, 16, 1478, 16, 365, 6315, 2434, 1458, 13, 309, 4555, 353, 599, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9859, 67, 1232, 67, 869, 67, 2620, 12, 2890, 16, 1018, 16, 508, 16, 1478, 4672, 4555, 273, 1104, 3060, 12, 3299, 16, 1478, 16, 365, 6315, 2434, 1458, 13, 309, 4555, 353, 599, 30...
self.respond("214 %s.\r\n" %proto_cmds[line.upper()])
self.respond("214 %s" %proto_cmds[line.upper()])
def ftp_HELP(self, line): "Return help" # TODO - A lot of FTP servers return command names only while we # return cmd_name + description. I believe we should return the same. if line: # FIX #10 if line.upper() in proto_cmds: self.respond("214 %s.\r\n" %proto_cmds[line.upper()]) else: self.respond("500 Unrecognized command.") else: self.push("214-The following commands are recognized " + \ "(* == argument required):\r\n" + \ helper_string) self.respond("214 Help command succesful.")
3031f49a8bea90014d498d75fa5b6115bae33d58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3782/3031f49a8bea90014d498d75fa5b6115bae33d58/FTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 27396, 12, 2890, 16, 980, 4672, 315, 990, 2809, 6, 468, 2660, 300, 432, 17417, 434, 19324, 7084, 327, 1296, 1257, 1338, 1323, 732, 468, 327, 1797, 67, 529, 397, 2477, 18, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 27396, 12, 2890, 16, 980, 4672, 315, 990, 2809, 6, 468, 2660, 300, 432, 17417, 434, 19324, 7084, 327, 1296, 1257, 1338, 1323, 732, 468, 327, 1797, 67, 529, 397, 2477, 18, 46...
pdp = PDP(VOExtension, granularity = self.__granularity, name = self.__name,
pdp = PDP(self.VOExtension, granularity = self.__granularity, name = self.__name,
def enforce(self, pdpIn = None, rsDBIn = None, ncIn = None, setupIn = None, daIn = None, csAPIIn = None, knownInfo = None): """ enforce policies, using a PDP (Policy Decision Point), based on
e9b2e8840f1ad34980e155d4e27cc6d17d52d555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e9b2e8840f1ad34980e155d4e27cc6d17d52d555/PEP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 12, 2890, 16, 4863, 84, 382, 273, 599, 16, 3597, 2290, 382, 273, 599, 16, 8194, 382, 273, 599, 16, 3875, 382, 273, 599, 16, 5248, 382, 273, 599, 16, 2873, 2557, 382, 273, 599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 12, 2890, 16, 4863, 84, 382, 273, 599, 16, 3597, 2290, 382, 273, 599, 16, 8194, 382, 273, 599, 16, 3875, 382, 273, 599, 16, 5248, 382, 273, 599, 16, 2873, 2557, 382, 273, 599,...
idx1 = self.il.Add(PaletteMapping.bitmapForComponent(aclass, 'Component'))
idx1 = self.il.Add(PaletteMapping.bitmapForComponent(className, 'Component'))
def refreshCtrl(self): self.DeleteAllItems()
0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3/DataView.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12418, 12, 2890, 4672, 365, 18, 2613, 1595, 3126, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12418, 12, 2890, 4672, 365, 18, 2613, 1595, 3126, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
global_dict, local_dict = get_twill_glocals() local_dict['__match__'] = m.group()
if m.groups(): match_str = m.group(1) else: match_str = m.group(0) global_dict, local_dict = get_twill_glocals() local_dict['__match__'] = match_str
def find(what, flags=''): """ >> find <regexp> [<flags>] Succeed if the regular expression is on the page. Sets the local variable __match__ to the matching text. Flags is a string consisting of the following characters: * i: ignorecase * m: multiline * s: dotall For explanations of these, please see the Python re module documentation. """ regexp = re.compile(what, _parseFindFlags(flags)) page = browser.get_html() m = regexp.search(page) if not m: raise TwillAssertionError("no match to '%s'" % (what,)) global_dict, local_dict = get_twill_glocals() local_dict['__match__'] = m.group()
c08d82127bbe9f59163a369af241121ed6969362 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/c08d82127bbe9f59163a369af241121ed6969362/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 23770, 16, 2943, 2218, 11, 4672, 3536, 1671, 1104, 411, 17745, 34, 306, 32, 7133, 34, 65, 225, 348, 5286, 5288, 309, 326, 6736, 2652, 353, 603, 326, 1363, 18, 225, 11511, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 23770, 16, 2943, 2218, 11, 4672, 3536, 1671, 1104, 411, 17745, 34, 306, 32, 7133, 34, 65, 225, 348, 5286, 5288, 309, 326, 6736, 2652, 353, 603, 326, 1363, 18, 225, 11511, 326...
return self.substitute(dict, **kwds)
if 'substitute' in kwds: del kwds['substitute'] return self.substitute(dict, **kwds) else: if len(self.variables()) > 0: return self.substitute(dict, **kwds) else: raise ValueError, "trying to substitute into a constant expression, use substitute=True if this is what you really want to do"
def __call__(self, dict=None, **kwds): return self.substitute(dict, **kwds)
5c9cefd9c391016e39a47f6191cdd50e7407663c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5c9cefd9c391016e39a47f6191cdd50e7407663c/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 2065, 33, 7036, 16, 2826, 25577, 4672, 327, 365, 18, 1717, 17207, 12, 1576, 16, 2826, 25577, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 1991, 972, 12, 2890, 16, 2065, 33, 7036, 16, 2826, 25577, 4672, 327, 365, 18, 1717, 17207, 12, 1576, 16, 2826, 25577, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"(r,g,b,a)")
"(r,g,b,a)") def to_qt4_color(editor): if editor.factory.mapped: retval = getattr(editor.object, editor.name + '_') else: retval = getattr(editor.object, editor.name) if isinstance(retval, tuple): col = QtGui.QColor() col.setRgbF(*retval) retval = col return retval def str_color(color): if isinstance(color, QtGui.QColor): color = color.getRgbF() if isinstance(color, tuple): fmt = "(" + ",".join(["%0.3f"] * len(color)) + ")" color = fmt % color return color class SimpleColorEditor(SimpleEditor): pass class CustomColorEditor(CustomEditor): pass class TextColorEditor(TextEditor): pass class ReadonlyColorEditor(ReadonlyEditor): pass
def convert_from_pyqt_color(obj, name, value): if isinstance(value, QtGui.QColor): return value.getRgbF() elif isinstance(value, Str): return color_table.get(value, transparent_color) elif type(value) is int: num = int(value) return ((num >> 16)/255.0, ((num>>8) & 0xFF)/255.0, (num & 0xFF)/255.0, 1.0) elif type(value) in (list, tuple): if len(value) == 3: return (value[0]/255.0, value[1]/255.0, value[2]/255.0, 1.0) elif len(value) == 4: return value else: raise TraitError else: raise TraitError
abfde0830a10d7b7b7758d68d0a20e3d95e68150 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13166/abfde0830a10d7b7b7758d68d0a20e3d95e68150/colors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 2074, 23311, 67, 3266, 12, 2603, 16, 508, 16, 460, 4672, 309, 1549, 12, 1132, 16, 23425, 18, 53, 2957, 4672, 327, 460, 18, 588, 22333, 42, 1435, 1327, 1549, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 2074, 23311, 67, 3266, 12, 2603, 16, 508, 16, 460, 4672, 309, 1549, 12, 1132, 16, 23425, 18, 53, 2957, 4672, 327, 460, 18, 588, 22333, 42, 1435, 1327, 1549, 12, 1...
stream.write(fs.decode(stream.encoding) % msg)
fs = fs.decode(stream.encoding) try: stream.write(fs % msg) except UnicodeEncodeError: stream.write((fs % msg).encode(stream.encoding))
def emit(self, record): """ Emit a record.
cbb530872354fb4eb3b8b5bbaa36db38a0d9a64a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/cbb530872354fb4eb3b8b5bbaa36db38a0d9a64a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3626, 12, 2890, 16, 1409, 4672, 3536, 16008, 279, 1409, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.__prog__ = 'findFlagsJob'
def __init__(self, opts, cp, dir='', tag_base="DQFLAGS"): """ """ self.__conditionalLoadDefaults__(findFlagsJob.defaults,cp) self.__prog__ = 'findFlagsJob' self.__executable = string.strip(cp.get('fu-condor','dqflags')) self.__universe = string.strip(cp.get('fu-condor','universe')) pipeline.CondorDAGJob.__init__(self,self.__universe,self.__executable) self.add_condor_cmd('getenv','True') self.setupJob(self.__prog__,tag_base=tag_base, dir=dir)
e7dc96264f8fa6761fca7488785053e6db4d6c14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/e7dc96264f8fa6761fca7488785053e6db4d6c14/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1500, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 1546, 40, 53, 17836, 6, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 4720, 5094, 2278, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1500, 16, 3283, 16, 1577, 2218, 2187, 1047, 67, 1969, 1546, 40, 53, 17836, 6, 4672, 3536, 3536, 365, 16186, 22019, 2563, 7019, 972, 12, 4720, 5094, 2278, ...
import pdb;pdb.set_trace()
def text_version_delete(request, key, text_version_key): text_version = TextVersion.objects.get(key=text_version_key) text=text_version.text if request.method != 'POST': raise UnauthorizedException('Unauthorized') display_message(request, _(u'Text version %(text_version_title)s deleted') %{'text_version_title':text_version.title}) register_activity(request, "text_version_removed", text=text) import pdb;pdb.set_trace() text_version.delete() return HttpResponse('') # no redirect because this is called by js
d8fe5026eba38991e374c0fce8b11d6f78f15f46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5622/d8fe5026eba38991e374c0fce8b11d6f78f15f46/texts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 1589, 67, 3733, 12, 2293, 16, 498, 16, 977, 67, 1589, 67, 856, 4672, 977, 67, 1589, 273, 3867, 1444, 18, 6911, 18, 588, 12, 856, 33, 955, 67, 1589, 67, 856, 13, 977, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 977, 67, 1589, 67, 3733, 12, 2293, 16, 498, 16, 977, 67, 1589, 67, 856, 4672, 977, 67, 1589, 273, 3867, 1444, 18, 6911, 18, 588, 12, 856, 33, 955, 67, 1589, 67, 856, 13, 977, 33, ...
return "%s - %s" % (self.__class__.__name__, self.get_title())
return "%s - %s" % (self.__class__.__name__, stringify(self.get_title()))
def __str__(self): return "%s - %s" % (self.__class__.__name__, self.get_title())
2c71139c79a6391bafa634487c97ee0908732930 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/2c71139c79a6391bafa634487c97ee0908732930/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 2213, 87, 300, 738, 87, 6, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 18, 588, 67, 2649, 10756, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 2213, 87, 300, 738, 87, 6, 738, 261, 2890, 16186, 1106, 972, 16186, 529, 972, 16, 365, 18, 588, 67, 2649, 10756, 2, -100, -100, -100, -100, -100, ...
""" if not isinstance(a, RingElement):
sage: xgcd(5/1, 7/1) (1, 3, -2) sage: x = polygen(QQ) sage: xgcd(x^3 - 1, x^2 - 1) (x - 1, 1, -x) """ try: return a.xgcd(b) except AttributeError: pass if not isinstance(a, sage.rings.integer.Integer):
def xgcd(a, b): """ Returns triple of integers (g,s,t) such that g = s*a+t*b = gcd(a,b). sage: xgcd(56, 44) (4, 4, -5) sage: 4*56 + (-5)*44 4 """ if not isinstance(a, RingElement): a = integer_ring.ZZ(a) return a.xgcd(b)
2e334249835e22b9452b590a27fb481cabb8642f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2e334249835e22b9452b590a27fb481cabb8642f/arith.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 75, 4315, 12, 69, 16, 324, 4672, 3536, 2860, 14543, 434, 12321, 261, 75, 16, 87, 16, 88, 13, 4123, 716, 314, 273, 272, 14, 69, 15, 88, 14, 70, 273, 14876, 12, 69, 16, 70, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 619, 75, 4315, 12, 69, 16, 324, 4672, 3536, 2860, 14543, 434, 12321, 261, 75, 16, 87, 16, 88, 13, 4123, 716, 314, 273, 272, 14, 69, 15, 88, 14, 70, 273, 14876, 12, 69, 16, 70, 29...
def check_simple_html(self):
def test_simple_html(self):
def check_simple_html(self): self._run_check("""
b7ef883bf29270d1acf9d78a6aaca78b06a69944 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/b7ef883bf29270d1acf9d78a6aaca78b06a69944/test_htmlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9647, 67, 2620, 12, 2890, 4672, 365, 6315, 2681, 67, 1893, 2932, 3660, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9647, 67, 2620, 12, 2890, 4672, 365, 6315, 2681, 67, 1893, 2932, 3660, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.UtcTimeStampField.__init__(self, 629) else quickfix.UtcTimeStampField.__init__(self, 629, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 5540, 13, 469, 9549, 904, 18, 57, 5111, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 1666, 5540, 13, 469, 9549, 904, 18, 57, 5111, 2...
entry = (self.__curfile, self.__lineno) linenos = self.__messages.get(msg) if linenos is None: self.__messages[msg] = [entry] else: linenos.append(entry)
if not msg in self.__options.toexclude: entry = (self.__curfile, self.__lineno) linenos = self.__messages.get(msg) if linenos is None: self.__messages[msg] = [entry] else: linenos.append(entry)
def __openseen(self, ttype, tstring, lineno): if ttype == tokenize.OP and tstring == ')': # We've seen the last of the translatable strings. Record the # line number of the first line of the strings and update the list # of messages seen. Reset state for the next batch. If there # were no strings inside _(), then just ignore this entry. if self.__data: msg = string.join(self.__data, '') entry = (self.__curfile, self.__lineno) linenos = self.__messages.get(msg) if linenos is None: self.__messages[msg] = [entry] else: linenos.append(entry) self.__state = self.__waiting elif ttype == tokenize.STRING: self.__data.append(safe_eval(tstring)) # TBD: should we warn if we seen anything else?
52043ea2b7a4417a947165040dd20990b822491f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52043ea2b7a4417a947165040dd20990b822491f/pygettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3190, 15156, 12, 2890, 16, 27963, 16, 268, 1080, 16, 7586, 4672, 309, 27963, 422, 13672, 18, 3665, 471, 268, 1080, 422, 5777, 30, 468, 1660, 8081, 5881, 326, 1142, 434, 326, 21884,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3190, 15156, 12, 2890, 16, 27963, 16, 268, 1080, 16, 7586, 4672, 309, 27963, 422, 13672, 18, 3665, 471, 268, 1080, 422, 5777, 30, 468, 1660, 8081, 5881, 326, 1142, 434, 326, 21884,...
self.metaList.insertItem(self.createListItem(itemType,itemText))
self.metaList.insertItem(self.icons[itemType],itemText)
def onMetaButtonClicked(self): self.internalSelectionUpdateFlag = self.internalSelectionUpdateFlag + 1 if self.metaButtonLeft: self.removeSelectedItems(self.metaList) else: for i in range(0, self.inputAttributesList.count()): if (self.inputAttributesList.isSelected(i)): itemText = str(self.inputAttributesList.text(i)) itemType = self.data.domain[itemText].varType self.metaList.insertItem(self.createListItem(itemType,itemText))
c60b799c2d721cec880f1547ee4418a162265b81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/c60b799c2d721cec880f1547ee4418a162265b81/OWDataDomain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2781, 3616, 27633, 12, 2890, 4672, 365, 18, 7236, 6233, 1891, 4678, 273, 365, 18, 7236, 6233, 1891, 4678, 397, 404, 309, 365, 18, 3901, 3616, 3910, 30, 365, 18, 4479, 7416, 3126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 2781, 3616, 27633, 12, 2890, 4672, 365, 18, 7236, 6233, 1891, 4678, 273, 365, 18, 7236, 6233, 1891, 4678, 397, 404, 309, 365, 18, 3901, 3616, 3910, 30, 365, 18, 4479, 7416, 3126, ...
security.declarePublic('styleselect')
security.declarePublic('styleselect_text')
def includeLibs(self, lang=None): """ Returns HTML code that includes required JavaScript libraries. Parameters: `lang` **Not used** """ return '<script language="JavaScript" \
8c8633f2bcc2e562504acb3b04c0239a78f71cb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/8c8633f2bcc2e562504acb3b04c0239a78f71cb5/EditorTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2341, 5664, 87, 12, 2890, 16, 3303, 33, 7036, 4672, 3536, 2860, 3982, 981, 716, 6104, 1931, 11905, 14732, 18, 7012, 30, 1375, 4936, 68, 2826, 1248, 1399, 636, 3536, 327, 2368, 4263, 2653...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2341, 5664, 87, 12, 2890, 16, 3303, 33, 7036, 4672, 3536, 2860, 3982, 981, 716, 6104, 1931, 11905, 14732, 18, 7012, 30, 1375, 4936, 68, 2826, 1248, 1399, 636, 3536, 327, 2368, 4263, 2653...
i = self.i l = self.l p = self.p h = self.headersize
h = self.header size = self.calcsize
def test_specialtypes(self): i = self.i l = self.l p = self.p h = self.headersize # dict self.check_sizeof({}, h + 3*l + 3*p + 8*(l + 2*p)) longdict = {1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8} self.check_sizeof(longdict, h + 3*l + 3*p + 8*(l + 2*p) + 16*(l + 2*p)) # list self.check_sizeof([], h + l + p + l) self.check_sizeof([1, 2, 3], h + l + p + l + 3*l) # unicode usize = len(u'\0'.encode('unicode-internal')) samples = [u'', u'1'*100] # we need to test for both sizes, because we don't know if the string # has been cached for s in samples: basicsize = h + l + p + l + p + usize * (len(s) + 1) self.check_sizeof(s, basicsize,\ size2=basicsize + sys.getsizeof(str(s))) # XXX trigger caching encoded version as Python string s = samples[1] try: getattr(sys, s) except AttributeError: pass finally: self.check_sizeof(s, basicsize + sys.getsizeof(str(s)))
300a10ceb1febf233333c4843a55c526b4019feb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/300a10ceb1febf233333c4843a55c526b4019feb/test_sys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9371, 2352, 12, 2890, 4672, 366, 273, 365, 18, 3374, 963, 273, 365, 18, 12448, 1467, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23506, 16, 366, 397, 890, 14, 80, 397, 890, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9371, 2352, 12, 2890, 4672, 366, 273, 365, 18, 3374, 963, 273, 365, 18, 12448, 1467, 468, 2065, 365, 18, 1893, 67, 1467, 792, 23506, 16, 366, 397, 890, 14, 80, 397, 890, 14...
CallLater(5, auth_failed)
auth_failed()
def auth_failed(msg="Authentication failed."): if not self._closed: self.attempted_logins += 1 if self.attempted_logins >= self.max_login_attempts: msg = "530 " + msg + " Disconnecting." self.respond(msg) self.log(msg) self.close_when_done() else: self.respond("530 " + msg) self.log(msg) self.sleeping = False
b89ca03de8ef4f30169d72d3120ee291481d5964 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/b89ca03de8ef4f30169d72d3120ee291481d5964/ftpserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1357, 67, 7307, 12, 3576, 1546, 6492, 2535, 1199, 4672, 309, 486, 365, 6315, 12204, 30, 365, 18, 11764, 329, 67, 1330, 2679, 1011, 404, 309, 365, 18, 11764, 329, 67, 1330, 2679, 1545, ...
def __str__(self): return "The projective general unitary group of degree %s over %s\n (matrix representation has coefficients in %s)"%(self._n, self.base_ring(), self.field_of_definition())
def _repr_(self): return "The projective general unitary group of degree %s over %s"%(self._n, self.base_ring())
def __str__(self): return "The projective general unitary group of degree %s over %s\n (matrix representation has coefficients in %s)"%(self._n, self.base_ring(), self.field_of_definition())
eb4a3d25f4a3089f0f04f1faf9903b68e5cfc0db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/eb4a3d25f4a3089f0f04f1faf9903b68e5cfc0db/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 1986, 1984, 688, 7470, 2836, 814, 1041, 434, 10782, 738, 87, 1879, 738, 87, 64, 82, 261, 5667, 4335, 711, 14229, 316, 738, 87, 2225, 17105, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 1986, 1984, 688, 7470, 2836, 814, 1041, 434, 10782, 738, 87, 1879, 738, 87, 64, 82, 261, 5667, 4335, 711, 14229, 316, 738, 87, 2225, 17105, 28...
def test_sf_person_projects_lookup(self):
def _test_sf_person_projects_lookup(self):
def test_sf_person_projects_lookup(self): self.test_import_one_flossmole_row(delete_now=False) url = 'http://openhatch.org/people/sf_projects_by_person?u=paulproteus' tc.go(make_twill_url(url)) tc.find('zoph')
bd1b10dfc47e60d4853357873707d614c4bebf8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/bd1b10dfc47e60d4853357873707d614c4bebf8b/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 21668, 67, 12479, 67, 13582, 67, 8664, 12, 2890, 4672, 365, 18, 3813, 67, 5666, 67, 476, 67, 74, 7873, 81, 790, 67, 492, 12, 3733, 67, 3338, 33, 8381, 13, 880, 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, 3813, 67, 21668, 67, 12479, 67, 13582, 67, 8664, 12, 2890, 4672, 365, 18, 3813, 67, 5666, 67, 476, 67, 74, 7873, 81, 790, 67, 492, 12, 3733, 67, 3338, 33, 8381, 13, 880, 273, ...
def _basic_get_ok(self, args):
def _basic_get_ok(self, args, msg):
def _basic_get_ok(self, args): """ provide client with a message
53019bb5fd2a3405591b5928a9feefa8d7b950c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10764/53019bb5fd2a3405591b5928a9feefa8d7b950c8/client_0_8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13240, 67, 588, 67, 601, 12, 2890, 16, 833, 16, 1234, 4672, 3536, 5615, 1004, 598, 279, 883, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13240, 67, 588, 67, 601, 12, 2890, 16, 833, 16, 1234, 4672, 3536, 5615, 1004, 598, 279, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pre.append(align_prepost[is_inline, attrs['align']][0]) post.append(align_prepost[is_inline, attrs['align']][1])
align_code = align_codes[attrs['align']] pre.append(align_code[0]) post.append(align_code[1])
def visit_image(self, node): self.requirements['graphicx'] = self.graphicx_package attrs = node.attributes # Add image URI to dependency list, assuming that it's # referring to a local file. self.settings.record_dependencies.add(attrs['uri']) # alignment defaults: if not 'align' in attrs: # Set default align of image in a figure to 'center' if isinstance(node.parent, nodes.figure): attrs['align'] = 'center' # query 'align-*' class argument for cls in node['classes']: if cls.startswith('align-'): attrs['align'] = cls.split('-')[1] # pre- and postfix (prefix inserted in reverse order) pre = [] post = [] include_graphics_options = [] is_inline = self.is_inline(node) align_prepost = { # key == (<is_inline>, <align>) # By default latex aligns the bottom of an image. (True, 'bottom'): ('', ''), (True, 'middle'): (r'\raisebox{-0.5\height}{', '}'), (True, 'top'): (r'\raisebox{-\height}{', '}'), (False, 'center'): (r'\noindent\makebox[\textwidth][c]{', '}'), (False, 'left'): (r'\noindent{', r'\hfill}'), (False, 'right'): (r'\noindent{\hfill', '}'),} if 'align' in attrs: try: pre.append(align_prepost[is_inline, attrs['align']][0]) post.append(align_prepost[is_inline, attrs['align']][1]) except KeyError: pass # TODO: warn? if 'height' in attrs: include_graphics_options.append('height=%s' % self.to_latex_length(attrs['height'])) if 'scale' in attrs: include_graphics_options.append('scale=%f' % (attrs['scale'] / 100.0)) ## # Could also be done with ``scale`` option to ## # ``\includegraphics``; doing it this way for consistency. ## pre.append('\\scalebox{%f}{' % (attrs['scale'] / 100.0,)) ## post.append('}') if 'width' in attrs: include_graphics_options.append('width=%s' % self.to_latex_length(attrs['width'])) if not is_inline: pre.append('\n') post.append('\n') pre.reverse() self.out.extend(pre) self.append_hypertargets(node) options = '' if include_graphics_options: options = '[%s]' % (','.join(include_graphics_options)) self.out.append('\\includegraphics%s{%s}' % (options, attrs['uri'])) self.out.extend(post)
be1fbeb9faee010ab9af5286d03796b46342047e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1532/be1fbeb9faee010ab9af5286d03796b46342047e/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2730, 12, 2890, 16, 756, 4672, 365, 18, 16175, 3292, 4660, 335, 92, 3546, 273, 365, 18, 4660, 335, 92, 67, 5610, 3422, 273, 756, 18, 4350, 468, 1436, 1316, 3699, 358, 4904, ...
upgrade_graph(graph, module_list, force)
upgrade_graph(graph, cr, module_list, force)
def create_graph(module_list, force=None): graph = Graph() upgrade_graph(graph, module_list, force) return graph
f5724590ce894a156c7e5fb63648f1b355d22f58 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f5724590ce894a156c7e5fb63648f1b355d22f58/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4660, 12, 2978, 67, 1098, 16, 2944, 33, 7036, 4672, 2667, 273, 5601, 1435, 8400, 67, 4660, 12, 4660, 16, 4422, 16, 1605, 67, 1098, 16, 2944, 13, 327, 2667, 225, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4660, 12, 2978, 67, 1098, 16, 2944, 33, 7036, 4672, 2667, 273, 5601, 1435, 8400, 67, 4660, 12, 4660, 16, 4422, 16, 1605, 67, 1098, 16, 2944, 13, 327, 2667, 225, 2, -100, -10...
'B,MinorLinkerVersion', 'L,SizeOfCode', 'L,SizeOfInitializedData', 'L,SizeOfUninitializedData', 'L,AddressOfEntryPoint', 'L,BaseOfCode', 'Q,ImageBase', 'L,SectionAlignment', 'L,FileAlignment',
'B,MinorLinkerVersion', 'I,SizeOfCode', 'I,SizeOfInitializedData', 'I,SizeOfUninitializedData', 'I,AddressOfEntryPoint', 'I,BaseOfCode', 'Q,ImageBase', 'I,SectionAlignment', 'I,FileAlignment',
def __init__(self, **args): for key, value in args.items(): setattr(self, key, value)
b1bfd27bf7c329d36f68dc5f4ed5adda7c025501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4177/b1bfd27bf7c329d36f68dc5f4ed5adda7c025501/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 1968, 4672, 364, 498, 16, 460, 316, 833, 18, 3319, 13332, 9241, 12, 2890, 16, 498, 16, 460, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, shadowColor, shadowOffset, borderColor, borderWidth)
eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, borderColor, borderWidth)
def loadSingleSkinData(desktop, skin, path_prefix): """loads skin data like colors, windowstyle etc.""" assert skin.tag == "skin", "root element in skin must be 'skin'!" #print "***SKIN: ", path_prefix for c in skin.findall("output"): id = c.attrib.get('id') if id: id = int(id) else: id = 0 if id == 0: # framebuffer for res in c.findall("resolution"): get_attr = res.attrib.get xres = get_attr("xres") if xres: xres = int(xres) else: xres = 720 yres = get_attr("yres") if yres: yres = int(yres) else: yres = 576 bpp = get_attr("bpp") if bpp: bpp = int(bpp) else: bpp = 32 #print "Resolution:", xres,yres,bpp from enigma import gFBDC gFBDC.getInstance().setResolution(xres, yres) desktop.resize(eSize(xres, yres)) if bpp != 32: # load palette (not yet implemented) pass for c in skin.findall("colors"): for color in c.findall("color"): get_attr = color.attrib.get name = get_attr("name") color = get_attr("value") if name and color: colorNames[name] = parseColor(color) #print "Color:", name, color else: raise SkinError("need color and name, got %s %s" % (name, color)) for c in skin.findall("fonts"): for font in c.findall("font"): get_attr = font.attrib.get filename = get_attr("filename", "<NONAME>") name = get_attr("name", "Regular") scale = get_attr("scale") if scale: scale = int(scale) else: scale = 100 is_replacement = get_attr("replacement") and True or False render = get_attr("render") if render: render = int(render) else: render = 0 resolved_font = resolveFilename(SCOPE_FONTS, filename, path_prefix=path_prefix) if not fileExists(resolved_font): #when font is not available look at current skin path skin_path = resolveFilename(SCOPE_CURRENT_SKIN, filename) if fileExists(skin_path): resolved_font = skin_path addFont(resolved_font, name, scale, is_replacement, render) #print "Font: ", resolved_font, name, scale, is_replacement for c in skin.findall("subtitles"): from enigma import eWidget, eSubtitleWidget scale = ((1,1),(1,1)) for substyle in c.findall("sub"): get_attr = substyle.attrib.get font = parseFont(get_attr("font"), scale) col = get_attr("foregroundColor") if col: foregroundColor = parseColor(col) haveColor = 1 else: foregroundColor = gRGB(0xFFFFFF) haveColor = 0 col = get_attr("borderColor") if col: borderColor = parseColor(col) else: borderColor = gRGB(0) borderwidth = get_attr("borderWidth") if borderwidth is None: # default: use a subtitle border borderwidth = 3 else: borderWidth = int(borderwidth) face = eSubtitleWidget.__dict__[get_attr("name")] eSubtitleWidget.setFontStyle(face, font, haveColor, foregroundColor, shadowColor, shadowOffset, borderColor, borderWidth) for windowstyle in skin.findall("windowstyle"): style = eWindowStyleSkinned() id = windowstyle.attrib.get("id") if id: id = int(id) else: id = 0 #print "windowstyle:", id # defaults font = gFont("Regular", 20) offset = eSize(20, 5) for title in windowstyle.findall("title"): get_attr = title.attrib.get offset = parseSize(get_attr("offset"), ((1,1),(1,1))) font = parseFont(get_attr("font"), ((1,1),(1,1))) style.setTitleFont(font); style.setTitleOffset(offset) #print " ", font, offset for borderset in windowstyle.findall("borderset"): bsName = str(borderset.attrib.get("name")) for pixmap in borderset.findall("pixmap"): get_attr = pixmap.attrib.get bpName = get_attr("pos") filename = get_attr("filename") if filename and bpName: png = loadPixmap(resolveFilename(SCOPE_SKIN_IMAGE, filename, path_prefix=path_prefix), desktop) style.setPixmap(eWindowStyleSkinned.__dict__[bsName], eWindowStyleSkinned.__dict__[bpName], png) #print " borderset:", bpName, filename for color in windowstyle.findall("color"): get_attr = color.attrib.get colorType = get_attr("name") color = parseColor(get_attr("color")) try: style.setColor(eWindowStyleSkinned.__dict__["col" + colorType], color) except: raise SkinError("Unknown color %s" % (colorType)) #pass #print " color:", type, color x = eWindowStyleManager.getInstance() x.setStyle(id, style)
674388bdc427410dbc396ab9c30db6db10f92e63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/674388bdc427410dbc396ab9c30db6db10f92e63/skin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 5281, 26827, 751, 12, 31949, 16, 18705, 16, 589, 67, 3239, 4672, 3536, 17135, 18705, 501, 3007, 5740, 16, 2742, 4060, 5527, 12123, 1815, 18705, 18, 2692, 422, 315, 7771, 267, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 5281, 26827, 751, 12, 31949, 16, 18705, 16, 589, 67, 3239, 4672, 3536, 17135, 18705, 501, 3007, 5740, 16, 2742, 4060, 5527, 12123, 1815, 18705, 18, 2692, 422, 315, 7771, 267, 3113, ...
db="dbglog",
db="pharos",
def setup(): web.config.db_parameters = dict(dbn="postgres", db="dbglog", user="pharos", pw="pharos") web.load()
8e5c0aa3d71fe3f457cd7be9d11fa2c36a7d451c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3913/8e5c0aa3d71fe3f457cd7be9d11fa2c36a7d451c/logdaemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13332, 3311, 18, 1425, 18, 1966, 67, 3977, 273, 2065, 12, 1966, 82, 1546, 2767, 14107, 3113, 225, 1319, 1546, 844, 297, 538, 3113, 729, 1546, 844, 297, 538, 3113, 8772, 1546, 844, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 13332, 3311, 18, 1425, 18, 1966, 67, 3977, 273, 2065, 12, 1966, 82, 1546, 2767, 14107, 3113, 225, 1319, 1546, 844, 297, 538, 3113, 729, 1546, 844, 297, 538, 3113, 8772, 1546, 844, ...
if not utc:
if not self.utc:
def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=0, utc=0): BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay) self.when = string.upper(when) self.backupCount = backupCount self.utc = utc # Calculate the real rollover interval, which is just the number of # seconds between rollovers. Also set the filename suffix used when # a rollover occurs. Current 'when' events supported: # S - Seconds # M - Minutes # H - Hours # D - Days # midnight - roll over at midnight # W{0-6} - roll over on a certain day; 0 - Monday # # Case of the 'when' specifier is not important; lower or upper case # will work. currentTime = int(time.time()) if self.when == 'S': self.interval = 1 # one second self.suffix = "%Y-%m-%d_%H-%M-%S" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}-\d{2}$" elif self.when == 'M': self.interval = 60 # one minute self.suffix = "%Y-%m-%d_%H-%M" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}-\d{2}$" elif self.when == 'H': self.interval = 60 * 60 # one hour self.suffix = "%Y-%m-%d_%H" self.extMatch = r"^\d{4}-\d{2}-\d{2}_\d{2}$" elif self.when == 'D' or self.when == 'MIDNIGHT': self.interval = 60 * 60 * 24 # one day self.suffix = "%Y-%m-%d" self.extMatch = r"^\d{4}-\d{2}-\d{2}$" elif self.when.startswith('W'): self.interval = 60 * 60 * 24 * 7 # one week if len(self.when) != 2: raise ValueError("You must specify a day for weekly rollover from 0 to 6 (0 is Monday): %s" % self.when) if self.when[1] < '0' or self.when[1] > '6': raise ValueError("Invalid day specified for weekly rollover: %s" % self.when) self.dayOfWeek = int(self.when[1]) self.suffix = "%Y-%m-%d" self.extMatch = r"^\d{4}-\d{2}-\d{2}$" else: raise ValueError("Invalid rollover interval specified: %s" % self.when)
023f1d5d69ff62bf33efaa43589476ffeebe60bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/023f1d5d69ff62bf33efaa43589476ffeebe60bb/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 16, 9439, 33, 20, 4672, 3360, 8570, 1776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 16, 1347, 2218, 76, 2187, 3673, 33, 21, 16, 5114, 1380, 33, 20, 16, 2688, 33, 7036, 16, 4624, 33, 20, 16, 9439, 33, 20, 4672, 3360, 8570, 1776, ...
if os.getuid() == 0: if config.log_file: os.chown(config.log_file, config.uid, config.gid) log.debug("Changed owner of log file %s to uid=%d, gid=%d", config.log_file, config.uid, config.gid) os.setgid(config.gid) os.setuid(config.uid) log.info("Dropped root privileges to uid=%d, gid=%d", config.uid, config.gid)
def init_tests(self): """ Initialize testing infrastructure - sockets, resource limits, etc. """ # Init Twisted factory. self.server_factory = network.TestServerFactory(controller = self) #self.client_factory = TestClientFactory(controller = self)
8b8425c1d4067c7805ef91259b32619bb0dc70f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/8b8425c1d4067c7805ef91259b32619bb0dc70f4/controller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 16341, 12, 2890, 4672, 3536, 9190, 7769, 316, 26150, 300, 16762, 16, 1058, 8181, 16, 5527, 18, 3536, 468, 4378, 12694, 25444, 3272, 18, 365, 18, 3567, 67, 6848, 273, 2483, 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, 1208, 67, 16341, 12, 2890, 4672, 3536, 9190, 7769, 316, 26150, 300, 16762, 16, 1058, 8181, 16, 5527, 18, 3536, 468, 4378, 12694, 25444, 3272, 18, 365, 18, 3567, 67, 6848, 273, 2483, 18, ...
GROUP BY file, item_name.value ORDER BY item_name.value ORDER BY unit""", (build.id, step.name))
GROUP BY file, item_name.value ORDER BY item_name.value""", (build.id, step.name))
def render_summary(self, req, config, build, step, category): assert category == 'coverage'
13b661eacb662e44e5a74c584e0219a82c9f624c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4547/13b661eacb662e44e5a74c584e0219a82c9f624c/summarizers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 7687, 12, 2890, 16, 1111, 16, 642, 16, 1361, 16, 2235, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 11, 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, 1743, 67, 7687, 12, 2890, 16, 1111, 16, 642, 16, 1361, 16, 2235, 16, 3150, 4672, 1815, 3150, 422, 296, 16356, 11, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
"pydot","asyncore","asynchat", "reportlab", "vobject"],
"pydot","asyncore","asynchat", "reportlab", "vobject", "HTMLParser"],
def data_files(): '''Build list of data files to be installed''' files = [] if os.name == 'nt': os.chdir('bin') for (dp,dn,names) in os.walk('addons'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) for (dp,dn,names) in os.walk('i18n'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) os.chdir('..') for (dp,dn,names) in os.walk('doc'): files.append((dp, map(lambda x: opj(dp, x), names))) files.append(('.', [('bin/import_xml.rng')])) else: man_directory = opj('share', 'man') files.append((opj(man_directory, 'man1'), ['man/openerp-server.1'])) files.append((opj(man_directory, 'man5'), ['man/openerp_serverrc.5'])) doc_directory = opj('share', 'doc', 'openerp-server-%s' % version) files.append((doc_directory, [f for f in glob.glob('doc/*') if os.path.isfile(f)])) files.append((opj(doc_directory, 'migrate', '3.3.0-3.4.0'), [f for f in glob.glob('doc/migrate/3.3.0-3.4.0/*') if os.path.isfile(f)])) files.append((opj(doc_directory, 'migrate', '3.4.0-4.0.0'), [f for f in glob.glob('doc/migrate/3.4.0-4.0.0/*') if os.path.isfile(f)])) openerp_site_packages = opj('lib', 'python%s' % py_short_version, 'site-packages', 'openerp-server') files.append((opj(openerp_site_packages, 'i18n'), glob.glob('bin/i18n/*'))) files.append((opj(openerp_site_packages, 'addons', 'custom'), glob.glob('bin/addons/custom/*xml') + glob.glob('bin/addons/custom/*rml') + glob.glob('bin/addons/custom/*xsl'))) files.append((openerp_site_packages, [('bin/import_xml.rng')])) for addon in find_addons(): add_path = addon.replace('.', os.path.sep).replace('openerp-server', 'bin', 1) addon_path = opj('lib', 'python%s' % py_short_version, 'site-packages', add_path.replace('bin', 'openerp-server', 1)) pathfiles = [ ( addon_path, glob.glob(opj(add_path, '*xml')) + glob.glob(opj(add_path, '*csv')) + glob.glob(opj(add_path, '*sql')) ), ( opj(addon_path, 'data'), glob.glob(opj(add_path, 'data', '*xml')) ), ( opj(addon_path, 'report'), glob.glob(opj(add_path, 'report', '*xml')) + glob.glob(opj(add_path, 'report', '*rml')) + glob.glob(opj(add_path, 'report', '*sxw')) + glob.glob(opj(add_path, 'report', '*xsl')) ), ( opj(addon_path, 'security'), glob.glob(opj(add_path, 'security', '*csv')) + glob.glob(opj(add_path, 'security', '*xml')) ), ( opj(addon_path, 'rng'), glob.glob(opj(add_path, 'rng', '*rng')) ) ] files.extend(pathfiles) return files
fa09719fbf89e38b3a70be0360584fc0fbfe99d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/fa09719fbf89e38b3a70be0360584fc0fbfe99d2/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 2354, 13332, 9163, 3116, 666, 434, 501, 1390, 358, 506, 5876, 26418, 1390, 273, 5378, 309, 1140, 18, 529, 422, 296, 496, 4278, 1140, 18, 343, 1214, 2668, 4757, 6134, 364, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 501, 67, 2354, 13332, 9163, 3116, 666, 434, 501, 1390, 358, 506, 5876, 26418, 1390, 273, 5378, 309, 1140, 18, 529, 422, 296, 496, 4278, 1140, 18, 343, 1214, 2668, 4757, 6134, 364, 261, ...
"""Constructor. Usage: pen = Pen(*rest) Pen takes any number of optional argument. The interpretation of each optional argument depends on its data type: (1) Qt.PenStyle -- sets the style of the pen. (2) QColor or Qt.GlobalColor -- sets the color of the pen. (3) int -- sets the width of the pen. """
def __init__(self, *rest): """Constructor.
7f6e0aa341ffc2546ccda230fb1be9e78425aba8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5650/7f6e0aa341ffc2546ccda230fb1be9e78425aba8/qplt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 8792, 4672, 3536, 6293, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 8792, 4672, 3536, 6293, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print(keys) print(vals) raise Exception("Number of vals does not equal number of keys")
raise Exception("Number of vals does not equal number of keys. \ Number of vals are: "+str(len(vals))+" and number of keys are: "+str(len(keys)))
def get_x_start_attributes(self): """ Extract ValueReference and Start attribute for all differentiated variables in the XML document. Returns: Dict with ValueReference as key and Start attribute as value. """ keys = self._xpatheval("//ScalarVariable/ValueReference/text()[../../VariableCategory=\"state\"][../../Attributes/*/Start]") vals = self._xpatheval("//ScalarVariable/Attributes/*/Start/text()[../../../../VariableCategory=\"state\"]") if len(keys)!=len(vals): print(keys) print(vals) raise Exception("Number of vals does not equal number of keys") return dict(zip(keys,vals))
f764f349d643190118591f5efb0058e97cef2494 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f764f349d643190118591f5efb0058e97cef2494/xmlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 67, 1937, 67, 4350, 12, 2890, 4672, 3536, 8152, 1445, 2404, 471, 3603, 1566, 364, 777, 3775, 10206, 3152, 316, 326, 3167, 1668, 18, 225, 2860, 30, 9696, 598, 1445, 2404, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 92, 67, 1937, 67, 4350, 12, 2890, 4672, 3536, 8152, 1445, 2404, 471, 3603, 1566, 364, 777, 3775, 10206, 3152, 316, 326, 3167, 1668, 18, 225, 2860, 30, 9696, 598, 1445, 2404, 4...
if str(data[i][1]) in ['nan', 'NaN']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i)
def _plot(funcs, xrange, parametric=False, polar=False, label='', randomize=True, **kwds): options = {'alpha':1,'thickness':1,'rgbcolor':(0,0,1), 'plot_points':200, 'plot_division':1000, 'max_bend': 0.1, 'rgbcolor': (0,0,1) } if kwds.has_key('color') and not kwds.has_key('rgbcolor'): kwds['rgbcolor'] = kwds['color'] del kwds['color'] options.update(kwds) #parametric_plot will be a list or tuple of two functions (f,g) #and will plotted as (f(x), g(x)) for all x in the given range if parametric: if len(funcs) == 3: raise ValueError, "use parametric_plot3d for parametric plots in 3d dimensions." elif len(funcs) == 2: # 2d f,g = funcs else: raise ValueError, "parametric plots only implemented in 2 and 3 dimensions." #or we have only a single function to be plotted: else: f = funcs plot_points = int(options.pop('plot_points')) x, data = var_and_list_of_values(xrange, plot_points) data = list(data) xmin = data[0] xmax = data[-1] #check to see if funcs is a list of functions that will #be all plotted together. if isinstance(funcs, (list, tuple)) and not parametric: return reduce(operator.add, (plot(f, (xmin, xmax), polar=polar, **kwds) for f in funcs)) if len(data) >= 2: delta = data[1]-data[0] else: delta = 0 random = current_randstate().python_random().random exceptions = 0; msg='' exception_indices = [] for i in range(len(data)): xi = data[i] # Slightly randomize the interior sample points if # randomize is true if i > 0 and i < plot_points-1: if randomize: xi += delta*random() if xi > xmax: xi = xmax elif i == plot_points-1: xi = xmax # guarantee that we get the last point. try: data[i] = (float(xi), float(f(xi))) except (ZeroDivisionError, TypeError, ValueError, OverflowError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) if str(data[i][1]) in ['nan', 'NaN']: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 exception_indices.append(i) data = [data[i] for i in range(len(data)) if i not in exception_indices] # adaptive refinement i, j = 0, 0 max_bend = float(options['max_bend']) del options['max_bend'] plot_division = int(options['plot_division']) del options['plot_division'] while i < len(data) - 1: if abs(data[i+1][1] - data[i][1]) > max_bend: x = float((data[i+1][0] + data[i][0])/2) try: y = float(f(x)) data.insert(i+1, (x, y)) except (ZeroDivisionError, TypeError, ValueError), msg: sage.misc.misc.verbose("%s\nUnable to compute f(%s)"%(msg, x),1) exceptions += 1 j += 1 if j > plot_division: break else: i += 1 if (len(data) == 0 and exceptions > 0) or exceptions > 10: sage.misc.misc.verbose("WARNING: When plotting, failed to evaluate function at %s points."%exceptions, level=0) sage.misc.misc.verbose("Last error message: '%s'"%msg, level=0) if parametric: data = [(fdata, g(x)) for x, fdata in data] if polar: data = [(y*cos(x), y*sin(x)) for x, y in data] G = line(data, **options) # Label? if label: label = ' '+str(label) G += text(label, data[-1], horizontal_alignment='left', vertical_alignment='center') return G
522d1c42d5fd1d753d437a08aeb09e3807cb076e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/522d1c42d5fd1d753d437a08aeb09e3807cb076e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4032, 12, 17728, 16, 12314, 16, 579, 1591, 33, 8381, 16, 24244, 33, 8381, 16, 1433, 2218, 2187, 2744, 554, 33, 5510, 16, 2826, 25577, 4672, 702, 273, 13666, 5429, 4278, 21, 11189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4032, 12, 17728, 16, 12314, 16, 579, 1591, 33, 8381, 16, 24244, 33, 8381, 16, 1433, 2218, 2187, 2744, 554, 33, 5510, 16, 2826, 25577, 4672, 702, 273, 13666, 5429, 4278, 21, 11189, ...
UNIT["feet",0.3048006],
UNIT["US survey foot",0.3048006096012192, AUTHORITY["EPSG","9003"]],
def genbin_1(): tst = gdaltest.GDALTest( 'GenBin', 'tm4628_96.bil', 1, 5738, 0, 0, 500, 1 ) prj = """PROJCS["NAD27 / Washington South", GEOGCS["NAD27", DATUM["North_American_Datum_1927", SPHEROID["Clarke 1866",6378206.4,294.9786982139103, AUTHORITY["EPSG","7008"]], AUTHORITY["EPSG","6267"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.01745329251994328, AUTHORITY["EPSG","9122"]], AUTHORITY["EPSG","4267"]], UNIT["feet",0.3048006], PROJECTION["Lambert_Conformal_Conic_2SP"], PARAMETER["standard_parallel_1",45.83333333333334], PARAMETER["standard_parallel_2",47.33333333333334], PARAMETER["latitude_of_origin",45.33333333333334], PARAMETER["central_meridian",-120.5], PARAMETER["false_easting",2000000.063000002], PARAMETER["false_northing",0]]""" gt = (1181700.9894981384, 82.021003723042099, 0.0, 596254.01050186157, 0.0, -82.021003723045894 ) return tst.testOpen( check_prj = prj, check_gt = gt )
3943981708a2f7281f2edfa2bf14000a30c12a66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/3943981708a2f7281f2edfa2bf14000a30c12a66/genbin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4757, 67, 21, 13332, 225, 268, 334, 273, 15551, 2390, 395, 18, 27338, 1013, 4709, 12, 296, 7642, 9913, 2187, 296, 16925, 8749, 6030, 67, 10525, 18, 70, 330, 2187, 404, 16, 15981, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 4757, 67, 21, 13332, 225, 268, 334, 273, 15551, 2390, 395, 18, 27338, 1013, 4709, 12, 296, 7642, 9913, 2187, 296, 16925, 8749, 6030, 67, 10525, 18, 70, 330, 2187, 404, 16, 15981, ...
self.busname_box.set_hide_private(toggle.get_active())
a = toggle.get_active() if a: toggle.set_label("Show Private") else: toggle.set_label("Hide Private") self.busname_box.set_hide_private(a)
def hide_private_toggled_cb(self, toggle): self.busname_box.set_hide_private(toggle.get_active())
d5cf0286312d10d2e5a7e82ca47790455920cbf9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5682/d5cf0286312d10d2e5a7e82ca47790455920cbf9/_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 67, 1152, 67, 88, 23972, 1259, 67, 7358, 12, 2890, 16, 10486, 4672, 365, 18, 9274, 529, 67, 2147, 18, 542, 67, 11248, 67, 1152, 12, 14401, 18, 588, 67, 3535, 10756, 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, 6853, 67, 1152, 67, 88, 23972, 1259, 67, 7358, 12, 2890, 16, 10486, 4672, 365, 18, 9274, 529, 67, 2147, 18, 542, 67, 11248, 67, 1152, 12, 14401, 18, 588, 67, 3535, 10756, 2, -100, -1...
file.write("<?%s?>" % _escape_cdata(node.text, encoding))
file.write(_encode("<?%s?>" % _escape_cdata(node.text), encoding))
def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new namespaces in this scope try: if isinstance(tag, QName) or tag[:1] == "{": tag, xmlns = fixtag(tag, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(tag) file.write("<" + _encode(tag, encoding)) if items or xmlns_items: items.sort() # lexical order for k, v in items: try: if isinstance(k, QName) or k[:1] == "{": k, xmlns = fixtag(k, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(k) try: if isinstance(v, QName): v, xmlns = fixtag(v, namespaces) if xmlns: xmlns_items.append(xmlns) except TypeError: _raise_serialization_error(v) file.write(" %s=\"%s\"" % (_encode(k, encoding), _escape_attrib(v, encoding))) for k, v in xmlns_items: file.write(" %s=\"%s\"" % (_encode(k, encoding), _escape_attrib(v, encoding))) if node.text or len(node): file.write(">") if node.text: file.write(_escape_cdata(node.text, encoding)) for n in node: self._write(file, n, encoding, namespaces) file.write("</" + _encode(tag, encoding) + ">") else: file.write(" />") for k, v in xmlns_items: del namespaces[v] if node.tail: file.write(_escape_cdata(node.tail, encoding))
e4cfaf8f7bb5d21848fb232e3757979401720c1d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/e4cfaf8f7bb5d21848fb232e3757979401720c1d/ElementTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 2932, 5586, 413, 738, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 12, 2890, 16, 585, 16, 756, 16, 2688, 16, 7728, 4672, 468, 1045, 3167, 358, 585, 1047, 273, 756, 18, 2692, 309, 1047, 353, 9821, 30, 585, 18, 2626, 2932, 5586, 413, 738, 8...
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)
9626d92183ad55670ae3bf25df8672eb992673fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9626d92183ad55670ae3bf25df8672eb992673fe/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, -...
M = Matrix(k,r,r,1)
M = Matrix(k, r, r, 1)
def mix_columns_matrix(self): """ Return the MixColumns matrix.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for i in range(0,len(l2),e):
for i in range(0, len(l2), e):
def antiphi(self,l): """ Inverse of self.phi.
62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 80, 4672, 3536, 657, 2476, 434, 365, 18, 9973, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 392, 14587, 12266, 12, 2890, 16, 80, 4672, 3536, 657, 2476, 434, 365, 18, 9973, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
os.environ['TMPTICKET'] = passwd comm = comm + " -passin pass:$TMPTICKET"
if passwd: os.environ['TMPTICKET'] = passwd comm = comm + " -passin pass:$TMPTICKET"
def createProxy(certfile='',keyfile='',hours=0,bits=512,password=''): """ Create a new full legacy proxy and return it as a string """ debug = 0 openssl = "openssl" # Directory where all the temporary files will be put tmpdir = tempfile.mkdtemp() if hours > MAX_PROXY_VALIDITY_DAYS*24: hours = MAX_PROXY_VALIDITY_DAYS*24 if not certfile: result = getCertificateAndKey() if result: certfile,keyfile = result if not certfile: return S_ERROR('Grid credentials are not found') serial = 1000 result = getProxySerial(certfile) if result['OK']: serial = int(result['Value']) # Transform int into a hex string serial_string = hex(serial).replace('0x','').zfill(4).upper() serialfile = tmpdir+'/cert_serial' sfile = open(serialfile,'w') sfile.write(serial_string) sfile.close() configfile = tmpdir+'/proxy_config' newkeyfile = tmpdir+'/proxy_key' if debug: print "\nCreating new certificate request in %s" % configfile print "and placing private key in %s:" % newkeyfile configfile = __makeX509ConfigFile(configfile,certfile,bits) comm = openssl+" req -new -nodes -config %s -keyout %s " % (configfile,newkeyfile) if debug: print "\n",comm result = shellCall(0,comm) if not result['OK']: shutil.rmtree(tmpdir) return S_ERROR('Failed to create the proxy request') status,output,error = result['Value'] if status: if debug: print "--- Error creating proxy certificate!" print output shutil.rmtree(tmpdir) return S_ERROR('Failed to create the proxy request') requestfile = configfile+'.req' rfile = open(requestfile,'w') rfile.write(output) rfile.close() if debug: print "\nSigning certificate request" days = int(hours)/24 + 1 comm = openssl+" x509 -req -in %s -CAkey %s " % (requestfile,keyfile) comm = comm + "-extfile %s -extensions ext_section -days %s " % (configfile,days) comm = comm + "-CA %s -CAcreateserial -CAserial %s" % (certfile,serialfile) if not password: passwd = getpass.getpass("Enter GRID pass phrase:") else: passwd = password os.environ['TMPTICKET'] = passwd comm = comm + " -passin pass:$TMPTICKET" if debug: print "\n",comm,"\n" result = shellCall(0,comm) del os.environ['TMPTICKET'] if not result['OK']: shutil.rmtree(tmpdir) return result status,proxy,error = result['Value'] if status > 0: shutil.rmtree(tmpdir) return S_ERROR('Failed to create proxy: '+error) kf = open(newkeyfile,'r') newkey = kf.read() if debug: print "\nAppending user certificate" print "\nopenssl x509 -in "+certfile result = shellCall(0,openssl+' x509 -in '+certfile) if not result['OK']: shutil.rmtree(tmpdir) return S_ERROR('Failed to read in certificate') status,certificate,error = result['Value'] if status > 0: shutil.rmtree(tmpdir) return S_ERROR('Failed to read in certificate: '+error) shutil.rmtree(tmpdir) result_proxy = proxy+newkey+certificate return S_OK(result_proxy)
ccb3203977b697bf0db65d0281f24e9b329186b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/ccb3203977b697bf0db65d0281f24e9b329186b5/GridCredentials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3886, 12, 7593, 768, 2218, 2187, 856, 768, 2218, 2187, 16814, 33, 20, 16, 6789, 33, 13757, 16, 3664, 2218, 11, 4672, 3536, 1788, 279, 394, 1983, 8866, 2889, 471, 327, 518, 487, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3886, 12, 7593, 768, 2218, 2187, 856, 768, 2218, 2187, 16814, 33, 20, 16, 6789, 33, 13757, 16, 3664, 2218, 11, 4672, 3536, 1788, 279, 394, 1983, 8866, 2889, 471, 327, 518, 487, 27...
self.sort = None
def run(self): """ Perform search and return results object """ start = time.time() if self.request.cfg.xapian_search: hits = self._xapianSearch() logging.debug("_xapianSearch found %d hits" % len(hits)) else: hits = self._moinSearch() logging.debug("_moinSearch found %d hits" % len(hits))
07ed51d91fa5e8bda99aae546d02ed9de883975d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/07ed51d91fa5e8bda99aae546d02ed9de883975d/builtin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 11217, 1623, 471, 327, 1686, 733, 3536, 787, 273, 813, 18, 957, 1435, 309, 365, 18, 2293, 18, 7066, 18, 92, 2425, 304, 67, 3072, 30, 11076, 273, 365, 6315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3536, 11217, 1623, 471, 327, 1686, 733, 3536, 787, 273, 813, 18, 957, 1435, 309, 365, 18, 2293, 18, 7066, 18, 92, 2425, 304, 67, 3072, 30, 11076, 273, 365, 6315, ...