rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
package.writeDescFile()
def processPackage(self, package): """ Builds missing patches for the indicated package. """
afe34ff5756284a4c17586a795e468facd2a6d18 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/afe34ff5756284a4c17586a795e468facd2a6d18/PatchMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2261, 12, 2890, 16, 2181, 4672, 3536, 3998, 87, 3315, 16482, 364, 326, 17710, 2181, 18, 3536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2261, 12, 2890, 16, 2181, 4672, 3536, 3998, 87, 3315, 16482, 364, 326, 17710, 2181, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
file.tags["trkn"] = (int(self.metadata["tracknumber"]), int(self.metadata["totaltracks"]))
file.tags["trkn"] = [(int(self.metadata["tracknumber"]), int(self.metadata["totaltracks"]))]
def write_free_text(desc, name): if name in self.metadata: id = "----:com.apple.iTunes:%s" % desc file.tags[id] = self.metadata[name].encode("utf-8") + "\x00"
3935b900e0129d5079b0a36852e241b5927ef0ed /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12415/3935b900e0129d5079b0a36852e241b5927ef0ed/mp4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 9156, 67, 955, 12, 5569, 16, 508, 4672, 309, 508, 316, 365, 18, 4165, 30, 612, 273, 315, 553, 30, 832, 18, 438, 1802, 18, 77, 56, 27490, 5319, 87, 6, 738, 3044, 585, 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, 1045, 67, 9156, 67, 955, 12, 5569, 16, 508, 4672, 309, 508, 316, 365, 18, 4165, 30, 612, 273, 315, 553, 30, 832, 18, 438, 1802, 18, 77, 56, 27490, 5319, 87, 6, 738, 3044, 585, 18, ...
self.__format_results("\n".join(results))
def execute_mysql(self, build, num_threads, max_time, read_only, args): bin = os.path.join(self.autodir, 'deps/mysql/mysql/bin') data = os.path.join(self.autodir, 'deps/mysql/mysql/var') log = os.path.join(self.debugdir, 'mysql.log')
f77f62b5c384c1668d8abec35a7be24366c464bf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/f77f62b5c384c1668d8abec35a7be24366c464bf/sysbench.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 12527, 12, 2890, 16, 1361, 16, 818, 67, 12495, 16, 943, 67, 957, 16, 855, 67, 3700, 16, 833, 4672, 4158, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 67, 12527, 12, 2890, 16, 1361, 16, 818, 67, 12495, 16, 943, 67, 957, 16, 855, 67, 3700, 16, 833, 4672, 4158, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 5854, 369, 481, 16, 2...
@eg.LogIt
def __stop__(self): self.alive = False self.sendQueue.put((StopIteration, None)) self.serialThread.SuspendReadEvents() self.serialThread.Write("\x20\xe0") self.serialThread.Close()
8803520caf159e34ba511c3f34442010efcf03b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/8803520caf159e34ba511c3f34442010efcf03b9/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5681, 972, 12, 2890, 4672, 365, 18, 11462, 273, 1083, 365, 18, 4661, 3183, 18, 458, 12443, 4947, 10795, 16, 599, 3719, 365, 18, 8818, 3830, 18, 55, 18815, 1994, 3783, 1435, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5681, 972, 12, 2890, 4672, 365, 18, 11462, 273, 1083, 365, 18, 4661, 3183, 18, 458, 12443, 4947, 10795, 16, 599, 3719, 365, 18, 8818, 3830, 18, 55, 18815, 1994, 3783, 1435, 365, ...
ifl = self.getIndexFileList() for f in ifl:
for d in listdir( gPodderLib().downloaddir): f = sep.join( [ gPodderLib().downloaddir, d, 'index.xml' ])
def getDownloadedChannelsList( self): # do not re-read downloaded channels list if self.chlist != None: if libgpodder.isDebugging(): print "(localDB) using cached downloaded channels list" return self.chlist self.chlist = [] ifl = self.getIndexFileList() for f in ifl: if isfile( f): # whew! found a index file, parse ...
923fa5ad3e8e0caf4b46312f8e4df0f9b5e874ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12778/923fa5ad3e8e0caf4b46312f8e4df0f9b5e874ee/liblocaldb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2343, 995, 4230, 10585, 682, 12, 365, 4672, 468, 741, 486, 283, 17, 896, 13549, 5750, 666, 309, 365, 18, 343, 1098, 480, 599, 30, 309, 2561, 6403, 369, 765, 18, 291, 2829, 1998, 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, 2343, 995, 4230, 10585, 682, 12, 365, 4672, 468, 741, 486, 283, 17, 896, 13549, 5750, 666, 309, 365, 18, 343, 1098, 480, 599, 30, 309, 2561, 6403, 369, 765, 18, 291, 2829, 1998, 13332,...
_string = p.sub(r"\\column{\1}", _string)
string = p.sub(r"\\column{\1}", string) return string def transform_boldfont(string): """ bold font """
def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) ...
1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 1080, 4672, 3536, 1765, 19, 6547, 1245, 980, 3536, 2552, 2623, 67, 25304, 16, 2792, 67, 1726, 67, 2815, 565, 468, 290, 689, 93, 7757, 358, 741, 2552, 2623, 67, 3374, 16, 2623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 1080, 4672, 3536, 1765, 19, 6547, 1245, 980, 3536, 2552, 2623, 67, 25304, 16, 2792, 67, 1726, 67, 2815, 565, 468, 290, 689, 93, 7757, 358, 741, 2552, 2623, 67, 3374, 16, 2623...
for service, idList in schedIdList.items() :
for service, idList in schedIdList.iteritems() :
def getOutput( self, obj, outdir ): """ retrieve output or just put it in the destination directory """
7f0b657f988fd433d1acf037c04f397cacf783dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/7f0b657f988fd433d1acf037c04f397cacf783dc/Scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11062, 12, 365, 16, 1081, 16, 15398, 262, 30, 3536, 4614, 876, 578, 2537, 1378, 518, 316, 326, 2929, 1867, 3536, 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, 11062, 12, 365, 16, 1081, 16, 15398, 262, 30, 3536, 4614, 876, 578, 2537, 1378, 518, 316, 326, 2929, 1867, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.rpcpid = os.spawnv(os.P_NOWAIT, args[0], args)
self.rpcpid = os.spawnv(os.P_NOWAIT, sys.executable, args)
def spawn_subprocess(self): args = self.subprocess_arglist self.rpcpid = os.spawnv(os.P_NOWAIT, args[0], args)
75f5af065da779282ce9e4056c55315178383999 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/75f5af065da779282ce9e4056c55315178383999/PyShell.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 67, 1717, 2567, 12, 2890, 4672, 833, 273, 365, 18, 1717, 2567, 67, 3175, 1098, 365, 18, 7452, 6610, 273, 1140, 18, 1752, 9533, 90, 12, 538, 18, 52, 67, 3417, 19046, 16, 833, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12560, 67, 1717, 2567, 12, 2890, 4672, 833, 273, 365, 18, 1717, 2567, 67, 3175, 1098, 365, 18, 7452, 6610, 273, 1140, 18, 1752, 9533, 90, 12, 538, 18, 52, 67, 3417, 19046, 16, 833, 6...
Bd = other.d
def __imul__(self, other): assert isinstance(other, Matrix3) # Cache attributes in local vars (see Matrix3.__mul__). Aa = self.a Ab = self.b Ac = self.c Ae = self.e Af = self.f Ag = self.g Ai = self.i Aj = self.j Ak = self.k Ba = other.a Bb = other.b Bc = other.c Bd = other.d Be = other.e Bf = other.f Bg = other.g Bh =...
2151a22e7991fa47eb449b5b47262aeaa758ebff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7978/2151a22e7991fa47eb449b5b47262aeaa758ebff/euclid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 381, 332, 972, 12, 2890, 16, 1308, 4672, 1815, 1549, 12, 3011, 16, 7298, 23, 13, 468, 4379, 1677, 316, 1191, 4153, 261, 5946, 7298, 23, 16186, 16411, 972, 2934, 432, 69, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 381, 332, 972, 12, 2890, 16, 1308, 4672, 1815, 1549, 12, 3011, 16, 7298, 23, 13, 468, 4379, 1677, 316, 1191, 4153, 261, 5946, 7298, 23, 16186, 16411, 972, 2934, 432, 69, 273, 365...
def delete_multi(self, keys, seconds=0, key_prefix=''):
def delete_multi(self, keys, time=0, key_prefix=''):
def delete_multi(self, keys, seconds=0, key_prefix=''): ''' Delete multiple keys in the memcache doing just one query.
9edc0a0b5a35fedff04770f3a8e74b479155e55e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11935/9edc0a0b5a35fedff04770f3a8e74b479155e55e/memcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 7027, 12, 2890, 16, 1311, 16, 813, 33, 20, 16, 498, 67, 3239, 2218, 11, 4672, 9163, 2504, 3229, 1311, 316, 326, 20549, 9957, 2537, 1245, 843, 18, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 7027, 12, 2890, 16, 1311, 16, 813, 33, 20, 16, 498, 67, 3239, 2218, 11, 4672, 9163, 2504, 3229, 1311, 316, 326, 20549, 9957, 2537, 1245, 843, 18, 2, -100, -100, -100, -100, ...
self.l.setSelectionClip(eRect(xpos, 0, width, self.event_rect.height()), update)
self.l.setSelectionClip(eRect(xpos, 0, width, self.event_rect.height()), visible and update)
def selEntry(self, dir): cur_service = self.cur_service #(service, service_name, events) if not self.entry_rect: self.recalcEntrySize() if cur_service and self.cur_event is not None: update = True entries = cur_service[2] if dir == 0: #current update = False pass elif dir == +1: #next if self.cur_event+1 < len(entries)...
d92413e6d676ad376415c36855ea93ffb4db8423 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/d92413e6d676ad376415c36855ea93ffb4db8423/GraphMultiEpg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 1622, 12, 2890, 16, 1577, 4672, 662, 67, 3278, 273, 365, 18, 1397, 67, 3278, 468, 12, 3278, 16, 1156, 67, 529, 16, 2641, 13, 309, 486, 365, 18, 4099, 67, 2607, 30, 365, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 357, 1622, 12, 2890, 16, 1577, 4672, 662, 67, 3278, 273, 365, 18, 1397, 67, 3278, 468, 12, 3278, 16, 1156, 67, 529, 16, 2641, 13, 309, 486, 365, 18, 4099, 67, 2607, 30, 365, 18, 26...
sign, s = s[0], s[1:]
sign, s = s[0], s[1:]
def zfill(x, width): """zfill(x, width) -> string Pad a numeric string x with zeros on the left, to fill a field of the specified width. The string x is never truncated. """ if type(x) == type(''): s = x else: s = `x` n = len(s) if n >= width: return s sign = '' if s[0] in ('-', '+'): sign, s = s[0], s[1:] return si...
5c6813c5ba3e5df4b25e1aa4be5b9be13f19b6c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5c6813c5ba3e5df4b25e1aa4be5b9be13f19b6c8/string.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 5935, 12, 92, 16, 1835, 4672, 3536, 94, 5935, 12, 92, 16, 1835, 13, 317, 533, 225, 30961, 279, 6389, 533, 619, 598, 4922, 603, 326, 2002, 16, 358, 3636, 279, 652, 434, 326, 1269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 998, 5935, 12, 92, 16, 1835, 4672, 3536, 94, 5935, 12, 92, 16, 1835, 13, 317, 533, 225, 30961, 279, 6389, 533, 619, 598, 4922, 603, 326, 2002, 16, 358, 3636, 279, 652, 434, 326, 1269...
p.add_constraint( Sum( vertex_used[v] for v in self) - Sum( f_edge_used(u,v) for u,v in self.edges(labels = False)), min = 1, max = 1)
p.add_constraint( Sum(vertex_used[v] for v in self) - Sum(f_edge_used(u,v) for u, v in self.edges(labels=False)), min=1, max=1)
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
[1] William Kolakoski, proposal 5304, American Mathematical Monthly 72 (1965), 674; for a partial solution, see "Self Generating Runs," by Necdet Üçoluk, Amer. Math. Mon. 73 (1966), 681-2. """ try: a = int(alphabet[0]) b = int(alphabet[1]) if a <=0 or b <= 0 or a == b: raise ValueError, 'The alphabet (=%s) must consist...
- [1] William Kolakoski, proposal 5304, American Mathematical Monthly 72 (1965), 674; for a partial solution, see "Self Generating Runs," by Necdet Üçoluk, Amer. Math. Mon. 73 (1966), 681-2. """ a, b = alphabet if a not in ZZ or a <= 0 or b not in ZZ or b <= 0 or a == b: msg = 'The alphabet (=%s) must consist of two di...
def KolakoskiWord(self, alphabet=(1,2)): r""" Returns the Kolakoski word over the given alphabet and starting with the first letter of the alphabet.
bace4f604d8c9b48c2ea4d690c03b6f59cfa22a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/bace4f604d8c9b48c2ea4d690c03b6f59cfa22a4/word_generators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1475, 355, 581, 538, 15299, 3944, 12, 2890, 16, 10877, 28657, 21, 16, 22, 3719, 30, 436, 8395, 2860, 326, 1475, 355, 581, 538, 15299, 2076, 1879, 326, 864, 10877, 471, 5023, 598, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1475, 355, 581, 538, 15299, 3944, 12, 2890, 16, 10877, 28657, 21, 16, 22, 3719, 30, 436, 8395, 2860, 326, 1475, 355, 581, 538, 15299, 2076, 1879, 326, 864, 10877, 471, 5023, 598, 326, ...
(rc,exists) = semanage_port_exists(self.sh, k)
(rc, exists) = semanage_port_exists(self.sh, k)
def __delete(self, port, proto): ( k, proto_d, low, high ) = self.__genkey(port, proto) (rc,exists) = semanage_port_exists(self.sh, k) if rc < 0: raise ValueError(_("Could not check if port %s/%s is defined") % (proto, port)) if not exists: raise ValueError(_("Port %s/%s is not defined") % (proto, port)) (rc,exists) =...
8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3733, 12, 2890, 16, 1756, 16, 3760, 4672, 261, 417, 16, 3760, 67, 72, 16, 4587, 16, 3551, 262, 273, 365, 16186, 4507, 856, 12, 655, 16, 3760, 13, 261, 1310, 16, 1704, 13, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3733, 12, 2890, 16, 1756, 16, 3760, 4672, 261, 417, 16, 3760, 67, 72, 16, 4587, 16, 3551, 262, 273, 365, 16186, 4507, 856, 12, 655, 16, 3760, 13, 261, 1310, 16, 1704, 13, 273, ...
else:
elif maparea is not None:
def from_maparea(cls, maparea, owner): self = super(PolygonMapArea, cls).from_maparea(maparea, owner) if isinstance(maparea, PolygonMapArea): self._coords = maparea.coordinates else: self._set_rect(maparea.rect) return self
81de20deaac2b084507ef02f4d0c7d8cef8d3dcf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3683/81de20deaac2b084507ef02f4d0c7d8cef8d3dcf/annotations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 1458, 5036, 12, 6429, 16, 852, 5036, 16, 3410, 4672, 365, 273, 2240, 12, 11787, 863, 5484, 16, 2028, 2934, 2080, 67, 1458, 5036, 12, 1458, 5036, 16, 3410, 13, 309, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 67, 1458, 5036, 12, 6429, 16, 852, 5036, 16, 3410, 4672, 365, 273, 2240, 12, 11787, 863, 5484, 16, 2028, 2934, 2080, 67, 1458, 5036, 12, 1458, 5036, 16, 3410, 13, 309, 1549, 12, ...
return super(ViewPageTemplate, self).__call__( _ob=_ob, **kwargs)
bound_pt = self.bind(_ob) return bound_pt(**kwargs)
def __call__(self, _ob=None, context=None, request=None, **kwargs): kwargs.setdefault('context', context) kwargs.setdefault('request', request) return super(ViewPageTemplate, self).__call__( _ob=_ob, **kwargs)
4391d838e812402a666bc69c4323eafa20cab044 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9696/4391d838e812402a666bc69c4323eafa20cab044/pagetemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 389, 947, 33, 7036, 16, 819, 33, 7036, 16, 590, 33, 7036, 16, 2826, 4333, 4672, 1205, 18, 542, 1886, 2668, 2472, 2187, 819, 13, 1205, 18, 542, 1886, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 389, 947, 33, 7036, 16, 819, 33, 7036, 16, 590, 33, 7036, 16, 2826, 4333, 4672, 1205, 18, 542, 1886, 2668, 2472, 2187, 819, 13, 1205, 18, 542, 1886, 26...
state_date_clause = ""
state_date_clause = "True"
def products_by_location(self, cursor, user, location_ids, product_ids=None, with_childs=False, skip_zero=True, context=None): """ Return a dict like : {(location, product): qty} for each location and product given as argument, the implicit uom is the default uom on the product. The keys stock_date_end stock_date_start...
58bb45a0944ff3f9a7b6d0d3c00bbdb3186e0792 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9298/58bb45a0944ff3f9a7b6d0d3c00bbdb3186e0792/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10406, 67, 1637, 67, 3562, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 2232, 16, 3017, 67, 2232, 33, 7036, 16, 598, 67, 3624, 87, 33, 8381, 16, 2488, 67, 7124, 33, 5510, 16, 819, 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, 10406, 67, 1637, 67, 3562, 12, 2890, 16, 3347, 16, 729, 16, 2117, 67, 2232, 16, 3017, 67, 2232, 33, 7036, 16, 598, 67, 3624, 87, 33, 8381, 16, 2488, 67, 7124, 33, 5510, 16, 819, 33...
name = '%s:%s (%s)' % ( s.ip, s.port, s.weight )
if s.family == socket.AF_INET: name = '%s:%s (%s)' % ( s.ip, s.port, s.weight ) else: name = 'unix:%s (%s)' % ( s.address, s.weight )
def get_stats(self): '''Get statistics from each of the servers.
bc110074254c99b2dfa6513f61e3f2fcc7ab0455 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/bc110074254c99b2dfa6513f61e3f2fcc7ab0455/memcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5296, 12, 2890, 4672, 9163, 967, 7691, 628, 1517, 434, 326, 7084, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5296, 12, 2890, 4672, 9163, 967, 7691, 628, 1517, 434, 326, 7084, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.anytingElse()
self.anythingElse()
def startTagOther(self, name, attributes): self.anytingElse() self.parser.processStartTag(name, attributes)
40f9853d6b4691906618664f09607a4a6e6241d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/40f9853d6b4691906618664f09607a4a6e6241d6/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 2273, 4274, 12427, 1435, 365, 18, 4288, 18, 2567, 30512, 12, 529, 16, 1677, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 787, 1805, 8290, 12, 2890, 16, 508, 16, 1677, 4672, 365, 18, 2273, 4274, 12427, 1435, 365, 18, 4288, 18, 2567, 30512, 12, 529, 16, 1677, 13, 2, -100, -100, -100, -100, -100, -100, -100...
Return the get_inverse of the graph.
Return the inverse of the graph.
def get_inverse(self): """ Return the get_inverse of the graph. @rtype: graph @return: Complement graph for the graph. """ inv = graph() inv.add_nodes(self.get_nodes()) inv.complete() for each in self.edges.keys(): inv.del_edge(each[0], each[1]) return inv
f79664dbad5115220333040ebd9d63543b56461a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4687/f79664dbad5115220333040ebd9d63543b56461a/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 22552, 12, 2890, 4672, 3536, 2000, 326, 8322, 434, 326, 2667, 18, 225, 632, 86, 723, 30, 225, 2667, 632, 2463, 30, 1286, 4330, 2667, 364, 326, 2667, 18, 3536, 2198, 273, 2667,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22552, 12, 2890, 4672, 3536, 2000, 326, 8322, 434, 326, 2667, 18, 225, 632, 86, 723, 30, 225, 2667, 632, 2463, 30, 1286, 4330, 2667, 364, 326, 2667, 18, 3536, 2198, 273, 2667,...
name = DottedName(name, self.parse_name(elt_list[i]))
name = DottedName(name, self.parse_name(identifier, True))
def parse_dotted_name(self, elt_list): """ @bug: does not handle 'x.(y).z' """ if len(elt_list) % 2 != 1: raise ParseError() name = DottedName(self.parse_name(elt_list[0])) for i in range(2, len(elt_list), 2): if elt_list[i-1] != (token.OP, '.'): raise ParseError() name = DottedName(name, self.parse_name(elt_list[i]))...
b2d4995bf5209e11860cca5063458d9b981a53e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b2d4995bf5209e11860cca5063458d9b981a53e2/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 9811, 2344, 67, 529, 12, 2890, 16, 11572, 67, 1098, 4672, 3536, 632, 925, 30, 1552, 486, 1640, 296, 92, 18, 12, 93, 2934, 94, 11, 3536, 309, 562, 12, 20224, 67, 1098, 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, 1109, 67, 9811, 2344, 67, 529, 12, 2890, 16, 11572, 67, 1098, 4672, 3536, 632, 925, 30, 1552, 486, 1640, 296, 92, 18, 12, 93, 2934, 94, 11, 3536, 309, 562, 12, 20224, 67, 1098, 13, ...
return os.path.basename(slkpackagename2)
if slkpackagename2 is not None: return os.path.basename(slkpackagename2) sbopackagename1 = self.find_sbo_package(brokendep) if sbopackagename1 is not None: return os.path.basename(sbopackagename1)
def get_predicted_pkgname(self, brokenfile, brokendep): """ Returns basename of package who has to be rebuilt or installed. """ slkpackagename1 = self.find_stock_package(brokenfile) if slkpackagename1 is not None: # if it's a stock slackware package slkpackagename2 = self.find_stock_package(brokendep) return os.path.b...
bf0a89a46775157cb8fb878e26dde2335a2436f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/bf0a89a46775157cb8fb878e26dde2335a2436f2/pyfind_revdep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 14491, 329, 67, 10657, 529, 12, 2890, 16, 12933, 768, 16, 12933, 15037, 4672, 3536, 2860, 4882, 434, 2181, 10354, 711, 358, 506, 283, 12406, 578, 5876, 18, 3536, 225, 2020, 79, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14491, 329, 67, 10657, 529, 12, 2890, 16, 12933, 768, 16, 12933, 15037, 4672, 3536, 2860, 4882, 434, 2181, 10354, 711, 358, 506, 283, 12406, 578, 5876, 18, 3536, 225, 2020, 79, ...
m = Numeric.zeros((len(xvals), len(yvals)), xvals.typecode())
if typecode is None: typecode = (Numeric.zeros((1,), xvals.typecode()) + Numeric.zeros((1,), yvals.typecode())).typecode() m = Numeric.zeros((len(xvals), len(yvals)), typecode)
def grid_function(f, xvals, yvals, typecode=None, ufunc=0): """Evaluate and tabulate a function on a grid. 'xvals' and 'yvals' should be 1-D arrays listing the values of x and y at which 'f' should be tabulated. 'f' should be a function taking two floating point arguments. The return value is a matrix M where 'M[i,j...
258feb822091a6e1d14d98bf4c9519fc7ab46704 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9569/258feb822091a6e1d14d98bf4c9519fc7ab46704/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3068, 67, 915, 12, 74, 16, 619, 4524, 16, 677, 4524, 16, 618, 710, 33, 7036, 16, 582, 644, 33, 20, 4672, 3536, 15369, 471, 3246, 6243, 279, 445, 603, 279, 3068, 18, 225, 296, 92, 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, 3068, 67, 915, 12, 74, 16, 619, 4524, 16, 677, 4524, 16, 618, 710, 33, 7036, 16, 582, 644, 33, 20, 4672, 3536, 15369, 471, 3246, 6243, 279, 445, 603, 279, 3068, 18, 225, 296, 92, 4...
self._visa.write(query) time.sleep(0.02) self._visa.write('\r')
return self.write('%s\r' % query)
def write_line(self, query): self._visa.write(query) time.sleep(0.02) self._visa.write('\r')
217ba6a166e16b06110f206f8e7524a08d2d00b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6471/217ba6a166e16b06110f206f8e7524a08d2d00b7/Attocube_ARC200.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1369, 12, 2890, 16, 843, 4672, 365, 6315, 3516, 69, 18, 2626, 12, 2271, 13, 813, 18, 19607, 12, 20, 18, 3103, 13, 365, 6315, 3516, 69, 18, 2626, 2668, 64, 86, 6134, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1369, 12, 2890, 16, 843, 4672, 365, 6315, 3516, 69, 18, 2626, 12, 2271, 13, 813, 18, 19607, 12, 20, 18, 3103, 13, 365, 6315, 3516, 69, 18, 2626, 2668, 64, 86, 6134, 2, -1...
'arch': lambda *a: '<?xml version="1.0"?>\n<tree title="Unknwown">\n\t<field name="name"/>\n</tree>',
'arch': lambda *a: '<?xml version="1.0"?>\n<tree string="Unknwown">\n\t<field name="name"/>\n</tree>',
def _check_xml(self, cr, uid, ids, context={}): for view in self.browse(cr, uid, ids, context): eview = etree.fromstring(view.arch.encode('utf8')) frng = tools.file_open(os.path.join('base','rng','view.rng')) relaxng_doc = etree.parse(frng) relaxng = etree.RelaxNG(relaxng_doc) if not relaxng.validate(eview): logger = n...
7bad562462fbb7b8ab37da2c30bd1363c0e61ecb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/7bad562462fbb7b8ab37da2c30bd1363c0e61ecb/ir_ui_view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 2902, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 364, 1476, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 425, 1945, 273, 12031, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 2902, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 364, 1476, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 425, 1945, 273, 12031, ...
if isinstance(d, _NamedComponent_mixin):
if isinstance(d, pyxb.xmlschema.structures._NamedComponent_mixin):
def resolveDefinitions (self): """Loop until all references within the associated resolvable objects have been resolved.
ea30ae3cb934d57aecf325a5cf2a7acd9ac0379e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/ea30ae3cb934d57aecf325a5cf2a7acd9ac0379e/Namespace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 7130, 261, 2890, 4672, 3536, 6452, 3180, 777, 5351, 3470, 326, 3627, 1565, 16845, 2184, 1240, 2118, 4640, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 7130, 261, 2890, 4672, 3536, 6452, 3180, 777, 5351, 3470, 326, 3627, 1565, 16845, 2184, 1240, 2118, 4640, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
for test in testfiles:
for test in self.alltests[testdir]:
def runTests(self, xpcshell, xrePath=None, symbolsPath=None, manifest=None, testdirs=[], testPath=None, interactive=False, logfiles=True, debuggerInfo=None): """Run xpcshell tests.
427937ff35ea20b5cbfb1e6dd1fb45dae71131c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/427937ff35ea20b5cbfb1e6dd1fb45dae71131c3/runxpcshelltests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 14650, 12, 2890, 16, 619, 2436, 10304, 16, 619, 266, 743, 33, 7036, 16, 7963, 743, 33, 7036, 16, 5643, 33, 7036, 16, 1842, 8291, 22850, 6487, 1842, 743, 33, 7036, 16, 12625, 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, 1086, 14650, 12, 2890, 16, 619, 2436, 10304, 16, 619, 266, 743, 33, 7036, 16, 7963, 743, 33, 7036, 16, 5643, 33, 7036, 16, 1842, 8291, 22850, 6487, 1842, 743, 33, 7036, 16, 12625, 33, ...
if Globals.process_uid != 0: self.perm_changer(rf.mirror_rp)
if Globals.process_uid != 0: self.perm_changer(index)
def get_rf(self, index): """Return RestoreFile of given index, or None""" while 1: if not self.rf_list: if not self.add_rfs(index): return None rf = self.rf_list[0] if rf.index == index: if Globals.process_uid != 0: self.perm_changer(rf.mirror_rp) return rf elif rf.index > index: # Try to add earlier indicies. But if ...
df3aca5b1781434ded9f0e6cebbecef42b5db01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8033/df3aca5b1781434ded9f0e6cebbecef42b5db01f/restore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5809, 12, 2890, 16, 770, 4672, 3536, 990, 11197, 812, 434, 864, 770, 16, 578, 599, 8395, 1323, 404, 30, 309, 486, 365, 18, 5809, 67, 1098, 30, 309, 486, 365, 18, 1289, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5809, 12, 2890, 16, 770, 4672, 3536, 990, 11197, 812, 434, 864, 770, 16, 578, 599, 8395, 1323, 404, 30, 309, 486, 365, 18, 5809, 67, 1098, 30, 309, 486, 365, 18, 1289, 67, ...
if fixed.has_key(variables[i]):
if kw.has_key(str(variables[i])): variables[i]=kw[str(variables[i])] elif fixed and fixed.has_key(variables[i]):
def fix(self, fixed=None, **kw): """ Fixes some given variables in a given multivariate polynomial and returns the changed multivariate polynomials. The polynomial itself is not affected. The variable,value pairs for fixing are to be provided as dictionary of the form {variable:value}.
14b82f519c6e61ea81168c9096c71876d29e41cb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/14b82f519c6e61ea81168c9096c71876d29e41cb/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 12, 2890, 16, 5499, 33, 7036, 16, 2826, 9987, 4672, 3536, 12139, 281, 2690, 864, 3152, 316, 279, 864, 1778, 27693, 16991, 471, 1135, 326, 3550, 1778, 27693, 16991, 87, 18, 1021, 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, 2917, 12, 2890, 16, 5499, 33, 7036, 16, 2826, 9987, 4672, 3536, 12139, 281, 2690, 864, 3152, 316, 279, 864, 1778, 27693, 16991, 471, 1135, 326, 3550, 1778, 27693, 16991, 87, 18, 1021, 16...
nuninst_new = nuninst_comp
def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst()
fa6c1b506f7548b5fdf29486ef79b23c7680b1a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/fa6c1b506f7548b5fdf29486ef79b23c7680b1a2/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 1435, 2, -100, -100, -100, -100, -100, -100, -100, ...
cmds.append('create unique index index_key on
cmds.append('create index index_key on
def invalid_finalmgiID(): # # the set of clones where the final MGI id is an invalid clone id # global cmds cmds.append('select distinct f1._Fantom2_key, f1.riken_cloneid, f1.riken_cluster ' + \ 'into #invalidmgiID ' + \ 'from MGI_Fantom2 f1 ' + \ 'where f1.final_mgiID != "zilch" ' + \ 'and f1.final_mgiID != "zzilch...
3859a6fe7c8ce4969be2d87260ff72e4850e244c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/340/3859a6fe7c8ce4969be2d87260ff72e4850e244c/fantom2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2057, 67, 6385, 81, 10052, 734, 13332, 225, 468, 468, 326, 444, 434, 927, 5322, 1625, 326, 727, 490, 13797, 612, 353, 392, 2057, 3236, 612, 468, 225, 2552, 13446, 225, 13446, 18, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2057, 67, 6385, 81, 10052, 734, 13332, 225, 468, 468, 326, 444, 434, 927, 5322, 1625, 326, 727, 490, 13797, 612, 353, 392, 2057, 3236, 612, 468, 225, 2552, 13446, 225, 13446, 18, 6923, ...
In the self.section_name we remove "\relax" of the string.
In the self.section_name we remove "\relax" from the string.
def MacroDefinition(code,name): r""" Finds the (last) definition of a macro and returns the corresponding object text : the text (a LaTeX source file) where we are searching in name : the name of the macro we want to analyse We search for the definition under one of the two forms \newcommand{\name}[n]{definitio} \new...
334006331cf680a055c919fc68d660f43ca71171 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5109/334006331cf680a055c919fc68d660f43ca71171/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31203, 1852, 12, 710, 16, 529, 4672, 436, 8395, 4163, 87, 326, 261, 2722, 13, 2379, 434, 279, 11522, 471, 1135, 326, 4656, 733, 225, 977, 294, 326, 977, 261, 69, 21072, 21575, 60, 1084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31203, 1852, 12, 710, 16, 529, 4672, 436, 8395, 4163, 87, 326, 261, 2722, 13, 2379, 434, 279, 11522, 471, 1135, 326, 4656, 733, 225, 977, 294, 326, 977, 261, 69, 21072, 21575, 60, 1084...
print "Please restart Sage or restart the R interface (via r.restart()) in order to use '%s'."%package_name if warn is not None: print warn
print "Please restart Sage in order to use '%s'."%package_name
def install_packages(self, package_name): """ Install an R package into Sage's R installation.
8815c7499222080a310c0567e9a0f681b4d34fe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8815c7499222080a310c0567e9a0f681b4d34fe7/r.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 10308, 12, 2890, 16, 2181, 67, 529, 4672, 3536, 10284, 392, 534, 2181, 1368, 348, 410, 1807, 534, 13193, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 10308, 12, 2890, 16, 2181, 67, 529, 4672, 3536, 10284, 392, 534, 2181, 1368, 348, 410, 1807, 534, 13193, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
pprint.pprint(res)
def parse_results(self, raw_xml): """Parse the xml and return a list of dictionaries like: [ {'IDSubtitle': 'foo', 'LinkUseNext': 'foo', 'MovieName': 'foo_movie', ... }, {'IDSubtitle': 'foo', 'LinkUseNext': 'foo', 'MovieName': 'foo_movie', ... }, ...] """ dom = minidom.parseString(raw_xml) #Make the dom from raw xml ...
c725aef4d608392b42d1065bd4a0292b4c218808 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/c725aef4d608392b42d1065bd4a0292b4c218808/search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 4717, 12, 2890, 16, 1831, 67, 2902, 4672, 3536, 3201, 326, 2025, 471, 327, 279, 666, 434, 16176, 3007, 30, 306, 282, 13666, 734, 1676, 2649, 4278, 296, 11351, 2187, 296, 2098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 4717, 12, 2890, 16, 1831, 67, 2902, 4672, 3536, 3201, 326, 2025, 471, 327, 279, 666, 434, 16176, 3007, 30, 306, 282, 13666, 734, 1676, 2649, 4278, 296, 11351, 2187, 296, 2098, ...
signal.alarm(0) signal.signal(signal.SIGHUP, hup) signal.signal(signal.SIGUSR1, usr1) signal.signal(signal.SIGUSR2, usr2) signal.signal(signal.SIGALRM, alrm)
def setUp(self): self.hup = signal.signal(signal.SIGHUP, self.handlerA) self.usr1 = signal.signal(signal.SIGUSR1, self.handlerB) self.usr2 = signal.signal(signal.SIGUSR2, signal.SIG_IGN) self.alrm = signal.signal(signal.SIGALRM, signal.default_int_handler) self.a_called = False self.b_called = False self.pid = os.getp...
def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-...
9f2b93e03ac1b79f2a25aeb2c3b094fbe816d1d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/9f2b93e03ac1b79f2a25aeb2c3b094fbe816d1d4/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
except: msg1 = "Error occured in modifyMode.leftDragTranslation." msg2 = "Possibly due to a key press that activated. " msg3 = "Rotate groupbox. Aborting drag operation" print_compact_traceback(msg1 + msg2 + msg3) return
except: msg1 = "Controlled translation not allowed. " msg2 = "Key must be pressed before starting the drag" env.history.statusbar_msg(msg1 + msg2) if platform.atom_debug: msg3 = "Error occured in modifyMode.leftDragTranslation." msg4 = "Possibly due to a key press that activated. " msg5 = "Rotate groupbox. Aborting dra...
def leftDrag(self, event): """
d55ec12ccc7ef31f62a6aaa1d3c2bce288ccc1f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/d55ec12ccc7ef31f62a6aaa1d3c2bce288ccc1f4/modifyMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2002, 11728, 12, 2890, 16, 871, 4672, 3536, 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, 2002, 11728, 12, 2890, 16, 871, 4672, 3536, 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...
else: proxies['http'] = 'http://%s' % proxyServer proxies['ftp'] = 'ftp://%s' % proxyServer
else: if proxyServer[:5] == 'http:': proxies['http'] = proxyServer else: proxies['http'] = 'http://%s' % proxyServer proxies['ftp'] = 'ftp://%s' % proxyServer
def getproxies_registry(): """Return a dictionary of scheme -> proxy server URL mappings.
b49f88bfc122440e6b056b3c051ac3f928a1df92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b49f88bfc122440e6b056b3c051ac3f928a1df92/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 20314, 606, 67, 9893, 13332, 3536, 990, 279, 3880, 434, 4355, 317, 2889, 1438, 1976, 7990, 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...
[ 1, 1, 1, 1, 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, 336, 20314, 606, 67, 9893, 13332, 3536, 990, 279, 3880, 434, 4355, 317, 2889, 1438, 1976, 7990, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
a = array.array('c', string.letters) fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try:
a = array.array('u', string.letters) with TemporaryFile("w+b") as fileobj:
def test_char_write(self): import array, string a = array.array('c', string.letters) fd, name = tempfile.mkstemp() fileobj = os.fdopen(fd, "w+b") try: writer = csv.writer(fileobj, dialect="excel") writer.writerow(a) expected = ",".join(a)+"\r\n" fileobj.seek(0) self.assertEqual(fileobj.read(), expected) finally: fileob...
3372cde256bb490026e8a5e8c2502a82d2e6c5a0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3372cde256bb490026e8a5e8c2502a82d2e6c5a0/test_csv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3001, 67, 2626, 12, 2890, 4672, 1930, 526, 16, 533, 279, 273, 526, 18, 1126, 2668, 89, 2187, 533, 18, 26054, 13, 225, 598, 22791, 812, 2932, 91, 15, 70, 7923, 487, 17041, 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, 1842, 67, 3001, 67, 2626, 12, 2890, 4672, 1930, 526, 16, 533, 279, 273, 526, 18, 1126, 2668, 89, 2187, 533, 18, 26054, 13, 225, 598, 22791, 812, 2932, 91, 15, 70, 7923, 487, 17041, 3...
if debit is None or credit is None or amount is None: super(Transaction,self).__init__(date=date, description=description) else:
super(Transaction,self).__init__(date=date, description=description) if debit and credit and amount:
def __init__(self, date, description, debit=None, credit=None, amount=None):
81852c0b6ff7a19827171cff3af256cc304a6b7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2380/81852c0b6ff7a19827171cff3af256cc304a6b7e/model2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1509, 16, 2477, 16, 443, 3682, 33, 7036, 16, 12896, 33, 7036, 16, 3844, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1509, 16, 2477, 16, 443, 3682, 33, 7036, 16, 12896, 33, 7036, 16, 3844, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
family=models.families.Gamma(link=models.families.links.identity)).fit()
family=models.families.Gamma(link= models.families.links.identity)).fit()
def __init__(self): from model_results import Cancer self.data = Cancer() self.res1 = GLM(self.data.endog, self.data.exog, family=models.families.Gamma(link=models.families.links.identity)).fit()
74679194056e9f17f68527ec6d607fc36e1318b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/74679194056e9f17f68527ec6d607fc36e1318b1/test_glm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 628, 938, 67, 4717, 1930, 4480, 2750, 365, 18, 892, 273, 4480, 2750, 1435, 365, 18, 455, 21, 273, 10252, 49, 12, 2890, 18, 892, 18, 409, 717, 16, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 628, 938, 67, 4717, 1930, 4480, 2750, 365, 18, 892, 273, 4480, 2750, 1435, 365, 18, 455, 21, 273, 10252, 49, 12, 2890, 18, 892, 18, 409, 717, 16, 365...
{'productname': 'neat-book', '3': 'soft', 'quantity': '1'}) err = self.client.session.get('ERRORS')
{'productname': 'neat-book', '3': 'soft', 'quantity': '1'}, follow=True)
def test_cart_adding_errors_out_of_stock(self): # If no_stock_checkout is False, you should not be able to order a # product that is out of stock. setting = config_get('PRODUCT','NO_STOCK_CHECKOUT') setting.update(False) response = self.client.post(prefix + '/cart/add/', {'productname': 'neat-book', '3': 'soft', 'quant...
770238d4c3290b49c0a80ae72f7ec69468252388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/171/770238d4c3290b49c0a80ae72f7ec69468252388/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11848, 67, 3439, 67, 4324, 67, 659, 67, 792, 67, 15381, 12, 2890, 4672, 468, 971, 1158, 67, 15381, 67, 17300, 353, 1083, 16, 1846, 1410, 486, 506, 7752, 358, 1353, 279, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11848, 67, 3439, 67, 4324, 67, 659, 67, 792, 67, 15381, 12, 2890, 4672, 468, 971, 1158, 67, 15381, 67, 17300, 353, 1083, 16, 1846, 1410, 486, 506, 7752, 358, 1353, 279, 468, ...
print "MWsemantics.py: fileInsert(): error inserting file" + fn self.history.message( "Problem inserting MMP file: " + fn )
print_compact_traceback( "MWsemantics.py: fileInsert(): error inserting MMP file [%s]: " % fn ) self.history.message( redmsg( "Internal error while inserting MMP file: " + fn) )
def fileInsert(self): self.history.message(greenmsg("Insert File:")) wd = globalParms['WorkingDirectory'] fn = QFileDialog.getOpenFileName(wd, "Molecular machine parts (*.mmp);;Protein Data Bank (*.pdb);;All of the above (*.pdb *.mmp)", self ) if not fn: self.history.message("Cancelled") return if fn: fn = str(fn) ...
a1a6ad62793c3317ae3df49fa7ed72d45f9930eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a1a6ad62793c3317ae3df49fa7ed72d45f9930eb/MWsemantics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 4600, 12, 2890, 4672, 225, 365, 18, 8189, 18, 2150, 12, 11571, 3576, 2932, 4600, 1387, 2773, 3719, 225, 14452, 273, 2552, 28572, 3292, 14836, 2853, 3546, 2295, 273, 2238, 812, 6353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 585, 4600, 12, 2890, 4672, 225, 365, 18, 8189, 18, 2150, 12, 11571, 3576, 2932, 4600, 1387, 2773, 3719, 225, 14452, 273, 2552, 28572, 3292, 14836, 2853, 3546, 2295, 273, 2238, 812, 6353, ...
>>> buf = connectTCP('127.0.0.1', PORT)
>>> buf = BufferCreator(Buffer).connectTCP('127.0.0.1', PORT)
def read(self, size=-1): """Like file's read().
80c407c922174c268203576240cd74700bfdad86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/80c407c922174c268203576240cd74700bfdad86/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 29711, 21, 4672, 3536, 8804, 585, 1807, 855, 7675, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 29711, 21, 4672, 3536, 8804, 585, 1807, 855, 7675, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
saRelDble = idaapi.saRelDble
saRelDble = idaapi.saRelDble
def SegAlign(ea, alignment): """ Change alignment of the segment @param ea: any address in the segment @param alignment: new alignment of the segment (one of the sa... constants) @return: success (boolean) """ return SetSegmentAttr(ea, SEGATTR_ALIGN, alignment)
507ea15b7a89e88e413b47a9fe03b571d956c14a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/507ea15b7a89e88e413b47a9fe03b571d956c14a/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 1332, 10044, 12, 24852, 16, 8710, 4672, 3536, 7576, 8710, 434, 326, 3267, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 3267, 632, 891, 8710, 30, 394, 8710, 434, 326, 3267, 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, 348, 1332, 10044, 12, 24852, 16, 8710, 4672, 3536, 7576, 8710, 434, 326, 3267, 225, 632, 891, 24164, 30, 1281, 1758, 316, 326, 3267, 632, 891, 8710, 30, 394, 8710, 434, 326, 3267, 261, ...
"""Quote a single character.""" if c == ESCAPE: return ESCAPE * 2 else: i = ord(c) return ESCAPE + HEX[i/16] + HEX[i%16]
"""Quote a single character.""" i = ord(c) return ESCAPE + HEX[i/16] + HEX[i%16]
def quote(c): """Quote a single character.""" if c == ESCAPE: return ESCAPE * 2 else: i = ord(c) return ESCAPE + HEX[i/16] + HEX[i%16]
7ad3eb0691b28b7bbfefbfe6d3feaf80fa53186d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7ad3eb0691b28b7bbfefbfe6d3feaf80fa53186d/quopri.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3862, 12, 71, 4672, 3536, 10257, 279, 2202, 3351, 12123, 277, 273, 4642, 12, 71, 13, 327, 27933, 397, 23971, 63, 77, 19, 2313, 65, 397, 23971, 63, 77, 9, 2313, 65, 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, 3862, 12, 71, 4672, 3536, 10257, 279, 2202, 3351, 12123, 277, 273, 4642, 12, 71, 13, 327, 27933, 397, 23971, 63, 77, 19, 2313, 65, 397, 23971, 63, 77, 9, 2313, 65, 225, 2, -100, -100...
ptpUploadInfo.Title = Ptp.__FixFillImdbText( ptpUploadInfo.Title )
ptpUploadInfo.Title = htmlParser.unescape( ptpUploadInfo.Title )
def FillImdbInfo(ptpUploadInfo): Globals.Logger.info( "Downloading movie info from PTP for IMDb id '%s'." % ptpUploadInfo.ImdbId ); # Get IMDb info through PTP's ajax API used by the site when the user presses the auto fill button. opener = urllib2.build_opener( urllib2.HTTPCookieProcessor( Globals.CookieJar ) ); requ...
af15f539b20e4b0b274f6b196bee47b7968cc098 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4785/af15f539b20e4b0b274f6b196bee47b7968cc098/Ptp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14192, 1170, 1966, 966, 12, 337, 84, 4777, 966, 4672, 18901, 1031, 18, 3328, 18, 1376, 12, 315, 27217, 21360, 1123, 628, 453, 11130, 364, 6246, 4331, 612, 1995, 87, 14550, 738, 5818, 84,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14192, 1170, 1966, 966, 12, 337, 84, 4777, 966, 4672, 18901, 1031, 18, 3328, 18, 1376, 12, 315, 27217, 21360, 1123, 628, 453, 11130, 364, 6246, 4331, 612, 1995, 87, 14550, 738, 5818, 84,...
Attempts to accept() on the descriptor, returns a client,address tuple if it succeeds; returns None if it needs to trampoline, and raises
Attempts to accept() on the descriptor, returns a client,address tuple if it succeeds; returns None if it needs to trampoline, and raises
def socket_accept(descriptor): """ Attempts to accept() on the descriptor, returns a client,address tuple if it succeeds; returns None if it needs to trampoline, and raises any exceptions. """ try: return descriptor.accept() except socket.error, e: if e[0] == errno.EWOULDBLOCK: return None raise
8072243926ecc1890fc6098357047497f043a57a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/8072243926ecc1890fc6098357047497f043a57a/greenio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2987, 67, 9436, 12, 12628, 4672, 3536, 6020, 9585, 358, 2791, 1435, 603, 326, 4950, 16, 1135, 279, 1004, 16, 2867, 3193, 309, 518, 21933, 31, 1135, 599, 309, 518, 4260, 358, 433, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2987, 67, 9436, 12, 12628, 4672, 3536, 6020, 9585, 358, 2791, 1435, 603, 326, 4950, 16, 1135, 279, 1004, 16, 2867, 3193, 309, 518, 21933, 31, 1135, 599, 309, 518, 4260, 358, 433, 931, ...
self.prop.window, _("Invalid pattern"),
self.prop, _("Invalid pattern"),
def update(self, songs): from library import AudioFileGroup self.songs = songs songinfo = AudioFileGroup(songs) pattern_text = self.entry.get_text().decode("utf-8") self.view.set_model(None) try: pattern = util.PatternFromFile(pattern_text) except sre.error: qltk.ErrorMessage( self.prop.window, _("Invalid pattern"), _(...
44deb3636adb3eb180d1cc44ce811a1cb782bb80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/44deb3636adb3eb180d1cc44ce811a1cb782bb80/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 272, 7260, 4672, 628, 5313, 1930, 15045, 812, 1114, 365, 18, 816, 564, 273, 272, 7260, 17180, 1376, 273, 15045, 812, 1114, 12, 816, 564, 13, 1936, 67, 955, 273, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 272, 7260, 4672, 628, 5313, 1930, 15045, 812, 1114, 365, 18, 816, 564, 273, 272, 7260, 17180, 1376, 273, 15045, 812, 1114, 12, 816, 564, 13, 1936, 67, 955, 273, 365...
if model == '\n': continue
if model == '\n' or model == '': continue
def importModel(modelName, srcPath, dstPath = None, clobber=False): "importing model into the database" if dstPath == None: dstPath = initialize.atmosStoragePath(modelName) # Check to see if the destination path exists if not os.path.exists(dstPath): os.makedirs(dstPath) modeldb.initModelTable(modelName) conn...
d768989c543583b48f7763b5c922adec7c1118fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7433/d768989c543583b48f7763b5c922adec7c1118fb/fileio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1930, 1488, 12, 2284, 461, 16, 19497, 16, 29845, 273, 599, 16, 30152, 33, 8381, 4672, 225, 315, 5666, 310, 938, 1368, 326, 2063, 6, 225, 309, 29845, 422, 599, 30, 29845, 273, 4046, 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, 1930, 1488, 12, 2284, 461, 16, 19497, 16, 29845, 273, 599, 16, 30152, 33, 8381, 4672, 225, 315, 5666, 310, 938, 1368, 326, 2063, 6, 225, 309, 29845, 422, 599, 30, 29845, 273, 4046, 18,...
if coerce:
if kwds.has_key('coerce') and kwds['coerce']:
def ideal(self, *gens, **kwds): if len(gens) == 1 and isinstance(gens[0], (list, tuple)): gens = gens[0] from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular if not isinstance(self.__R,MPolynomialRing_libsingular) and not self.__R._has_singular: # pass through MPolynomialRing_gener...
7849508458b65104f3039609e380a21fa00413f3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7849508458b65104f3039609e380a21fa00413f3/quotient_ring.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 12, 2890, 16, 380, 23730, 16, 2826, 25577, 4672, 309, 562, 12, 23730, 13, 422, 404, 471, 1549, 12, 23730, 63, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 314, 773, 273, 314, 773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23349, 12, 2890, 16, 380, 23730, 16, 2826, 25577, 4672, 309, 562, 12, 23730, 13, 422, 404, 471, 1549, 12, 23730, 63, 20, 6487, 261, 1098, 16, 3193, 3719, 30, 314, 773, 273, 314, 773, ...
module_name, check = part.split('/')
if '/' in part: module_name, check = part.split('/') elif len(self.checks) == 1: module_name = part check = self.checks[0].__name__ else: continue
def load_false_positives(self, filename): self.false_positives = {} if not filename: return if filename.startswith('http://'): try: filename = httpcache.load(filename, age=0) except Exception, e: logging.warning('could not download %s: %s' % (filename, e)) return for line in file(filename): line = line.strip() if not l...
b90849367d5aa6c76e3cb16b241dcbb77642c45a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/b90849367d5aa6c76e3cb16b241dcbb77642c45a/goalreport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 5743, 67, 1724, 3606, 12, 2890, 16, 1544, 4672, 365, 18, 5743, 67, 1724, 3606, 273, 2618, 309, 486, 1544, 30, 327, 309, 1544, 18, 17514, 1918, 2668, 2505, 8931, 4672, 775, 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, 1262, 67, 5743, 67, 1724, 3606, 12, 2890, 16, 1544, 4672, 365, 18, 5743, 67, 1724, 3606, 273, 2618, 309, 486, 1544, 30, 327, 309, 1544, 18, 17514, 1918, 2668, 2505, 8931, 4672, 775, 30...
assert res is False
assert not res
def ll_function(o): hint(o, deepfreeze=True) hint(o, concrete=True) x = isinstance(o, Str) return x
2a507ca7510fcd7d691d54b5585ba3a139f9613c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/2a507ca7510fcd7d691d54b5585ba3a139f9613c/test_portal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 915, 12, 83, 4672, 7380, 12, 83, 16, 4608, 29631, 33, 5510, 13, 7380, 12, 83, 16, 12220, 33, 5510, 13, 619, 273, 1549, 12, 83, 16, 3978, 13, 327, 619, 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, 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, 6579, 67, 915, 12, 83, 4672, 7380, 12, 83, 16, 4608, 29631, 33, 5510, 13, 7380, 12, 83, 16, 12220, 33, 5510, 13, 619, 273, 1549, 12, 83, 16, 3978, 13, 327, 619, 225, 2, -100, -100,...
print "FAIL: graph server does not resolve"
print "FAIL: graph server URLError"
def link_exists(host, selector): """ Check to see if the given host exists and is reachable """ try: site = urllib2.urlopen("http://" + host + selector) meta = site.info() except urllib2.URLError, e: print "FAIL: graph server does not resolve" print "FAIL: " + str(e) return 0 return 1
9ee270d6a5f4d9470cb968fc50cee34d00cd7f2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/9ee270d6a5f4d9470cb968fc50cee34d00cd7f2a/post_file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 1808, 12, 2564, 16, 3451, 4672, 3536, 2073, 358, 2621, 309, 326, 864, 1479, 1704, 471, 353, 19234, 3536, 775, 30, 2834, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 14334, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 1808, 12, 2564, 16, 3451, 4672, 3536, 2073, 358, 2621, 309, 326, 864, 1479, 1704, 471, 353, 19234, 3536, 775, 30, 2834, 273, 11527, 22, 18, 295, 18589, 2932, 2505, 14334, 397, ...
print(1)
def __div__(self, other): print(1) return self._o2(other, operator.div)
c30383522dc8fd9e0b710819bb5b57eb24ea6f5f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8535/c30383522dc8fd9e0b710819bb5b57eb24ea6f5f/vec2d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2892, 972, 12, 2890, 16, 1308, 4672, 327, 365, 6315, 83, 22, 12, 3011, 16, 3726, 18, 2892, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2892, 972, 12, 2890, 16, 1308, 4672, 327, 365, 6315, 83, 22, 12, 3011, 16, 3726, 18, 2892, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
match, output = session.read_up_to_prompt(timeout=test_timeout, print_func=logging.info)
match = session.read_up_to_prompt(timeout=test_timeout, print_func=logging.info)[0]
def run_autotest(test, params, env): """ Run an autotest test inside a guest. @param test: kvm test object. @param params: Dictionary with test parameters. @param env: Dictionary with the test environment. """ vm = kvm_utils.env_get_vm(env, params.get("main_vm")) if not vm: raise error.TestError("VM object not found i...
3f769e1fc00cedb47fdf188fd1c7e815632299b9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/3f769e1fc00cedb47fdf188fd1c7e815632299b9/kvm_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 5854, 352, 395, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 1939, 392, 2059, 352, 395, 1842, 4832, 279, 13051, 18, 225, 632, 891, 1842, 30, 417, 3489, 1842, 733, 18, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 5854, 352, 395, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 1939, 392, 2059, 352, 395, 1842, 4832, 279, 13051, 18, 225, 632, 891, 1842, 30, 417, 3489, 1842, 733, 18, 632, 891, ...
for pkg_name2 in search: if pkg_name2 in pkg_name: self._emit_all_visible_pkg_versions(filters, self._cache[pkg_name])
if search in pkg_name: self._emit_all_visible_pkg_versions(filters, self._cache[pkg_name])
def search_names(self, filters, search): """ Implement the apt2-search-name functionality """ pklog.info("Searching for package name: %s" % search) self.status(STATUS_QUERY) self.percentage(None) self._check_init(progress=False) self.allow_cancel(True)
c9854d38e3d2b64a5be58b946d7d99fcd94605fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12904/c9854d38e3d2b64a5be58b946d7d99fcd94605fb/aptBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1973, 12, 2890, 16, 3415, 16, 1623, 4672, 3536, 10886, 326, 279, 337, 22, 17, 3072, 17, 529, 14176, 3536, 2365, 1330, 18, 1376, 2932, 2979, 310, 364, 2181, 508, 30, 738, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 1973, 12, 2890, 16, 3415, 16, 1623, 4672, 3536, 10886, 326, 279, 337, 22, 17, 3072, 17, 529, 14176, 3536, 2365, 1330, 18, 1376, 2932, 2979, 310, 364, 2181, 508, 30, 738, 87, ...
if vm.hypervisor.preferred_storage == VMBuilder.hypervisor.STORAGE_FS_IMAGE:
if hypervisor.preferred_storage == VMBuilder.hypervisor.STORAGE_FS_IMAGE:
def set_disk_layout(self, hypervisor): default_filesystem = hypervisor.distro.preferred_filesystem() if not self.options.part: rootsize = parse_size(self.options.rootsize) swapsize = parse_size(self.options.swapsize) optsize = parse_size(self.options.optsize) if hypervisor.preferred_storage == VMBuilder.hypervisor.STOR...
22ae3b8dbdda994266bd008e1475747421884ded /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1496/22ae3b8dbdda994266bd008e1475747421884ded/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 10863, 67, 6741, 12, 2890, 16, 9512, 10227, 4672, 805, 67, 17846, 273, 9512, 10227, 18, 4413, 303, 18, 23616, 67, 17846, 1435, 309, 486, 365, 18, 2116, 18, 2680, 30, 1365, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10863, 67, 6741, 12, 2890, 16, 9512, 10227, 4672, 805, 67, 17846, 273, 9512, 10227, 18, 4413, 303, 18, 23616, 67, 17846, 1435, 309, 486, 365, 18, 2116, 18, 2680, 30, 1365, 146...
return "{\\rm %s}(%s)"%(self._f._name, ', '.join([x._latex_() for x in self._args]))
""" Return a latex version of the function EXAMPLES: sage: var("t,u") (t, u) sage: y=function('y',u) sage: z=function('z',t,u) sage: latex(y) y\left(u\right) sage: latex(diff(y,u)) {{d}\over{d\,u}}\,y\left(u\right) sage: latex(diff(y,u,3)) {{d^3}\over{d\,u^3}}\,y\left(u\right) sage: latex(diff(z,u)) {{d}\over{d\,u}}\,...
def _latex_(self): return "{\\rm %s}(%s)"%(self._f._name, ', '.join([x._latex_() for x in self._args]))
c8a09a25f12422c129fc151072df1e11c832027f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c8a09a25f12422c129fc151072df1e11c832027f/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 26264, 67, 12, 2890, 4672, 327, 4144, 1695, 8864, 738, 87, 97, 9275, 87, 2225, 17105, 2890, 6315, 74, 6315, 529, 16, 2265, 2418, 5701, 3816, 92, 6315, 26264, 67, 1435, 364, 619, 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, 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, 26264, 67, 12, 2890, 4672, 327, 4144, 1695, 8864, 738, 87, 97, 9275, 87, 2225, 17105, 2890, 6315, 74, 6315, 529, 16, 2265, 2418, 5701, 3816, 92, 6315, 26264, 67, 1435, 364, 619, 3...
[[] []]
[[]]
def __iter__(self): """ Returns a generator object which iterates through the elements of self. The order in which the elements are generated is based on a 'weight' of a matrix which is the number of iterations on the base ring that are required to reach that matrix.
fcd1a561ea4738b565efb6cc8a2dd66789f61b8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/fcd1a561ea4738b565efb6cc8a2dd66789f61b8d/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 2860, 279, 4456, 733, 1492, 16960, 3059, 326, 2186, 434, 365, 18, 225, 1021, 1353, 316, 1492, 326, 2186, 854, 4374, 353, 2511, 603, 279, 296, 4865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2165, 972, 12, 2890, 4672, 3536, 2860, 279, 4456, 733, 1492, 16960, 3059, 326, 2186, 434, 365, 18, 225, 1021, 1353, 316, 1492, 326, 2186, 854, 4374, 353, 2511, 603, 279, 296, 4865,...
oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
if (RUNTIME): oscmd("mv "+ARCH+"/panda3d-runtime-"+VERSION+"-1."+ARCH+".rpm .") else: oscmd("mv "+ARCH+"/panda3d-"+VERSION+"-1."+ARCH+".rpm .")
def MakeInstallerLinux(): import compileall if RUNTIME: # No worries, it won't be used PYTHONV="python" else: PYTHONV=SDK["PYTHONVERSION"] PV=PYTHONV.replace("python", "") if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") oscmd("rm -rf linuxroot data.tar.gz control.tar.gz panda3d.spec") oscmd("mkdir linu...
b4ded0c5fe8af93b51de55ac7cbdd44413792565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b4ded0c5fe8af93b51de55ac7cbdd44413792565/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 19475, 13332, 1930, 4074, 454, 309, 534, 25375, 30, 468, 2631, 14591, 566, 281, 16, 518, 8462, 1404, 506, 1399, 12191, 20131, 58, 1546, 8103, 6, 469, 30, 12191, 20131, 58, 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, 4344, 18678, 19475, 13332, 1930, 4074, 454, 309, 534, 25375, 30, 468, 2631, 14591, 566, 281, 16, 518, 8462, 1404, 506, 1399, 12191, 20131, 58, 1546, 8103, 6, 469, 30, 12191, 20131, 58, 3...
if buf != 'EF':
bytes = struct.unpack('B' * 2, buf) if bytes != (69, 70):
def xyz_3(): content = """Y X Z
0bb53d3bff1fcabb9bd99a024393381f127fffff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/0bb53d3bff1fcabb9bd99a024393381f127fffff/xyz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14779, 67, 23, 13332, 225, 913, 273, 3536, 61, 1139, 2285, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14779, 67, 23, 13332, 225, 913, 273, 3536, 61, 1139, 2285, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif count_embedded_segment_as_match and segment_start_pos>=qc_start and segment_stop_pos<=qc_stop: no_of_valid_deletions += 1 valid_match = True
def compareCNVSegmentsAgainstQCHandler(cls, input_fname_ls, ecotype_id2cnv_qc_call_data, function_handler, param_obj, \ deletion_cutoff=None, max_boundary_diff=10000, \ max_diff_perc=0.10, min_no_of_probes=5, count_embedded_segment_as_match=False): """ 2009-11-4 a general handler to compare CNV segments from input_fnam...
1440ce5092ec2e1bfdd9b1e187e40f109bf0000b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/1440ce5092ec2e1bfdd9b1e187e40f109bf0000b/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 39, 11679, 7946, 23530, 334, 53, 39, 1503, 12, 6429, 16, 810, 67, 12749, 67, 3251, 16, 6557, 10570, 67, 350, 22, 10305, 90, 67, 30675, 67, 1991, 67, 892, 16, 445, 67, 4176, 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, 3400, 39, 11679, 7946, 23530, 334, 53, 39, 1503, 12, 6429, 16, 810, 67, 12749, 67, 3251, 16, 6557, 10570, 67, 350, 22, 10305, 90, 67, 30675, 67, 1991, 67, 892, 16, 445, 67, 4176, 16,...
}
}
def tell(self): return len(self.content)
752a2bd72ba8fcb9e6c4f75abf457b8729509f40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/752a2bd72ba8fcb9e6c4f75abf457b8729509f40/wsgiwrappers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9276, 12, 2890, 4672, 327, 562, 12, 2890, 18, 1745, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 9276, 12, 2890, 4672, 327, 562, 12, 2890, 18, 1745, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
for a in ["Unix.common", "cm3cfg.common"]: print(a + " => " + To + "\n") CopyFile(os.path.join(a, "config-no-install", a), To)
for b in ["Unix.common", "cm3cfg.common"]: print(b + " => " + To + "\n") CopyFile(os.path.join(a, "config-no-install", b), To)
def CopyConfigForDistribution(To): # # The distributed environment is minimal and targets only one # or a small number of targets (e.g. NT386*). # # The distributed environment does not require a source tree. # a = os.path.join(Root, "m3-sys", "cminstall", "src") To = os.path.join(To, "bin") for File in glob.glob(os.pa...
798db0e5ce35d650d3a867d58648052748975ec7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/798db0e5ce35d650d3a867d58648052748975ec7/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5631, 809, 1290, 9003, 12, 774, 4672, 468, 468, 1021, 16859, 3330, 353, 16745, 471, 5774, 1338, 1245, 468, 578, 279, 5264, 1300, 434, 5774, 261, 73, 18, 75, 18, 20064, 23, 5292, 14, 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, 5631, 809, 1290, 9003, 12, 774, 4672, 468, 468, 1021, 16859, 3330, 353, 16745, 471, 5774, 1338, 1245, 468, 578, 279, 5264, 1300, 434, 5774, 261, 73, 18, 75, 18, 20064, 23, 5292, 14, 29...
self._locale = Locale(self._classes, self._translations, self._cache, self._console, self._treeLoader)
def run(self): config = self._job job = self._job require = config.get("require", {}) use = config.get("use", {})
0407b21baef8f72316472f8f521314b6b5ee7f36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/0407b21baef8f72316472f8f521314b6b5ee7f36/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 642, 273, 365, 6315, 4688, 1719, 565, 273, 365, 6315, 4688, 2583, 273, 642, 18, 588, 2932, 6528, 3113, 2618, 13, 999, 377, 273, 642, 18, 588, 2932, 1202, 3113, 26...
if r.status in (200, 206): resp = addinfourl(r.fp, r.msg, req.get_full_url()) resp.code = r.status resp.msg = r.reason return resp else: return self.parent.error("http", req, r.fp, r.status, r.msg, r.msg.dict)
resp = addinfourl(r.fp, r.msg, req.get_full_url()) resp.code = r.status resp.msg = r.reason return resp
def do_open(self, http_class, req): """Return an addinfourl object for the request, using http_class.
e1bbf2995ee90b59ac8ae8d49c35da1f2d9e1a40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e1bbf2995ee90b59ac8ae8d49c35da1f2d9e1a40/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3190, 12, 2890, 16, 1062, 67, 1106, 16, 1111, 4672, 3536, 990, 392, 527, 10625, 477, 80, 733, 364, 326, 590, 16, 1450, 1062, 67, 1106, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 67, 3190, 12, 2890, 16, 1062, 67, 1106, 16, 1111, 4672, 3536, 990, 392, 527, 10625, 477, 80, 733, 364, 326, 590, 16, 1450, 1062, 67, 1106, 18, 2, -100, -100, -100, -100, -100, -...
end = kwargs["end"] + 1
end = kwargs["end"] if end != -1: end += 1 else: pass
def integrate_axis(obj, **kwargs): """ This function takes a SOM or a SO and integrates the given axis. The function assumes that the incoming data is in the histogram form. Parameters: ---------- -> obj is a SOM or a SO -> kwargs is a list of key word arguments that the function accepts: start=<index of starting bin>...
4ef8d4c47484a40ba9f0479263857cb9e7cb079a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/763/4ef8d4c47484a40ba9f0479263857cb9e7cb079a/hlr_integrate_axis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23367, 67, 4890, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 348, 1872, 578, 279, 7460, 471, 11301, 815, 326, 864, 2654, 18, 1021, 445, 13041, 716, 326, 6935, 501, 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, 23367, 67, 4890, 12, 2603, 16, 2826, 4333, 4672, 3536, 1220, 445, 5530, 279, 348, 1872, 578, 279, 7460, 471, 11301, 815, 326, 864, 2654, 18, 1021, 445, 13041, 716, 326, 6935, 501, 353, ...
if len(lhs_pieces) == 1 and len(lhs_name) == 1:
if (len(lhs_pieces) == 1 and (len(lhs_name) == 1 or is_instvar)):
def process_assignment(line, parent_docs, prev_line_doc, lineno, comments, decorators, encoding): # Divide the assignment statement into its pieces. pieces = split_on(line, (token.OP, '=')) lhs_pieces = pieces[:-1] rhs = pieces[-1] # Decide whether the variable is an instance variable or not. # If it's an instance va...
9f36d70e6ac67dfc9ba390d3645d213f3fc250d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/9f36d70e6ac67dfc9ba390d3645d213f3fc250d8/docparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 12960, 12, 1369, 16, 982, 67, 8532, 16, 2807, 67, 1369, 67, 2434, 16, 7586, 16, 5678, 16, 19423, 16, 2688, 4672, 468, 21411, 831, 326, 6661, 3021, 1368, 2097, 10167, 18, 1016...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 12960, 12, 1369, 16, 982, 67, 8532, 16, 2807, 67, 1369, 67, 2434, 16, 7586, 16, 5678, 16, 19423, 16, 2688, 4672, 468, 21411, 831, 326, 6661, 3021, 1368, 2097, 10167, 18, 1016...
stored_search = self.get_handler(search_name)
stored_search = self.get_object(search_name)
def search(self, context): search_name = context.get_form_value('search_name') search_title = context.get_form_value('search_title').strip() search_title = unicode(search_title, 'utf8')
1fa77be5b783398ca5fc70ac4c6bcf0d082732e2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/1fa77be5b783398ca5fc70ac4c6bcf0d082732e2/tracker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 819, 4672, 1623, 67, 529, 273, 819, 18, 588, 67, 687, 67, 1132, 2668, 3072, 67, 529, 6134, 1623, 67, 2649, 273, 819, 18, 588, 67, 687, 67, 1132, 2668, 3072, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 819, 4672, 1623, 67, 529, 273, 819, 18, 588, 67, 687, 67, 1132, 2668, 3072, 67, 529, 6134, 1623, 67, 2649, 273, 819, 18, 588, 67, 687, 67, 1132, 2668, 3072, 67, ...
or publicId.startswith(
or startswithany(publicId,
def processDoctype(self, token): name = token["name"] publicId = token["publicId"] systemId = token["systemId"] correct = token["correct"]
27629df967d4466415b0dd53ee9508f91ec65132 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/27629df967d4466415b0dd53ee9508f91ec65132/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3244, 12387, 12, 2890, 16, 1147, 4672, 508, 273, 1147, 9614, 529, 11929, 1071, 548, 273, 1147, 9614, 482, 548, 11929, 30083, 273, 1147, 9614, 4299, 548, 11929, 3434, 273, 1147, 9614,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3244, 12387, 12, 2890, 16, 1147, 4672, 508, 273, 1147, 9614, 529, 11929, 1071, 548, 273, 1147, 9614, 482, 548, 11929, 30083, 273, 1147, 9614, 4299, 548, 11929, 3434, 273, 1147, 9614,...
FQDN_RE = r'^[\w]+(\.[\w]+)*$' def os_choices(cluster_slug): cluster = get_object_or_404(Cluster, slug=cluster_slug) oslister = cluster.rapi.GetOperatingSystems() oslist = [] for os in oslister: oslist.append((os,os)) return oslist
@login_required def create(request, cluster_slug=None): """ Create a new instance Store in DB and Create on given cluster """ if cluster_slug is not None: cluster = get_object_or_404(Cluster, slug=cluster_slug) oslist = os_choices(cluster) else: cluster = None oslist = None if request.method == 'POST': form = NewVirtu...
def detail(request, cluster_slug, instance): cluster = get_object_or_404(Cluster, slug=cluster_slug) vm = get_object_or_404(VirtualMachine, hostname=instance) user = request.user if not (user.is_superuser or user.has_perm('admin', vm)): return HttpResponseForbidden() if request.method == 'POST': form = InstanceConfig...
3035c29bd6b5d631fe355c218df440cc7fa124d5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/3035c29bd6b5d631fe355c218df440cc7fa124d5/virtual_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7664, 12, 2293, 16, 2855, 67, 6436, 16, 791, 4672, 2855, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 3629, 16, 4959, 33, 7967, 67, 6436, 13, 4268, 273, 336, 67, 1612, 67, 280, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7664, 12, 2293, 16, 2855, 67, 6436, 16, 791, 4672, 2855, 273, 336, 67, 1612, 67, 280, 67, 11746, 12, 3629, 16, 4959, 33, 7967, 67, 6436, 13, 4268, 273, 336, 67, 1612, 67, 280, 67, ...
for nodefrom in g.transitions: for nodeto in g.transitions[nodefrom]: draw.line( (int(g.result[nodefrom]['y']), int(g.result[nodefrom]['x']),int(g.result[nodeto]['y']),int(g.result[nodeto]['x'])),(128,128,128) )
for t in transitions: draw.line( (int(node_res[t[0]]['y']), int(node_res[t[0]]['x']),int(node_res[t[1]]['y']),int(node_res[t[1]]['x'])),(128,128,128) )
def result_get(self): return self.result
64fb43920c0a78d65263aa37b7d6c2d5460cc5fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/64fb43920c0a78d65263aa37b7d6c2d5460cc5fe/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 67, 588, 12, 2890, 4672, 327, 365, 18, 2088, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 563, 67, 588, 12, 2890, 4672, 327, 365, 18, 2088, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if timestap == 'julsec':
if timestamp == 'julsec':
def sonic(stream, win_len, win_frac, sll_x, slm_x, sll_y, slm_y, sl_s, semb_thres, vel_thres, frqlow, frqhigh, stime, etime, prewhiten, verbose=False, coordsys='lonlat', timestamp='julsec'): """ Method for Seismic-Array-Beamforming/FK-Analysis :param stream: Stream object, the trace.stats dict like class must contain ...
e7b2b685339278f573f3f8089789007860f1559d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/e7b2b685339278f573f3f8089789007860f1559d/array_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 15506, 12, 3256, 16, 5657, 67, 1897, 16, 5657, 67, 22187, 16, 2020, 80, 67, 92, 16, 2020, 81, 67, 92, 16, 2020, 80, 67, 93, 16, 2020, 81, 67, 93, 16, 2020, 67, 87, 16, 6111,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 15506, 12, 3256, 16, 5657, 67, 1897, 16, 5657, 67, 22187, 16, 2020, 80, 67, 92, 16, 2020, 81, 67, 92, 16, 2020, 80, 67, 93, 16, 2020, 81, 67, 93, 16, 2020, 67, 87, 16, 6111,...
manage_addPageTemplate(self.app, 'test', text=iso885915_str, encoding='iso-8859-15')
manage_addPageTemplate(self.app, 'test', text=iso885915_str, encoding='iso-8859-15')
def testPT_RenderWithISO885915(self): manage_addPageTemplate(self.app, 'test', text=iso885915_str, encoding='iso-8859-15') zpt = self.app['test'] result = zpt.pt_render() # use startswith() because the renderer appends a trailing \n self.assertEqual(result.encode('iso-8859-15').startswith(iso885915_str), True) self.ass...
9ee8932389e2937ac17156196be900f498e09cdc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9658/9ee8932389e2937ac17156196be900f498e09cdc/testZopePageTemplate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1856, 67, 3420, 1190, 12609, 17258, 3600, 12, 2890, 4672, 10680, 67, 1289, 1964, 2283, 12, 2890, 18, 2910, 16, 296, 3813, 2187, 977, 33, 9699, 17258, 3600, 67, 701, 16, 2688, 2218,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1856, 67, 3420, 1190, 12609, 17258, 3600, 12, 2890, 4672, 10680, 67, 1289, 1964, 2283, 12, 2890, 18, 2910, 16, 296, 3813, 2187, 977, 33, 9699, 17258, 3600, 67, 701, 16, 2688, 2218,...
return digestHash == self.makeHash(self.username, self.realm, self.password)
return digestHash == makeHash(self.username, self.realm, self.password)
def checkHash(self, digestHash): return digestHash == self.makeHash(self.username, self.realm, self.password)
4763b2cab090a72fff7810fe81c2e20ad20e7ba2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/4763b2cab090a72fff7810fe81c2e20ad20e7ba2/tweaks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 2310, 12, 2890, 16, 5403, 2310, 4672, 327, 5403, 2310, 422, 365, 18, 6540, 2310, 12, 2890, 18, 5053, 16, 365, 18, 24056, 16, 365, 18, 3664, 13, 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, 866, 2310, 12, 2890, 16, 5403, 2310, 4672, 327, 5403, 2310, 422, 365, 18, 6540, 2310, 12, 2890, 18, 5053, 16, 365, 18, 24056, 16, 365, 18, 3664, 13, 2, -100, -100, -100, -100, -100, ...
def unselect(self, unselected): """Return a mesh without the unselected elements. """ wi=ones([self.nelems()]) wi[unselected]=0 return self.clip(wi)
def unselect(self, selected): """Return a mesh without the selected elements. This is the complimentary operation of `select`. - `selected`: an object that can be used as an index in the `elems` array, e.g. a list of (integer) element numbers, or a boolean array with the same length as the `elems` array. Returns a Me...
def unselect(self, unselected): """Return a mesh without the unselected elements. """ wi=ones([self.nelems()]) wi[unselected]=0 return self.clip(wi)
1535ec04433cfb4131e357412c0648be4a5d903a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/1535ec04433cfb4131e357412c0648be4a5d903a/mesh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 4025, 12, 2890, 16, 640, 8109, 4672, 3536, 990, 279, 6986, 2887, 326, 640, 8109, 2186, 18, 3536, 16138, 33, 5322, 3816, 2890, 18, 3084, 7424, 1435, 5717, 16138, 63, 318, 8109, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 4025, 12, 2890, 16, 640, 8109, 4672, 3536, 990, 279, 6986, 2887, 326, 640, 8109, 2186, 18, 3536, 16138, 33, 5322, 3816, 2890, 18, 3084, 7424, 1435, 5717, 16138, 63, 318, 8109, 65, ...
dispid = self._allocnextdispid(dispid)
def _wrap_(self, ob): # If we have nominated universal interfaces to support, load them now tlb_guid = getattr(ob, '_typelib_guid_', None) if tlb_guid is not None: tlb_major, tlb_minor = getattr(ob, '_typelib_version_', (1,0)) tlb_lcid = getattr(ob, '_typelib_lcid_', 0) from win32com import universal # XXX - what if th...
0606a0b3db2a5ad213fd32d56c520dec1cc78612 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/0606a0b3db2a5ad213fd32d56c520dec1cc78612/policy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4113, 67, 12, 2890, 16, 3768, 4672, 468, 971, 732, 1240, 12457, 7458, 26182, 7349, 358, 2865, 16, 1262, 2182, 2037, 8332, 70, 67, 14066, 273, 3869, 12, 947, 16, 2070, 12846, 30575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4113, 67, 12, 2890, 16, 3768, 4672, 468, 971, 732, 1240, 12457, 7458, 26182, 7349, 358, 2865, 16, 1262, 2182, 2037, 8332, 70, 67, 14066, 273, 3869, 12, 947, 16, 2070, 12846, 30575, ...
dc = self.getIndicatorDC()
dc = self._getIndicatorDC()
def eraseIndicator(self, dc=None): if dc is None: dc = self.getIndicatorDC() if self._auto_scroll_save_y >= 0: # erase the old line dc.DrawLine(0, self._auto_scroll_save_y, self._auto_scroll_save_width, self._auto_scroll_save_y) self._auto_scroll_save_y = -1
6bc6bef6fcfe26aa923224e536d4db13def8c29a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/6bc6bef6fcfe26aa923224e536d4db13def8c29a/dropscroller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22038, 13140, 12, 2890, 16, 6744, 33, 7036, 4672, 309, 6744, 353, 599, 30, 6744, 273, 365, 6315, 588, 13140, 5528, 1435, 309, 365, 6315, 6079, 67, 12033, 67, 5688, 67, 93, 1545, 374, 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, 22038, 13140, 12, 2890, 16, 6744, 33, 7036, 4672, 309, 6744, 353, 599, 30, 6744, 273, 365, 6315, 588, 13140, 5528, 1435, 309, 365, 6315, 6079, 67, 12033, 67, 5688, 67, 93, 1545, 374, 3...
'<title></head><body>\n' % player)
'</title></head><body>\n' % player)
def RenderPlayerPage(player, player_games, skill_ratings): overview = OverviewStats(player_games) player_out = open('output/' + PlayerFile(player), 'w') player_out.write('<html><head><title>Genie Statistics for player %s' '<title></head><body>\n' % player) player_out.write('<a href="#overview">Overview</a>\n' '<a href...
8bbc6a3c901cb911af196731080db80084a85c24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10357/8bbc6a3c901cb911af196731080db80084a85c24/compute_stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6987, 12148, 1964, 12, 14872, 16, 7291, 67, 75, 753, 16, 15667, 67, 17048, 899, 4672, 18471, 273, 10752, 1945, 4195, 12, 14872, 67, 75, 753, 13, 7291, 67, 659, 273, 1696, 2668, 2844, 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, 6987, 12148, 1964, 12, 14872, 16, 7291, 67, 75, 753, 16, 15667, 67, 17048, 899, 4672, 18471, 273, 10752, 1945, 4195, 12, 14872, 67, 75, 753, 13, 7291, 67, 659, 273, 1696, 2668, 2844, 2...
cell_description = gtk.CellRendererText () cell_description.set_property("editable", True) cell_description.connect("edited", on_cell_edited, 1, int) column_description = gtk.TreeViewColumn (_("Amount"), cell_description) column_description.set_cell_data_func(cell_description, get_cell_data, (int, 1)) self.treeview.app...
for n in xrange (0, 4): create_cell (self.treeview, n, self.names[n], self.typs[n])
def get_cell_data(column, cell, model, iter, data): typ, col = data if typ == int: cell.set_property('text', "%d" % typ(model[iter][col])) elif typ == float: cell.set_property('text', "%.2f" % typ(model[iter][col])) else: cell.set_property('text', typ(model[iter][col]))
0c167ed4e5f841973909136b209a893b45246ef0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11078/0c167ed4e5f841973909136b209a893b45246ef0/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3855, 67, 892, 12, 2827, 16, 2484, 16, 938, 16, 1400, 16, 501, 4672, 3815, 16, 645, 273, 501, 309, 3815, 422, 509, 30, 2484, 18, 542, 67, 4468, 2668, 955, 2187, 2213, 72, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3855, 67, 892, 12, 2827, 16, 2484, 16, 938, 16, 1400, 16, 501, 4672, 3815, 16, 645, 273, 501, 309, 3815, 422, 509, 30, 2484, 18, 542, 67, 4468, 2668, 955, 2187, 2213, 72, ...
stamp = line[:15]
def parseTime(self, line): """Return a unix-style timestamp for the given line. XXX: This assumes the current year, so logs that straddle years will have a giant discontinuity in timestamps. """ # Cache the results of strptime. It only changes every # second, and this was taking more than 50% of our parsing time! stamp...
ef8acc3fbb5b481df843acffbf5094b2368310de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11735/ef8acc3fbb5b481df843acffbf5094b2368310de/Log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 950, 12, 2890, 16, 980, 4672, 3536, 990, 279, 9753, 17, 4060, 2858, 364, 326, 864, 980, 18, 11329, 30, 1220, 13041, 326, 783, 3286, 16, 1427, 5963, 716, 609, 1289, 298, 11387, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 950, 12, 2890, 16, 980, 4672, 3536, 990, 279, 9753, 17, 4060, 2858, 364, 326, 864, 980, 18, 11329, 30, 1220, 13041, 326, 783, 3286, 16, 1427, 5963, 716, 609, 1289, 298, 11387, 90...
try:
try:
def processListArch(self): name = self.maillist.ArchiveFileName() wname= name+'.working' ename= name+'.err_unarchived' try: os.stat(name) except (IOError,os.error): #no archive file, nothin to do -ddm return
3af39c5f05e82fd415c7f13441692ce1fa61bab9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/3af39c5f05e82fd415c7f13441692ce1fa61bab9/HyperArch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 682, 12269, 12, 2890, 4672, 508, 273, 365, 18, 4408, 1098, 18, 7465, 4771, 1435, 341, 529, 33, 508, 6797, 18, 20478, 11, 570, 339, 33, 508, 6797, 18, 370, 67, 318, 991, 2950, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 682, 12269, 12, 2890, 4672, 508, 273, 365, 18, 4408, 1098, 18, 7465, 4771, 1435, 341, 529, 33, 508, 6797, 18, 20478, 11, 570, 339, 33, 508, 6797, 18, 370, 67, 318, 991, 2950, 1...
drv = gdal.GetDriverByName( 'GTiff' )
def tiff_write_59(): import struct ret = 'success' for nbands in (1,2): for nbits in (1,8,9,12,16,17,24,32): drv = gdal.GetDriverByName( 'GTiff' ) if nbits <= 8: gdal_type = gdal.GDT_Byte ctype = 'B' elif nbits <= 16: gdal_type = gdal.GDT_UInt16 ctype = 'h' else: gdal_type = gdal.GDT_UInt32 ctype = 'i' ds = drv.Cre...
53cd8d8e974751edf838b3158118a502e6bcea91 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10290/53cd8d8e974751edf838b3158118a502e6bcea91/tiff_write.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 3048, 67, 2626, 67, 6162, 13332, 1930, 1958, 225, 325, 273, 296, 4768, 11, 225, 364, 4264, 5708, 316, 261, 21, 16, 22, 4672, 364, 4264, 1282, 316, 261, 21, 16, 28, 16, 29, 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, 268, 3048, 67, 2626, 67, 6162, 13332, 1930, 1958, 225, 325, 273, 296, 4768, 11, 225, 364, 4264, 5708, 316, 261, 21, 16, 22, 4672, 364, 4264, 1282, 316, 261, 21, 16, 28, 16, 29, 16, ...
subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
subprocess.Popen(cmd, shell=True).wait()
def main(options, args): if args: path = " ".join(args); else: path = ""; logging.basicConfig(level=logging.INFO, format='%(message)s') tmpdir = tempfile.gettempdir() if options.tests_root_directory != None: # if options.tests_root_directory is absolute, os.getcwd() is discarded! tests_root_directory = os.path.normp...
50469b02a9121349643e5d8cddd751135ee8e06a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10653/50469b02a9121349643e5d8cddd751135ee8e06a/run_layout_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2116, 16, 833, 4672, 309, 833, 30, 589, 273, 315, 3552, 5701, 12, 1968, 1769, 469, 30, 589, 273, 1408, 31, 225, 2907, 18, 13240, 809, 12, 2815, 33, 11167, 18, 5923, 16, 740...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2116, 16, 833, 4672, 309, 833, 30, 589, 273, 315, 3552, 5701, 12, 1968, 1769, 469, 30, 589, 273, 1408, 31, 225, 2907, 18, 13240, 809, 12, 2815, 33, 11167, 18, 5923, 16, 740...
return copy.copy(self)
data = self.data try: self.data = {} c = copy.copy(self) finally: self.data = data c.update(self) return c
def copy(self): if self.__class__ is UserDict: return UserDict(self.data) import copy return copy.copy(self)
3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3ce5af70e352b3a8fbea8e3f27464b6ca2d66ebd/UserDict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 309, 365, 16186, 1106, 972, 353, 2177, 5014, 30, 327, 2177, 5014, 12, 2890, 18, 892, 13, 1930, 1610, 327, 1610, 18, 3530, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 4672, 309, 365, 16186, 1106, 972, 353, 2177, 5014, 30, 327, 2177, 5014, 12, 2890, 18, 892, 13, 1930, 1610, 327, 1610, 18, 3530, 12, 2890, 13, 2, -100, -100, -100, -100,...
self.assertEqual('attachment', ns)
self.assertEqual('raw-attachment', ns)
def test_wiki_link_subpage(self): attachment = Attachment(self.env, 'wiki', 'SomePage/SubPage') attachment.insert('foo.txt', tempfile.TemporaryFile(), 0)
f662173629056ac8b011b2bf0b13859787fab073 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/f662173629056ac8b011b2bf0b13859787fab073/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13044, 67, 1232, 67, 1717, 2433, 12, 2890, 4672, 6042, 273, 15939, 12, 2890, 18, 3074, 16, 296, 13044, 2187, 296, 17358, 1964, 19, 1676, 1964, 6134, 6042, 18, 6387, 2668, 11351...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13044, 67, 1232, 67, 1717, 2433, 12, 2890, 4672, 6042, 273, 15939, 12, 2890, 18, 3074, 16, 296, 13044, 2187, 296, 17358, 1964, 19, 1676, 1964, 6134, 6042, 18, 6387, 2668, 11351...
log.debug("Cached Answer:%s"%self.path_vcs_map[path])
def guess(self, path): log.debug("guess: %s"%path) if path and path in self.path_vcs_map: log.debug("Cached Answer:%s"%self.path_vcs_map[path]) return self.path_vcs_map[path]
d40ad4963e564851e8471c100e250a8f22162c3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/d40ad4963e564851e8471c100e250a8f22162c3c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 12, 2890, 16, 589, 4672, 613, 18, 4148, 2932, 20885, 30, 738, 87, 28385, 803, 13, 309, 589, 471, 589, 316, 365, 18, 803, 67, 18982, 67, 1458, 30, 327, 365, 18, 803, 67, 18982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7274, 12, 2890, 16, 589, 4672, 613, 18, 4148, 2932, 20885, 30, 738, 87, 28385, 803, 13, 309, 589, 471, 589, 316, 365, 18, 803, 67, 18982, 67, 1458, 30, 327, 365, 18, 803, 67, 18982, ...
if verbose: print 'unpack single tuple/list' st = (99,) sl = [100] a, = st if a != 99: raise TestFailed b, = sl if b != 100: raise TestFailed
Unpack generic sequence
def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError
4f813074150348704b07b2ebfc7dc357e888a6aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4f813074150348704b07b2ebfc7dc357e888a6aa/test_unpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 277, 4672, 309, 277, 1545, 374, 471, 277, 411, 890, 30, 327, 277, 1002, 10195, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
end = test_num + step
end = test_num + FUNCTIONS_PER_FILE
def WriteServiceUnitTests(self, filename): """Writes the service decorder unit tests.""" num_tests = len(self.functions) step = (num_tests + 1) / 2 count = 0 for test_num in range(0, num_tests, step): count += 1 name = filename % count file = CHeaderWriter( name, "// It is included by gles2_cmd_decoder_unittest_%d.cc\n...
87dd4fd367a509bb7ecf2df40d1d8d52f12af152 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/87dd4fd367a509bb7ecf2df40d1d8d52f12af152/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 14650, 12, 2890, 16, 1544, 4672, 3536, 8368, 326, 1156, 443, 901, 264, 2836, 7434, 12123, 818, 67, 16341, 273, 562, 12, 2890, 18, 10722, 13, 2235, 273, 261, 2107, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 2802, 14650, 12, 2890, 16, 1544, 4672, 3536, 8368, 326, 1156, 443, 901, 264, 2836, 7434, 12123, 818, 67, 16341, 273, 562, 12, 2890, 18, 10722, 13, 2235, 273, 261, 2107, 67, ...
logging.debug('Got piece {0}'.format(msg.sequence))
logging.debug('Partner {0} got piece {1}'.format(self.partner_id, msg.sequence))
def receive_got_piece(self, msg): self._check_handshaked() self.peer_service.partner_got_piece(self.partner_id, msg.sequence) logging.debug('Got piece {0}'.format(msg.sequence))
3b55f8c4e01d892942096145e9cbe50cdac2acdd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10501/3b55f8c4e01d892942096145e9cbe50cdac2acdd/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6798, 67, 13212, 67, 30100, 12, 2890, 16, 1234, 4672, 365, 6315, 1893, 67, 2349, 674, 9477, 1435, 365, 18, 12210, 67, 3278, 18, 31993, 67, 13212, 67, 30100, 12, 2890, 18, 31993, 67, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6798, 67, 13212, 67, 30100, 12, 2890, 16, 1234, 4672, 365, 6315, 1893, 67, 2349, 674, 9477, 1435, 365, 18, 12210, 67, 3278, 18, 31993, 67, 13212, 67, 30100, 12, 2890, 18, 31993, 67, 35...
d = eye_m - r_m t = -numpy.dot(eye_m - p_m, normal)/numpy.dot(d, normal) result = eye_m + d*t return result
if self.znear > 0: d = eye_m - r_m t = -numpy.dot(eye_m - p_m, normal)/numpy.dot(d, normal) return eye_m + d*t else: d = normal t = -numpy.dot(r_m - p_m, normal)/numpy.dot(d, normal) return r_m + d*t
def vector_in_plane(self, r, p_m): """Returns a vector at camera position r in a plane (through p, orthogonal to viewing direction)
e9ec47814cbfa9dc8d8a853e939001132b7918b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11052/e9ec47814cbfa9dc8d8a853e939001132b7918b6/camera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3806, 67, 267, 67, 21314, 12, 2890, 16, 436, 16, 293, 67, 81, 4672, 3536, 1356, 279, 3806, 622, 10836, 1754, 436, 316, 279, 11017, 261, 10064, 293, 16, 16208, 28396, 358, 1476, 310, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3806, 67, 267, 67, 21314, 12, 2890, 16, 436, 16, 293, 67, 81, 4672, 3536, 1356, 279, 3806, 622, 10836, 1754, 436, 316, 279, 11017, 261, 10064, 293, 16, 16208, 28396, 358, 1476, 310, 40...
if self.extraQuery: query += ";" + self.extraQuery.strip(";") return self.dataset, query
if self.monitor.extraQuery: query += ";" + self.monitor.extraQuery.strip(";") return self.monitor.dataset, query
def query(self): query = self.monitor.RUNS[self.run] % self.monitor.date.strftime("%Y-%m-%d")
2ffc8ed1fcc1c3edea0a2ca84cdcbe23ed9e3b6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1526/2ffc8ed1fcc1c3edea0a2ca84cdcbe23ed9e3b6c/monitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 4672, 843, 273, 365, 18, 10259, 18, 15238, 55, 63, 2890, 18, 2681, 65, 738, 365, 18, 10259, 18, 712, 18, 701, 9982, 27188, 61, 6456, 81, 6456, 72, 7923, 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, 843, 12, 2890, 4672, 843, 273, 365, 18, 10259, 18, 15238, 55, 63, 2890, 18, 2681, 65, 738, 365, 18, 10259, 18, 712, 18, 701, 9982, 27188, 61, 6456, 81, 6456, 72, 7923, 2, -100, -100,...
name = os.path.split(path)[-1]
name = os.path.basename(path)
def DocFileTest(path, module_relative=True, package=None, globs=None, **options): if globs is None: globs = {} if package and not module_relative: raise ValueError("Package may only be specified for module-" "relative paths.") # Relativize the path. if module_relative: package = _normalize_module(package) path = _mod...
7a98ec2b175493f6fa830f03a8e0321d9cc58cf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/7a98ec2b175493f6fa830f03a8e0321d9cc58cf2/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 4709, 12, 803, 16, 1605, 67, 11626, 33, 5510, 16, 2181, 33, 7036, 16, 4715, 87, 33, 7036, 16, 2826, 2116, 4672, 309, 4715, 87, 353, 599, 30, 4715, 87, 273, 2618, 225, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3521, 812, 4709, 12, 803, 16, 1605, 67, 11626, 33, 5510, 16, 2181, 33, 7036, 16, 4715, 87, 33, 7036, 16, 2826, 2116, 4672, 309, 4715, 87, 353, 599, 30, 4715, 87, 273, 2618, 225, 309,...
self.state = i != 1
def dispatchEvent(self, i): self.state = i != 1 for x in self.event: x(i)
8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6652/8a951b87cc4f6d4db0f1c3c9113a4c0943971ef2/Navigation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15678, 12, 2890, 16, 277, 4672, 364, 619, 316, 365, 18, 2575, 30, 619, 12, 77, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15678, 12, 2890, 16, 277, 4672, 364, 619, 316, 365, 18, 2575, 30, 619, 12, 77, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return
def merge_tiles(destination, tiles): print "Merging terrain tiles ..." if os.path.exists(destination + "terrain_merged.tif"): return os.unlink(destination + "terrain_merged.tif") args = [cmd_gdal_merge, "-n", "-32768", "-init", "-32768", "-o", os.path.relpath(destination + "terrain_merged.tif")] args.extend(tiles) p =...
273ec129b7d7f4dc1da4ec198b6c6b59b73965ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6105/273ec129b7d7f4dc1da4ec198b6c6b59b73965ef/srtm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 67, 28366, 12, 10590, 16, 12568, 4672, 1172, 315, 8478, 1998, 19272, 7596, 12568, 18483, 309, 1140, 18, 803, 18, 1808, 12, 10590, 397, 315, 387, 7596, 67, 15459, 18, 26922, 6, 4672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 67, 28366, 12, 10590, 16, 12568, 4672, 1172, 315, 8478, 1998, 19272, 7596, 12568, 18483, 309, 1140, 18, 803, 18, 1808, 12, 10590, 397, 315, 387, 7596, 67, 15459, 18, 26922, 6, 4672...
resultDict[chRef]['ParentStatus'] = resultDict[pRef]['Status']
resultDict[chRef]['ParentRef'] = pRef if not resultDict[chRef][ 'FinalStatus' ]: resultDict[pRef][ 'FinalStatus' ] = False resultDict[ pRef ][ 'ChildRefs' ].append( chRef ) if not resultDict[pRef][ 'FinalStatus' ]: for chRef in resultDict[ pRef ][ 'ChildRefs' ]: resultDict[chRef][ 'FinalStatus' ] = False
def getPilotStatus(self, proxy, gridType, pilotRefList ): """ Get GRID job status information using the job's owner proxy and GRID job IDs. Returns for each JobID its status in the GRID WMS and its destination CE as a tuple of 2 elements """
0acad4f30459f7f8dc39fb88ef429c9a6fe11b6c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/0acad4f30459f7f8dc39fb88ef429c9a6fe11b6c/PilotStatusAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 22797, 1482, 12, 2890, 16, 2889, 16, 3068, 559, 16, 293, 22797, 1957, 682, 262, 30, 3536, 968, 15228, 734, 1719, 1267, 1779, 1450, 326, 1719, 1807, 3410, 2889, 471, 15228, 734, 171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1689, 22797, 1482, 12, 2890, 16, 2889, 16, 3068, 559, 16, 293, 22797, 1957, 682, 262, 30, 3536, 968, 15228, 734, 1719, 1267, 1779, 1450, 326, 1719, 1807, 3410, 2889, 471, 15228, 734, 171...
nerror=evaluator(i)
error=evaluator(i)
def d(e): return 1 if e>=0 else -1
c07c82bed8331cd53d493b1de7dce0aea9c32e03 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/150/c07c82bed8331cd53d493b1de7dce0aea9c32e03/qpaeq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 12, 73, 4672, 327, 404, 309, 425, 34, 33, 20, 469, 300, 21, 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, ...
[ 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, 302, 12, 73, 4672, 327, 404, 309, 425, 34, 33, 20, 469, 300, 21, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.isdebug:
if self.isdebug >= level:
def dbg(self, text, newline = True): """ Passes text to err() if self.isdebug is set """ if self.isdebug: self.err(text, newline)
d6de95fab9f2c9d6e0799bde4113ce1e454a6dbb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/d6de95fab9f2c9d6e0799bde4113ce1e454a6dbb/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28966, 12, 2890, 16, 977, 16, 9472, 273, 1053, 4672, 3536, 10311, 281, 977, 358, 393, 1435, 309, 365, 18, 291, 4148, 353, 444, 3536, 309, 365, 18, 291, 4148, 1545, 1801, 30, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28966, 12, 2890, 16, 977, 16, 9472, 273, 1053, 4672, 3536, 10311, 281, 977, 358, 393, 1435, 309, 365, 18, 291, 4148, 353, 444, 3536, 309, 365, 18, 291, 4148, 1545, 1801, 30, 365, 18, ...
arg = options[p]['longarg'][0:-1]
arg = options[p]['longarg'][:-1]
def saveConfig(opt, file, param): """ Write a configuration file. This file can be later read with command line option -c or --config . opt: the option description list file: output file param: parameters returned from getParam """ try: f = open(file,'w') except: print 'Can not open ', file , ' to write.' retur...
c69a244874f5f1978249139cc9496c79075a69f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/c69a244874f5f1978249139cc9496c79075a69f5/simuOpt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 809, 12, 3838, 16, 585, 16, 579, 4672, 3536, 2598, 279, 1664, 585, 18, 1220, 585, 848, 506, 5137, 855, 598, 1296, 980, 1456, 225, 300, 71, 225, 578, 1493, 1425, 225, 263, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 809, 12, 3838, 16, 585, 16, 579, 4672, 3536, 2598, 279, 1664, 585, 18, 1220, 585, 848, 506, 5137, 855, 598, 1296, 980, 1456, 225, 300, 71, 225, 578, 1493, 1425, 225, 263, 225, ...