rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
data = fromstring(data)
data = etree.fromstring(data, parser=parser)
def first_pass(data): try: data = fromstring(data) except etree.XMLSyntaxError, err: self.oeb.log.exception('Initial parse failed:') repl = lambda m: ENTITYDEFS.get(m.group(1), m.group(0)) data = ENTITY_RE.sub(repl, data) try: data = fromstring(data) except etree.XMLSyntaxError, err: self.oeb.logger.warn('Parsing file %r as HTML' % self.href) if err.args and err.args[0].startswith('Excessive depth'): from lxml.html import soupparser data = soupparser.fromstring(data) else: data = html.fromstring(data) data.attrib.pop('xmlns', None) for elem in data.iter(tag=etree.Comment): if elem.text: elem.text = elem.text.strip('-') data = etree.tostring(data, encoding=unicode) try: data = fromstring(data) except etree.XMLSyntaxError: data = fromstring(data) return data
ce736fa6ea7acc65bc13207eae98dd29560e4c9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/ce736fa6ea7acc65bc13207eae98dd29560e4c9d/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1122, 67, 5466, 12, 892, 4672, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 16, 393, 30, 365, 18, 15548, 70, 18, 1330, 18, 4064, 2668, 4435, 1109, 2535, 2497, 13, 6831, 273, 3195, 312, 30, 17020, 1639, 4931, 18, 588, 12, 81, 18, 1655, 12, 21, 3631, 312, 18, 1655, 12, 20, 3719, 501, 273, 17020, 67, 862, 18, 1717, 12, 26745, 16, 501, 13, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 16, 393, 30, 365, 18, 15548, 70, 18, 4901, 18, 8935, 2668, 13963, 585, 738, 86, 487, 3982, 11, 738, 365, 18, 7547, 13, 309, 393, 18, 1968, 471, 393, 18, 1968, 63, 20, 8009, 17514, 1918, 2668, 424, 614, 688, 3598, 11, 4672, 628, 328, 2902, 18, 2620, 1930, 15418, 4288, 501, 273, 15418, 4288, 18, 2080, 1080, 12, 892, 13, 469, 30, 501, 273, 1729, 18, 2080, 1080, 12, 892, 13, 501, 18, 14588, 18, 5120, 2668, 16741, 2187, 599, 13, 364, 3659, 316, 501, 18, 2165, 12, 2692, 33, 31303, 18, 4469, 4672, 309, 3659, 18, 955, 30, 3659, 18, 955, 273, 3659, 18, 955, 18, 6406, 2668, 17, 6134, 501, 273, 12031, 18, 14627, 371, 12, 892, 16, 2688, 33, 9124, 13, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 30, 501, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1122, 67, 5466, 12, 892, 4672, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 16, 393, 30, 365, 18, 15548, 70, 18, 1330, 18, 4064, 2668, 4435, 1109, 2535, 2497, 13, 6831, 273, 3195, 312, 30, 17020, 1639, 4931, 18, 588, 12, 81, 18, 1655, 12, 21, 3631, 312, 18, 1655, 12, 20, 3719, 501, 273, 17020, 67, 862, 18, 1717, 12, 26745, 16, 501, 13, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 16, 393, 30, 365, 18, 15548, 70, 18, 4901, 18, 8935, 2668, 13963, 585, 738, 86, 487, 3982, 11, 738, 2 ]
phandle = parallelize_initfunction(cachednodelist, processnode, parallelinstances, startstate, endstate, nodeprocessfunction, args)
phandle = parallelize_initfunction(cachednodelist, processnode, parallelinstances, acceptnewnode, startstate, endstate, nodeprocessfunction, args)
def locateandprocessvessels(statefunctionargtuplelist, uniquename, sleeptime, acceptnewnode=False,parallelinstances=1): """ <Purpose> Looks up a public key and then calls a function on a set of nodes <Arguments> statefunctionargtuplelist: A list of tuples with a start state (publickey), end state (publickey), a function to change the node state, and a list of arguments to the function. The function has the first two arguments already provided, the node handle and the node name. uniquename: A unique name for this action that can be used for logging and to ensure multiple copies aren't running sleeptime: The amount of time to sleep between lookups / node processing acceptnewnode: Allow a new node to have the following key. Will create a new key and add a per node key to the database parallelinstances: The number of concurrent events that should process nodes. <Exceptions> None <Side Effects> Ensures there is only one lookup for this key happening at a time <Returns> This function runs forever (unless there is a fatal error) """ logfn = "log."+str(uniquename) # set up the circular logger (at least 50 MB buffer) loggerfo = logging.circular_logger(logfn, 50*1024*1024) # redirect standard out / error to the circular log buffer sys.stdout = loggerfo sys.stderr = loggerfo lockname = "polling."+uniquename time_updatetime(34612) # get a unique lock based upon the key if runonce.getprocesslock(lockname) != True: # Someone else has the lock... print time.time(),"The lock is held. Exiting" return print time.time(),"Starting..." # BUG: There could be a nasty race here where a node isn't seen as in a # state because it doesn't advertise in time to be listed. # This will be fixed when we fix the NM advertisement bug (next update) so # I'll leave it in for now. cachednodelist = [] while True: for statefunctionargtuple in statefunctionargtuplelist: startstate = statefunctionargtuple[0] endstate = statefunctionargtuple[1] nodeprocessfunction = statefunctionargtuple[2] args = statefunctionargtuple[3:] # I likely need to do something smart here when this fails... nodelist = advertise.lookup(startstate) # shuffle the nodelist to avoid reoccurring failures on processing # the same node over and over -- allows us to eventually process # other nodes random.shuffle(nodelist) print time.time(),"For start state '"+str(startstate['e'])[:10]+"...' found nodelist:",nodelist
8bc026a50e60280d4f30df59ce49673f1feff62b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/8bc026a50e60280d4f30df59ce49673f1feff62b/pollinglib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 464, 2567, 90, 403, 10558, 12, 2019, 915, 3175, 88, 89, 412, 5449, 16, 15426, 1069, 16, 272, 11182, 10650, 16, 2791, 2704, 2159, 33, 8381, 16, 18054, 10162, 33, 21, 4672, 3536, 411, 10262, 4150, 34, 10176, 87, 731, 279, 1071, 498, 471, 1508, 4097, 279, 445, 603, 279, 444, 434, 2199, 225, 411, 4628, 34, 919, 915, 3175, 88, 89, 412, 5449, 30, 432, 666, 434, 10384, 598, 279, 787, 919, 261, 482, 856, 3631, 679, 919, 261, 482, 856, 3631, 279, 445, 358, 2549, 326, 756, 919, 16, 471, 279, 666, 434, 1775, 358, 326, 445, 18, 565, 1021, 445, 711, 326, 1122, 2795, 1775, 1818, 2112, 16, 326, 756, 1640, 471, 326, 756, 508, 18, 225, 15426, 1069, 30, 432, 3089, 508, 364, 333, 1301, 716, 848, 506, 1399, 364, 2907, 471, 358, 3387, 3229, 13200, 11526, 1404, 3549, 225, 272, 11182, 10650, 30, 1021, 3844, 434, 813, 358, 5329, 3086, 20286, 342, 756, 4929, 225, 2791, 2704, 2159, 30, 7852, 279, 394, 756, 358, 1240, 326, 3751, 498, 18, 282, 9980, 752, 279, 394, 498, 471, 527, 279, 1534, 756, 498, 358, 326, 2063, 225, 7230, 10162, 30, 1021, 1300, 434, 10020, 2641, 716, 1410, 1207, 2199, 18, 225, 411, 11416, 34, 599, 225, 411, 8895, 30755, 87, 34, 1374, 8421, 1915, 353, 1338, 1245, 3689, 364, 333, 498, 5865, 310, 622, 279, 813, 225, 411, 1356, 34, 1220, 445, 7597, 21238, 261, 28502, 1915, 353, 279, 10081, 555, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10627, 464, 2567, 90, 403, 10558, 12, 2019, 915, 3175, 88, 89, 412, 5449, 16, 15426, 1069, 16, 272, 11182, 10650, 16, 2791, 2704, 2159, 33, 8381, 16, 18054, 10162, 33, 21, 4672, 3536, 411, 10262, 4150, 34, 10176, 87, 731, 279, 1071, 498, 471, 1508, 4097, 279, 445, 603, 279, 444, 434, 2199, 225, 411, 4628, 34, 919, 915, 3175, 88, 89, 412, 5449, 30, 432, 666, 434, 10384, 598, 279, 787, 919, 261, 482, 856, 3631, 679, 919, 261, 482, 856, 3631, 279, 445, 358, 2549, 326, 756, 919, 16, 471, 279, 666, 434, 1775, 358, 326, 445, 18, 565, 1021, 445, 711, 326, 1122, 2795, 1775, 1818, 2112, 16, 326, 756, 1640, 471, 326, 756, 2 ]
talkback = content.talkback
print 'getDiscussionFor: ', content.__class__.__name__ if not shasattr(aq_base(content), 'talkback'): talkback = self._createDiscussionFor( content ) else: talkback = content.talkback
def getDiscussionFor(self, content): """ Return the talkback for content, creating it if need be. """ if not self.isDiscussionAllowedFor( content ): raise DiscussionNotAllowed
00877a4b1e98166de77d612ee90842f77af2a2e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/00877a4b1e98166de77d612ee90842f77af2a2e2/Patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 24393, 1290, 12, 2890, 16, 913, 4672, 3536, 2000, 326, 26591, 823, 364, 913, 16, 4979, 518, 309, 1608, 506, 18, 3536, 309, 486, 365, 18, 291, 24393, 5042, 1290, 12, 913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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24393, 1290, 12, 2890, 16, 913, 4672, 3536, 2000, 326, 26591, 823, 364, 913, 16, 4979, 518, 309, 1608, 506, 18, 3536, 309, 486, 365, 18, 291, 24393, 5042, 1290, 12, 913, 262, 30, 1002, 20900, 19354, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
components.registerAdapter(ListModel, PgSQL.PgResultSet, IModel)
components.registerAdapter(ListModel, PgSQL.PgResultSet, mvc.IModel)
def setData(self, data): setattr(self.parent, self.name, data)
327a05cbbbad65ab4531afce84bb1517cbe9d90f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/327a05cbbbad65ab4531afce84bb1517cbe9d90f/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7929, 12, 2890, 16, 501, 4672, 9241, 12, 2890, 18, 2938, 16, 365, 18, 529, 16, 501, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if line.strip(): self.parseLine(line, peerid)
self.parseLine(line, peerid)
def parseMessage(self, data, peerid): if data: lines = data.split("\n") for line in lines: if line.strip(): self.parseLine(line, peerid)
aa8d0513eff6d412885924a7d96beeb974298dab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12833/aa8d0513eff6d412885924a7d96beeb974298dab/servent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 1079, 12, 2890, 16, 501, 16, 4261, 350, 4672, 309, 501, 30, 2362, 273, 501, 18, 4939, 31458, 82, 7923, 364, 980, 316, 2362, 30, 309, 980, 18, 6406, 13332, 365, 18, 2670, 1670, 12, 1369, 16, 4261, 350, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1109, 1079, 12, 2890, 16, 501, 16, 4261, 350, 4672, 309, 501, 30, 2362, 273, 501, 18, 4939, 31458, 82, 7923, 364, 980, 316, 2362, 30, 309, 980, 18, 6406, 13332, 365, 18, 2670, 1670, 12, 1369, 16, 4261, 350, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print dst_geom.ExportToWkt()
print(dst_geom.ExportToWkt())
def ogr_factory_4(): src_wkt = 'POINT(2 5 3)' exp_wkt = 'MULTIPOINT(2 5 3)' src_geom = ogr.CreateGeometryFromWkt( src_wkt ) dst_geom = ogr.ForceToMultiPoint( src_geom ) if ogrtest.check_feature_geometry( dst_geom, exp_wkt ): print dst_geom.ExportToWkt() return 'fail' src_wkt = 'GEOMETRYCOLLECTION(POINT(2 5 3),POINT(4 5 5))' exp_wkt = 'MULTIPOINT(2 5 3,4 5 5)' src_geom = ogr.CreateGeometryFromWkt( src_wkt ) dst_geom = ogr.ForceToMultiPoint( src_geom ) if ogrtest.check_feature_geometry( dst_geom, exp_wkt ): print dst_geom.ExportToWkt() return 'fail' return 'success'
1559772190a41c08c88d9e19e0f49b564439b503 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/1559772190a41c08c88d9e19e0f49b564439b503/ogr_factory.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 6848, 67, 24, 13332, 225, 1705, 67, 91, 8629, 273, 296, 8941, 12, 22, 1381, 890, 2506, 1329, 67, 91, 8629, 273, 296, 26588, 8941, 12, 22, 1381, 890, 2506, 225, 1705, 67, 10049, 273, 320, 3197, 18, 1684, 9823, 1265, 59, 8629, 12, 1705, 67, 91, 8629, 262, 3046, 67, 10049, 273, 320, 3197, 18, 10997, 774, 5002, 2148, 12, 1705, 67, 10049, 262, 225, 309, 320, 3197, 3813, 18, 1893, 67, 7238, 67, 14330, 12, 3046, 67, 10049, 16, 1329, 67, 91, 8629, 262, 30, 1172, 12, 11057, 67, 10049, 18, 6144, 774, 59, 8629, 10756, 327, 296, 6870, 11, 225, 1705, 67, 91, 8629, 273, 296, 7113, 51, 958, 17805, 25964, 12, 8941, 12, 22, 1381, 890, 3631, 8941, 12, 24, 1381, 1381, 13, 2506, 1329, 67, 91, 8629, 273, 296, 26588, 8941, 12, 22, 1381, 890, 16, 24, 1381, 1381, 2506, 225, 1705, 67, 10049, 273, 320, 3197, 18, 1684, 9823, 1265, 59, 8629, 12, 1705, 67, 91, 8629, 262, 3046, 67, 10049, 273, 320, 3197, 18, 10997, 774, 5002, 2148, 12, 1705, 67, 10049, 262, 225, 309, 320, 3197, 3813, 18, 1893, 67, 7238, 67, 14330, 12, 3046, 67, 10049, 16, 1329, 67, 91, 8629, 262, 30, 1172, 12, 11057, 67, 10049, 18, 6144, 774, 59, 8629, 10756, 327, 296, 6870, 11, 225, 327, 296, 4768, 11, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 320, 3197, 67, 6848, 67, 24, 13332, 225, 1705, 67, 91, 8629, 273, 296, 8941, 12, 22, 1381, 890, 2506, 1329, 67, 91, 8629, 273, 296, 26588, 8941, 12, 22, 1381, 890, 2506, 225, 1705, 67, 10049, 273, 320, 3197, 18, 1684, 9823, 1265, 59, 8629, 12, 1705, 67, 91, 8629, 262, 3046, 67, 10049, 273, 320, 3197, 18, 10997, 774, 5002, 2148, 12, 1705, 67, 10049, 262, 225, 309, 320, 3197, 3813, 18, 1893, 67, 7238, 67, 14330, 12, 3046, 67, 10049, 16, 1329, 67, 91, 8629, 262, 30, 1172, 12, 11057, 67, 10049, 18, 6144, 774, 59, 8629, 10756, 327, 296, 6870, 11, 225, 1705, 67, 91, 8629, 273, 296, 7113, 51, 958, 17805, 25964, 12, 2 ]
def main(use_pygame_console=0, interactmethod="twistedinteract"):
def main(use_pygame_console=0, interactmethod=default_interactmethod):
def main(use_pygame_console=0, interactmethod="twistedinteract"): si, se, so = sys.stdin, sys.stderr, sys.stdout try: if 0 and use_pygame_console: # pygame currently borked from pyrepl.pygame_console import PyGameConsole, FakeStdin, FakeStdout con = PyGameConsole() sys.stderr = sys.stdout = FakeStdout(con) sys.stdin = FakeStdin(con) else: from pyrepl.unix_console import UnixConsole try: import locale except ImportError: encoding = None else: if hasattr(locale, 'nl_langinfo') \ and hasattr(locale, 'CODESET'): encoding = locale.nl_langinfo(locale.CODESET) elif os.environ.get('TERM_PROGRAM') == 'Apple_Terminal': # /me whistles innocently... code = int(os.popen( "defaults read com.apple.Terminal StringEncoding" ).read()) if code == 4: encoding = 'utf-8' # More could go here -- and what's here isn't # bulletproof. What would be? AppleScript? # Doesn't seem to be possible. else: encoding = None else: encoding = None # so you get ASCII... con = UnixConsole(0, 1, None, encoding) print "Python", sys.version, "on", sys.platform print 'Type "help", "copyright", "credits" or "license" '\ 'for more information.' sys.path.insert(0, os.getcwd()) module_lister._make_module_list() if __name__ != '__main__': mainmod = new.module('__main__') sys.modules['__main__'] = mainmod else: mainmod = sys.modules['__main__'] rc = ReaderConsole(con, mainmod.__dict__) rc.run_user_init_file() getattr(rc, interactmethod)() finally: sys.stdin, sys.stderr, sys.stdout = si, se, so
0a7bbd9f219d0eea5a78055c1a2f2ab977bbbac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/278/0a7bbd9f219d0eea5a78055c1a2f2ab977bbbac5/python_reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1202, 67, 2074, 13957, 67, 8698, 33, 20, 16, 16592, 2039, 33, 1886, 67, 2761, 621, 2039, 4672, 7533, 16, 695, 16, 1427, 273, 2589, 18, 21772, 16, 2589, 18, 11241, 16, 2589, 18, 10283, 775, 30, 309, 374, 471, 999, 67, 2074, 13957, 67, 8698, 30, 468, 2395, 13957, 4551, 324, 778, 329, 628, 2395, 26745, 18, 2074, 13957, 67, 8698, 1930, 4707, 12496, 10215, 16, 11551, 10436, 267, 16, 11551, 27334, 356, 273, 4707, 12496, 10215, 1435, 2589, 18, 11241, 273, 2589, 18, 10283, 273, 11551, 27334, 12, 591, 13, 2589, 18, 21772, 273, 11551, 10436, 267, 12, 591, 13, 469, 30, 628, 2395, 26745, 18, 21136, 67, 8698, 1930, 9480, 10215, 775, 30, 1930, 2573, 1335, 11308, 30, 2688, 273, 599, 469, 30, 309, 3859, 12, 6339, 16, 296, 14039, 67, 4936, 1376, 6134, 521, 471, 3859, 12, 6339, 16, 296, 5572, 4043, 11, 4672, 2688, 273, 2573, 18, 14039, 67, 4936, 1376, 12, 6339, 18, 5572, 4043, 13, 1327, 1140, 18, 28684, 18, 588, 2668, 15176, 67, 21418, 6134, 422, 296, 1294, 1802, 67, 11336, 4278, 468, 342, 3501, 600, 376, 1040, 316, 31470, 23351, 2777, 981, 273, 509, 12, 538, 18, 84, 3190, 12, 315, 7606, 855, 532, 18, 438, 1802, 18, 11336, 514, 4705, 6, 262, 18, 896, 10756, 309, 981, 422, 1059, 30, 2688, 273, 296, 3158, 17, 28, 11, 468, 16053, 3377, 1960, 2674, 1493, 471, 4121, 1807, 2674, 5177, 1404, 468, 31650, 24207, 18, 225, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1202, 67, 2074, 13957, 67, 8698, 33, 20, 16, 16592, 2039, 33, 1886, 67, 2761, 621, 2039, 4672, 7533, 16, 695, 16, 1427, 273, 2589, 18, 21772, 16, 2589, 18, 11241, 16, 2589, 18, 10283, 775, 30, 309, 374, 471, 999, 67, 2074, 13957, 67, 8698, 30, 468, 2395, 13957, 4551, 324, 778, 329, 628, 2395, 26745, 18, 2074, 13957, 67, 8698, 1930, 4707, 12496, 10215, 16, 11551, 10436, 267, 16, 11551, 27334, 356, 273, 4707, 12496, 10215, 1435, 2589, 18, 11241, 273, 2589, 18, 10283, 273, 11551, 27334, 12, 591, 13, 2589, 18, 21772, 273, 11551, 10436, 267, 12, 591, 13, 469, 30, 628, 2395, 26745, 18, 21136, 67, 8698, 1930, 9480, 10215, 775, 30, 2 ]
for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1])
if not self.options.actions: for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1])
def upgrade_testing(self): """Upgrade testing using the unstable packages
333b76f04c83e940fd1667457dc7d9c0a58c6aa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/333b76f04c83e940fd1667457dc7d9c0a58c6aa6/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 3813, 310, 12, 2890, 4672, 3536, 10784, 7769, 1450, 326, 640, 15021, 5907, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8400, 67, 3813, 310, 12, 2890, 4672, 3536, 10784, 7769, 1450, 326, 640, 15021, 5907, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
text="Please choose input and output")
message_format="Please choose input and output")
def export_dialog(self, widget): ex = ExportDialog() input_model = ex.combobox_input.get_active() output_model = ex.combobox_output.get_active() if not (output_model and input_model): md = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_CLOSE, text="Please choose input and output") else: self.iterstart = self.textBuffer.get_start_iter() self.iterend = self.textBuffer.get_end_iter() data = self.textBuffer.get_text(self.iterstart, self.iterend) exec('from models.%s import ModelParser' % ( models[ex.modelsListStore[input_model][0]] )) exec('from output.%s import TotalOpen%s as Output' % ( formats[ex.outputFormatsListStore[output_model][0]], ex.outputFormatsListStore[output_model][0] )) parsed_data = ModelParser(data) parsed_points = parsed_data.points file_save = gtk.FileChooserDialog(title="Select destination file" , action=gtk.FILE_CHOOSER_ACTION_SAVE , buttons=(gtk.STOCK_CANCEL , gtk.RESPONSE_CANCEL , gtk.STOCK_SAVE , gtk.RESPONSE_OK)) if file_save.run() == gtk.RESPONSE_OK: result = file_save.get_filename() file_save.destroy() # FIXME handle overwriting an existing file (ask the user) output = Output(parsed_points, result)
edfaf0eb04a37f31e76bb13107762afbf5e921a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5205/edfaf0eb04a37f31e76bb13107762afbf5e921a6/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 12730, 12, 2890, 16, 3604, 4672, 431, 273, 11054, 6353, 1435, 810, 67, 2284, 273, 431, 18, 9301, 27570, 67, 2630, 18, 588, 67, 3535, 1435, 876, 67, 2284, 273, 431, 18, 9301, 27570, 67, 2844, 18, 588, 67, 3535, 1435, 309, 486, 261, 2844, 67, 2284, 471, 810, 67, 2284, 4672, 3481, 273, 22718, 18, 1079, 6353, 12, 723, 33, 4521, 79, 18, 8723, 67, 3589, 16, 9502, 33, 4521, 79, 18, 20068, 55, 67, 13384, 16, 883, 67, 2139, 1546, 8496, 9876, 810, 471, 876, 7923, 469, 30, 365, 18, 2165, 1937, 273, 365, 18, 955, 1892, 18, 588, 67, 1937, 67, 2165, 1435, 365, 18, 2165, 409, 273, 365, 18, 955, 1892, 18, 588, 67, 409, 67, 2165, 1435, 501, 273, 365, 18, 955, 1892, 18, 588, 67, 955, 12, 2890, 18, 2165, 1937, 16, 365, 18, 2165, 409, 13, 1196, 2668, 2080, 3679, 7866, 87, 1930, 3164, 2678, 11, 738, 261, 3679, 63, 338, 18, 7665, 682, 2257, 63, 2630, 67, 2284, 6362, 20, 13563, 8623, 1196, 2668, 2080, 876, 7866, 87, 1930, 10710, 3678, 9, 87, 487, 3633, 11, 738, 261, 6449, 63, 338, 18, 2844, 8976, 682, 2257, 63, 2844, 67, 2284, 6362, 20, 65, 6487, 431, 18, 2844, 8976, 682, 2257, 63, 2844, 67, 2284, 6362, 20, 65, 8623, 2707, 67, 892, 273, 3164, 2678, 12, 892, 13, 2707, 67, 4139, 273, 2707, 67, 892, 18, 4139, 225, 585, 67, 5688, 273, 22718, 18, 812, 17324, 6353, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 12730, 12, 2890, 16, 3604, 4672, 431, 273, 11054, 6353, 1435, 810, 67, 2284, 273, 431, 18, 9301, 27570, 67, 2630, 18, 588, 67, 3535, 1435, 876, 67, 2284, 273, 431, 18, 9301, 27570, 67, 2844, 18, 588, 67, 3535, 1435, 309, 486, 261, 2844, 67, 2284, 471, 810, 67, 2284, 4672, 3481, 273, 22718, 18, 1079, 6353, 12, 723, 33, 4521, 79, 18, 8723, 67, 3589, 16, 9502, 33, 4521, 79, 18, 20068, 55, 67, 13384, 16, 883, 67, 2139, 1546, 8496, 9876, 810, 471, 876, 7923, 469, 30, 365, 18, 2165, 1937, 273, 365, 18, 955, 1892, 18, 588, 67, 1937, 67, 2165, 1435, 365, 18, 2165, 409, 273, 365, 18, 955, 1892, 18, 2 ]
if ar[1] != 'f':
def run ( self ): global ar global status while 1: if self.readline(): if len(ar) > 3 and ar[0] == 'P': #print #received packet print "%s Sender=%d Rec=%d Seq=%d Data:" % (time.time(),ord(ar[3]),ord(ar[2]),ord(ar[1])) print ar[4:] elif len(ar) > 1 and ar[0] == 'D': #debug info if ar[1] != 'f': #print time.time() print "%s Debug: %s" % (time.time() ,''.join(ar[1:])) #ar[0] = 'D' elif len(ar) > 1 and ar[0] == 'E': #debug info print "%s -----------Error: %s-----------------" % (time.time() ,''.join(ar[1:])) elif len(ar) > 1 and ar[0] == 'S': if ar[1] == 'D': #print "Status: done" status = 'D' elif ar[1] == 'T': #print time.time() print "%s ------------------Status: timeout--------------------" % time.time() status = 'T' else: print "?: %s" % ar
df8f7c831c89b8e1eeb2aa8512fe097e89393d42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11679/df8f7c831c89b8e1eeb2aa8512fe097e89393d42/rfinterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 261, 365, 262, 30, 2552, 419, 2552, 1267, 1323, 404, 30, 309, 365, 18, 896, 1369, 13332, 309, 562, 12, 297, 13, 405, 890, 471, 419, 63, 20, 65, 422, 296, 52, 4278, 468, 1188, 5375, 468, 15213, 4414, 1172, 2213, 87, 15044, 5095, 72, 7776, 5095, 72, 14367, 5095, 72, 1910, 2773, 738, 261, 957, 18, 957, 9334, 517, 12, 297, 63, 23, 65, 3631, 517, 12, 297, 63, 22, 65, 3631, 517, 12, 297, 63, 21, 22643, 1172, 419, 63, 24, 26894, 1327, 562, 12, 297, 13, 405, 404, 471, 419, 63, 20, 65, 422, 296, 40, 4278, 13491, 468, 4148, 1123, 225, 468, 1188, 813, 18, 957, 1435, 1172, 2213, 87, 4015, 30, 738, 87, 6, 738, 261, 957, 18, 957, 1435, 269, 6309, 18, 5701, 12, 297, 63, 21, 30, 22643, 468, 297, 63, 20, 65, 273, 296, 40, 11, 1327, 562, 12, 297, 13, 405, 404, 471, 419, 63, 20, 65, 422, 296, 41, 4278, 13491, 468, 4148, 1123, 1172, 2213, 87, 300, 15392, 668, 30, 738, 87, 1271, 10951, 738, 261, 957, 18, 957, 1435, 269, 6309, 18, 5701, 12, 297, 63, 21, 30, 22643, 1327, 562, 12, 297, 13, 405, 404, 471, 419, 63, 20, 65, 422, 296, 55, 4278, 309, 419, 63, 21, 65, 422, 296, 40, 4278, 468, 1188, 315, 1482, 30, 2731, 6, 1267, 273, 296, 40, 11, 1327, 419, 63, 21, 65, 422, 296, 56, 4278, 468, 1188, 813, 18, 957, 1435, 1172, 2213, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 365, 262, 30, 2552, 419, 2552, 1267, 1323, 404, 30, 309, 365, 18, 896, 1369, 13332, 309, 562, 12, 297, 13, 405, 890, 471, 419, 63, 20, 65, 422, 296, 52, 4278, 468, 1188, 5375, 468, 15213, 4414, 1172, 2213, 87, 15044, 5095, 72, 7776, 5095, 72, 14367, 5095, 72, 1910, 2773, 738, 261, 957, 18, 957, 9334, 517, 12, 297, 63, 23, 65, 3631, 517, 12, 297, 63, 22, 65, 3631, 517, 12, 297, 63, 21, 22643, 1172, 419, 63, 24, 26894, 1327, 562, 12, 297, 13, 405, 404, 471, 419, 63, 20, 65, 422, 296, 40, 4278, 13491, 468, 4148, 1123, 225, 468, 1188, 813, 18, 957, 1435, 1172, 2213, 87, 4015, 30, 738, 2 ]
"a": token}
"a": token, "sk": self.network.session_key, "api_key": self.network.api_key}
def _do_handshake(self): """Handshakes with the server""" timestamp = str(int(time.time())) token = md5(self.password + timestamp) params = {"hs": "true", "p": "1.2.1", "c": self.client_id, "v": self.client_version, "u": self.username, "t": timestamp, "a": token} server = self.network.submission_server response = _ScrobblerRequest(server, params, self.network, "GET").execute().split("\n") self.session_id = response[1] self.nowplaying_url = response[2] self.submissions_url = response[3]
f3b4182317ff3f41a1614218b6e91fcc4b699268 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9926/f3b4182317ff3f41a1614218b6e91fcc4b699268/pylast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2349, 7478, 12, 2890, 4672, 3536, 1144, 674, 3223, 598, 326, 1438, 8395, 225, 2858, 273, 609, 12, 474, 12, 957, 18, 957, 1435, 3719, 1147, 273, 3481, 25, 12, 2890, 18, 3664, 397, 2858, 13, 225, 859, 273, 12528, 4487, 6877, 315, 3767, 3113, 315, 84, 6877, 315, 21, 18, 22, 18, 21, 3113, 315, 71, 6877, 365, 18, 2625, 67, 350, 16, 315, 90, 6877, 365, 18, 2625, 67, 1589, 16, 315, 89, 6877, 365, 18, 5053, 16, 315, 88, 6877, 2858, 16, 315, 69, 6877, 1147, 16, 315, 7771, 6877, 365, 18, 5185, 18, 3184, 67, 856, 16, 315, 2425, 67, 856, 6877, 365, 18, 5185, 18, 2425, 67, 856, 97, 225, 1438, 273, 365, 18, 5185, 18, 12684, 67, 3567, 766, 273, 389, 1541, 303, 9897, 749, 691, 12, 3567, 16, 859, 16, 365, 18, 5185, 16, 315, 3264, 20387, 8837, 7675, 4939, 31458, 82, 7923, 225, 365, 18, 3184, 67, 350, 273, 766, 63, 21, 65, 365, 18, 3338, 1601, 310, 67, 718, 273, 766, 63, 22, 65, 365, 18, 25675, 67, 718, 273, 766, 63, 23, 65, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 2349, 7478, 12, 2890, 4672, 3536, 1144, 674, 3223, 598, 326, 1438, 8395, 225, 2858, 273, 609, 12, 474, 12, 957, 18, 957, 1435, 3719, 1147, 273, 3481, 25, 12, 2890, 18, 3664, 397, 2858, 13, 225, 859, 273, 12528, 4487, 6877, 315, 3767, 3113, 315, 84, 6877, 315, 21, 18, 22, 18, 21, 3113, 315, 71, 6877, 365, 18, 2625, 67, 350, 16, 315, 90, 6877, 365, 18, 2625, 67, 1589, 16, 315, 89, 6877, 365, 18, 5053, 16, 315, 88, 6877, 2858, 16, 315, 69, 6877, 1147, 16, 315, 7771, 6877, 365, 18, 5185, 18, 3184, 67, 856, 16, 315, 2425, 67, 856, 6877, 365, 18, 5185, 18, 2425, 67, 856, 97, 225, 2 ]
self.geoclue = Geoclue.DiscoverLocation() self.geoclue.init()
def __init__(self): self.plugin_path = os.path.dirname(os.path.abspath(__file__)) self.glade_file = os.path.join(self.plugin_path, "geolocalized.glade") # the preference menu for the plugin self.menu_item = gtk.MenuItem("Geolocalized Task Preferences") # toolbar button for the new Location view # create the pixbuf with the icon and it's size. # 24,24 is the TaskEditor's toolbar icon size image_geolocalization_path = os.path.join(self.plugin_path, "icons/hicolor/24x24/geolocalization.png") pixbuf_geolocalization = gtk.gdk.pixbuf_new_from_file_at_size(image_geolocalization_path, 24, 24) image_assign_location_path = os.path.join(self.plugin_path, "icons/hicolor/16x16/assign-location.png") pixbug_assign_location = gtk.gdk.pixbuf_new_from_file_at_size(image_assign_location_path, 16, 16) # create the image and associate the pixbuf self.icon_geolocalization = gtk.Image() self.icon_geolocalization.set_from_pixbuf(pixbuf_geolocalization) self.icon_geolocalization.show() image_assign_location = gtk.Image() image_assign_location.set_from_pixbuf(pixbug_assign_location) image_assign_location.show() # the menu intem for the tag context self.context_item = gtk.ImageMenuItem("Assign a location to this tag") self.context_item.set_image(image_assign_location) # TODO: add a short cut to the menu # toolbar button for the location_view self.btn_location_view = gtk.ToggleToolButton() self.btn_location_view.set_icon_widget(self.icon_geolocalization) self.btn_location_view.set_label("Location View") self.geoclue = Geoclue.DiscoverLocation() self.geoclue.init() self.PROXIMITY_FACTOR = 5 # 5 km self.LOCATION_ACCURACY = 3 # Locality self.LOCATION_DETERMINATION_METHOD = [] for provider in self.geoclue.get_available_providers(): if provider['position'] and (provider['provider'] != "Example Provider" and provider['provider'] != "Plazes"): self.LOCATION_DETERMINATION_METHOD.append(provider["provider"])
12aa706127ecc14ac0202cf17283e5add9dd74b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/12aa706127ecc14ac0202cf17283e5add9dd74b1/geolocalized-tasks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 4094, 67, 803, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 365, 18, 7043, 2486, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4094, 67, 803, 16, 315, 908, 355, 23735, 1235, 18, 7043, 2486, 7923, 225, 468, 326, 11555, 3824, 364, 326, 1909, 365, 18, 5414, 67, 1726, 273, 22718, 18, 12958, 2932, 18809, 355, 23735, 1235, 3837, 28310, 7923, 225, 468, 12748, 3568, 364, 326, 394, 7050, 1476, 468, 752, 326, 11871, 4385, 598, 326, 4126, 471, 518, 1807, 963, 18, 468, 4248, 16, 3247, 353, 326, 3837, 6946, 1807, 12748, 4126, 963, 1316, 67, 908, 355, 23735, 1588, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4094, 67, 803, 16, 315, 14516, 19, 76, 12463, 280, 19, 3247, 92, 3247, 19, 908, 355, 23735, 1588, 18, 6446, 7923, 11871, 4385, 67, 908, 355, 23735, 1588, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 67, 2704, 67, 2080, 67, 768, 67, 270, 67, 1467, 12, 2730, 67, 908, 355, 23735, 1588, 67, 803, 16, 4248, 16, 4248, 13, 225, 1316, 67, 6145, 67, 3562, 67, 803, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4094, 67, 803, 16, 315, 14516, 19, 76, 12463, 280, 19, 2313, 92, 2313, 19, 6145, 17, 3562, 18, 6446, 7923, 11871, 925, 67, 6145, 67, 3562, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 365, 18, 4094, 67, 803, 273, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 5113, 803, 12, 972, 768, 972, 3719, 365, 18, 7043, 2486, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4094, 67, 803, 16, 315, 908, 355, 23735, 1235, 18, 7043, 2486, 7923, 225, 468, 326, 11555, 3824, 364, 326, 1909, 365, 18, 5414, 67, 1726, 273, 22718, 18, 12958, 2932, 18809, 355, 23735, 1235, 3837, 28310, 7923, 225, 468, 12748, 3568, 364, 326, 394, 7050, 1476, 468, 752, 326, 11871, 4385, 598, 326, 4126, 471, 518, 1807, 963, 18, 468, 4248, 16, 3247, 353, 326, 3837, 6946, 1807, 12748, 4126, 963, 1316, 67, 2 ]
if downDict['Dir'] and not os.path.isdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ): try: os.mkdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) )
if downDict['Dir'] and not os.path.isdir( os.path.join(self['global']['workingDir'],downDict['Dir'])): try: os.mkdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) )
def check(self): global mechanize if not self['global']['urllib'] and not mechanize: print >> sys.stderr, 'Using urllib2 instead of mechanize. setting urllib = True' self['global']['urllib'] = True if 'saveFile' not in self['global'] or self['global']['saveFile'] == None: self['global']['saveFile'] = u'savedstate.dat' if 'downloadDir' not in self['global'] or self['global']['downloadDir'] == None: raise SystemExit(u"Must specify downloadDir in [global] config\nInvalid configuration, no download directory") if 'runOnce' not in self['global'] or self['global']['runOnce'] == None: self['global']['runOnce'] = False if 'scanMins' not in self['global'] or self['global']['scanMins'] == None: self['global']['scanMins'] = 15 if self['global']['cookieType'] == 'MSIECookieJar' and self['global']['urllib']: raise SystemExit( u"Cannot use MSIECookieJar with urllib = True. Choose one or the other. May be caused by failed mechanize import. Incompatible configuration, IE cookies must use mechanize. please install and configure mechanize") if self['global']['cookieType'] not in ['MSIECookieJar' ,'LWPCookieJar' , 'MozillaCookieJar' ]: raise SystemExit(u'Invalid cookieType option: %s. Only MSIECookieJar, LWPCookieJar, and MozillaCookieJar are valid options. Exiting...' % self['global']['cookieType']) if 'lockPort' not in self['global'] or self['global']['lockPort'] == None: self['global']['lockPort'] = 8023 if 'log' in self['global'] and self['global']['log']: if 'logFile' not in self['global'] or self['global']['logFile'] == None: self['global']['logFile'] = u'downloads.log' # check all directories to make sure they exist. Ask for creation? if self['global']['downloadDir']: if not os.path.isdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ): try: os.mkdir( os.path.join(self['global']['workingDir'], self['global']['downloadDir']) ) except OSError, m: raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], self['global']['downloadDir'])) for thread in self['threads']: if self['threads'][thread]['directory'] and not os.path.isdir( os.path.join(self['global']['workingDir'], self['threads'][thread]['directory']) ): try: os.mkdir( os.path.join(self['global']['workingDir'], self['threads'][thread]['directory']) ) except OSError, m: raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], self['threads'][thread]['directory'])) for downDict in self['threads'][thread]['downloads']: if downDict['Dir'] and not os.path.isdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ): try: os.mkdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ) except OSError, m: raise SystemExit(unicodeC(m) + os.linesep + u"Could not find path %s and could not make a directory there. Please make sure this path is correct and try creating the folder with proper permissions for me" % os.path.join(self['global']['workingDir'], downDict['Dir'] ))
633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 2552, 1791, 7472, 554, 309, 486, 365, 3292, 6347, 21712, 718, 2941, 3546, 471, 486, 1791, 7472, 554, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 7736, 11527, 22, 3560, 434, 1791, 7472, 554, 18, 3637, 11527, 273, 1053, 11, 365, 3292, 6347, 21712, 718, 2941, 3546, 273, 1053, 309, 296, 5688, 812, 11, 486, 225, 316, 365, 3292, 6347, 3546, 578, 365, 3292, 6347, 21712, 5688, 812, 3546, 422, 599, 30, 365, 3292, 6347, 21712, 5688, 812, 3546, 273, 582, 1807, 8158, 2019, 18, 3404, 11, 309, 296, 7813, 1621, 11, 486, 316, 365, 3292, 6347, 3546, 578, 365, 3292, 6347, 21712, 7813, 1621, 3546, 422, 599, 30, 1002, 25454, 12, 89, 6, 10136, 4800, 4224, 1621, 316, 306, 6347, 65, 642, 64, 82, 1941, 1664, 16, 1158, 4224, 1867, 7923, 309, 296, 2681, 12212, 11, 486, 316, 365, 3292, 6347, 3546, 578, 365, 3292, 6347, 21712, 2681, 12212, 3546, 422, 599, 30, 365, 3292, 6347, 21712, 2681, 12212, 3546, 273, 1083, 309, 296, 9871, 49, 2679, 11, 486, 316, 365, 3292, 6347, 3546, 578, 365, 3292, 6347, 21712, 9871, 49, 2679, 3546, 422, 599, 30, 365, 3292, 6347, 21712, 9871, 49, 2679, 3546, 273, 4711, 309, 365, 3292, 6347, 21712, 8417, 559, 3546, 422, 296, 49, 2320, 41, 6151, 10813, 11, 471, 365, 3292, 6347, 21712, 718, 2941, 3546, 30, 1002, 25454, 12, 582, 6, 4515, 999, 490, 2320, 41, 6151, 10813, 598, 11527, 273, 1053, 18, 25593, 1245, 578, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 2552, 1791, 7472, 554, 309, 486, 365, 3292, 6347, 21712, 718, 2941, 3546, 471, 486, 1791, 7472, 554, 30, 1172, 1671, 2589, 18, 11241, 16, 296, 7736, 11527, 22, 3560, 434, 1791, 7472, 554, 18, 3637, 11527, 273, 1053, 11, 365, 3292, 6347, 21712, 718, 2941, 3546, 273, 1053, 309, 296, 5688, 812, 11, 486, 225, 316, 365, 3292, 6347, 3546, 578, 365, 3292, 6347, 21712, 5688, 812, 3546, 422, 599, 30, 365, 3292, 6347, 21712, 5688, 812, 3546, 273, 582, 1807, 8158, 2019, 18, 3404, 11, 309, 296, 7813, 1621, 11, 486, 316, 365, 3292, 6347, 3546, 578, 365, 3292, 6347, 21712, 7813, 1621, 3546, 422, 599, 30, 1002, 25454, 12, 89, 6, 2 ]
None, [cty.c_int, STRING],
None, [cty.c_int, STRING],
def fl_setpup_bw(n, bw): """ fl_setpup_bw(n, bw) """ _fl_setpup_bw(n, bw)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 84, 416, 67, 70, 91, 12, 82, 16, 12986, 4672, 3536, 1183, 67, 542, 84, 416, 67, 70, 91, 12, 82, 16, 12986, 13, 3536, 225, 389, 2242, 67, 542, 84, 416, 67, 70, 91, 12, 82, 16, 12986, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1183, 67, 542, 84, 416, 67, 70, 91, 12, 82, 16, 12986, 4672, 3536, 1183, 67, 542, 84, 416, 67, 70, 91, 12, 82, 16, 12986, 13, 3536, 225, 389, 2242, 67, 542, 84, 416, 67, 70, 91, 12, 82, 16, 12986, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
logger.info(' '+filepath_rel+': no errors found')
logger.info(filepath_rel+': no errors found')
def verify(): all_errors_found = 0
9e249a6dacfafcde61ac83d5cd8becc030ac159f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13644/9e249a6dacfafcde61ac83d5cd8becc030ac159f/eagle3d.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3929, 13332, 777, 67, 4324, 67, 7015, 273, 374, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3929, 13332, 777, 67, 4324, 67, 7015, 273, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._form_app = form_app.App("Nigeria Forms", self.router)
self._form_app = form_app.App(self.router)
def start(self): # initialize the forms app for nigeria self._form_app = form_app.App("Nigeria Forms", self.router) # this tells the form app to add itself as a message handler # which registers the regex and function that this will dispatch to self._form_app.add_message_handler_to(self) # this tells the form app that this is also a form handler self._form_app.add_form_handler("nigeria", NigeriaFormsLogic()) # initialize the supply app self._supply_app = supply_app.App("Nigeria Supplies", self.router) # this tells the supply app to register with the forms app as a form handler self._supply_app.add_form_handler_to(self._form_app)
2ad75c64da9f51476527ec9a765533eab14e489c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/2ad75c64da9f51476527ec9a765533eab14e489c/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 468, 4046, 326, 10138, 595, 364, 290, 360, 264, 1155, 365, 6315, 687, 67, 2910, 273, 646, 67, 2910, 18, 3371, 12, 2890, 18, 10717, 13, 468, 333, 24551, 326, 646, 595, 358, 527, 6174, 487, 279, 883, 1838, 468, 1492, 10285, 326, 3936, 471, 445, 716, 333, 903, 3435, 358, 365, 6315, 687, 67, 2910, 18, 1289, 67, 2150, 67, 4176, 67, 869, 12, 2890, 13, 468, 333, 24551, 326, 646, 595, 716, 333, 353, 2546, 279, 646, 1838, 365, 6315, 687, 67, 2910, 18, 1289, 67, 687, 67, 4176, 2932, 82, 360, 264, 1155, 3113, 423, 360, 264, 1155, 18529, 20556, 10756, 468, 4046, 326, 14467, 595, 365, 6315, 2859, 1283, 67, 2910, 273, 14467, 67, 2910, 18, 3371, 2932, 50, 360, 264, 1155, 3425, 5259, 3113, 365, 18, 10717, 13, 468, 333, 24551, 326, 14467, 595, 358, 1744, 598, 326, 10138, 595, 487, 279, 646, 1838, 365, 6315, 2859, 1283, 67, 2910, 18, 1289, 67, 687, 67, 4176, 67, 869, 12, 2890, 6315, 687, 67, 2910, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 4672, 468, 4046, 326, 10138, 595, 364, 290, 360, 264, 1155, 365, 6315, 687, 67, 2910, 273, 646, 67, 2910, 18, 3371, 12, 2890, 18, 10717, 13, 468, 333, 24551, 326, 646, 595, 358, 527, 6174, 487, 279, 883, 1838, 468, 1492, 10285, 326, 3936, 471, 445, 716, 333, 903, 3435, 358, 365, 6315, 687, 67, 2910, 18, 1289, 67, 2150, 67, 4176, 67, 869, 12, 2890, 13, 468, 333, 24551, 326, 646, 595, 716, 333, 353, 2546, 279, 646, 1838, 365, 6315, 687, 67, 2910, 18, 1289, 67, 687, 67, 4176, 2932, 82, 360, 264, 1155, 3113, 423, 360, 264, 1155, 18529, 20556, 10756, 468, 4046, 326, 14467, 595, 365, 6315, 2859, 1283, 67, 2 ]
formlength = formlength - 8 - chunk.chunksize if chunk.chunksize & 1: formlength = formlength - 1
def initfp(self, file): self._file = file self._version = 0 self._decomp = None self._markers = [] self._soundpos = 0 form = self._file.read(4) if form != 'FORM': raise Error, 'file does not start with FORM id' formlength = _read_long(self._file) if formlength <= 0: raise Error, 'invalid FORM chunk data size' formdata = self._file.read(4) formlength = formlength - 4 if formdata == 'AIFF': self._aifc = 0 elif formdata == 'AIFC': self._aifc = 1 else: raise Error, 'not an AIFF or AIFF-C file' self._comm_chunk_read = 0 while formlength > 0: self._ssnd_seek_needed = 1 #DEBUG: SGI's soundfiler has a bug. There should # be no need to check for EOF here. try: chunk = Chunk().init(self._file) except EOFError: if formlength == 8: print 'Warning: FORM chunk size too large' formlength = 0 break raise EOFError # different error, raise exception formlength = formlength - 8 - chunk.chunksize if chunk.chunksize & 1: formlength = formlength - 1 if chunk.chunkname == 'COMM': self._read_comm_chunk(chunk) self._comm_chunk_read = 1 elif chunk.chunkname == 'SSND': self._ssnd_chunk = chunk dummy = chunk.read(8) self._ssnd_seek_needed = 0 elif chunk.chunkname == 'FVER': self._version = _read_long(chunk) elif chunk.chunkname == 'MARK': self._readmark(chunk) elif chunk.chunkname in _skiplist: pass else: raise Error, 'unrecognized chunk type '+chunk.chunkname if formlength > 0: chunk.skip() if not self._comm_chunk_read or not self._ssnd_chunk: raise Error, 'COMM chunk and/or SSND chunk missing' if self._aifc and self._decomp: params = [CL.ORIGINAL_FORMAT, 0, \ CL.BITS_PER_COMPONENT, 0, \ CL.FRAME_RATE, self._framerate] if self._nchannels == AL.MONO: params[1] = CL.MONO else: params[1] = CL.STEREO_INTERLEAVED if self._sampwidth == AL.SAMPLE_8: params[3] = 8 elif self._sampwidth == AL.SAMPLE_16: params[3] = 16 else: params[3] = 24 self._decomp.SetParams(params) return self
d5e487709f4c6e2aacee5677e1c110b4a128ef25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d5e487709f4c6e2aacee5677e1c110b4a128ef25/aifc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7944, 12, 2890, 16, 585, 4672, 365, 6315, 768, 273, 585, 365, 6315, 1589, 273, 374, 365, 6315, 323, 2919, 273, 599, 365, 6315, 22807, 273, 5378, 365, 6315, 29671, 917, 273, 374, 646, 273, 365, 6315, 768, 18, 896, 12, 24, 13, 309, 646, 480, 296, 4983, 4278, 1002, 1068, 16, 296, 768, 1552, 486, 787, 598, 8979, 612, 11, 646, 2469, 273, 389, 896, 67, 5748, 12, 2890, 6315, 768, 13, 309, 646, 2469, 1648, 374, 30, 1002, 1068, 16, 296, 5387, 8979, 2441, 501, 963, 11, 30642, 273, 365, 6315, 768, 18, 896, 12, 24, 13, 646, 2469, 273, 646, 2469, 300, 1059, 309, 30642, 422, 296, 37, 16962, 4278, 365, 6315, 69, 430, 71, 273, 374, 1327, 30642, 422, 296, 18194, 4488, 4278, 365, 6315, 69, 430, 71, 273, 404, 469, 30, 1002, 1068, 16, 296, 902, 392, 432, 16962, 578, 432, 16962, 17, 39, 585, 11, 365, 6315, 5702, 67, 6551, 67, 896, 273, 374, 1323, 646, 2469, 405, 374, 30, 365, 6315, 1049, 4880, 67, 16508, 67, 17471, 273, 404, 468, 9394, 30, 348, 13797, 1807, 14190, 11894, 711, 279, 7934, 18, 225, 6149, 1410, 468, 506, 1158, 1608, 358, 866, 364, 6431, 2674, 18, 775, 30, 2441, 273, 13021, 7675, 2738, 12, 2890, 6315, 768, 13, 1335, 6431, 668, 30, 309, 646, 2469, 422, 1725, 30, 1172, 296, 6210, 30, 8979, 2441, 963, 4885, 7876, 11, 646, 2469, 273, 374, 898, 1002, 6431, 668, 468, 3775, 555, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 7944, 12, 2890, 16, 585, 4672, 365, 6315, 768, 273, 585, 365, 6315, 1589, 273, 374, 365, 6315, 323, 2919, 273, 599, 365, 6315, 22807, 273, 5378, 365, 6315, 29671, 917, 273, 374, 646, 273, 365, 6315, 768, 18, 896, 12, 24, 13, 309, 646, 480, 296, 4983, 4278, 1002, 1068, 16, 296, 768, 1552, 486, 787, 598, 8979, 612, 11, 646, 2469, 273, 389, 896, 67, 5748, 12, 2890, 6315, 768, 13, 309, 646, 2469, 1648, 374, 30, 1002, 1068, 16, 296, 5387, 8979, 2441, 501, 963, 11, 30642, 273, 365, 6315, 768, 18, 896, 12, 24, 13, 646, 2469, 273, 646, 2469, 300, 1059, 309, 30642, 422, 296, 37, 16962, 4278, 365, 6315, 69, 430, 2 ]
self._vte.feed_child(txt)
for term in self.terminator.term_list: if term == self or term._group != None and term._group == self._group: term._vte.feed_child(txt)
def on_drag_data_received(self, widget, drag_context, x, y, selection_data, info, time, data): dbg ("Drag Data Received") if selection_data.type == 'text/plain': #copy text to destination #print "%s %s" % (selection_data.type, selection_data.target) txt = selection_data.data.strip() if txt[0:7] == "file://": txt = "'%s'" % txt[7:] self._vte.feed_child(txt) return widgetsrc = data.terminator.term_list[int(selection_data.data)] srcvte = drag_context.get_source_widget() #check if computation requireds if (isinstance(srcvte, gtk.EventBox) and srcvte == self._titlebox) or srcvte == widget: dbg (" on itself") return srchbox = widgetsrc dsthbox = widget.get_parent().get_parent() dstpaned = dsthbox.get_parent() srcpaned = srchbox.get_parent() if isinstance(dstpaned, gtk.Window) and isinstance(srcpaned, gtk.Window): dbg (" Only one terminal") return pos = self.get_location(widget, x, y) data.terminator.remove(widgetsrc, True) data.terminator.add(self, widgetsrc,pos) return
938fb0d0b767bc5f4855a0416700fe6acf286d07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/938fb0d0b767bc5f4855a0416700fe6acf286d07/terminatorterm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 892, 67, 15213, 12, 2890, 16, 3604, 16, 8823, 67, 2472, 16, 619, 16, 677, 16, 4421, 67, 892, 16, 1123, 16, 813, 16, 501, 4672, 28966, 7566, 11728, 1910, 21066, 7923, 309, 4421, 67, 892, 18, 723, 422, 296, 955, 19, 7446, 4278, 468, 3530, 977, 358, 2929, 468, 1188, 2213, 87, 738, 87, 6, 738, 261, 10705, 67, 892, 18, 723, 16, 4421, 67, 892, 18, 3299, 13, 6463, 273, 4421, 67, 892, 18, 892, 18, 6406, 1435, 309, 6463, 63, 20, 30, 27, 65, 422, 315, 768, 2207, 6877, 6463, 273, 22288, 87, 4970, 738, 6463, 63, 27, 26894, 364, 2481, 316, 365, 18, 9505, 639, 18, 6408, 67, 1098, 30, 309, 2481, 422, 365, 578, 2481, 6315, 1655, 480, 599, 471, 2481, 6315, 1655, 422, 365, 6315, 1655, 30, 2481, 6315, 90, 736, 18, 7848, 67, 3624, 12, 5830, 13, 327, 225, 3604, 4816, 273, 501, 18, 9505, 639, 18, 6408, 67, 1098, 63, 474, 12, 10705, 67, 892, 18, 892, 25887, 1705, 90, 736, 273, 8823, 67, 2472, 18, 588, 67, 3168, 67, 6587, 1435, 468, 1893, 309, 16039, 1931, 87, 309, 261, 291, 1336, 12, 4816, 90, 736, 16, 22718, 18, 1133, 3514, 13, 471, 1705, 90, 736, 422, 365, 6315, 2649, 2147, 13, 578, 1705, 90, 736, 422, 3604, 30, 28966, 7566, 225, 603, 6174, 7923, 327, 225, 9133, 343, 2147, 273, 3604, 4816, 3046, 76, 2147, 273, 3604, 18, 588, 67, 2938, 7675, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 892, 67, 15213, 12, 2890, 16, 3604, 16, 8823, 67, 2472, 16, 619, 16, 677, 16, 4421, 67, 892, 16, 1123, 16, 813, 16, 501, 4672, 28966, 7566, 11728, 1910, 21066, 7923, 309, 4421, 67, 892, 18, 723, 422, 296, 955, 19, 7446, 4278, 468, 3530, 977, 358, 2929, 468, 1188, 2213, 87, 738, 87, 6, 738, 261, 10705, 67, 892, 18, 723, 16, 4421, 67, 892, 18, 3299, 13, 6463, 273, 4421, 67, 892, 18, 892, 18, 6406, 1435, 309, 6463, 63, 20, 30, 27, 65, 422, 315, 768, 2207, 6877, 6463, 273, 22288, 87, 4970, 738, 6463, 63, 27, 26894, 364, 2481, 316, 365, 18, 9505, 639, 18, 6408, 67, 1098, 30, 2 ]
expect(f.read(1), 'a')
expect(f.read(1), b'a')
def expect(got_this, expect_this): if test_support.verbose: print('%r =?= %r ...' % (got_this, expect_this), end=' ') if got_this != expect_this: if test_support.verbose: print('no') raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print('yes')
f55d86abe0e358709c72f404db4b832ea362c7d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/f55d86abe0e358709c72f404db4b832ea362c7d9/test_largefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 29909, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 3631, 679, 2218, 8624, 309, 2363, 67, 2211, 480, 4489, 67, 2211, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 2135, 6134, 1002, 1842, 67, 13261, 18, 4709, 2925, 16, 296, 13212, 738, 86, 16, 1496, 2665, 738, 86, 11, 738, 64, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 13, 469, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 9707, 6134, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4489, 12, 13212, 67, 2211, 16, 4489, 67, 2211, 4672, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 29909, 86, 273, 35, 33, 738, 86, 25956, 738, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 3631, 679, 2218, 8624, 309, 2363, 67, 2211, 480, 4489, 67, 2211, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 2135, 6134, 1002, 1842, 67, 13261, 18, 4709, 2925, 16, 296, 13212, 738, 86, 16, 1496, 2665, 738, 86, 11, 738, 64, 261, 13212, 67, 2211, 16, 4489, 67, 2211, 13, 469, 30, 309, 1842, 67, 13261, 18, 11369, 30, 1172, 2668, 9707, 6134, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
msg.to = ap.get("to") msg.subject = ap.get("subject")
msg.to = ap.get(TO) msg.subject = ap.get(SUBJECT)
def _decode(self, xfr): dp = EMPTY_DP mp = EMPTY_MP
e2816373f624d2ef21833a5ff2d1fd3b95acfd03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/197/e2816373f624d2ef21833a5ff2d1fd3b95acfd03/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 12, 2890, 16, 619, 4840, 4672, 9986, 273, 8984, 67, 8640, 6749, 273, 8984, 67, 4566, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 12, 2890, 16, 619, 4840, 4672, 9986, 273, 8984, 67, 8640, 6749, 273, 8984, 67, 4566, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
nodes = [] nodes.extend(flatten_nodes(self.tests)) if self.else_ is not None: nodes.append(self.else_) return tuple(nodes)
nodelist = [] nodelist.extend(flatten_nodes(self.tests)) if self.else_ is not None: nodelist.append(self.else_) return tuple(nodelist)
def getChildNodes(self): nodes = [] nodes.extend(flatten_nodes(self.tests)) if self.else_ is not None: nodes.append(self.else_) return tuple(nodes)
7dce7618a9a2ec21fadacd49967dbf4d460b4941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7dce7618a9a2ec21fadacd49967dbf4d460b4941/ast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23895, 12, 2890, 4672, 2199, 273, 5378, 2199, 18, 14313, 12, 16940, 67, 4690, 12, 2890, 18, 16341, 3719, 309, 365, 18, 12107, 67, 353, 486, 599, 30, 5411, 2199, 18, 6923, 12, 2890, 18, 12107, 67, 13, 327, 3193, 12, 4690, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 67, 13, 327, 3193, 12, 4690, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
memberships = Membership.gql("WHERE user = :1", user)
actualGroup = Group.get(self.request.get("group")) memberships = Membership.gql("WHERE user = :1 AND group != :2", user, actualGroup)
def getGroups(self, user): memberships = Membership.gql("WHERE user = :1", user) groups = map((lambda x: x.group), memberships) return groups
b1e3ad0af9dd8c2bcdc55f000c6a770ad22469f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3133/b1e3ad0af9dd8c2bcdc55f000c6a770ad22469f8/groupHandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22708, 12, 2890, 16, 729, 4672, 3214, 1114, 273, 3756, 18, 588, 12, 2890, 18, 2293, 18, 588, 2932, 1655, 6, 3719, 12459, 87, 273, 28100, 18, 75, 1217, 2932, 12299, 729, 273, 294, 21, 4116, 1041, 480, 294, 22, 3113, 729, 16, 3214, 1114, 13, 3252, 273, 852, 12443, 14661, 619, 30, 619, 18, 1655, 3631, 12459, 87, 13, 327, 3252, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22708, 12, 2890, 16, 729, 4672, 3214, 1114, 273, 3756, 18, 588, 12, 2890, 18, 2293, 18, 588, 2932, 1655, 6, 3719, 12459, 87, 273, 28100, 18, 75, 1217, 2932, 12299, 729, 273, 294, 21, 4116, 1041, 480, 294, 22, 3113, 729, 16, 3214, 1114, 13, 3252, 273, 852, 12443, 14661, 619, 30, 619, 18, 1655, 3631, 12459, 87, 13, 327, 3252, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return w.page(title, data +
return w.page(title, data +
def unlock(uri, http_user, login): """unlock a user account password.""" title = _("Unlock account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) users.reload() data += w.page_body_end() if users.is_system_login(login): return w.page(title, w.error(_("Failed to unlock account"), [ _("alter system account.") ], _("insufficient permission to perform operation."))) command = [ "sudo", "mod", "user", "--quiet", "--no-colors", "--login", login, "--unlock" ] return w.page(title, data + w.run(command, uri, err_msg = _("Failed to unlock account <strong>%s</strong>!") % login))
1ac7de7fa0474fe0812c899f93a87f4be2a8eadb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/1ac7de7fa0474fe0812c899f93a87f4be2a8eadb/users.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7186, 12, 1650, 16, 1062, 67, 1355, 16, 3925, 4672, 3536, 26226, 279, 729, 2236, 2201, 12123, 225, 2077, 273, 389, 2932, 7087, 2236, 738, 87, 7923, 738, 3925, 501, 225, 273, 341, 18, 2433, 67, 3432, 67, 1937, 12, 1650, 16, 1062, 67, 1355, 16, 1103, 5088, 842, 16, 2077, 13, 225, 3677, 18, 17517, 1435, 225, 501, 1011, 341, 18, 2433, 67, 3432, 67, 409, 1435, 225, 309, 3677, 18, 291, 67, 4299, 67, 5819, 12, 5819, 4672, 327, 341, 18, 2433, 12, 2649, 16, 341, 18, 1636, 24899, 2932, 2925, 358, 7186, 2236, 6, 3631, 306, 389, 2932, 22628, 2619, 2236, 1199, 13, 308, 16, 389, 2932, 2679, 11339, 4132, 358, 3073, 1674, 1199, 20349, 225, 1296, 273, 306, 315, 20566, 3113, 315, 1711, 3113, 315, 1355, 3113, 5238, 20380, 3113, 5238, 2135, 17, 9724, 3113, 5238, 5819, 3113, 3925, 16, 5238, 26226, 6, 308, 225, 327, 341, 18, 2433, 12, 2649, 16, 501, 397, 341, 18, 2681, 12, 3076, 16, 2003, 16, 393, 67, 3576, 273, 389, 2932, 2925, 358, 7186, 2236, 411, 9110, 9822, 87, 1757, 9110, 34, 4442, 13, 738, 3925, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 7186, 12, 1650, 16, 1062, 67, 1355, 16, 3925, 4672, 3536, 26226, 279, 729, 2236, 2201, 12123, 225, 2077, 273, 389, 2932, 7087, 2236, 738, 87, 7923, 738, 3925, 501, 225, 273, 341, 18, 2433, 67, 3432, 67, 1937, 12, 1650, 16, 1062, 67, 1355, 16, 1103, 5088, 842, 16, 2077, 13, 225, 3677, 18, 17517, 1435, 225, 501, 1011, 341, 18, 2433, 67, 3432, 67, 409, 1435, 225, 309, 3677, 18, 291, 67, 4299, 67, 5819, 12, 5819, 4672, 327, 341, 18, 2433, 12, 2649, 16, 341, 18, 1636, 24899, 2932, 2925, 358, 7186, 2236, 6, 3631, 306, 389, 2932, 22628, 2619, 2236, 1199, 13, 308, 16, 389, 2932, 2679, 11339, 4132, 358, 3073, 1674, 1199, 20349, 2 ]
m = "Server returned an error: '%s'" % msg[1:]
m = "Server returned an error: '%s'" % msg[1]
def _handle_error(self, msg): """ Deals with error messages by raising them as exceptions. """
71e12d1b5eaf057668ebf4ecc32e9f3ac16d6b17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13574/71e12d1b5eaf057668ebf4ecc32e9f3ac16d6b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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 1636, 12, 2890, 16, 1234, 4672, 3536, 1505, 1031, 598, 555, 2743, 635, 28014, 2182, 487, 4798, 18, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
- ``i`` - round (0 = i = n)
- ``i`` - round (0 <= i <= n)
def key_schedule_polynomials(self, i): """ Return polynomials for the `i`-th round of the key schedule.
361ee6a2b2c797fdc77944b615cb058df81aca2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/361ee6a2b2c797fdc77944b615cb058df81aca2e/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 498, 67, 10676, 67, 3915, 13602, 87, 12, 2890, 16, 277, 4672, 3536, 2000, 16991, 87, 364, 326, 1375, 77, 68, 17, 451, 3643, 434, 326, 498, 4788, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 498, 67, 10676, 67, 3915, 13602, 87, 12, 2890, 16, 277, 4672, 3536, 2000, 16991, 87, 364, 326, 1375, 77, 68, 17, 451, 3643, 434, 326, 498, 4788, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
time.sleep(5)
time.sleep(wait) wait = min(wait*2, 300)
def _putPageOld(self, text, comment=None, watchArticle=False, minorEdit=True, newPage=False, token=None, newToken=False, sysop=False, captcha=None, botflag=True, maxTries=-1): """Upload 'text' as new content of Page by filling out the edit form.
83bd9e3ef494861e1302c7b51f2e970a147cccd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/83bd9e3ef494861e1302c7b51f2e970a147cccd2/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 1964, 7617, 12, 2890, 16, 977, 16, 2879, 33, 7036, 16, 4267, 7880, 33, 8381, 16, 8439, 4666, 33, 5510, 16, 394, 1964, 33, 8381, 16, 1147, 33, 7036, 16, 394, 1345, 33, 8381, 16, 2589, 556, 33, 8381, 16, 21083, 33, 7036, 16, 2512, 6420, 33, 5510, 16, 943, 13652, 29711, 21, 4672, 3536, 4777, 296, 955, 11, 487, 394, 913, 434, 3460, 635, 25740, 596, 326, 3874, 646, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 1964, 7617, 12, 2890, 16, 977, 16, 2879, 33, 7036, 16, 4267, 7880, 33, 8381, 16, 8439, 4666, 33, 5510, 16, 394, 1964, 33, 8381, 16, 1147, 33, 7036, 16, 394, 1345, 33, 8381, 16, 2589, 556, 33, 8381, 16, 21083, 33, 7036, 16, 2512, 6420, 33, 5510, 16, 943, 13652, 29711, 21, 4672, 3536, 4777, 296, 955, 11, 487, 394, 913, 434, 3460, 635, 25740, 596, 326, 3874, 646, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
running_status = IDLE
except: logger.exception("Error trying to commit in bgsync") try:
def silentCallback(*args, **kwds): # Simply return the interrupt flag return interrupt_flag == IMMEDIATE_STOP
f1b62db6d8b3c28cab8cdd7839f8900fd1db3964 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f1b62db6d8b3c28cab8cdd7839f8900fd1db3964/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10404, 2428, 30857, 1968, 16, 2826, 25577, 4672, 468, 9587, 1283, 327, 326, 13123, 2982, 327, 13123, 67, 6420, 422, 6246, 15971, 1777, 67, 17513, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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67, 6420, 422, 6246, 15971, 1777, 67, 17513, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if the script completes successfully, return the concatenation of ``stdout`` and ``stderr``. else fail.
if the script completes successfully, return its ``stdout``, else fail the test.
def run_script(self, script=None, args=None): """run a script in a separate process.
75b482a898630e234393ff9417678f152d784ee0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11588/75b482a898630e234393ff9417678f152d784ee0/setproctitle_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4263, 12, 2890, 16, 2728, 33, 7036, 16, 833, 33, 7036, 4672, 3536, 2681, 279, 2728, 316, 279, 9004, 1207, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4263, 12, 2890, 16, 2728, 33, 7036, 16, 833, 33, 7036, 4672, 3536, 2681, 279, 2728, 316, 279, 9004, 1207, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Reporter.reportError(self, testCase, method, exc_info) def reportSuccess(self, testCase, method):
Reporter.reportError(self, testClass, method, exc_info) def reportSuccess(self, testClass, method):
def reportError(self, testCase, method, exc_info): self.write('E') Reporter.reportError(self, testCase, method, exc_info)
5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17887, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, 4672, 365, 18, 2626, 2668, 41, 6134, 25585, 18, 6006, 668, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17887, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, 4672, 365, 18, 2626, 2668, 41, 6134, 25585, 18, 6006, 668, 12, 2890, 16, 1842, 2449, 16, 707, 16, 3533, 67, 1376, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, url=None):
def __init__(self, url={}):
def __init__(self, url=None): SafeProxy.__init__(self, self.name, url) for method in self.methods: setattr(self, method, eval('lambda *x:self.run_method(method, x)', {'self':self, 'method':method}))
466eaa2b99da6ff8cfd0900a0ffde3b9270b0d92 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/466eaa2b99da6ff8cfd0900a0ffde3b9270b0d92/Proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 880, 12938, 4672, 14060, 3886, 16186, 2738, 972, 12, 2890, 16, 365, 18, 529, 16, 880, 13, 364, 707, 316, 365, 18, 5163, 30, 9241, 12, 2890, 16, 707, 16, 5302, 2668, 14661, 380, 92, 30, 2890, 18, 2681, 67, 2039, 12, 2039, 16, 619, 13, 2187, 13666, 2890, 4278, 2890, 16, 296, 2039, 4278, 2039, 31700, 2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 880, 12938, 4672, 14060, 3886, 16186, 2738, 972, 12, 2890, 16, 365, 18, 529, 16, 880, 13, 364, 707, 316, 365, 18, 5163, 30, 9241, 12, 2890, 16, 707, 16, 5302, 2668, 14661, 380, 92, 30, 2890, 18, 2681, 67, 2039, 12, 2039, 16, 619, 13, 2187, 13666, 2890, 4278, 2890, 16, 296, 2039, 4278, 2039, 31700, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'Build', 'Cache', 'Collection', 'Data', 'Depends', 'Fetcher', 'Parsing', 'PersistData', 'Provider', 'RunQueue', 'TaskData', 'Util'))
"Default", "Build", "Cache", "Collection", "Data", "Depends", "Fetcher", "Parsing", "PersistData", "Provider", "RunQueue", "TaskData", "Util"))
def _NamedTuple(name, fields): Tuple = collections.namedtuple(name, " ".join(fields)) return Tuple(*range(len(fields)))
350c3126e130b1f6d22c6b5061a3feacc05025fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/350c3126e130b1f6d22c6b5061a3feacc05025fc/msg.py
[ 1,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7604, 9038, 12, 529, 16, 1466, 4672, 7257, 273, 6980, 18, 13188, 8052, 12, 529, 16, 315, 3552, 5701, 12, 2821, 3719, 327, 7257, 30857, 3676, 12, 1897, 12, 2821, 20349, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
hfile = cStringIO.StringIO(bytes) self.headers = self.MessageClass(hfile)
self.headers = self.MessageClass(self.rfile, 0)
def parse_request(self): """Parse a request (internal).
cffb9dee673cd00ee341bdd504066af67e49f09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cffb9dee673cd00ee341bdd504066af67e49f09b/BaseHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2293, 12, 2890, 4672, 3536, 3201, 279, 590, 261, 7236, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1109, 67, 2293, 12, 2890, 4672, 3536, 3201, 279, 590, 261, 7236, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.out += self.ids_to_labels(node)
set_anchor = not(isinstance(node.parent, nodes.caption) or isinstance(node.parent, nodes.title)) self.out += self.ids_to_labels(node, set_anchor)
def visit_target(self, node): # Skip indirect targets: if ('refuri' in node # external hyperlink or 'refid' in node # resolved internal link or 'refname' in node): # unresolved internal link ## self.out.append('%% %s\n' % node) # for debugging return self.out.append('%\n') self.out += self.ids_to_labels(node)
6d0e673df8a8a162ea831fe884be17ae4ef52a46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/6d0e673df8a8a162ea831fe884be17ae4ef52a46/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 3299, 12, 2890, 16, 756, 4672, 468, 6611, 16807, 5774, 30, 309, 7707, 1734, 1650, 11, 316, 756, 4202, 468, 3903, 9512, 1232, 578, 296, 1734, 350, 11, 316, 756, 377, 468, 4640, 2713, 1692, 578, 296, 1734, 529, 11, 316, 756, 4672, 468, 20573, 2713, 1692, 7541, 365, 18, 659, 18, 6923, 2668, 11438, 738, 87, 64, 82, 11, 738, 756, 13, 282, 468, 364, 10450, 327, 365, 18, 659, 18, 6923, 29909, 64, 82, 6134, 365, 18, 659, 1011, 365, 18, 2232, 67, 869, 67, 5336, 12, 2159, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 2713, 1692, 578, 296, 1734, 529, 11, 316, 756, 4672, 468, 20573, 2713, 1692, 7541, 365, 18, 659, 18, 6923, 2668, 11438, 738, 87, 64, 82, 11, 738, 756, 13, 282, 468, 364, 10450, 327, 365, 18, 659, 18, 6923, 29909, 64, 82, 6134, 365, 18, 659, 1011, 365, 18, 2232, 67, 869, 67, 5336, 12, 2159, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return self.regex.match(str(leaf.cat))
return self.regex.match(str(leaf.cat)) is not None
def is_satisfied_by(self, leaf): return self.regex.match(str(leaf.cat))
7021b9e889cb99f1462dabe273d2e7800122fbee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8383/7021b9e889cb99f1462dabe273d2e7800122fbee/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 12973, 21501, 67, 1637, 12, 2890, 16, 7839, 4672, 327, 365, 18, 7584, 18, 1916, 12, 701, 12, 12070, 18, 2574, 3719, 353, 486, 599, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1637, 12, 2890, 16, 7839, 4672, 327, 365, 18, 7584, 18, 1916, 12, 701, 12, 12070, 18, 2574, 3719, 353, 486, 599, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"Couldn't find terminating boundary: %s" % boundary) terminator = mo.start() linesep = mo.group('sep') if mo.end() < len(payload): epilogue = payload[mo.end():]
"Couldn't find terminating boundary: %s" % boundary) else: endre = re.compile('(?P<sep>\r\n|\r|\n){2}$') mo = endre.search(payload) if not mo: raise Errors.BoundaryError( "Couldn't find terminating boundary, and no "+ "trailing empty line") else: linesep = mo.group('sep') terminator = len(payload)
def _parsebody(self, container, fp): # Parse the body, but first split the payload on the content-type # boundary if present. boundary = container.get_boundary() isdigest = (container.get_type() == 'multipart/digest') # If there's a boundary, split the payload text into its constituent # parts and parse each separately. Otherwise, just parse the rest of # the body as a single message. Note: any exceptions raised in the # recursive parse need to have their line numbers coerced. if boundary: preamble = epilogue = None # Split into subparts. The first boundary we're looking for won't # have the leading newline since we're at the start of the body # text. separator = '--' + boundary payload = fp.read() start = payload.find(separator) if start < 0: raise Errors.BoundaryError( "Couldn't find starting boundary: %s" % boundary) if start > 0: # there's some pre-MIME boundary preamble preamble = payload[0:start] # Find out what kind of line endings we're using start += len(separator) cre = re.compile('\r\n|\r|\n') mo = cre.search(payload, start) if mo: start += len(mo.group(0)) * (1 + isdigest) # We create a compiled regexp first because we need to be able to # specify the start position, and the module function doesn't # support this signature. :( cre = re.compile('(?P<sep>\r\n|\r|\n)' + re.escape(separator) + '--') mo = cre.search(payload, start) if not mo: raise Errors.BoundaryError( "Couldn't find terminating boundary: %s" % boundary) terminator = mo.start() linesep = mo.group('sep') if mo.end() < len(payload): # there's some post-MIME boundary epilogue epilogue = payload[mo.end():] # We split the textual payload on the boundary separator, which # includes the trailing newline. If the container is a # multipart/digest then the subparts are by default message/rfc822 # instead of text/plain. In that case, they'll have an extra # newline before the headers to distinguish the message's headers # from the subpart headers. separator += linesep * (1 + isdigest) parts = payload[start:terminator].split(linesep + separator) for part in parts: msgobj = self.parsestr(part) container.preamble = preamble container.epilogue = epilogue container.attach(msgobj) elif container.get_main_type() == 'multipart': # Very bad. A message is a multipart with no boundary! raise Errors.BoundaryError( 'multipart message with no defined boundary') elif container.get_type() == 'message/delivery-status': # This special kind of type contains blocks of headers separated # by a blank line. We'll represent each header block as a # separate Message object blocks = [] while 1: blockmsg = self._class() self._parseheaders(blockmsg, fp) if not len(blockmsg): # No more header blocks left break blocks.append(blockmsg) container.set_payload(blocks) elif container.get_main_type() == 'message': # Create a container for the payload, but watch out for there not # being any headers left try: msg = self.parse(fp) except Errors.HeaderParseError: msg = self._class() self._parsebody(msg, fp) container.attach(msg) else: container.set_payload(fp.read())
3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, 67, 16604, 1435, 353, 10171, 273, 261, 3782, 18, 588, 67, 723, 1435, 422, 296, 16404, 19, 10171, 6134, 468, 971, 1915, 1807, 279, 7679, 16, 1416, 326, 2385, 977, 1368, 2097, 29152, 10744, 468, 2140, 471, 1109, 1517, 18190, 18, 225, 5272, 16, 2537, 1109, 326, 3127, 434, 468, 326, 1417, 487, 279, 2202, 883, 18, 225, 3609, 30, 1281, 4798, 11531, 316, 326, 468, 5904, 1109, 1608, 358, 1240, 3675, 980, 5600, 12270, 72, 18, 309, 7679, 30, 27841, 273, 5529, 21947, 344, 273, 599, 468, 5385, 1368, 720, 6019, 18, 225, 1021, 1122, 7679, 732, 4565, 7849, 364, 8462, 1404, 468, 1240, 326, 7676, 9472, 3241, 732, 4565, 622, 326, 787, 434, 326, 1417, 468, 977, 18, 4182, 273, 16979, 397, 7679, 2385, 273, 4253, 18, 896, 1435, 787, 273, 2385, 18, 4720, 12, 11287, 13, 309, 787, 411, 374, 30, 1002, 9372, 18, 11941, 668, 12, 315, 16342, 1404, 1104, 5023, 7679, 30, 738, 87, 6, 738, 7679, 13, 309, 787, 405, 374, 30, 468, 1915, 1807, 2690, 675, 17, 18178, 7679, 27841, 27841, 273, 2385, 63, 20, 30, 1937, 65, 468, 4163, 596, 4121, 3846, 434, 980, 679, 899, 732, 4565, 1450, 787, 1011, 562, 12, 11287, 13, 1519, 273, 283, 18, 11100, 2668, 64, 86, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 3432, 12, 2890, 16, 1478, 16, 4253, 4672, 468, 2884, 326, 1417, 16, 1496, 1122, 1416, 326, 2385, 603, 326, 913, 17, 723, 468, 7679, 309, 3430, 18, 7679, 273, 1478, 18, 588, 67, 16604, 1435, 353, 10171, 273, 261, 3782, 18, 588, 67, 723, 1435, 422, 296, 16404, 19, 10171, 6134, 468, 971, 1915, 1807, 279, 7679, 16, 1416, 326, 2385, 977, 1368, 2097, 29152, 10744, 468, 2140, 471, 1109, 1517, 18190, 18, 225, 5272, 16, 2537, 1109, 326, 3127, 434, 468, 326, 1417, 487, 279, 2202, 883, 18, 225, 3609, 30, 1281, 4798, 11531, 316, 326, 468, 5904, 1109, 1608, 358, 1240, 3675, 980, 5600, 12270, 72, 18, 309, 7679, 30, 27841, 273, 5529, 2 ]
return ''
return u''
def get_in_language(self, language): if self.raw_data and self.raw_data.has_key(language): return self.raw_data[language] else: return ''
54d1f63bda2a6ef36ecb97d19845898465ce1fa6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/807/54d1f63bda2a6ef36ecb97d19845898465ce1fa6/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 267, 67, 4923, 12, 2890, 16, 2653, 4672, 309, 365, 18, 1899, 67, 892, 471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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 267, 67, 4923, 12, 2890, 16, 2653, 4672, 309, 365, 18, 1899, 67, 892, 471, 365, 18, 1899, 67, 892, 18, 5332, 67, 856, 12, 4923, 4672, 327, 365, 18, 1899, 67, 892, 63, 4923, 65, 469, 30, 327, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dat = self._get_line()[:-2]
dat = self._get_line()
def _get_response(self):
46586822058b54c93e36247f31b13b4d7286f0a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/46586822058b54c93e36247f31b13b4d7286f0a2/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2740,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2740, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
<url type="application/rss+xml" indexOffset="1" rel="results" template="%(search_syntax)s" /> <atom:link rel="search" href="%(siteurl)s/search/opensearchdescription" type="application/opensearchdescription+xml" title="Content Search" />
<atom:link rel="search" href="%(siteurl)s/opensearchdescription" type="application/opensearchdescription+xml" title="Content Search" />
def tmpl_xml_rss_prologue(self, current_url=None, previous_url=None, next_url=None, first_url=None, last_url=None, nb_found=None, jrec=None, rg=None): """Creates XML RSS 2.0 prologue.""" out = """<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <channel> <title>%(sitename)s</title> <link>%(siteurl)s</link> <description>%(sitename)s latest documents</description> <language>%(sitelang)s</language> <pubDate>%(timestamp)s</pubDate> <category></category> <generator>CDS Invenio %(version)s</generator> <webMaster>%(sitesupportemail)s</webMaster> <ttl>%(timetolive)s</ttl>%(previous_link)s%(next_link)s%(current_link)s%(total_results)s%(start_index)s%(total_results)s <image> <url>%(siteurl)s/img/cds.png</url> <title>%(sitename)s</title> <link>%(siteurl)s</link> </image> <url type="application/rss+xml" indexOffset="1" rel="results" template="%(search_syntax)s" /> <atom:link rel="search" href="%(siteurl)s/search/opensearchdescription" type="application/opensearchdescription+xml" title="Content Search" />
0b2970baab66c776567b8547fb241de18d0c9af0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/0b2970baab66c776567b8547fb241de18d0c9af0/websearch_templates.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2902, 67, 25151, 67, 685, 1330, 344, 12, 2890, 16, 783, 67, 718, 33, 7036, 16, 2416, 67, 718, 33, 7036, 16, 1024, 67, 718, 33, 7036, 16, 1122, 67, 718, 33, 7036, 16, 1142, 67, 718, 33, 7036, 16, 4264, 67, 7015, 33, 7036, 16, 525, 3927, 33, 7036, 16, 14524, 33, 7036, 4672, 3536, 2729, 3167, 31481, 576, 18, 20, 450, 1330, 344, 12123, 596, 273, 3536, 32, 25151, 1177, 1546, 22, 18, 20, 6, 12302, 30, 5829, 1546, 2505, 2207, 3072, 18, 93, 9795, 5161, 18, 832, 19, 21387, 1049, 4898, 12302, 30, 7466, 1546, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 25, 19, 3641, 6, 12302, 30, 7201, 1546, 2505, 2207, 84, 718, 18, 3341, 19, 7201, 19, 6274, 19, 21, 18, 21, 4898, 12302, 30, 72, 299, 5044, 1546, 2505, 2207, 84, 718, 18, 3341, 19, 7201, 19, 10112, 4898, 12302, 30, 3190, 3072, 1546, 2505, 2207, 69, 29, 18, 832, 19, 17, 19, 2793, 19, 3190, 3072, 19, 21, 18, 21, 4898, 34, 411, 4327, 34, 411, 2649, 9822, 12, 25404, 1069, 13, 87, 1757, 2649, 34, 411, 1232, 9822, 12, 4256, 718, 13, 87, 1757, 1232, 34, 411, 3384, 9822, 12, 25404, 1069, 13, 87, 4891, 7429, 1757, 3384, 34, 411, 4923, 9822, 12, 25404, 292, 539, 13, 87, 1757, 4923, 34, 411, 10174, 1626, 9822, 12, 5508, 13, 87, 1757, 10174, 1626, 34, 411, 4743, 4695, 4743, 34, 411, 8812, 34, 39, 3948, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10720, 67, 2902, 67, 25151, 67, 685, 1330, 344, 12, 2890, 16, 783, 67, 718, 33, 7036, 16, 2416, 67, 718, 33, 7036, 16, 1024, 67, 718, 33, 7036, 16, 1122, 67, 718, 33, 7036, 16, 1142, 67, 718, 33, 7036, 16, 4264, 67, 7015, 33, 7036, 16, 525, 3927, 33, 7036, 16, 14524, 33, 7036, 4672, 3536, 2729, 3167, 31481, 576, 18, 20, 450, 1330, 344, 12123, 596, 273, 3536, 32, 25151, 1177, 1546, 22, 18, 20, 6, 12302, 30, 5829, 1546, 2505, 2207, 3072, 18, 93, 9795, 5161, 18, 832, 19, 21387, 1049, 4898, 12302, 30, 7466, 1546, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 25, 19, 3641, 6, 12302, 30, 7201, 1546, 2 ]
def __init__(self, session, transponders):
def __init__(self, session, transponders, flags):
def __init__(self, session, transponders): Screen.__init__(self, session) self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label("scan state") self["scan"] = CScan(self["scan_progress"], self["scan_state"], transponders)
3ff9ec2869649c38251899fc0fbe9c651a061dfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/3ff9ec2869649c38251899fc0fbe9c651a061dfc/ServiceScan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1339, 16, 906, 3111, 414, 16, 2943, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 225, 365, 18, 3184, 18, 11589, 18, 5681, 1179, 1435, 225, 365, 9614, 9871, 67, 8298, 11929, 273, 27793, 1435, 365, 9614, 9871, 67, 2019, 11929, 273, 5287, 2932, 9871, 919, 7923, 365, 9614, 9871, 11929, 273, 385, 7972, 12, 2890, 9614, 9871, 67, 8298, 6, 6487, 365, 9614, 9871, 67, 2019, 6, 6487, 906, 3111, 414, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1339, 16, 906, 3111, 414, 16, 2943, 4672, 10146, 16186, 2738, 972, 12, 2890, 16, 1339, 13, 225, 365, 18, 3184, 18, 11589, 18, 5681, 1179, 1435, 225, 365, 9614, 9871, 67, 8298, 11929, 273, 27793, 1435, 365, 9614, 9871, 67, 2019, 11929, 273, 5287, 2932, 9871, 919, 7923, 365, 9614, 9871, 11929, 273, 385, 7972, 12, 2890, 9614, 9871, 67, 8298, 6, 6487, 365, 9614, 9871, 67, 2019, 6, 6487, 906, 3111, 414, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
m = re.search(r'https?://.*?jstor.+?/(\d{4,})(/|$|\?)', url)
m = re.search(r'https?://.*?jstor.+?/(\d{4,})', url)
def url_to_id(url): # If there's a DOI then we'll have that m = re.search(r'doi=10.2307/(\d+)', url) if m: return int(m.group(1)) # If it's the old style SICI then, annoyingly, we'll need to fetch it if 'sici=' in url: page = urlopen(url).read() m = re.search(r'<a id="info" href="/stable/(\d+)">Article Information</a>', page) if m: return int(m.group(1)) else: return None # Otherwise assume anything which looks like /123123/ is an ID m = re.search(r'https?://.*?jstor.+?/(\d{4,})(/|$|\?)', url) if m: return int(m.group(1)) return None
0c61891867f63ce3442a8c9a8e6959517000716a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13110/0c61891867f63ce3442a8c9a8e6959517000716a/jstor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 880, 67, 869, 67, 350, 12, 718, 4672, 225, 468, 971, 1915, 1807, 279, 5467, 45, 1508, 732, 5614, 1240, 716, 312, 273, 283, 18, 3072, 12, 86, 14271, 11359, 33, 2163, 18, 4366, 8642, 19, 4713, 72, 6975, 2187, 880, 13, 309, 312, 30, 327, 509, 12, 81, 18, 1655, 12, 21, 3719, 225, 468, 971, 518, 1807, 326, 1592, 2154, 348, 2871, 45, 1508, 16, 14115, 14946, 715, 16, 732, 5614, 1608, 358, 2158, 518, 309, 296, 87, 14463, 2218, 316, 880, 30, 1363, 273, 19613, 12, 718, 2934, 896, 1435, 312, 273, 283, 18, 3072, 12, 86, 11, 32, 69, 612, 1546, 1376, 6, 3897, 1546, 19, 15021, 19, 4713, 72, 15, 2225, 34, 7880, 15353, 1757, 69, 1870, 16, 1363, 13, 309, 312, 30, 327, 509, 12, 81, 18, 1655, 12, 21, 3719, 469, 30, 327, 599, 225, 468, 5272, 6750, 6967, 1492, 10192, 3007, 342, 12936, 12936, 19, 353, 392, 1599, 225, 312, 273, 283, 18, 3072, 12, 86, 11, 4528, 35, 2207, 23498, 78, 334, 280, 15591, 35, 19, 4713, 72, 95, 24, 16, 6792, 2187, 880, 13, 309, 312, 30, 327, 509, 12, 81, 18, 1655, 12, 21, 3719, 327, 599, 225, 2, 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 283, 18, 3072, 12, 86, 14271, 11359, 33, 2163, 18, 4366, 8642, 19, 4713, 72, 6975, 2187, 880, 13, 309, 312, 30, 327, 509, 12, 81, 18, 1655, 12, 21, 3719, 225, 468, 971, 518, 1807, 326, 1592, 2154, 348, 2871, 45, 1508, 16, 14115, 14946, 715, 16, 732, 5614, 1608, 358, 2158, 518, 309, 296, 87, 14463, 2218, 316, 880, 30, 1363, 273, 19613, 12, 718, 2934, 896, 1435, 312, 273, 283, 18, 3072, 12, 86, 11, 32, 69, 612, 1546, 1376, 6, 3897, 1546, 19, 15021, 19, 4713, 72, 15, 2225, 34, 7880, 2 ]
limit=1, order='date_cancel ASC')
limit=1, order='date_cancel')
def _membership_cancel(self, cr, uid, ids, name, args, context=None): '''Return the cancel date of membership''' res = {} member_line_obj = self.pool.get('membership.membership_line') for partner_id in ids: line_id = member_line_obj.search(cr, uid, [('partner', '=', partner_id)], limit=1, order='date_cancel ASC') if line_id: res[partner_id] = member_line_obj.read(cr, uid, line_id[0], ['date_cancel'])['date_cancel'] else: res[partner_id] = False return res
a0cc6ae3dc18eb6d07ba11be5f2d2071fe20b622 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/a0cc6ae3dc18eb6d07ba11be5f2d2071fe20b622/membership.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19679, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 9163, 990, 326, 3755, 1509, 434, 12459, 26418, 400, 273, 2618, 3140, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 19679, 18, 19679, 67, 1369, 6134, 364, 19170, 67, 350, 316, 3258, 30, 980, 67, 350, 273, 3140, 67, 1369, 67, 2603, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 31993, 2187, 15196, 2187, 19170, 67, 350, 13, 6487, 1800, 33, 21, 16, 1353, 2218, 712, 67, 10996, 6134, 309, 980, 67, 350, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19679, 67, 10996, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 33, 7036, 4672, 9163, 990, 326, 3755, 1509, 434, 12459, 26418, 400, 273, 2618, 3140, 67, 1369, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 19679, 18, 19679, 67, 1369, 6134, 364, 19170, 67, 350, 316, 3258, 30, 980, 67, 350, 273, 3140, 67, 1369, 67, 2603, 18, 3072, 12, 3353, 16, 4555, 16, 306, 2668, 31993, 2187, 15196, 2187, 19170, 67, 350, 13, 6487, 1800, 33, 21, 16, 1353, 2218, 712, 67, 10996, 6134, 309, 980, 67, 350, 30, 400, 63, 31993, 67, 350, 65, 273, 3140, 67, 1369, 67, 2603, 18, 896, 12, 3353, 16, 4555, 16, 2 ]
- ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound
- ``X`` - a scheme or set of abstract rational points of a scheme; - ``B`` - a positive integer bound.
def enum_affine_rational_field(X,B): """ Enumerates affine rational points on scheme X (defined over `\QQ`) up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound OUTPUT: - a list containing the affine points of X of height up to B, sorted. EXAMPLES:: sage: A.<x,y,z> = AffineSpace(3,QQ) sage: from sage.schemes.generic.rational_point import enum_affine_rational_field sage: enum_affine_rational_field(A(QQ),1) [(-1, -1, -1), (-1, -1, 0), (-1, -1, 1), (-1, 0, -1), (-1, 0, 0), (-1, 0, 1), (-1, 1, -1), (-1, 1, 0), (-1, 1, 1), (0, -1, -1), (0, -1, 0), (0, -1, 1), (0, 0, -1), (0, 0, 0), (0, 0, 1), (0, 1, -1), (0, 1, 0), (0, 1, 1), (1, -1, -1), (1, -1, 0), (1, -1, 1), (1, 0, -1), (1, 0, 0), (1, 0, 1), (1, 1, -1), (1, 1, 0), (1, 1, 1)] :: sage: A.<w,x,y,z> = AffineSpace(4,QQ) sage: S = A.subscheme([x^2-y*z+3,w^3+z+y^2]) sage: enum_affine_rational_field(S(QQ),2) [] sage: enum_affine_rational_field(S(QQ),3) [(-2, 0, -3, -1)] :: sage: A.<x,y> = AffineSpace(2,QQ) sage: C = Curve(x^2+y-x) sage: enum_affine_rational_field(C,10) [(-2, -6), (-1, -2), (0, 0), (1, 0), (2, -2), (3, -6)] AUTHOR: David R. Kohel <kohel@maths.usyd.edu.au> (small adjustments by Charlie Turner 06-2010) """ if is_Scheme(X): X = X(X.base_ring()) n = X.codomain().ambient_space().ngens() if X.value_ring() is ZZ: Q = [ 1 ] else: # rational field Q = [ k+1 for k in range(B) ] R = [ 0 ] + [ s*k for k in range(1,B+1) for s in [1,-1] ] pts = [] P = [ 0 for _ in range(n) ] m = ZZ(0) try: pts.append(X(P)) except: pass iters = [ iter(R) for _ in range(n) ] [ iters[j].next() for j in range(n) ] i = 0 while i < n: try: a = ZZ(iters[i].next()) m = m.gcd(a) P[i] = a for b in Q: if m.gcd(b) == 1: try: pts.append(X([ num/b for num in P ])) except: pass i = 0 m = ZZ(0) except StopIteration: iters[i] = iter(R) # reset P[i] = iters[i].next() # reset P[i] to 0 and increment i += 1 pts.sort() return pts
7437114fd97818d63a9f0b766fecf0fb34f4f16c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7437114fd97818d63a9f0b766fecf0fb34f4f16c/rational_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 12, 60, 16, 38, 4672, 3536, 6057, 264, 815, 28381, 436, 8371, 3143, 603, 4355, 1139, 261, 2178, 1879, 1375, 64, 53, 53, 24065, 731, 358, 2489, 605, 18, 225, 12943, 30, 225, 300, 12176, 60, 10335, 300, 225, 279, 4355, 578, 444, 434, 8770, 436, 8371, 3143, 434, 279, 4355, 31, 300, 12176, 38, 10335, 300, 225, 279, 6895, 3571, 2489, 18, 225, 11550, 30, 225, 300, 279, 666, 4191, 326, 28381, 3143, 434, 1139, 434, 2072, 731, 358, 605, 16, 3115, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 432, 22782, 92, 16, 93, 16, 94, 34, 273, 23906, 558, 3819, 12, 23, 16, 53, 53, 13, 272, 410, 30, 628, 272, 410, 18, 87, 13268, 18, 13540, 18, 7034, 287, 67, 1153, 1930, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 272, 410, 30, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 12, 37, 12, 53, 53, 3631, 21, 13, 306, 19236, 21, 16, 300, 21, 16, 300, 21, 3631, 24927, 21, 16, 300, 21, 16, 374, 3631, 24927, 21, 16, 300, 21, 16, 404, 3631, 24927, 21, 16, 374, 16, 300, 21, 3631, 24927, 21, 16, 374, 16, 374, 3631, 24927, 21, 16, 374, 16, 404, 3631, 24927, 21, 16, 404, 16, 300, 21, 3631, 24927, 21, 16, 404, 16, 374, 3631, 24927, 21, 16, 404, 16, 404, 3631, 261, 20, 16, 300, 21, 16, 300, 21, 3631, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2792, 67, 7329, 558, 67, 7034, 287, 67, 1518, 12, 60, 16, 38, 4672, 3536, 6057, 264, 815, 28381, 436, 8371, 3143, 603, 4355, 1139, 261, 2178, 1879, 1375, 64, 53, 53, 24065, 731, 358, 2489, 605, 18, 225, 12943, 30, 225, 300, 12176, 60, 10335, 300, 225, 279, 4355, 578, 444, 434, 8770, 436, 8371, 3143, 434, 279, 4355, 31, 300, 12176, 38, 10335, 300, 225, 279, 6895, 3571, 2489, 18, 225, 11550, 30, 225, 300, 279, 666, 4191, 326, 28381, 3143, 434, 1139, 434, 2072, 731, 358, 605, 16, 3115, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 432, 22782, 92, 16, 93, 16, 94, 34, 273, 23906, 558, 3819, 12, 23, 16, 53, 2 ]
out = open(filename, 'w')
out = open(filename, 'wb')
def write(self, filename, language='gif'): """ Render the graph using the output format `language`, and write the result to `filename`. :return: True if rendering was successful. """ s = self.render(language) if s is not None: out = open(filename, 'w') out.write(s) out.close() return True else: return False
435dcbeda1429f0584f1e8b77ae1f239f66582c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/435dcbeda1429f0584f1e8b77ae1f239f66582c3/dotgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 2653, 2218, 13905, 11, 4672, 3536, 6987, 326, 2667, 1450, 326, 876, 740, 1375, 4923, 9191, 471, 1045, 326, 563, 358, 1375, 3459, 8338, 294, 2463, 30, 1053, 309, 9782, 1703, 6873, 18, 3536, 272, 273, 365, 18, 5902, 12, 4923, 13, 309, 272, 353, 486, 599, 30, 596, 273, 1696, 12, 3459, 16, 296, 9464, 6134, 596, 18, 2626, 12, 87, 13, 596, 18, 4412, 1435, 327, 1053, 469, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 16, 2653, 2218, 13905, 11, 4672, 3536, 6987, 326, 2667, 1450, 326, 876, 740, 1375, 4923, 9191, 471, 1045, 326, 563, 358, 1375, 3459, 8338, 294, 2463, 30, 1053, 309, 9782, 1703, 6873, 18, 3536, 272, 273, 365, 18, 5902, 12, 4923, 13, 309, 272, 353, 486, 599, 30, 596, 273, 1696, 12, 3459, 16, 296, 9464, 6134, 596, 18, 2626, 12, 87, 13, 596, 18, 4412, 1435, 327, 1053, 469, 30, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
object, name = resolve(thing, forceload) desc = describe(object) module = inspect.getmodule(object) if name and '.' in name: desc += ' in ' + name[:name.rfind('.')] elif module and module is not object: desc += ' in module ' + module.__name__ if type(object) is _OLD_INSTANCE_TYPE: object = object.__class__ elif not (inspect.ismodule(object) or inspect.isclass(object) or inspect.isroutine(object) or inspect.isgetsetdescriptor(object) or inspect.ismemberdescriptor(object) or isinstance(object, property)): object = type(object) desc += ' object' pager(title % desc + '\n\n' + text.document(object, name))
pager(render_doc(thing, title, forceload))
def doc(thing, title='Python Library Documentation: %s', forceload=0): """Display text documentation, given an object or a path to an object.""" try: object, name = resolve(thing, forceload) desc = describe(object) module = inspect.getmodule(object) if name and '.' in name: desc += ' in ' + name[:name.rfind('.')] elif module and module is not object: desc += ' in module ' + module.__name__ if type(object) is _OLD_INSTANCE_TYPE: # If the passed object is an instance of an old-style class, # document its available methods instead of its value. object = object.__class__ elif not (inspect.ismodule(object) or inspect.isclass(object) or inspect.isroutine(object) or inspect.isgetsetdescriptor(object) or inspect.ismemberdescriptor(object) or isinstance(object, property)): # If the passed object is a piece of data or an instance, # document its available methods instead of its value. object = type(object) desc += ' object' pager(title % desc + '\n\n' + text.document(object, name)) except (ImportError, ErrorDuringImport), value: print value
8441f15626998df7881f49223948b7e6fef18c08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8441f15626998df7881f49223948b7e6fef18c08/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 4274, 16, 2077, 2218, 15774, 18694, 20495, 30, 738, 87, 2187, 364, 2183, 6189, 33, 20, 4672, 3536, 4236, 977, 7323, 16, 864, 392, 733, 578, 279, 589, 358, 392, 733, 12123, 775, 30, 733, 16, 508, 273, 2245, 12, 4274, 16, 364, 2183, 6189, 13, 3044, 273, 6401, 12, 1612, 13, 1605, 273, 5334, 18, 588, 2978, 12, 1612, 13, 309, 508, 471, 2611, 316, 508, 30, 3044, 1011, 296, 316, 296, 397, 508, 10531, 529, 18, 86, 4720, 2668, 1093, 25887, 1327, 1605, 471, 1605, 353, 486, 733, 30, 3044, 1011, 296, 316, 1605, 296, 397, 1605, 16186, 529, 972, 309, 618, 12, 1612, 13, 353, 389, 11846, 67, 13341, 67, 2399, 30, 468, 971, 326, 2275, 733, 353, 392, 791, 434, 392, 1592, 17, 4060, 667, 16, 468, 1668, 2097, 2319, 2590, 3560, 434, 2097, 460, 18, 733, 273, 733, 16186, 1106, 972, 1327, 486, 261, 12009, 18, 291, 2978, 12, 1612, 13, 578, 5334, 18, 291, 1106, 12, 1612, 13, 578, 5334, 18, 291, 22640, 12, 1612, 13, 578, 5334, 18, 291, 588, 542, 12628, 12, 1612, 13, 578, 5334, 18, 291, 5990, 12628, 12, 1612, 13, 578, 1549, 12, 1612, 16, 1272, 3719, 30, 468, 971, 326, 2275, 733, 353, 279, 11151, 434, 501, 578, 392, 791, 16, 468, 1668, 2097, 2319, 2590, 3560, 434, 2097, 460, 18, 733, 273, 618, 12, 1612, 13, 3044, 1011, 296, 733, 11, 12679, 12, 2649, 738, 3044, 397, 2337, 82, 64, 82, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 4274, 16, 2077, 2218, 15774, 18694, 20495, 30, 738, 87, 2187, 364, 2183, 6189, 33, 20, 4672, 3536, 4236, 977, 7323, 16, 864, 392, 733, 578, 279, 589, 358, 392, 733, 12123, 775, 30, 733, 16, 508, 273, 2245, 12, 4274, 16, 364, 2183, 6189, 13, 3044, 273, 6401, 12, 1612, 13, 1605, 273, 5334, 18, 588, 2978, 12, 1612, 13, 309, 508, 471, 2611, 316, 508, 30, 3044, 1011, 296, 316, 296, 397, 508, 10531, 529, 18, 86, 4720, 2668, 1093, 25887, 1327, 1605, 471, 1605, 353, 486, 733, 30, 3044, 1011, 296, 316, 1605, 296, 397, 1605, 16186, 529, 972, 309, 618, 12, 1612, 13, 353, 389, 11846, 67, 13341, 67, 2399, 30, 468, 2 ]
self.removeDns(name)
try: self.removeDns(name) except: pass
def addDns(self, name, ip): self.removeDns(name) if (self.dnsKeyFile != ""): cmd = "nsupdate -k %s" % (self.dnsKeyFile) else: cmd = "nsupdate" (stdin, stdout) = os.popen2(cmd) stdin.write("server %s\n" % (self.dnsServer)) stdin.write("update add %s.%s %d A %s\n" % (name, self.dnsDomain, self.dnsExpire, ip)) stdin.write("\n") if (self.reverseDns): ipSegments = map(int, ip.split(".")) ipSegments.reverse() reverseIpStr = ("%d.%d.%d.%d.in-addr.arpa" % (ipSegments[0], ipSegments[1], ipSegments[2], ipSegments[3])) stdin.write("update add %s %d IN PTR %s.%s.\n" % (reverseIpStr, self.dnsExpire, name, self.dnsDomain)) stdin.write("\n") stdin.close() output = stdout.read() stdout.close()
6c4d387340afc3b09f522c9610fa15ee649dccfb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/6c4d387340afc3b09f522c9610fa15ee649dccfb/dhcpdns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 18600, 12, 2890, 16, 508, 16, 2359, 4672, 775, 30, 365, 18, 4479, 18600, 12, 529, 13, 1335, 30, 1342, 309, 261, 2890, 18, 14926, 31314, 480, 1408, 4672, 1797, 273, 315, 2387, 2725, 300, 79, 738, 87, 6, 738, 261, 2890, 18, 14926, 31314, 13, 469, 30, 1797, 273, 315, 2387, 2725, 6, 261, 21772, 16, 3909, 13, 273, 1140, 18, 84, 3190, 22, 12, 4172, 13, 8801, 18, 2626, 2932, 3567, 738, 87, 64, 82, 6, 738, 261, 2890, 18, 14926, 2081, 3719, 8801, 18, 2626, 2932, 2725, 527, 738, 87, 7866, 87, 738, 72, 432, 738, 87, 64, 82, 6, 738, 261, 529, 16, 365, 18, 14926, 3748, 16, 365, 18, 14926, 17033, 16, 2359, 3719, 8801, 18, 2626, 31458, 82, 7923, 309, 261, 2890, 18, 9845, 18600, 4672, 2359, 7946, 273, 852, 12, 474, 16, 2359, 18, 4939, 2932, 1199, 3719, 2359, 7946, 18, 9845, 1435, 4219, 5273, 1585, 273, 7566, 9, 72, 7866, 72, 7866, 72, 7866, 72, 18, 267, 17, 4793, 18, 297, 8774, 6, 738, 261, 625, 7946, 63, 20, 6487, 2359, 7946, 63, 21, 6487, 2359, 7946, 63, 22, 6487, 2359, 7946, 63, 23, 22643, 8801, 18, 2626, 2932, 2725, 527, 738, 87, 738, 72, 2120, 453, 4349, 738, 87, 7866, 87, 8403, 82, 6, 738, 261, 9845, 5273, 1585, 16, 365, 18, 14926, 17033, 16, 508, 16, 365, 18, 14926, 3748, 3719, 8801, 18, 2626, 31458, 82, 7923, 8801, 18, 4412, 1435, 876, 273, 3909, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 18600, 12, 2890, 16, 508, 16, 2359, 4672, 775, 30, 365, 18, 4479, 18600, 12, 529, 13, 1335, 30, 1342, 309, 261, 2890, 18, 14926, 31314, 480, 1408, 4672, 1797, 273, 315, 2387, 2725, 300, 79, 738, 87, 6, 738, 261, 2890, 18, 14926, 31314, 13, 469, 30, 1797, 273, 315, 2387, 2725, 6, 261, 21772, 16, 3909, 13, 273, 1140, 18, 84, 3190, 22, 12, 4172, 13, 8801, 18, 2626, 2932, 3567, 738, 87, 64, 82, 6, 738, 261, 2890, 18, 14926, 2081, 3719, 8801, 18, 2626, 2932, 2725, 527, 738, 87, 7866, 87, 738, 72, 432, 738, 87, 64, 82, 6, 738, 261, 529, 16, 365, 18, 14926, 3748, 16, 365, 18, 14926, 17033, 16, 2 ]
AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-27. Will be cleaned up further.
def _remove_bases_from_duplex(self, group, resizeEndAxisAtom, numberOfBasePairsToRemove): """ AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-27. Will be cleaned up further. Remove the spcified number of base pairs from the duplex. @param group: The DnaGroup which contains this duplex @type group: DnaGroup @param resizeEndAxisAtom: The end axis base atom at a DnaLadder end of the duplex. This end base atom is used as a starting base atom while determining which base atoms to remove. @type resizeEndAxisAtom: Atom @param numberOfBasePairsToRemove: The total number of base paris to remove from the duplex. @type numberOfBasePairsToRemove: int """ ladder = resizeEndAxisAtom.molecule.ladder atomsScheduledForDeletion = [] atm = resizeEndAxisAtom strand_neighbors_to_delete = self._strand_neighbors_to_delete(atm) atomsScheduledForDeletion.extend(strand_neighbors_to_delete) #Fix for bug 2712 -- #Determine the ladder end. Based on the ladder end, we will decide which #direction to proceed in ,to find the next base atom. (e.g. it its #ladderend 0, we will proceed towards ladder end 1. and vice versa) #This direction is used by WholeChain.yield_rail_index_direction_counter #which is a pythongenerator object. (we pass 'pos' tuple argument which #includes this direction. It is important to properly determine this #direction. Otherwise the generator will not yeild all the base atoms we #desire. Wrong direction will result in bugs like 2712. #[ -- Ninad 2008-03-27 comment.]
4090824539fc516abf6a30244c3d3d05582e6bbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4090824539fc516abf6a30244c3d3d05582e6bbc/DnaDuplex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4479, 67, 18602, 67, 2080, 67, 72, 2268, 92, 12, 2890, 16, 1041, 16, 7041, 1638, 6558, 3641, 16, 7922, 2171, 10409, 12765, 4672, 3536, 225, 3581, 326, 1694, 71, 939, 1300, 434, 1026, 5574, 628, 326, 302, 2268, 92, 18, 225, 632, 891, 1041, 30, 1021, 463, 6582, 1114, 1492, 1914, 333, 302, 2268, 92, 632, 723, 1041, 30, 463, 6582, 1114, 225, 632, 891, 7041, 1638, 6558, 3641, 30, 1021, 679, 2654, 1026, 3179, 622, 279, 463, 6582, 48, 361, 765, 679, 434, 326, 302, 2268, 92, 18, 1220, 679, 1026, 3179, 353, 1399, 487, 279, 5023, 1026, 3179, 1323, 23789, 1492, 1026, 9006, 358, 1206, 18, 632, 723, 7041, 1638, 6558, 3641, 30, 7149, 225, 632, 891, 7922, 2171, 10409, 12765, 30, 1021, 2078, 1300, 434, 1026, 779, 291, 358, 1206, 628, 326, 302, 2268, 92, 18, 632, 723, 7922, 2171, 10409, 12765, 30, 509, 225, 3536, 225, 328, 361, 765, 273, 7041, 1638, 6558, 3641, 18, 81, 10545, 18, 80, 361, 765, 225, 9006, 25311, 273, 5378, 225, 622, 81, 273, 7041, 1638, 6558, 3641, 16706, 67, 17549, 67, 869, 67, 3733, 273, 365, 6315, 701, 464, 67, 17549, 67, 869, 67, 3733, 12, 270, 81, 13, 9006, 25311, 18, 14313, 12, 701, 464, 67, 17549, 67, 869, 67, 3733, 13, 225, 468, 8585, 364, 7934, 12732, 2138, 1493, 468, 8519, 326, 328, 361, 765, 679, 18, 25935, 603, 326, 328, 361, 765, 679, 16, 732, 903, 16288, 1492, 468, 9855, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4479, 67, 18602, 67, 2080, 67, 72, 2268, 92, 12, 2890, 16, 1041, 16, 7041, 1638, 6558, 3641, 16, 7922, 2171, 10409, 12765, 4672, 3536, 225, 3581, 326, 1694, 71, 939, 1300, 434, 1026, 5574, 628, 326, 302, 2268, 92, 18, 225, 632, 891, 1041, 30, 1021, 463, 6582, 1114, 1492, 1914, 333, 302, 2268, 92, 632, 723, 1041, 30, 463, 6582, 1114, 225, 632, 891, 7041, 1638, 6558, 3641, 30, 1021, 679, 2654, 1026, 3179, 622, 279, 463, 6582, 48, 361, 765, 679, 434, 326, 302, 2268, 92, 18, 1220, 679, 1026, 3179, 353, 1399, 487, 279, 5023, 1026, 3179, 1323, 23789, 1492, 1026, 9006, 358, 1206, 18, 632, 723, 7041, 1638, 6558, 3641, 30, 7149, 2 ]
self.bottom_right_margin[0] * self.mm_to_page
self.bottom_right_margin[0] * mm_to_dc
def calculateScale(self, dc): page_ppi_x, page_ppi_y = self.GetPPIPrinter() screen_ppi_x, screen_ppi_y = self.GetPPIScreen() screen_to_page = 1.0 * page_ppi_y / screen_ppi_y
4bebb256853615ba19e6f179b242b1cab3934f85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/4bebb256853615ba19e6f179b242b1cab3934f85/stcprint.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 5587, 12, 2890, 16, 6744, 4672, 1363, 67, 84, 7259, 67, 92, 16, 1363, 67, 84, 7259, 67, 93, 273, 365, 18, 967, 52, 1102, 12149, 1435, 5518, 67, 84, 7259, 67, 92, 16, 225, 5518, 67, 84, 7259, 67, 93, 273, 365, 18, 967, 52, 1102, 7956, 1435, 5518, 67, 869, 67, 2433, 273, 404, 18, 20, 380, 1363, 67, 84, 7259, 67, 93, 342, 5518, 67, 84, 7259, 67, 93, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 67, 84, 7259, 67, 93, 273, 365, 18, 967, 52, 1102, 12149, 1435, 5518, 67, 84, 7259, 67, 92, 16, 225, 5518, 67, 84, 7259, 67, 93, 273, 365, 18, 967, 52, 1102, 7956, 1435, 5518, 67, 869, 67, 2433, 273, 404, 18, 20, 380, 1363, 67, 84, 7259, 67, 93, 342, 5518, 67, 84, 7259, 67, 93, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif not self.has_section(section):
elif section not in self.__sections:
def has_option(self, section, option): """Check for the existence of a given option in a given section.""" if not section or section == "DEFAULT": return option in self.__defaults elif not self.has_section(section): return 0 else: option = self.optionxform(option) return option in self.__sections[section]
c2ff9051d2dace414d5ec928fa3e41edd9297992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c2ff9051d2dace414d5ec928fa3e41edd9297992/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 1564, 364, 326, 15782, 434, 279, 864, 1456, 316, 279, 864, 2442, 12123, 309, 486, 2442, 578, 2442, 422, 315, 5280, 6877, 327, 1456, 316, 365, 16186, 7606, 1327, 2442, 486, 316, 365, 16186, 11657, 30, 327, 374, 469, 30, 1456, 273, 365, 18, 3482, 92, 687, 12, 3482, 13, 327, 1456, 316, 365, 16186, 11657, 63, 3464, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 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, 711, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 1564, 364, 326, 15782, 434, 279, 864, 1456, 316, 279, 864, 2442, 12123, 309, 486, 2442, 578, 2442, 422, 315, 5280, 6877, 327, 1456, 316, 365, 16186, 7606, 1327, 2442, 486, 316, 365, 16186, 11657, 30, 327, 374, 469, 30, 1456, 273, 365, 18, 3482, 92, 687, 12, 3482, 13, 327, 1456, 316, 365, 16186, 11657, 63, 3464, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sock.connect((self.getConf("host"), self.getConf("port"))) nick = self.getConf("nick")
host = self.getConfig("host") self.sock.connect((host, self.getConfig("port"))) nick = self.getConfig("nick")
def run(self): # connect to IRC etc. self.sock = socket.socket() self.sock.connect((self.getConf("host"), self.getConf("port"))) nick = self.getConf("nick") self.sock.send("NICK %s\r\n" % nick) self.sock.send("USER %s %s bla :%s\r\n" % (nick, self.getConf("host"), nick)) for t in self.getConf("owner").split(): if t.strip().startswith("#"): self.sock.send("JOIN %s\r\n" % t.strip()) self.log.info("pyLoadIRC: Connected to %s!" % self.host) self.log.info("pyLoadIRC: Switching to listening mode!") try: self.main_loop() except IRCError, ex: self.sock.send("QUIT :byebye\r\n") print_exc() self.sock.close()
f0ef72d9754bb11d23a3064fcf0a17add7d850ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/f0ef72d9754bb11d23a3064fcf0a17add7d850ef/IRCInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 3077, 358, 467, 11529, 5527, 18, 365, 18, 15031, 273, 2987, 18, 7814, 1435, 1479, 273, 365, 18, 588, 809, 2932, 2564, 7923, 365, 18, 15031, 18, 3612, 12443, 2564, 16, 365, 18, 588, 809, 2932, 655, 6, 20349, 10909, 273, 365, 18, 588, 809, 2932, 17091, 7923, 365, 18, 15031, 18, 4661, 2932, 50, 16656, 738, 87, 64, 86, 64, 82, 6, 738, 10909, 13, 365, 18, 15031, 18, 4661, 2932, 4714, 738, 87, 738, 87, 2811, 69, 294, 9, 87, 64, 86, 64, 82, 6, 738, 261, 17091, 16, 365, 18, 588, 3976, 2932, 2564, 6, 3631, 10909, 3719, 364, 268, 316, 365, 18, 588, 3976, 2932, 8443, 20387, 4939, 13332, 309, 268, 18, 6406, 7675, 17514, 1918, 2932, 17133, 4672, 365, 18, 15031, 18, 4661, 2932, 18800, 738, 87, 64, 86, 64, 82, 6, 738, 268, 18, 6406, 10756, 365, 18, 1330, 18, 1376, 2932, 2074, 2563, 30240, 30, 6683, 828, 358, 738, 87, 4442, 738, 365, 18, 2564, 13, 365, 18, 1330, 18, 1376, 2932, 2074, 2563, 30240, 30, 13967, 310, 358, 13895, 1965, 4442, 13, 775, 30, 365, 18, 5254, 67, 6498, 1435, 225, 1335, 467, 11529, 668, 16, 431, 30, 365, 18, 15031, 18, 4661, 2932, 3500, 1285, 294, 1637, 73, 1637, 73, 64, 86, 64, 82, 7923, 1172, 67, 10075, 1435, 365, 18, 15031, 18, 4412, 1435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 3077, 358, 467, 11529, 5527, 18, 365, 18, 15031, 273, 2987, 18, 7814, 1435, 1479, 273, 365, 18, 588, 809, 2932, 2564, 7923, 365, 18, 15031, 18, 3612, 12443, 2564, 16, 365, 18, 588, 809, 2932, 655, 6, 20349, 10909, 273, 365, 18, 588, 809, 2932, 17091, 7923, 365, 18, 15031, 18, 4661, 2932, 50, 16656, 738, 87, 64, 86, 64, 82, 6, 738, 10909, 13, 365, 18, 15031, 18, 4661, 2932, 4714, 738, 87, 738, 87, 2811, 69, 294, 9, 87, 64, 86, 64, 82, 6, 738, 261, 17091, 16, 365, 18, 588, 3976, 2932, 2564, 6, 3631, 10909, 3719, 364, 268, 316, 365, 18, 588, 3976, 2932, 8443, 20387, 4939, 13332, 2 ]
def ignore_prompts_and_output(s):
__internal_test1 = ''' def foo(x): " EXAMPLES: sage: 2+2 4 " return x '''.lstrip() __internal_test2 = ''' sage: 2 + 2 4 '''.lstrip() def ignore_prompts_and_output(aString):
def hide_all(self): for C in self.__cells: try: C.set_cell_output_type('hidden') except AttributeError: pass
8dca6ec08bfce6b0fd76ef23f87e7f5c68474280 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8dca6ec08bfce6b0fd76ef23f87e7f5c68474280/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 67, 454, 12, 2890, 4672, 364, 385, 316, 365, 16186, 14741, 30, 775, 30, 385, 18, 542, 67, 3855, 67, 2844, 67, 723, 2668, 6345, 6134, 1335, 6394, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6853, 67, 454, 12, 2890, 4672, 364, 385, 316, 365, 16186, 14741, 30, 775, 30, 385, 18, 542, 67, 3855, 67, 2844, 67, 723, 2668, 6345, 6134, 1335, 6394, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
stn(self.name, 100),
stn(name, 100),
def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), stn(MAGIC, 6), stn(VERSION, 2), stn(self.uname, 32), stn(self.gname, 32), itn(self.devmajor, 8, posix), itn(self.devminor, 8, posix), stn(self.prefix, 155) ]
3354f285b958bbe8fa99b0091fcd4335251dec71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3354f285b958bbe8fa99b0091fcd4335251dec71/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 1203, 487, 279, 13908, 1160, 533, 18, 3536, 2140, 273, 306, 384, 82, 12, 529, 16, 2130, 3631, 518, 82, 12, 2890, 18, 3188, 473, 374, 4700, 4700, 16, 1725, 16, 16366, 3631, 518, 82, 12, 2890, 18, 1911, 16, 1725, 16, 16366, 3631, 518, 82, 12, 2890, 18, 15780, 16, 1725, 16, 16366, 3631, 518, 82, 12, 2890, 18, 1467, 16, 2593, 16, 16366, 3631, 518, 82, 12, 2890, 18, 10838, 16, 2593, 16, 16366, 3631, 315, 3639, 3104, 468, 6697, 652, 365, 18, 723, 16, 384, 82, 12, 2890, 18, 1232, 529, 16, 2130, 3631, 384, 82, 12, 49, 22247, 16, 1666, 3631, 384, 82, 12, 5757, 16, 576, 3631, 384, 82, 12, 2890, 18, 318, 339, 16, 3847, 3631, 384, 82, 12, 2890, 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0, 0, 0, 0, 0, 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, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 1203, 487, 279, 13908, 1160, 533, 18, 3536, 2140, 273, 306, 384, 82, 12, 529, 16, 2130, 3631, 518, 82, 12, 2890, 18, 3188, 473, 374, 4700, 4700, 16, 1725, 16, 16366, 3631, 518, 82, 12, 2890, 18, 1911, 16, 1725, 16, 16366, 3631, 518, 82, 12, 2890, 18, 15780, 16, 1725, 16, 16366, 3631, 518, 82, 12, 2890, 18, 1467, 16, 2593, 16, 16366, 3631, 518, 82, 12, 2890, 18, 10838, 16, 2593, 16, 16366, 3631, 315, 3639, 3104, 468, 6697, 652, 365, 18, 723, 16, 384, 82, 12, 2890, 18, 1232, 529, 16, 2130, 3631, 384, 82, 12, 49, 22247, 16, 1666, 2 ]
return super(account_voucher, self).unlink(self, cr, uid, unlink_ids)
return super(account_voucher, self).unlink(cr, uid, unlink_ids, context=context)
def unlink(self, cr, uid, ids, context={}): vouchers = self.read(cr, uid, ids, ['state']) unlink_ids = [] for t in vouchers: if t['state'] in ('draft', 'cancel'): unlink_ids.append(t['id']) else: raise osv.except_osv('Invalid action !', 'Cannot delete Voucher(s) which are already opened or paid !') return super(account_voucher, self).unlink(self, cr, uid, unlink_ids)
4b8f8dff839a3601d1a23e36d4720bdb69c0813d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4b8f8dff839a3601d1a23e36d4720bdb69c0813d/voucher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 331, 31952, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2019, 19486, 8255, 67, 2232, 273, 5378, 364, 268, 316, 331, 31952, 30, 309, 268, 3292, 2019, 3546, 316, 7707, 17153, 2187, 296, 10996, 11, 4672, 8255, 67, 2232, 18, 6923, 12, 88, 3292, 350, 19486, 469, 30, 1002, 1140, 90, 18, 14137, 67, 538, 90, 2668, 1941, 1301, 401, 2187, 296, 4515, 1430, 776, 14329, 12, 87, 13, 1492, 854, 1818, 10191, 578, 30591, 401, 6134, 327, 2240, 12, 4631, 67, 90, 14329, 16, 365, 2934, 318, 1232, 12, 2890, 16, 4422, 16, 4555, 16, 8255, 67, 2232, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 331, 31952, 273, 365, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 10228, 2019, 19486, 8255, 67, 2232, 273, 5378, 364, 268, 316, 331, 31952, 30, 309, 268, 3292, 2019, 3546, 316, 7707, 17153, 2187, 296, 10996, 11, 4672, 8255, 67, 2232, 18, 6923, 12, 88, 3292, 350, 19486, 469, 30, 1002, 1140, 90, 18, 14137, 67, 538, 90, 2668, 1941, 1301, 401, 2187, 296, 4515, 1430, 776, 14329, 12, 87, 13, 1492, 854, 1818, 10191, 578, 30591, 401, 6134, 327, 2240, 12, 4631, 67, 90, 14329, 16, 365, 2934, 318, 1232, 12, 2890, 16, 4422, 16, 4555, 16, 8255, 67, 2232, 13, 2, -100 ]
if (len(self.colind)>0) and (max(self.colind) >= N):
if (nzmax < nnz): raise ValueError, "Nzmax must not be less than nnz." if (nnz>0) and (max(self.colind[:nnz]) >= M):
def _check(self): M,N = self.shape if (rank(self.data) != 1) or (rank(self.colind) != 1) or \ (rank(self.indptr) != 1): raise ValueError, "Data, colind, and indptr arrays "\ "should be rank 1." if (len(self.data) != len(self.colind)): raise ValueError, "Data and row list should have same length" if (len(self.indptr) != M+1): raise ValueError, "Index pointer should be of length #rows + 1" if (len(self.colind)>0) and (max(self.colind) >= N): raise ValueError, "Column-values must be < N." if (self.indptr[-1] > len(self.colind)): raise ValueError, \ "Last value of index list should be less than "\ "the size of data list" self.nnz = self.indptr[-1] self.nzmax = len(self.colind) self.typecode = self.data.typecode() if self.typecode not in 'fdFD': self.typecode = 'd' self.data = self.data.astype('d') self.ftype = _transtabl[self.typecode]
40c0a6da933b8818f7693a49ace1b684ee2f68a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/40c0a6da933b8818f7693a49ace1b684ee2f68a1/Sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 12, 2890, 4672, 490, 16, 50, 273, 365, 18, 4867, 309, 261, 11500, 12, 2890, 18, 892, 13, 480, 404, 13, 578, 261, 11500, 12, 2890, 18, 1293, 728, 13, 480, 404, 13, 578, 521, 261, 11500, 12, 2890, 18, 728, 6723, 13, 480, 404, 4672, 1002, 2068, 16, 315, 751, 16, 645, 728, 16, 471, 28021, 5352, 1548, 315, 13139, 506, 6171, 404, 1199, 309, 261, 1897, 12, 2890, 18, 892, 13, 480, 562, 12, 2890, 18, 1293, 728, 3719, 30, 1002, 2068, 16, 315, 751, 471, 1027, 666, 1410, 1240, 1967, 769, 6, 309, 261, 1897, 12, 2890, 18, 728, 6723, 13, 480, 490, 15, 21, 4672, 1002, 2068, 16, 315, 1016, 4407, 1410, 506, 434, 769, 468, 3870, 397, 404, 6, 309, 261, 82, 94, 1896, 411, 7761, 94, 4672, 1002, 2068, 16, 315, 50, 94, 1896, 1297, 486, 506, 5242, 2353, 7761, 94, 1199, 309, 261, 9074, 94, 34, 20, 13, 471, 261, 1896, 12, 2890, 18, 1293, 728, 10531, 9074, 94, 5717, 1545, 490, 4672, 1002, 2068, 16, 315, 1494, 17, 2372, 1297, 506, 411, 423, 1199, 309, 261, 2890, 18, 728, 6723, 18919, 21, 65, 405, 562, 12, 2890, 18, 1293, 728, 3719, 30, 1002, 2068, 16, 521, 315, 3024, 460, 434, 770, 666, 1410, 506, 5242, 2353, 1548, 315, 5787, 963, 434, 501, 666, 6, 365, 18, 9074, 94, 273, 365, 18, 728, 6723, 18919, 21, 65, 365, 18, 82, 94, 1896, 273, 562, 12, 2890, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 490, 16, 50, 273, 365, 18, 4867, 309, 261, 11500, 12, 2890, 18, 892, 13, 480, 404, 13, 578, 261, 11500, 12, 2890, 18, 1293, 728, 13, 480, 404, 13, 578, 521, 261, 11500, 12, 2890, 18, 728, 6723, 13, 480, 404, 4672, 1002, 2068, 16, 315, 751, 16, 645, 728, 16, 471, 28021, 5352, 1548, 315, 13139, 506, 6171, 404, 1199, 309, 261, 1897, 12, 2890, 18, 892, 13, 480, 562, 12, 2890, 18, 1293, 728, 3719, 30, 1002, 2068, 16, 315, 751, 471, 1027, 666, 1410, 1240, 1967, 769, 6, 309, 261, 1897, 12, 2890, 18, 728, 6723, 13, 480, 490, 15, 21, 4672, 1002, 2068, 16, 315, 1016, 4407, 1410, 2 ]
if oldPath and type(oldPath) != types.StringType:
if oldPath and (type(oldPath) != types.StringType and type(oldPath) != types.UnicodeType):
def getUserResultsOutputDir(self, request, oldPath = None, oldUserName = None): """ Builds a default output path for the user if oldPath is None. If oldPath (a path to a previously processed item) is a string, then attempts to replace the old login name with the name of the current request owner. @param oldPath Old output path used for processing an item @param oldUserName Old owner of the processing @return The full output directory path """ if not isinstance(request, HttpRequest): raise TypeError, "request must be an HttpRequest Django instance" if oldPath and type(oldPath) != types.StringType: raise TypeError, "oldPath must be a string" if oldUserName and (type(oldUserName) != types.StringType and type(oldUserName) != types.UnicodeType): raise TypeError, "oldUserName must be a string" if oldPath and not oldUserName: raise TypeError, "oldUserName must be supplied along with oldPath"
253867d90460bdef9b01dcde3e04442af4825f2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/253867d90460bdef9b01dcde3e04442af4825f2f/pluginmanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 3447, 1447, 1621, 12, 2890, 16, 590, 16, 1592, 743, 273, 599, 16, 1592, 15296, 273, 599, 4672, 3536, 3998, 87, 279, 805, 876, 589, 364, 326, 729, 309, 1592, 743, 353, 599, 18, 971, 1592, 743, 261, 69, 589, 358, 279, 7243, 5204, 761, 13, 353, 279, 533, 16, 1508, 7531, 358, 1453, 326, 1592, 3925, 508, 598, 326, 508, 434, 326, 783, 590, 3410, 18, 632, 891, 1592, 743, 18613, 876, 589, 1399, 364, 4929, 392, 761, 632, 891, 1592, 15296, 18613, 3410, 434, 326, 4929, 632, 2463, 1021, 1983, 876, 1867, 589, 3536, 309, 486, 1549, 12, 2293, 16, 14069, 4672, 1002, 3580, 16, 315, 2293, 1297, 506, 392, 14069, 18480, 791, 6, 309, 1592, 743, 471, 261, 723, 12, 1673, 743, 13, 480, 1953, 18, 780, 559, 471, 618, 12, 1673, 743, 13, 480, 1953, 18, 16532, 559, 4672, 1002, 3580, 16, 315, 1673, 743, 1297, 506, 279, 533, 6, 309, 1592, 15296, 471, 261, 723, 12, 1673, 15296, 13, 480, 1953, 18, 780, 559, 471, 618, 12, 1673, 15296, 13, 480, 1953, 18, 16532, 559, 4672, 1002, 3580, 16, 315, 1673, 15296, 1297, 506, 279, 533, 6, 309, 1592, 743, 471, 486, 1592, 15296, 30, 1002, 3580, 16, 315, 1673, 15296, 1297, 506, 4580, 7563, 598, 1592, 743, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4735, 3447, 1447, 1621, 12, 2890, 16, 590, 16, 1592, 743, 273, 599, 16, 1592, 15296, 273, 599, 4672, 3536, 3998, 87, 279, 805, 876, 589, 364, 326, 729, 309, 1592, 743, 353, 599, 18, 971, 1592, 743, 261, 69, 589, 358, 279, 7243, 5204, 761, 13, 353, 279, 533, 16, 1508, 7531, 358, 1453, 326, 1592, 3925, 508, 598, 326, 508, 434, 326, 783, 590, 3410, 18, 632, 891, 1592, 743, 18613, 876, 589, 1399, 364, 4929, 392, 761, 632, 891, 1592, 15296, 18613, 3410, 434, 326, 4929, 632, 2463, 1021, 1983, 876, 1867, 589, 3536, 309, 486, 1549, 12, 2293, 16, 14069, 4672, 1002, 3580, 16, 315, 2293, 1297, 506, 392, 14069, 18480, 791, 6, 309, 2 ]
return {}
return datas['form']
def check(self, cursor, user, datas, context=None): if not (datas['form']['term1'] < datas['form']['term2'] \ < datas['form']['term3']): self.raise_user_error(cursor, error="warning", error_description="term_overlap_desc") return {}
ed5bd42bb8620f2ce5768b89c9d65497a58ae567 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/ed5bd42bb8620f2ce5768b89c9d65497a58ae567/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 3347, 16, 729, 16, 5386, 16, 819, 33, 7036, 4672, 309, 486, 261, 13178, 3292, 687, 21712, 6408, 21, 3546, 411, 5386, 3292, 687, 21712, 6408, 22, 3546, 521, 411, 5386, 3292, 687, 21712, 6408, 23, 3546, 4672, 365, 18, 11628, 67, 1355, 67, 1636, 12, 9216, 16, 555, 1546, 8551, 3113, 555, 67, 3384, 1546, 6408, 67, 17946, 67, 5569, 7923, 327, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 16, 3347, 16, 729, 16, 5386, 16, 819, 33, 7036, 4672, 309, 486, 261, 13178, 3292, 687, 21712, 6408, 21, 3546, 411, 5386, 3292, 687, 21712, 6408, 22, 3546, 521, 411, 5386, 3292, 687, 21712, 6408, 23, 3546, 4672, 365, 18, 11628, 67, 1355, 67, 1636, 12, 9216, 16, 555, 1546, 8551, 3113, 555, 67, 3384, 1546, 6408, 67, 17946, 67, 5569, 7923, 327, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assert rnn.minimizer.step_cost(x,y) < -20
if theano.config.mode=='DEBUG_MODE': assert rnn.minimizer.step_cost(x,y) < -.9 else: assert rnn.minimizer.step_cost(x,y) < -20
def test_example_rnn(): minimizer_fn = sgd_minimizer(stepsize = 0.001) n_vis = 5 n_out = 3 n_hid = 4 rnn_module = ExampleRNN(n_vis, minimizer_fn) rnn = rnn_module.make() rng = N.random.RandomState(unittest_tools.fetch_seed(7722342)) x = rng.randn(10,n_vis) y = rng.randn(10,n_out) #set y to be like x with a lag of LAG LAG = 4 y[LAG:] = x[:-LAG, 0:n_out] if 1: for i, node in enumerate(rnn.minimizer.step_cost.maker.env.toposort()): print i, node niter=1500 for i in xrange(niter): if i % 100 == 0: print i, rnn.minimizer.step_cost(x, y), rnn.minimizer.stepsize else: rnn.minimizer.step_cost(x, y) assert rnn.minimizer.step_cost(x,y) < -20 #it starts around -.28
8e158ada4c84304901f86cae4d4965e738f75c7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/8e158ada4c84304901f86cae4d4965e738f75c7a/test_inplace_opt_for_value.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8236, 67, 86, 9074, 13332, 18172, 1824, 67, 4293, 273, 11150, 72, 67, 1154, 381, 1824, 12, 4119, 1467, 273, 374, 18, 11664, 13, 225, 290, 67, 3516, 273, 1381, 290, 67, 659, 273, 890, 290, 67, 76, 350, 273, 1059, 436, 9074, 67, 2978, 273, 5090, 54, 12225, 12, 82, 67, 3516, 16, 18172, 1824, 67, 4293, 13, 225, 436, 9074, 273, 436, 9074, 67, 2978, 18, 6540, 1435, 225, 11418, 273, 423, 18, 9188, 18, 8529, 1119, 12, 4873, 3813, 67, 6642, 18, 5754, 67, 12407, 12, 4700, 3787, 5026, 22, 3719, 619, 273, 11418, 18, 7884, 82, 12, 2163, 16, 82, 67, 3516, 13, 677, 273, 11418, 18, 7884, 82, 12, 2163, 16, 82, 67, 659, 13, 225, 468, 542, 677, 358, 506, 3007, 619, 598, 279, 17241, 434, 511, 1781, 511, 1781, 273, 1059, 677, 63, 6552, 26894, 273, 619, 10531, 17, 6552, 16, 374, 30, 82, 67, 659, 65, 225, 309, 404, 30, 364, 277, 16, 756, 316, 4241, 12, 86, 9074, 18, 1154, 381, 1824, 18, 4119, 67, 12398, 18, 29261, 18, 3074, 18, 3669, 538, 499, 1435, 4672, 1172, 277, 16, 756, 225, 290, 2165, 33, 3600, 713, 364, 277, 316, 12314, 12, 82, 2165, 4672, 309, 277, 738, 2130, 422, 374, 30, 1172, 277, 16, 436, 9074, 18, 1154, 381, 1824, 18, 4119, 67, 12398, 12, 92, 16, 677, 3631, 436, 9074, 18, 1154, 381, 1824, 18, 4119, 1467, 469, 30, 436, 9074, 18, 1154, 381, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8236, 67, 86, 9074, 13332, 18172, 1824, 67, 4293, 273, 11150, 72, 67, 1154, 381, 1824, 12, 4119, 1467, 273, 374, 18, 11664, 13, 225, 290, 67, 3516, 273, 1381, 290, 67, 659, 273, 890, 290, 67, 76, 350, 273, 1059, 436, 9074, 67, 2978, 273, 5090, 54, 12225, 12, 82, 67, 3516, 16, 18172, 1824, 67, 4293, 13, 225, 436, 9074, 273, 436, 9074, 67, 2978, 18, 6540, 1435, 225, 11418, 273, 423, 18, 9188, 18, 8529, 1119, 12, 4873, 3813, 67, 6642, 18, 5754, 67, 12407, 12, 4700, 3787, 5026, 22, 3719, 619, 273, 11418, 18, 7884, 82, 12, 2163, 16, 82, 67, 3516, 13, 677, 273, 11418, 18, 7884, 82, 12, 2163, 16, 2 ]
'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function'
'defaults' is an n-tuple of the default values of the last n arguments. """ if ismethod(func): func = func.im_func if not isfunction(func): raise TypeError('arg is not a Python function')
def getargspec(func): """Get the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function' args, varargs, varkw = getargs(func.func_code) return args, varargs, varkw, func.func_defaults
6496788e7a287aedfaa61c0a87feeaeb2fbb06a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6496788e7a287aedfaa61c0a87feeaeb2fbb06a6/inspect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23172, 12, 644, 4672, 3536, 967, 326, 1257, 471, 805, 924, 434, 279, 445, 1807, 1775, 18, 225, 432, 3193, 434, 12792, 9198, 353, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 16, 3467, 2934, 296, 1968, 11, 353, 279, 666, 434, 326, 1237, 1257, 261, 305, 2026, 912, 4764, 6035, 2934, 296, 1401, 1968, 11, 471, 296, 90, 1313, 91, 11, 854, 326, 1257, 434, 326, 380, 471, 2826, 1775, 578, 599, 18, 296, 7606, 11, 353, 392, 290, 17, 8052, 434, 326, 805, 924, 434, 326, 1142, 290, 1775, 18, 3536, 225, 309, 353, 2039, 12, 644, 4672, 1326, 273, 1326, 18, 381, 67, 644, 309, 486, 353, 915, 12, 644, 4672, 1002, 3580, 2668, 3175, 353, 486, 279, 6600, 445, 6134, 833, 16, 19732, 16, 569, 9987, 273, 336, 1968, 12, 644, 18, 644, 67, 710, 13, 327, 833, 16, 19732, 16, 569, 9987, 16, 1326, 18, 644, 67, 7606, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23172, 12, 644, 4672, 3536, 967, 326, 1257, 471, 805, 924, 434, 279, 445, 1807, 1775, 18, 225, 432, 3193, 434, 12792, 9198, 353, 2106, 30, 261, 1968, 16, 19732, 16, 569, 9987, 16, 3467, 2934, 296, 1968, 11, 353, 279, 666, 434, 326, 1237, 1257, 261, 305, 2026, 912, 4764, 6035, 2934, 296, 1401, 1968, 11, 471, 296, 90, 1313, 91, 11, 854, 326, 1257, 434, 326, 380, 471, 2826, 1775, 578, 599, 18, 296, 7606, 11, 353, 392, 290, 17, 8052, 434, 326, 805, 924, 434, 326, 1142, 290, 1775, 18, 3536, 225, 309, 353, 2039, 12, 644, 4672, 1326, 273, 1326, 18, 381, 67, 644, 309, 486, 353, 915, 12, 644, 4672, 1002, 3580, 2 ]
if len(value) or keep_blank_values: if dict.has_key (name): dict[name].append(value) else: dict[name] = [value] return dict
r.append(name, value) return r
def parse_qs(qs, keep_blank_values=0, strict_parsing=0): """Parse a query given as a string argument. Arguments: qs: URL-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in URL encoded queries should be treated as blank strings. A true value inicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included. strict_parsing: flag indicating what to do with parsing errors. If false (the default), errors are silently ignored. If true, errors raise a ValueError exception. """ name_value_pairs = string.splitfields(qs, '&') dict = {} for name_value in name_value_pairs: nv = string.splitfields(name_value, '=') if len(nv) != 2: if strict_parsing: raise ValueError, "bad query field: %s" % `name_value` continue name = urllib.unquote(string.replace(nv[0], '+', ' ')) value = urllib.unquote(string.replace(nv[1], '+', ' ')) if len(value) or keep_blank_values: if dict.has_key (name): dict[name].append(value) else: dict[name] = [value] return dict
4b586b9580d56feba0bd5380153e55fef13be2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4b586b9580d56feba0bd5380153e55fef13be2cf/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 12926, 12, 12926, 16, 3455, 67, 12111, 67, 2372, 33, 20, 16, 5490, 67, 24979, 33, 20, 4672, 3536, 3201, 279, 843, 864, 487, 279, 533, 1237, 18, 225, 13599, 30, 225, 8719, 30, 1976, 17, 10787, 843, 533, 358, 506, 2707, 225, 3455, 67, 12111, 67, 2372, 30, 2982, 11193, 2856, 7052, 924, 316, 1976, 3749, 6218, 1410, 506, 13974, 487, 7052, 2064, 18, 432, 638, 460, 316, 8242, 716, 7052, 87, 1410, 506, 25227, 487, 7052, 2064, 18, 225, 1021, 805, 629, 460, 8527, 716, 7052, 924, 854, 358, 506, 5455, 471, 13974, 487, 309, 2898, 4591, 486, 5849, 18, 225, 5490, 67, 24979, 30, 2982, 11193, 4121, 358, 741, 598, 5811, 1334, 18, 971, 629, 261, 5787, 805, 3631, 1334, 854, 22274, 5455, 18, 971, 638, 16, 1334, 1002, 279, 2068, 1520, 18, 3536, 508, 67, 1132, 67, 11545, 273, 533, 18, 4939, 2821, 12, 12926, 16, 5183, 6134, 2065, 273, 2618, 364, 508, 67, 1132, 316, 508, 67, 1132, 67, 11545, 30, 8779, 273, 533, 18, 4939, 2821, 12, 529, 67, 1132, 16, 5214, 13, 309, 562, 12, 16588, 13, 480, 576, 30, 309, 5490, 67, 24979, 30, 1002, 2068, 16, 315, 8759, 843, 652, 30, 738, 87, 6, 738, 1375, 529, 67, 1132, 68, 1324, 508, 273, 11527, 18, 318, 6889, 12, 1080, 18, 2079, 12, 16588, 63, 20, 6487, 15126, 2187, 296, 296, 3719, 460, 273, 11527, 18, 318, 6889, 12, 1080, 18, 2079, 12, 16588, 63, 21, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12926, 12, 12926, 16, 3455, 67, 12111, 67, 2372, 33, 20, 16, 5490, 67, 24979, 33, 20, 4672, 3536, 3201, 279, 843, 864, 487, 279, 533, 1237, 18, 225, 13599, 30, 225, 8719, 30, 1976, 17, 10787, 843, 533, 358, 506, 2707, 225, 3455, 67, 12111, 67, 2372, 30, 2982, 11193, 2856, 7052, 924, 316, 1976, 3749, 6218, 1410, 506, 13974, 487, 7052, 2064, 18, 432, 638, 460, 316, 8242, 716, 7052, 87, 1410, 506, 25227, 487, 7052, 2064, 18, 225, 1021, 805, 629, 460, 8527, 716, 7052, 924, 854, 358, 506, 5455, 471, 13974, 487, 309, 2898, 4591, 486, 5849, 18, 225, 5490, 67, 24979, 30, 2982, 11193, 4121, 358, 741, 598, 5811, 1334, 18, 2 ]
if command_template is not None, then program_string == program name and argv is given by command_template with %s replaced by the full path to the program. Else, program_string is interpreted as a shell command with first name being the program name.
Return the program name and argv of the process that would be executed by run_program(program_string, command_template).
def run_program(program_string, command_template=None): """ if command_template is not None, then program_string == program name and argv is given by command_template with %s replaced by the full path to the program. Else, program_string is interpreted as a shell command with first name being the program name. """ env = Params.g_build.env_of_name('default') if command_template in (None, '%s'): argv = shlex.split(program_string) program_name = argv[0] try: program_obj = find_program(program_name, env) except ValueError, ex: Params.fatal(str(ex)) try: program_node = program_obj.path.find_build(ccroot.get_target_name(program_obj)) except AttributeError: Params.fatal("%s does not appear to be a program" % (program_name,)) execvec = [program_node.abspath(env)] + argv[1:] else: program_name = program_string try: program_obj = find_program(program_name, env) except ValueError, ex: Params.fatal(str(ex)) try: program_node = program_obj.path.find_build(ccroot.get_target_name(program_obj)) except AttributeError: Params.fatal("%s does not appear to be a program" % (program_name,)) execvec = shlex.split(command_template % (program_node.abspath(env),)) former_cwd = os.getcwd() if (Params.g_options.cwd_launch): os.chdir(Params.g_options.cwd_launch) else: os.chdir(Params.g_cwd_launch) try: retval = run_argv(execvec) finally: os.chdir(former_cwd) return retval
b96c9d8299fab0aa1027363c989c5c55f374ac5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12851/b96c9d8299fab0aa1027363c989c5c55f374ac5d/wutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 12890, 12, 12890, 67, 1080, 16, 1296, 67, 3202, 33, 7036, 4672, 3536, 2000, 326, 5402, 508, 471, 5261, 434, 326, 1207, 716, 4102, 506, 7120, 635, 1086, 67, 12890, 12, 12890, 67, 1080, 16, 1296, 67, 3202, 2934, 3536, 1550, 273, 8861, 18, 75, 67, 3510, 18, 3074, 67, 792, 67, 529, 2668, 1886, 6134, 225, 309, 1296, 67, 3202, 316, 261, 7036, 16, 1995, 87, 11, 4672, 5261, 273, 27180, 18, 4939, 12, 12890, 67, 1080, 13, 5402, 67, 529, 273, 5261, 63, 20, 65, 225, 775, 30, 5402, 67, 2603, 273, 1104, 67, 12890, 12, 12890, 67, 529, 16, 1550, 13, 1335, 2068, 16, 431, 30, 8861, 18, 30709, 12, 701, 12, 338, 3719, 225, 775, 30, 5402, 67, 2159, 273, 5402, 67, 2603, 18, 803, 18, 4720, 67, 3510, 12, 952, 3085, 18, 588, 67, 3299, 67, 529, 12, 12890, 67, 2603, 3719, 1335, 6394, 30, 8861, 18, 30709, 27188, 87, 1552, 486, 9788, 358, 506, 279, 5402, 6, 738, 261, 12890, 67, 529, 16, 3719, 225, 1196, 8799, 273, 306, 12890, 67, 2159, 18, 5113, 803, 12, 3074, 25887, 397, 5261, 63, 21, 26894, 225, 469, 30, 225, 5402, 67, 529, 273, 5402, 67, 1080, 775, 30, 5402, 67, 2603, 273, 1104, 67, 12890, 12, 12890, 67, 529, 16, 1550, 13, 1335, 2068, 16, 431, 30, 8861, 18, 30709, 12, 701, 12, 338, 3719, 775, 30, 5402, 67, 2159, 273, 5402, 67, 2603, 18, 803, 18, 4720, 67, 3510, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12890, 12, 12890, 67, 1080, 16, 1296, 67, 3202, 33, 7036, 4672, 3536, 2000, 326, 5402, 508, 471, 5261, 434, 326, 1207, 716, 4102, 506, 7120, 635, 1086, 67, 12890, 12, 12890, 67, 1080, 16, 1296, 67, 3202, 2934, 3536, 1550, 273, 8861, 18, 75, 67, 3510, 18, 3074, 67, 792, 67, 529, 2668, 1886, 6134, 225, 309, 1296, 67, 3202, 316, 261, 7036, 16, 1995, 87, 11, 4672, 5261, 273, 27180, 18, 4939, 12, 12890, 67, 1080, 13, 5402, 67, 529, 273, 5261, 63, 20, 65, 225, 775, 30, 5402, 67, 2603, 273, 1104, 67, 12890, 12, 12890, 67, 529, 16, 1550, 13, 1335, 2068, 16, 431, 30, 8861, 18, 30709, 12, 701, 12, 338, 2 ]
'module': mod.name, 'href': mod.branch.module})
'module': mod.name, 'href': mod.branch.module}))
def run(self, config, options, args): module_set = jhbuild.moduleset.load(config) module_list = module_set.get_full_module_list() for mod in module_list: if mod.type in ('meta', 'tarball'): continue
0570f19b5c1b181ec68c308c7fc78d92703f711b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/0570f19b5c1b181ec68c308c7fc78d92703f711b/checkmodulesets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 642, 16, 702, 16, 833, 4672, 1605, 67, 542, 273, 525, 76, 3510, 18, 6400, 278, 18, 945, 12, 1425, 13, 1605, 67, 1098, 273, 1605, 67, 542, 18, 588, 67, 2854, 67, 2978, 67, 1098, 1435, 364, 681, 316, 1605, 67, 1098, 30, 309, 681, 18, 723, 316, 7707, 3901, 2187, 296, 88, 23846, 11, 4672, 1324, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 642, 16, 702, 16, 833, 4672, 1605, 67, 542, 273, 525, 76, 3510, 18, 6400, 278, 18, 945, 12, 1425, 13, 1605, 67, 1098, 273, 1605, 67, 542, 18, 588, 67, 2854, 67, 2978, 67, 1098, 1435, 364, 681, 316, 1605, 67, 1098, 30, 309, 681, 18, 723, 316, 7707, 3901, 2187, 296, 88, 23846, 11, 4672, 1324, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.unlink(TESTFN)
test_support.unlink(TESTFN)
def test_codingspec(self): try: for enc in ALL_CJKENCODINGS: print('# coding:', enc, file=io.open(TESTFN, 'w')) execfile(TESTFN) finally: os.unlink(TESTFN)
e359ad4c9d7893138c0c6b01c50c2fca1839a821 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e359ad4c9d7893138c0c6b01c50c2fca1839a821/test_multibytecodec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1559, 899, 705, 12, 2890, 4672, 775, 30, 364, 2446, 316, 8061, 67, 39, 19474, 14672, 55, 30, 1172, 2668, 7, 14848, 30, 2187, 2446, 16, 585, 33, 1594, 18, 3190, 12, 16961, 19793, 16, 296, 91, 26112, 1196, 768, 12, 16961, 19793, 13, 3095, 30, 1140, 18, 318, 1232, 12, 16961, 19793, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1559, 899, 705, 12, 2890, 4672, 775, 30, 364, 2446, 316, 8061, 67, 39, 19474, 14672, 55, 30, 1172, 2668, 7, 14848, 30, 2187, 2446, 16, 585, 33, 1594, 18, 3190, 12, 16961, 19793, 16, 296, 91, 26112, 1196, 768, 12, 16961, 19793, 13, 3095, 30, 1140, 18, 318, 1232, 12, 16961, 19793, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return True
return True
def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(); files += [report_file] except Exception,e: continue return files
5a558b6b1034593b8c71deeda96db7e8dd5329c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5a558b6b1034593b8c71deeda96db7e8dd5329c3/smtpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4820, 12, 3353, 16, 4555, 16, 2605, 16, 3258, 16, 508, 33, 8381, 4672, 1390, 273, 5378, 364, 612, 316, 3258, 30, 775, 30, 1156, 273, 21954, 4227, 18, 25635, 12, 6006, 13, 261, 2088, 16, 740, 13, 273, 1156, 18, 2640, 12, 3353, 16, 4555, 16, 306, 350, 6487, 10615, 2618, 13, 309, 486, 508, 30, 2605, 67, 768, 273, 1173, 5645, 19, 20195, 11, 15, 609, 12, 350, 13, 397, 2418, 7699, 11, 469, 30, 2605, 67, 768, 273, 508, 225, 4253, 273, 1696, 12, 6006, 67, 768, 11189, 9464, 15, 6134, 4253, 18, 2626, 12, 2088, 1769, 4253, 18, 4412, 5621, 1390, 1011, 306, 6006, 67, 768, 65, 1335, 1185, 16, 73, 30, 1324, 327, 1390, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4820, 12, 3353, 16, 4555, 16, 2605, 16, 3258, 16, 508, 33, 8381, 4672, 1390, 273, 5378, 364, 612, 316, 3258, 30, 775, 30, 1156, 273, 21954, 4227, 18, 25635, 12, 6006, 13, 261, 2088, 16, 740, 13, 273, 1156, 18, 2640, 12, 3353, 16, 4555, 16, 306, 350, 6487, 10615, 2618, 13, 309, 486, 508, 30, 2605, 67, 768, 273, 1173, 5645, 19, 20195, 11, 15, 609, 12, 350, 13, 397, 2418, 7699, 11, 469, 30, 2605, 67, 768, 273, 508, 225, 4253, 273, 1696, 12, 6006, 67, 768, 11189, 9464, 15, 6134, 4253, 18, 2626, 12, 2088, 1769, 4253, 18, 4412, 5621, 1390, 1011, 306, 6006, 67, 768, 65, 1335, 1185, 16, 73, 30, 1324, 2 ]
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk)
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
def __init__(self, screenName=None, baseName=None, className='Tk', useTk=1): """Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will be created. BASENAME will be used for the identification of the profile file (see readprofile). It is constructed from sys.argv[0] without extensions if None is given. CLASSNAME is the name of the widget class.""" self.master = None self.children = {} self._tkloaded = 0 # to avoid recursions in the getattr code in case of failure, we # ensure that self.tk is always _something_. self.tk = None if baseName is None: import sys, os baseName = os.path.basename(sys.argv[0]) baseName, ext = os.path.splitext(baseName) if ext not in ('.py', '.pyc', '.pyo'): baseName = baseName + ext interactive = 0 self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk) if useTk: self._loadtk() self.readprofile(baseName, className)
194397e70f7430d928cab4d48a7d0f93549e7048 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/194397e70f7430d928cab4d48a7d0f93549e7048/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 461, 33, 7036, 16, 16162, 33, 7036, 16, 2658, 2218, 56, 79, 2187, 999, 56, 79, 33, 21, 4672, 3536, 990, 279, 394, 7202, 2815, 3604, 603, 5518, 348, 5458, 1157, 1985, 18, 432, 394, 399, 830, 16048, 903, 506, 2522, 18, 10250, 1985, 903, 506, 1399, 364, 326, 24739, 434, 326, 3042, 585, 261, 5946, 855, 5040, 2934, 2597, 353, 15688, 628, 2589, 18, 19485, 63, 20, 65, 2887, 4418, 309, 599, 353, 864, 18, 7383, 1985, 353, 326, 508, 434, 326, 3604, 667, 12123, 365, 18, 7525, 273, 599, 365, 18, 5906, 273, 2618, 365, 6315, 16099, 4230, 273, 374, 468, 358, 4543, 283, 2789, 1115, 316, 326, 3869, 981, 316, 648, 434, 5166, 16, 732, 468, 3387, 716, 365, 18, 16099, 353, 3712, 389, 30289, 27799, 365, 18, 16099, 273, 599, 309, 16162, 353, 599, 30, 1930, 2589, 16, 1140, 16162, 273, 1140, 18, 803, 18, 13909, 12, 9499, 18, 19485, 63, 20, 5717, 16162, 16, 1110, 273, 1140, 18, 803, 18, 4939, 408, 12, 1969, 461, 13, 309, 1110, 486, 316, 7707, 18, 2074, 2187, 2418, 2074, 71, 2187, 2418, 2074, 83, 11, 4672, 16162, 273, 16162, 397, 1110, 12625, 273, 374, 365, 18, 16099, 273, 389, 16099, 2761, 18, 2640, 12, 9252, 461, 16, 16162, 16, 2658, 16, 12625, 16, 341, 304, 869, 489, 87, 16, 999, 56, 79, 16, 3792, 16, 999, 13, 309, 999, 56, 79, 30, 365, 6315, 945, 16099, 1435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5518, 461, 33, 7036, 16, 16162, 33, 7036, 16, 2658, 2218, 56, 79, 2187, 999, 56, 79, 33, 21, 4672, 3536, 990, 279, 394, 7202, 2815, 3604, 603, 5518, 348, 5458, 1157, 1985, 18, 432, 394, 399, 830, 16048, 903, 506, 2522, 18, 10250, 1985, 903, 506, 1399, 364, 326, 24739, 434, 326, 3042, 585, 261, 5946, 855, 5040, 2934, 2597, 353, 15688, 628, 2589, 18, 19485, 63, 20, 65, 2887, 4418, 309, 599, 353, 864, 18, 7383, 1985, 353, 326, 508, 434, 326, 3604, 667, 12123, 365, 18, 7525, 273, 599, 365, 18, 5906, 273, 2618, 365, 6315, 16099, 4230, 273, 374, 468, 358, 4543, 283, 2789, 1115, 316, 326, 3869, 2 ]
for name in addons.get_modules(): mod_name = name if name[-4:]=='.zip': mod_name=name[:-4]
for mod_name in addons.get_modules():
def update_list(self, cr, uid, context={}): robj = self.pool.get('ir.module.repository') res = [0, 0] # [update, add]
b1ea2dafc3fca01afc5438af083ef47873ab4456 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/b1ea2dafc3fca01afc5438af083ef47873ab4456/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1098, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 721, 441, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2978, 18, 9071, 6134, 400, 273, 306, 20, 16, 374, 65, 468, 306, 2725, 16, 527, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1089, 67, 1098, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 721, 441, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2978, 18, 9071, 6134, 400, 273, 306, 20, 16, 374, 65, 468, 306, 2725, 16, 527, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
image = self(letter)
image = self.image(letter)
def fixed_point(self, letter): r""" Returns the fixed point of ``self`` beginning by the given ``letter``.
91d4f00c9bd422ee38a0c55f76c789b46ffb73c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/91d4f00c9bd422ee38a0c55f76c789b46ffb73c1/morphism.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5499, 67, 1153, 12, 2890, 16, 9471, 4672, 436, 8395, 2860, 326, 5499, 1634, 434, 12176, 2890, 10335, 8435, 635, 326, 864, 12176, 13449, 68, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5499, 67, 1153, 12, 2890, 16, 9471, 4672, 436, 8395, 2860, 326, 5499, 1634, 434, 12176, 2890, 10335, 8435, 635, 326, 864, 12176, 13449, 68, 8338, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
testRealAllInput.timeout = 5
def testRealAllInput(self): cgiFilename = os.path.abspath(self.mktemp()) cgiFile = file(cgiFilename, 'wt') cgiFile.write(READALLINPUT_CGI) cgiFile.close()
497f67db80dbfffc7109051e230f6f09ac089187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/497f67db80dbfffc7109051e230f6f09ac089187/test_cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6955, 1595, 1210, 12, 2890, 4672, 276, 10052, 5359, 273, 1140, 18, 803, 18, 5113, 803, 12, 2890, 18, 24816, 5814, 10756, 276, 10052, 812, 273, 585, 12, 19062, 5359, 16, 296, 6046, 6134, 276, 10052, 812, 18, 2626, 12, 6949, 4685, 15934, 67, 39, 13797, 13, 276, 10052,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6955, 1595, 1210, 12, 2890, 4672, 276, 10052, 5359, 273, 1140, 18, 803, 18, 5113, 803, 12, 2890, 18, 24816, 5814, 10756, 276, 10052, 812, 273, 585, 12, 19062, 5359, 16, 296, 6046, 6134, 276, 10052, 812, 18, 2626, 12, 6949, 4685, 15934, 67, 39, 13797, 13, 276, 10052, 812, 18, 4412, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.setText(fname)
def openFileChooserDialog(self): """ Prompts the user to choose a file from disk and inserts the full path into the lineEdit widget. """ _dir = getDefaultWorkingDirectory() if self.directory: if os.path.isdir(self.directory): _dir = self.directory
b3200c1af3d588daa7f79171b33d4bd69f3aeeef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b3200c1af3d588daa7f79171b33d4bd69f3aeeef/PM_FileChooser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31622, 17324, 6353, 12, 2890, 4672, 3536, 17552, 1092, 326, 729, 358, 9876, 279, 585, 628, 4234, 471, 15607, 326, 1983, 589, 1368, 326, 980, 4666, 3604, 18, 3536, 225, 389, 1214, 273, 4829, 14836, 2853, 1435, 225, 309, 365, 18, 5149, 30, 309, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 5149, 4672, 389, 1214, 273, 365, 18, 5149, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31622, 17324, 6353, 12, 2890, 4672, 3536, 17552, 1092, 326, 729, 358, 9876, 279, 585, 628, 4234, 471, 15607, 326, 1983, 589, 1368, 326, 980, 4666, 3604, 18, 3536, 225, 389, 1214, 273, 4829, 14836, 2853, 1435, 225, 309, 365, 18, 5149, 30, 309, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 5149, 4672, 389, 1214, 273, 365, 18, 5149, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import sys
import sys, time
def purge(base_dirs, gigs, ignore, dry_run=False): """Delete directories under `base_dirs` until `gigs` GB are free Will not delete directories listed in the ignore list.""" gigs *= 1024 * 1024 * 1024 if freespace(base_dirs[0]) >= gigs: return dirs = [] for base_dir in base_dirs: if os.path.exists(base_dir): for d in os.listdir(base_dir): if os.path.isdir(os.path.join(base_dir, d)) and \ d not in ignore: dirs.append(os.path.join(base_dir, d)) dirs.sort(mtime_sort) while dirs and freespace(base_dirs[0]) < gigs: d = dirs.pop(0) print "Deleting", d if not dry_run: try: clobber_path=d+clobber_suffix if os.path.exists(clobber_path): rmdirRecursive(clobber_path) # Prevent repeated moving. if d.endswith(clobber_suffix): rmdirRecursive(d) else: shutil.move(d, clobber_path) rmdirRecursive(clobber_path) except: print >>sys.stderr, "Couldn't purge %s properly. Skipping." % d
3b0b21e1ed368c4d9e46e35798e4becfbc7f3211 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/3b0b21e1ed368c4d9e46e35798e4becfbc7f3211/purge_builds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 1969, 67, 8291, 16, 314, 360, 87, 16, 2305, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 2613, 6402, 3613, 1375, 1969, 67, 8291, 68, 3180, 1375, 75, 360, 87, 68, 25069, 854, 4843, 225, 9980, 486, 1430, 6402, 12889, 316, 326, 2305, 666, 12123, 314, 360, 87, 6413, 6250, 380, 6250, 380, 6250, 225, 309, 284, 5312, 909, 12, 1969, 67, 8291, 63, 20, 5717, 1545, 314, 360, 87, 30, 327, 225, 7717, 273, 5378, 364, 1026, 67, 1214, 316, 1026, 67, 8291, 30, 309, 1140, 18, 803, 18, 1808, 12, 1969, 67, 1214, 4672, 364, 302, 316, 1140, 18, 1098, 1214, 12, 1969, 67, 1214, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 538, 18, 803, 18, 5701, 12, 1969, 67, 1214, 16, 302, 3719, 471, 521, 302, 486, 316, 2305, 30, 7717, 18, 6923, 12, 538, 18, 803, 18, 5701, 12, 1969, 67, 1214, 16, 302, 3719, 7717, 18, 3804, 12, 10838, 67, 3804, 13, 225, 1323, 7717, 471, 284, 5312, 909, 12, 1969, 67, 8291, 63, 20, 5717, 411, 314, 360, 87, 30, 302, 273, 7717, 18, 5120, 12, 20, 13, 1172, 315, 20433, 3113, 302, 309, 486, 10299, 67, 2681, 30, 775, 30, 30152, 67, 803, 33, 72, 15, 71, 1295, 744, 67, 8477, 309, 1140, 18, 803, 18, 1808, 12, 71, 1295, 744, 67, 803, 4672, 21306, 10483, 12, 71, 1295, 744, 67, 803, 13, 468, 19412, 12533, 12499, 18, 309, 302, 18, 5839, 1918, 12, 71, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11668, 12, 1969, 67, 8291, 16, 314, 360, 87, 16, 2305, 16, 10299, 67, 2681, 33, 8381, 4672, 3536, 2613, 6402, 3613, 1375, 1969, 67, 8291, 68, 3180, 1375, 75, 360, 87, 68, 25069, 854, 4843, 225, 9980, 486, 1430, 6402, 12889, 316, 326, 2305, 666, 12123, 314, 360, 87, 6413, 6250, 380, 6250, 380, 6250, 225, 309, 284, 5312, 909, 12, 1969, 67, 8291, 63, 20, 5717, 1545, 314, 360, 87, 30, 327, 225, 7717, 273, 5378, 364, 1026, 67, 1214, 316, 1026, 67, 8291, 30, 309, 1140, 18, 803, 18, 1808, 12, 1969, 67, 1214, 4672, 364, 302, 316, 1140, 18, 1098, 1214, 12, 1969, 67, 1214, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 2 ]
Return the derived series of this group as a list of
Return the lower central series of this group as a list of
def lower_central_series(self): """ Return the derived series of this group as a list of permutation groups.
56e08d94620643e7e8ad3c83a3d29cf2e4dcc6d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/56e08d94620643e7e8ad3c83a3d29cf2e4dcc6d4/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2612, 67, 71, 12839, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 2612, 18291, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2612, 67, 71, 12839, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 2612, 18291, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
eq(int(time.mktime(timetup[:9])), 1044470846)
t = int(time.mktime(timetup[:9])) eq(time.localtime(t)[:6], timetup[:6])
def test_parsedate_acceptable_to_time_functions(self): eq = self.assertEqual timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup)), 1044470846) eq(int(time.strftime('%Y', timetup)), 2003) timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup[:9])), 1044470846) eq(int(time.strftime('%Y', timetup[:9])), 2003)
08562c411899c7a6afd61f96417afe027bfc1dbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/08562c411899c7a6afd61f96417afe027bfc1dbb/test_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2670, 712, 67, 9436, 429, 67, 869, 67, 957, 67, 10722, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 26668, 416, 273, 6091, 18, 2670, 712, 2668, 25, 5782, 70, 4044, 23, 5958, 30, 9462, 30, 5558, 300, 6840, 713, 6134, 7555, 12, 474, 12, 957, 18, 24816, 957, 12, 8584, 278, 416, 13, 3631, 1728, 6334, 24, 7301, 5193, 26, 13, 7555, 12, 474, 12, 957, 18, 701, 9982, 29909, 61, 2187, 26668, 416, 13, 3631, 4044, 23, 13, 26668, 416, 273, 6091, 18, 2670, 712, 67, 12994, 2668, 25, 5782, 70, 4044, 23, 5958, 30, 9462, 30, 5558, 300, 6840, 713, 6134, 268, 273, 509, 12, 957, 18, 24816, 957, 12, 8584, 278, 416, 10531, 29, 22643, 7555, 12, 957, 18, 3729, 957, 12, 88, 13, 10531, 26, 6487, 26668, 416, 10531, 26, 5717, 7555, 12, 474, 12, 957, 18, 701, 9982, 29909, 61, 2187, 26668, 416, 10531, 29, 5717, 3631, 4044, 23, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2670, 712, 67, 9436, 429, 67, 869, 67, 957, 67, 10722, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 26668, 416, 273, 6091, 18, 2670, 712, 2668, 25, 5782, 70, 4044, 23, 5958, 30, 9462, 30, 5558, 300, 6840, 713, 6134, 7555, 12, 474, 12, 957, 18, 24816, 957, 12, 8584, 278, 416, 13, 3631, 1728, 6334, 24, 7301, 5193, 26, 13, 7555, 12, 474, 12, 957, 18, 701, 9982, 29909, 61, 2187, 26668, 416, 13, 3631, 4044, 23, 13, 26668, 416, 273, 6091, 18, 2670, 712, 67, 12994, 2668, 25, 5782, 70, 4044, 23, 5958, 30, 9462, 30, 5558, 300, 6840, 713, 6134, 268, 273, 509, 12, 957, 18, 24816, 957, 12, 8584, 278, 2 ]
data.append('Connection: close')
def to_str(self): state = self.state
6c2d2d650798878146be18225f8e3ae8bf1ff2a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/6c2d2d650798878146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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 358, 67, 701, 12, 2890, 4672, 919, 273, 365, 18, 2019, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
encodings = [self.options.input_encoding, 'utf-8']
encodings = [self.settings.input_encoding, 'utf-8']
def decode(self, data): """ Decode a string, `data`, heuristically. Raise UnicodeError if unsuccessful.
3f9490a061df406cd80f543206a76f29cb5b8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/3f9490a061df406cd80f543206a76f29cb5b8e57/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 501, 4672, 3536, 6209, 279, 533, 16, 1375, 892, 9191, 25833, 1230, 18, 20539, 9633, 668, 309, 29411, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 12, 2890, 16, 501, 4672, 3536, 6209, 279, 533, 16, 1375, 892, 9191, 25833, 1230, 18, 20539, 9633, 668, 309, 29411, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: a2 = WeightRing(WeylCharacterRing(['A',2])) sage: a2(-1) -a2(0,0,0)
sage: a2 = WeightRing(WeylCharacterRing(['A',2])) sage: a2(-1) -a2(0,0,0)
def __call__(self, *args): """ Coerces the element into the ring.
af4f5f46d5016de6167398d67987ba1855db181e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af4f5f46d5016de6167398d67987ba1855db181e/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 3536, 7695, 264, 764, 326, 930, 1368, 326, 9221, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 380, 1968, 4672, 3536, 7695, 264, 764, 326, 930, 1368, 326, 9221, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
os.system('7za.exe x -y -o"%s" "%s" ' % (os.path.dirname(options.osmInput),options.osmInput))
if os.path.dirname(options.osmInput)=="": os.system('7za.exe x -y "%s"' % (options.osmInput)) else: os.system('7za.exe x -y "%s" -o"%s" ' % (options.osmInput,os.path.dirname(options.osmInput)))
def createKmlV2(self,kmlFileName="output",heightFactor=10000,threshold=0.005): """ A 'lighter' kml version focused on users and polygons Args: kmlFileName: the name of the resulting kml (the osc filename per default) heightFactor: artifical altitude of the nodes (to see them better when far away) threshold: lat or long detla to link together the nodes (they aer not ways) to better visualize that this nodes belong to the same user. Output: Creates a kml file """ print "Creating KML file..." myKml=KML.KML(kmlFileName) statsDescription=self.globalStats() myKml.placemarkDescriptive(description=statsDescription,name=kmlFileName) for userName, userStat in sorted(self.statsUsers.iteritems()): myKml.folderHead("<![CDATA["+unicode(userName)\ +"("+str(self.statsUsers[userName][0])+")]]>") for pathType in [0,1,2]: ## Extract created nodes-"path" for this user # cut subpaths if next node is above the threshold lonThreshold=threshold latThreshold=threshold # paths=[] # list of cut paths firstNode=True thisPath="" for coordinate in self.statsUsers[userName][4][pathType]: thisLat=coordinate[0] thisLong=coordinate[1] thisNode=thisLong+","+thisLat+","\ +str(heightFactor)+" " if firstNode==True: thisPath+=thisNode prevLat=thisLat prevLong=thisLong firstNode=False else: #distanceThreshold=sqrt((thisLat-prevLat)**2 + (thisLong-prevLong)**2) dLon=abs(float(thisLong)-float(prevLong)) dLat=abs(float(thisLat)-float(prevLat)) if (dLon > lonThreshold) and (dLat > latThreshold): #print dLat, paths.append(thisPath) thisPath="" elif (dLon < lonThreshold) and (dLat < latThreshold): thisPath+=thisNode prevLat=thisLat prevLong=thisLong paths.append(thisPath+thisNode) #print paths #if len(self.statsUsers[userName][4][0])!=0: pathCreated=pathCreated+thisNode if pathType==0: lineStyle="lineStyleCreated" genre="Created" if pathType==1: lineStyle="lineStyleModified" genre="Modified" if pathType==2: lineStyle="lineStyleDeleted" genre="Deleted" trackCut=1 for path in paths: if path!="": myKml.placemarkPath(pathName=genre+"P"+str(trackCut), coordinates=path,style=lineStyle) trackCut+=1 #if userName ==None: print "Anonymous users detected" myKml.folderTail() myKml.close()
8d466c020177ff485302ac9c3f4597e8ab68015b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1927/8d466c020177ff485302ac9c3f4597e8ab68015b/osmaware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 47, 781, 58, 22, 12, 2890, 16, 79, 781, 4771, 1546, 2844, 3113, 4210, 6837, 33, 23899, 16, 8699, 33, 20, 18, 28564, 4672, 3536, 432, 296, 23624, 11, 417, 781, 1177, 22397, 603, 3677, 471, 17294, 6634, 30, 417, 781, 4771, 30, 326, 508, 434, 326, 8156, 417, 781, 261, 5787, 31476, 1544, 1534, 805, 13, 2072, 6837, 30, 3688, 1507, 287, 23331, 434, 326, 2199, 261, 869, 2621, 2182, 7844, 1347, 10247, 10804, 13, 5573, 30, 2516, 578, 1525, 3023, 11821, 358, 1692, 9475, 326, 2199, 261, 451, 402, 279, 264, 486, 16226, 13, 358, 7844, 11623, 554, 716, 333, 2199, 10957, 358, 326, 1967, 729, 18, 3633, 30, 10210, 279, 417, 781, 585, 3536, 225, 1172, 315, 11092, 1475, 1495, 585, 7070, 3399, 47, 781, 33, 47, 1495, 18, 47, 1495, 12, 79, 781, 4771, 13, 3177, 3291, 33, 2890, 18, 6347, 4195, 1435, 3399, 47, 781, 18, 964, 3355, 40, 31812, 12, 3384, 33, 5296, 3291, 16, 529, 33, 79, 781, 4771, 13, 225, 364, 12065, 16, 729, 5000, 316, 3115, 12, 2890, 18, 5296, 6588, 18, 2165, 3319, 1435, 4672, 3399, 47, 781, 18, 5609, 1414, 2932, 5586, 63, 18375, 9614, 15, 9124, 12, 1355, 461, 5153, 397, 6, 2932, 15, 701, 12, 2890, 18, 5296, 6588, 63, 1355, 461, 6362, 20, 5717, 15, 7923, 13563, 2984, 13, 364, 589, 559, 316, 306, 20, 16, 21, 16, 22, 14542, 7541, 8152, 2522, 2199, 10951, 803, 6, 364, 333, 729, 468, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 47, 781, 58, 22, 12, 2890, 16, 79, 781, 4771, 1546, 2844, 3113, 4210, 6837, 33, 23899, 16, 8699, 33, 20, 18, 28564, 4672, 3536, 432, 296, 23624, 11, 417, 781, 1177, 22397, 603, 3677, 471, 17294, 6634, 30, 417, 781, 4771, 30, 326, 508, 434, 326, 8156, 417, 781, 261, 5787, 31476, 1544, 1534, 805, 13, 2072, 6837, 30, 3688, 1507, 287, 23331, 434, 326, 2199, 261, 869, 2621, 2182, 7844, 1347, 10247, 10804, 13, 5573, 30, 2516, 578, 1525, 3023, 11821, 358, 1692, 9475, 326, 2199, 261, 451, 402, 279, 264, 486, 16226, 13, 358, 7844, 11623, 554, 716, 333, 2199, 10957, 358, 326, 1967, 729, 18, 3633, 30, 10210, 279, 417, 781, 585, 3536, 2 ]
Start a transaction, performing an implicit commit if necessary.
Start a transaction, performing an implicit commit if necessary.
def startTransaction(self): """ __startTransaciton__ Start a transaction, performing an implicit commit if necessary.
f6d38da4b0910650112bd5df8a6e148fb35b760b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/f6d38da4b0910650112bd5df8a6e148fb35b760b/MergeSensorDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 3342, 12, 2890, 4672, 3536, 1001, 1937, 1429, 1077, 26949, 972, 225, 3603, 279, 2492, 16, 14928, 392, 10592, 3294, 309, 4573, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 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, 3342, 12, 2890, 4672, 3536, 1001, 1937, 1429, 1077, 26949, 972, 225, 3603, 279, 2492, 16, 14928, 392, 10592, 3294, 309, 4573, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise AssertionError("Items are not equal:\n" \ "ACTUAL: %s\n" \ "DESIRED: %s\n" % (str(actual), str(desired)))
raise AssertionError(msg)
def assert_equal(actual,desired,err_msg='',verbose=True): """ Raise an assertion if two objects are not equal. Given two objects (lists, tuples, dictionaries or numpy arrays), check that all elements of these objects are equal. An exception is raised at the first conflicting values. Parameters ---------- actual : list, tuple, dict or ndarray The object to check. desired : list, tuple, dict or ndarray The expected object. err_msg : string The error message to be printed in case of failure. verbose : bool If True, the conflicting values are appended to the error message. Raises ------ AssertionError If actual and desired are not equal. Examples -------- >>> np.testing.assert_equal([4,5], [4,6]) ... <type 'exceptions.AssertionError'>: Items are not equal: item=1 ACTUAL: 5 DESIRED: 6 """ if isinstance(desired, dict): if not isinstance(actual, dict) : raise AssertionError(repr(type(actual))) assert_equal(len(actual),len(desired),err_msg,verbose) for k,i in desired.items(): if k not in actual : raise AssertionError(repr(k)) assert_equal(actual[k], desired[k], 'key=%r\n%s' % (k,err_msg), verbose) return if isinstance(desired, (list,tuple)) and isinstance(actual, (list,tuple)): assert_equal(len(actual),len(desired),err_msg,verbose) for k in range(len(desired)): assert_equal(actual[k], desired[k], 'item=%r\n%s' % (k,err_msg), verbose) return from numpy.core import ndarray, isscalar, signbit from numpy.lib import iscomplexobj, real, imag if isinstance(actual, ndarray) or isinstance(desired, ndarray): return assert_array_equal(actual, desired, err_msg, verbose) msg = build_err_msg([actual, desired], err_msg, verbose=verbose) # Handle complex numbers: separate into real/imag to handle # nan/inf/negative zero correctly # XXX: catch ValueError for subclasses of ndarray where iscomplex fail try: usecomplex = iscomplexobj(actual) or iscomplexobj(desired) except ValueError: usecomplex = False if usecomplex: if iscomplexobj(actual): actualr = real(actual) actuali = imag(actual) else: actualr = actual actuali = 0 if iscomplexobj(desired): desiredr = real(desired) desiredi = imag(desired) else: desiredr = desired desiredi = 0 try: assert_equal(actualr, desiredr) assert_equal(actuali, desiredi) except AssertionError: raise AssertionError("Items are not equal:\n" \ "ACTUAL: %s\n" \ "DESIRED: %s\n" % (str(actual), str(desired))) # Inf/nan/negative zero handling try: # isscalar test to check cases such as [np.nan] != np.nan if isscalar(desired) != isscalar(actual): raise AssertionError(msg) # If one of desired/actual is not finite, handle it specially here: # check that both are nan if any is a nan, and test for equality # otherwise if not (gisfinite(desired) and gisfinite(actual)): isdesnan = gisnan(desired) isactnan = gisnan(actual) if isdesnan or isactnan: if not (isdesnan and isactnan): raise AssertionError(msg) else: if not desired == actual: raise AssertionError(msg) return elif desired == 0 and actual == 0: if not signbit(desired) == signbit(actual): raise AssertionError(msg) # If TypeError or ValueError raised while using isnan and co, just handle # as before except (TypeError, ValueError, NotImplementedError): pass if desired != actual : raise AssertionError(msg)
37f318c8be5c0f0eb7e7d217690446fbbc0d50d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/37f318c8be5c0f0eb7e7d217690446fbbc0d50d2/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 9729, 12, 18672, 16, 30458, 16, 370, 67, 3576, 2218, 2187, 11369, 33, 5510, 4672, 3536, 20539, 392, 11240, 309, 2795, 2184, 854, 486, 3959, 18, 225, 16803, 2795, 2184, 261, 9772, 16, 10384, 16, 16176, 578, 3972, 5352, 3631, 866, 716, 777, 2186, 434, 4259, 2184, 854, 3959, 18, 1922, 1520, 353, 11531, 622, 326, 1122, 21462, 924, 18, 225, 7012, 12181, 3214, 294, 666, 16, 3193, 16, 2065, 578, 8304, 1021, 733, 358, 866, 18, 6049, 294, 666, 16, 3193, 16, 2065, 578, 8304, 1021, 2665, 733, 18, 393, 67, 3576, 294, 533, 1021, 555, 883, 358, 506, 14099, 316, 648, 434, 5166, 18, 3988, 294, 1426, 971, 1053, 16, 326, 21462, 924, 854, 12317, 358, 326, 555, 883, 18, 225, 20497, 31913, 12068, 971, 3214, 471, 6049, 854, 486, 3959, 18, 225, 19830, 27093, 4080, 1130, 18, 3813, 310, 18, 11231, 67, 9729, 3816, 24, 16, 25, 6487, 306, 24, 16, 26, 5717, 1372, 411, 723, 296, 11855, 18, 14979, 668, 11, 28593, 10240, 854, 486, 3959, 30, 761, 33, 21, 14684, 14235, 30, 1381, 2030, 2320, 5879, 30, 1666, 225, 3536, 309, 1549, 12, 30458, 16, 2065, 4672, 309, 486, 1549, 12, 18672, 16, 2065, 13, 294, 1002, 12068, 12, 12715, 12, 723, 12, 18672, 20349, 1815, 67, 9729, 12, 1897, 12, 18672, 3631, 1897, 12, 30458, 3631, 370, 67, 3576, 16, 11369, 13, 364, 417, 16, 77, 316, 6049, 18, 3319, 13332, 309, 417, 486, 316, 3214, 294, 1002, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 67, 9729, 12, 18672, 16, 30458, 16, 370, 67, 3576, 2218, 2187, 11369, 33, 5510, 4672, 3536, 20539, 392, 11240, 309, 2795, 2184, 854, 486, 3959, 18, 225, 16803, 2795, 2184, 261, 9772, 16, 10384, 16, 16176, 578, 3972, 5352, 3631, 866, 716, 777, 2186, 434, 4259, 2184, 854, 3959, 18, 1922, 1520, 353, 11531, 622, 326, 1122, 21462, 924, 18, 225, 7012, 12181, 3214, 294, 666, 16, 3193, 16, 2065, 578, 8304, 1021, 733, 358, 866, 18, 6049, 294, 666, 16, 3193, 16, 2065, 578, 8304, 1021, 2665, 733, 18, 393, 67, 3576, 294, 533, 1021, 555, 883, 358, 506, 14099, 316, 648, 434, 5166, 18, 3988, 294, 1426, 971, 1053, 16, 326, 21462, 924, 854, 2 ]
sage: R.<x> = QQ['x']
sage: R.<x> = QQ['x']
def local_coordinates_at_infinity(self, prec = 20, name = 't'): """ For the genus g hyperelliptic curve y^2 = f(x), returns (x(t), y(t)) such that (y(t))^2 = f(x(t)), where t = x^g/y is the local parameter at infinity
b4e1545eaa37e1811f989723319008a1806539dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b4e1545eaa37e1811f989723319008a1806539dc/hyperelliptic_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 16941, 67, 270, 67, 267, 7850, 12, 2890, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 326, 3157, 407, 314, 9512, 292, 549, 21507, 8882, 677, 66, 22, 273, 284, 12, 92, 3631, 1135, 261, 92, 12, 88, 3631, 677, 12, 88, 3719, 4123, 716, 261, 93, 12, 88, 3719, 66, 22, 273, 284, 12, 92, 12, 88, 13, 3631, 1625, 268, 273, 619, 66, 75, 19, 93, 353, 326, 1191, 1569, 622, 27272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1191, 67, 16941, 67, 270, 67, 267, 7850, 12, 2890, 16, 13382, 273, 4200, 16, 508, 273, 296, 88, 11, 4672, 3536, 2457, 326, 3157, 407, 314, 9512, 292, 549, 21507, 8882, 677, 66, 22, 273, 284, 12, 92, 3631, 1135, 261, 92, 12, 88, 3631, 677, 12, 88, 3719, 4123, 716, 261, 93, 12, 88, 3719, 66, 22, 273, 284, 12, 92, 12, 88, 13, 3631, 1625, 268, 273, 619, 66, 75, 19, 93, 353, 326, 1191, 1569, 622, 27272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if entry.doc and entry.doc[1]: print '
if entry.doc and entry.doc[1]: print '
print '#\tdef ' + methName + '(self' + build.BuildCallList(fdesc, entry.names, "defaultNamedOptArg", "defaultNamedNotOptArg","defaultUnnamedArg") + '):'
b6b5af220bd02fa5a7af3c2ea99e2f377504ef16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/b6b5af220bd02fa5a7af3c2ea99e2f377504ef16/genpy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1172, 2946, 64, 88, 536, 296, 397, 7917, 461, 397, 7747, 2890, 11, 397, 1361, 18, 3116, 1477, 682, 12, 74, 5569, 16, 1241, 18, 1973, 16, 315, 1886, 7604, 6179, 4117, 3113, 315, 1886, 7604, 1248, 6179, 4117, 15937, 1886, 984, 13188, 4117, 7923, 397, 8624, 2497, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 5569, 16, 1241, 18, 1973, 16, 315, 1886, 7604, 6179, 4117, 3113, 315, 1886, 7604, 1248, 6179, 4117, 15937, 1886, 984, 13188, 4117, 7923, 397, 8624, 2497, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dd = mydict(w_kwds=w({1:2, 3:4}))
dd = mydict(w_kwds=w({"1":2, "3":4}))
def deepwrap(lp): return [[w(a),w(b)] for a,b in lp]
82b5d0f837decdacd0104fa4cf833b8605fd5f28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/82b5d0f837decdacd0104fa4cf833b8605fd5f28/test_dictobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4608, 4113, 12, 9953, 4672, 327, 12167, 91, 12, 69, 3631, 91, 12, 70, 25887, 364, 279, 16, 70, 316, 12423, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4608, 4113, 12, 9953, 4672, 327, 12167, 91, 12, 69, 3631, 91, 12, 70, 25887, 364, 279, 16, 70, 316, 12423, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for x in env.Glob(os.path.join(subdir,"*.cc"))
for x in env.Glob(os.path.join(subdir,"*.cc", strings=True))
def Glob(env, exclude=[], subdirs=[]): testSources = env.Glob("*.test.cc", strings=True) sources = [ x for x in env.Glob("*.cc", strings=True) if x not in testSources and x not in exclude ] for subdir in subdirs: testSources += glob.glob(os.path.join(subdir,"*.test.cc")) sources += [ x for x in env.Glob(os.path.join(subdir,"*.cc")) if x not in testSources and x not in exclude ] sources.sort() testSources.sort() return (sources, testSources)
5c65bcaf35b46ce632acb15aa52b7e9621274600 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2548/5c65bcaf35b46ce632acb15aa52b7e9621274600/senfutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18901, 12, 3074, 16, 4433, 22850, 6487, 720, 8291, 33, 8526, 4672, 1842, 8628, 273, 1550, 18, 13499, 2932, 11146, 3813, 18, 952, 3113, 2064, 33, 5510, 13, 5550, 273, 306, 619, 364, 619, 316, 1550, 18, 13499, 2932, 11146, 952, 3113, 2064, 33, 5510, 13, 309, 619, 486, 316, 1842, 8628, 471, 619, 486, 316, 4433, 308, 364, 16921, 316, 720, 8291, 30, 1842, 8628, 1011, 4715, 18, 10581, 12, 538, 18, 803, 18, 5701, 12, 1717, 1214, 10837, 11146, 3813, 18, 952, 6, 3719, 5550, 1011, 306, 619, 364, 619, 316, 1550, 18, 13499, 12, 538, 18, 803, 18, 5701, 12, 1717, 1214, 10837, 11146, 952, 3113, 2064, 33, 5510, 3719, 309, 619, 486, 316, 1842, 8628, 471, 619, 486, 316, 4433, 308, 5550, 18, 3804, 1435, 1842, 8628, 18, 3804, 1435, 327, 261, 10141, 16, 1842, 8628, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 18901, 12, 3074, 16, 4433, 22850, 6487, 720, 8291, 33, 8526, 4672, 1842, 8628, 273, 1550, 18, 13499, 2932, 11146, 3813, 18, 952, 3113, 2064, 33, 5510, 13, 5550, 273, 306, 619, 364, 619, 316, 1550, 18, 13499, 2932, 11146, 952, 3113, 2064, 33, 5510, 13, 309, 619, 486, 316, 1842, 8628, 471, 619, 486, 316, 4433, 308, 364, 16921, 316, 720, 8291, 30, 1842, 8628, 1011, 4715, 18, 10581, 12, 538, 18, 803, 18, 5701, 12, 1717, 1214, 10837, 11146, 3813, 18, 952, 6, 3719, 5550, 1011, 306, 619, 364, 619, 316, 1550, 18, 13499, 12, 538, 18, 803, 18, 5701, 12, 1717, 1214, 10837, 11146, 952, 3113, 2064, 33, 5510, 3719, 309, 619, 486, 316, 1842, 2 ]
<td id='key'>%s</td>
<td>%s</td>
def gen_html(self, stats_xml): """ generates html snippet from xml stats
6d4654648141f3ce579847eefc4aedcfb2f3caab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/6d4654648141f3ce579847eefc4aedcfb2f3caab/web_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 67, 2620, 12, 2890, 16, 3177, 67, 2902, 4672, 3536, 6026, 1729, 13016, 628, 2025, 3177, 2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3157, 67, 2620, 12, 2890, 16, 3177, 67, 2902, 4672, 3536, 6026, 1729, 13016, 628, 2025, 3177, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
elif kind == 'relpath':
elif kind in ('relpath', 'path'):
def globprefix(pat): '''return the non-glob prefix of a path, e.g. foo/* -> foo''' root = [] for p in pat.split('/'): if contains_glob(p): break root.append(p) return '/'.join(root) or '.'
c2df6059cdf27dd8dfe4927dd4b90ba364c74a78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/c2df6059cdf27dd8dfe4927dd4b90ba364c74a78/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4715, 3239, 12, 16330, 4672, 9163, 2463, 326, 1661, 17, 10581, 1633, 434, 279, 589, 16, 425, 18, 75, 18, 8431, 20308, 317, 8431, 26418, 1365, 273, 5378, 364, 293, 316, 9670, 18, 4939, 2668, 2473, 4672, 309, 1914, 67, 10581, 12, 84, 4672, 898, 1365, 18, 6923, 12, 84, 13, 327, 2023, 18, 5701, 12, 3085, 13, 578, 2611, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4715, 3239, 12, 16330, 4672, 9163, 2463, 326, 1661, 17, 10581, 1633, 434, 279, 589, 16, 425, 18, 75, 18, 8431, 20308, 317, 8431, 26418, 1365, 273, 5378, 364, 293, 316, 9670, 18, 4939, 2668, 2473, 4672, 309, 1914, 67, 10581, 12, 84, 4672, 898, 1365, 18, 6923, 12, 84, 13, 327, 2023, 18, 5701, 12, 3085, 13, 578, 2611, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.flash_atimes.get(filepath) != None and atime:
if (self.flash_atimes.get(filepath) != None and self.flash_atimes.get(filepath) != atime): logging.info("Caffeine has detected that Flash video is playing, and will auto-activate") activate = True self.status_string = _("Activated for Flash.")
def _check_for_Flash(self): print "_check_for_Flash" try: tmp = "/tmp" activate = False ## look for filenames that begin with 'Flash' for file in os.listdir(tmp): if file.startswith("Flash"): filepath = os.path.join(tmp, file) ## Time of last access. atime = os.stat(filepath).st_atime ### see if user is buffering a flash video if self.flash_atimes.get(filepath) != None and atime: self.timedActivation(5*60, note=False) self.preventedForFlash = True
1a5b0c1133e950283a75e4340b52f4c837774818 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/1a5b0c1133e950283a75e4340b52f4c837774818/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1893, 67, 1884, 67, 11353, 12, 2890, 4672, 1172, 4192, 1893, 67, 1884, 67, 11353, 6, 775, 30, 1853, 273, 2206, 5645, 6, 10235, 273, 1083, 7541, 2324, 364, 9066, 716, 2376, 598, 296, 11353, 11, 364, 585, 316, 1140, 18, 1098, 1214, 12, 5645, 4672, 309, 585, 18, 17514, 1918, 2932, 11353, 6, 4672, 3608, 273, 1140, 18, 803, 18, 5701, 12, 5645, 16, 585, 13, 7541, 2647, 434, 1142, 2006, 18, 622, 494, 273, 1140, 18, 5642, 12, 10561, 2934, 334, 67, 270, 494, 11849, 2621, 309, 729, 353, 25056, 279, 9563, 6191, 309, 261, 2890, 18, 13440, 67, 270, 4485, 18, 588, 12, 10561, 13, 480, 599, 471, 365, 18, 13440, 67, 270, 4485, 18, 588, 12, 10561, 13, 480, 622, 494, 4672, 225, 2907, 18, 1376, 2932, 39, 7329, 73, 558, 711, 8316, 716, 15014, 6191, 353, 23982, 16, 471, 903, 3656, 17, 10014, 7923, 282, 10235, 273, 1053, 365, 18, 2327, 67, 1080, 273, 389, 2932, 28724, 364, 15014, 1199, 13, 225, 365, 18, 20905, 14857, 12, 25, 14, 4848, 16, 4721, 33, 8381, 13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, 67, 11353, 12, 2890, 4672, 1172, 4192, 1893, 67, 1884, 67, 11353, 6, 775, 30, 1853, 273, 2206, 5645, 6, 10235, 273, 1083, 7541, 2324, 364, 9066, 716, 2376, 598, 296, 11353, 11, 364, 585, 316, 1140, 18, 1098, 1214, 12, 5645, 4672, 309, 585, 18, 17514, 1918, 2932, 11353, 6, 4672, 3608, 273, 1140, 18, 803, 18, 5701, 12, 5645, 16, 585, 13, 7541, 2647, 434, 1142, 2006, 18, 622, 494, 273, 1140, 18, 5642, 12, 10561, 2934, 334, 67, 270, 494, 11849, 2621, 309, 729, 353, 25056, 279, 9563, 6191, 309, 261, 2890, 18, 13440, 67, 270, 4485, 18, 588, 12, 10561, 13, 480, 599, 471, 365, 18, 13440, 67, 270, 4485, 2 ]
log.msg('|||'.join(prefix, command, params))
log.msg('|||'.join((prefix, command, params)))
def irc_unknown(self, prefix, command, params): log.msg('|||'.join(prefix, command, params))
2562020447cf349330ad28ca3b2083882cf9d2e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/2562020447cf349330ad28ca3b2083882cf9d2e9/irc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 277, 1310, 67, 8172, 12, 2890, 16, 1633, 16, 1296, 16, 859, 4672, 613, 18, 3576, 2668, 20081, 96, 10332, 5701, 12, 3239, 16, 1296, 16, 859, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 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, 277, 1310, 67, 8172, 12, 2890, 16, 1633, 16, 1296, 16, 859, 4672, 613, 18, 3576, 2668, 20081, 96, 10332, 5701, 12, 3239, 16, 1296, 16, 859, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def formatToFile(self, changeSet, cfg, f):
def formatToFile(self, changeSet, f):
def formatToFile(self, changeSet, cfg, f):
ec0d8a64f7bf0aa19f7e063bbae4234d7b1cd259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ec0d8a64f7bf0aa19f7e063bbae4234d7b1cd259/trove.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 15450, 12, 2890, 16, 26104, 16, 2776, 16, 284, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 740, 15450, 12, 2890, 16, 26104, 16, 2776, 16, 284, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
object.__name__ != 'xml.etree'):
object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
def getdocloc(self, object): """Return the location of module docs or None"""
a738e270d1a49778c42693b19f43460dfcf301ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/a738e270d1a49778c42693b19f43460dfcf301ef/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2434, 1829, 12, 2890, 16, 733, 4672, 3536, 990, 326, 2117, 434, 1605, 3270, 578, 599, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2434, 1829, 12, 2890, 16, 733, 4672, 3536, 990, 326, 2117, 434, 1605, 3270, 578, 599, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if verbose is True:
if verbose:
def readHorizonDistanceFromSummValueTable(fList, verbose=False): """ read in the SummValueTables from a list of files and return the horizon distance versus total mass @param fList: list of input files @param verbose: True of False (default is False) """ output = {} massOutput = {} count = 0 if len(fList) == 0: return output # for each file in the list for thisFile in fList: if verbose is True: print str(count+1)+"/"+str(len(fList))+" " + thisFile count = count+1 massNum = 0 doc = utils.load_filename(thisFile, gz = thisFile.endswith(".gz")) try: summ_value_table = table.get_table(doc, lsctables.SummValueTable.tableName) except ValueError: print "ValueError in readHorizonDistanceFromSummValueTable whiile reading summvalue table from file ", thisFile return output,massOutput # if not summ_value table was filled , then simply returns if summ_value_table is None: return output,massOutput # else for row in summ_value_table: # we should fnd a name "inspiral_Effective_distance if row.name == 'inspiral_effective_distance': # it may be that the file read is an inspiral file containing only the BNS infomration if (row.comment == '1.40_1.40_8.00') or (row.comment == '1.4_1.4_8'): if not output.has_key(row.ifo): output[row.ifo] = lsctables.New(lsctables.SummValueTable) output[row.ifo].append(row) # or a template bank containing a whole list of inspiral_effective_distance else: if not massOutput.has_key(row.ifo): massOutput[row.ifo] = [lsctables.New(lsctables.SummValueTable)] if len(massOutput[row.ifo]) < massNum + 1: massOutput[row.ifo].append(lsctables.New(lsctables.SummValueTable)) massOutput[row.ifo][massNum].append(row) massNum += 1 return output,massOutput
f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f/InspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 44, 20648, 7200, 1265, 3495, 81, 620, 1388, 12, 74, 682, 16, 3988, 33, 8381, 4672, 3536, 855, 316, 326, 9352, 81, 620, 6905, 628, 279, 666, 434, 1390, 471, 327, 326, 366, 20648, 3888, 14690, 407, 2078, 8039, 225, 632, 891, 284, 682, 30, 4202, 666, 434, 810, 1390, 632, 891, 3988, 30, 1053, 434, 1083, 261, 1886, 353, 1083, 13, 3536, 225, 876, 273, 2618, 8039, 1447, 273, 2618, 1056, 273, 374, 309, 562, 12, 74, 682, 13, 422, 374, 30, 327, 876, 225, 468, 364, 1517, 585, 316, 326, 666, 364, 333, 812, 316, 284, 682, 30, 309, 3988, 30, 1172, 609, 12, 1883, 15, 21, 13, 9078, 4898, 15, 701, 12, 1897, 12, 74, 682, 3719, 9078, 315, 397, 333, 812, 1056, 273, 1056, 15, 21, 8039, 2578, 273, 374, 225, 997, 273, 2990, 18, 945, 67, 3459, 12, 2211, 812, 16, 14136, 273, 333, 812, 18, 5839, 1918, 2932, 18, 9764, 6, 3719, 775, 30, 2142, 81, 67, 1132, 67, 2121, 273, 1014, 18, 588, 67, 2121, 12, 2434, 16, 7180, 299, 1538, 18, 3495, 81, 620, 1388, 18, 18033, 13, 1335, 2068, 30, 1172, 315, 23610, 316, 855, 44, 20648, 7200, 1265, 3495, 81, 620, 1388, 600, 77, 398, 6453, 2142, 81, 1132, 1014, 628, 585, 3104, 333, 812, 327, 876, 16, 10424, 1447, 225, 468, 309, 486, 2142, 81, 67, 1132, 1014, 1703, 6300, 269, 1508, 8616, 1135, 309, 2142, 81, 67, 1132, 67, 2121, 353, 599, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 44, 20648, 7200, 1265, 3495, 81, 620, 1388, 12, 74, 682, 16, 3988, 33, 8381, 4672, 3536, 855, 316, 326, 9352, 81, 620, 6905, 628, 279, 666, 434, 1390, 471, 327, 326, 366, 20648, 3888, 14690, 407, 2078, 8039, 225, 632, 891, 284, 682, 30, 4202, 666, 434, 810, 1390, 632, 891, 3988, 30, 1053, 434, 1083, 261, 1886, 353, 1083, 13, 3536, 225, 876, 273, 2618, 8039, 1447, 273, 2618, 1056, 273, 374, 309, 562, 12, 74, 682, 13, 422, 374, 30, 327, 876, 225, 468, 364, 1517, 585, 316, 326, 666, 364, 333, 812, 316, 284, 682, 30, 309, 3988, 30, 1172, 609, 12, 1883, 15, 21, 13, 9078, 4898, 15, 701, 12, 1897, 12, 2 ]
error = _(u'error_required', default=u'${name} is required, please correct.', mapping={'name': label}) error = translate(error, context=instance)
error = i18n.translate( 'plone', 'error_required', {'name': label}, instance, default = "%s is required, please correct." % label, )
def validate_required(self, instance, value, errors): if not value: label = self.widget.Label(instance) name = self.getName() error = _(u'error_required', default=u'${name} is required, please correct.', mapping={'name': label}) error = translate(error, context=instance) errors[name] = error return error return None
7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 4718, 12, 2890, 16, 791, 16, 460, 16, 1334, 4672, 309, 486, 460, 30, 1433, 273, 365, 18, 6587, 18, 2224, 12, 1336, 13, 508, 273, 365, 18, 17994, 1435, 555, 273, 277, 2643, 82, 18, 13929, 12, 296, 412, 476, 2187, 296, 1636, 67, 4718, 2187, 13666, 529, 4278, 1433, 5779, 791, 16, 805, 273, 2213, 87, 353, 1931, 16, 9582, 3434, 1199, 738, 1433, 16, 262, 1334, 63, 529, 65, 273, 555, 327, 555, 327, 599, 2, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 67, 4718, 12, 2890, 16, 791, 16, 460, 16, 1334, 4672, 309, 486, 460, 30, 1433, 273, 365, 18, 6587, 18, 2224, 12, 1336, 13, 508, 273, 365, 18, 17994, 1435, 555, 273, 277, 2643, 82, 18, 13929, 12, 296, 412, 476, 2187, 296, 1636, 67, 4718, 2187, 13666, 529, 4278, 1433, 5779, 791, 16, 805, 273, 2213, 87, 353, 1931, 16, 9582, 3434, 1199, 738, 1433, 16, 262, 1334, 63, 529, 65, 273, 555, 327, 555, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.contraint_kwargs['use_alter'] = kwargs.pop('use_alter')
self.constraint_kwargs['use_alter'] = kwargs.pop('use_alter')
def __init__(self, entity, name, *args, **kwargs): self.colname = kwargs.pop('colname', []) if self.colname and not isinstance(self.colname, list): self.colname = [self.colname]
c5f6bc80ac5c36fccc4c062ad2a9db659231b3a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11921/c5f6bc80ac5c36fccc4c062ad2a9db659231b3a1/relationships.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1522, 16, 508, 16, 380, 1968, 16, 2826, 4333, 4672, 365, 18, 1293, 529, 273, 1205, 18, 5120, 2668, 1293, 529, 2187, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1522, 16, 508, 16, 380, 1968, 16, 2826, 4333, 4672, 365, 18, 1293, 529, 273, 1205, 18, 5120, 2668, 1293, 529, 2187, 5378, 13, 309, 365, 18, 1293, 529, 471, 486, 1549, 12, 2890, 18, 1293, 529, 16, 666, 4672, 365, 18, 1293, 529, 273, 306, 2890, 18, 1293, 529, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
menu += ' <a class="plain_text" href="%s__edit__.html">Edit</a>'%self.filename() + vbar
menu += ' <a class="plain_text" href="%s?edit">Edit</a>'%self.filename() + vbar
def html(self, include_title=True, do_print=False, authorized=False): n = len(self.__cells) s = '' if include_title: S = self.system() if not (S is None): system = ' (%s mode)'%S else: system ='' if not authorized: lock_text = '&nbsp;&nbsp;<span id="worksheet_lock" class="locked" onClick="unlock_worksheet()">[locked]</span>' else: lock_text = ''
a1277e4a56c30edd8910190453f701a5401039b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a1277e4a56c30edd8910190453f701a5401039b5/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1729, 12, 2890, 16, 2341, 67, 2649, 33, 5510, 16, 741, 67, 1188, 33, 8381, 16, 10799, 33, 8381, 4672, 290, 273, 562, 12, 2890, 16186, 14741, 13, 272, 273, 875, 309, 2341, 67, 2649, 30, 348, 273, 365, 18, 4299, 1435, 309, 486, 261, 55, 353, 599, 4672, 2619, 273, 296, 6142, 87, 1965, 2506, 9, 55, 469, 30, 2619, 273, 6309, 309, 486, 10799, 30, 2176, 67, 955, 273, 5183, 10600, 23480, 10600, 31, 32, 3969, 612, 1546, 1252, 8118, 67, 739, 6, 667, 1546, 15091, 6, 18296, 1546, 26226, 67, 1252, 8118, 1435, 6441, 63, 15091, 65, 1757, 3969, 1870, 469, 30, 2176, 67, 955, 273, 875, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1729, 12, 2890, 16, 2341, 67, 2649, 33, 5510, 16, 741, 67, 1188, 33, 8381, 16, 10799, 33, 8381, 4672, 290, 273, 562, 12, 2890, 16186, 14741, 13, 272, 273, 875, 309, 2341, 67, 2649, 30, 348, 273, 365, 18, 4299, 1435, 309, 486, 261, 55, 353, 599, 4672, 2619, 273, 296, 6142, 87, 1965, 2506, 9, 55, 469, 30, 2619, 273, 6309, 309, 486, 10799, 30, 2176, 67, 955, 273, 5183, 10600, 23480, 10600, 31, 32, 3969, 612, 1546, 1252, 8118, 67, 739, 6, 667, 1546, 15091, 6, 18296, 1546, 26226, 67, 1252, 8118, 1435, 6441, 63, 15091, 65, 1757, 3969, 1870, 469, 30, 2176, 67, 955, 273, 875, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
fp = file(patchname, 'rb')
try: fp = file(patchobj, 'rb') except TypeError: fp = patchobj
def internalpatch(patchname, ui, strip, cwd, files): """use builtin patch to apply <patchname> to the working directory. returns whether patch was applied with fuzz factor.""" fp = file(patchname, 'rb') if cwd: curdir = os.getcwd() os.chdir(cwd) try: ret = applydiff(ui, fp, files, strip=strip) finally: if cwd: os.chdir(curdir) if ret < 0: raise PatchError return ret > 0
5636d52ec05ad9b16844c9ce646859e0ecd81642 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/5636d52ec05ad9b16844c9ce646859e0ecd81642/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2713, 2272, 12, 2272, 529, 16, 5915, 16, 2569, 16, 7239, 16, 1390, 4672, 3536, 1202, 15273, 4729, 358, 2230, 411, 2272, 529, 34, 358, 326, 5960, 1867, 18, 1135, 2856, 4729, 1703, 6754, 598, 31839, 5578, 12123, 775, 30, 4253, 273, 585, 12, 2272, 2603, 16, 296, 6731, 6134, 1335, 3580, 30, 4253, 273, 4729, 2603, 309, 7239, 30, 662, 1214, 273, 1140, 18, 588, 11089, 1435, 1140, 18, 343, 1214, 12, 11089, 13, 775, 30, 325, 273, 2230, 5413, 12, 4881, 16, 4253, 16, 1390, 16, 2569, 33, 6406, 13, 3095, 30, 309, 7239, 30, 1140, 18, 343, 1214, 12, 1397, 1214, 13, 309, 325, 411, 374, 30, 1002, 12042, 668, 327, 325, 405, 374, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 326, 981, 30, 1652, 2713, 2272, 12, 2272, 529, 16, 5915, 16, 2569, 16, 7239, 16, 1390, 4672, 3536, 1202, 15273, 4729, 358, 2230, 411, 2272, 529, 34, 358, 326, 5960, 1867, 18, 1135, 2856, 4729, 1703, 6754, 598, 31839, 5578, 12123, 775, 30, 4253, 273, 585, 12, 2272, 2603, 16, 296, 6731, 6134, 1335, 3580, 30, 4253, 273, 4729, 2603, 309, 7239, 30, 662, 1214, 273, 1140, 18, 588, 11089, 1435, 1140, 18, 343, 1214, 12, 11089, 13, 775, 30, 325, 273, 2230, 5413, 12, 4881, 16, 4253, 16, 1390, 16, 2569, 33, 6406, 13, 3095, 30, 309, 7239, 30, 1140, 18, 343, 1214, 12, 1397, 1214, 13, 309, 325, 411, 374, 30, 1002, 12042, 668, 327, 325, 405, 374, 225, 2 ]
hc.putheader('Content-Length', str(len(parent.body)))
hc.putheader('Content-Length', parent.body_length)
def __init__(self, parent, node): self.parent = parent self.node = node self.failed = False
bdf7d8c0256fd4c3c5b8a6025bd58331b8f43ef1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/bdf7d8c0256fd4c3c5b8a6025bd58331b8f43ef1/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 756, 4672, 365, 18, 2938, 273, 982, 365, 18, 2159, 273, 756, 365, 18, 7307, 273, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 982, 16, 756, 4672, 365, 18, 2938, 273, 982, 365, 18, 2159, 273, 756, 365, 18, 7307, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return sage_eval(maxima.eval("bessel_i(%s,%s)"%(float(nu),float(z)))) def bessel_J(nu,z,alg="pari",prec=53):
raise ValueError, "unknown algorithm '%s'"%algorithm def bessel_J(nu,z,algorithm="pari",prec=53):
def bessel_I(nu,z,alg = "pari",prec=53): r""" Implements the "I-Bessel function", or "modified Bessel function, 1st kind", with index (or "order") nu and argument z. INPUT: nu -- a real (or complex, for pari) number z -- a real (positive) alg - "pari" or "maxima" or "scipy" prec - real precision (for Pari only) DEFINITION: \begin{verbatim} Maxima: inf ==== - nu - 2 k nu + 2 k \ 2 z > ------------------- / k! Gamma(nu + k + 1) ==== k = 0 Pari: inf ==== - 2 k 2 k \ 2 z Gamma(nu + 1) > ----------------------- / k! Gamma(nu + k + 1) ==== k = 0 \end{verbatim} Sometimes \code{bessel_I(nu,z)} is denoted \code{I_nu(z)} in the literature. WARNING: In Maxima (the manual says) i0 is deprecated but \code{bessel_i(0,*)} is broken. (Was fixed in recent CVS patch though.) EXAMPLES: sage: bessel_I(1,1,"pari",500) 0.565159103992485027207696027609863307328899621621092009480294489479255640964371134092664997766814410064677886055526302676857637684917179812041131208121 sage: bessel_I(1,1) 0.565159103992485 sage: bessel_I(2,1.1,"maxima") 0.16708949925104... sage: bessel_I(0,1.1,"maxima") 1.32616018371265... sage: bessel_I(0,1,"maxima") 1.26606587775200... sage: bessel_I(1,1,"scipy") 0.565159103992... """ if alg=="pari": from sage.libs.pari.all import pari R,a = _setup(prec) b = R(pari(nu).besseli(z)) pari.set_real_precision(a) return b elif alg=="scipy": import scipy.special ans = str(scipy.special.iv(float(nu),complex(real(z),imag(z)))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans) else: return sage_eval(maxima.eval("bessel_i(%s,%s)"%(float(nu),float(z))))
28583b63e951675be5d37abb781bb0ef0026cb95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/28583b63e951675be5d37abb781bb0ef0026cb95/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 45, 12, 13053, 16, 94, 16, 18413, 273, 315, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 45, 17, 38, 403, 292, 445, 3113, 578, 315, 7342, 605, 403, 292, 445, 16, 404, 334, 3846, 3113, 598, 770, 261, 280, 315, 1019, 7923, 9244, 471, 1237, 998, 18, 225, 12943, 30, 9244, 1493, 279, 2863, 261, 280, 7233, 16, 364, 779, 77, 13, 1300, 998, 225, 1493, 279, 2863, 261, 21094, 13, 11989, 300, 315, 1065, 77, 6, 578, 315, 1896, 13888, 6, 578, 315, 1017, 9126, 6, 13382, 300, 2863, 6039, 261, 1884, 2280, 77, 1338, 13, 225, 2030, 7263, 7022, 30, 521, 10086, 95, 16629, 22204, 97, 4238, 13888, 30, 8286, 422, 631, 282, 300, 9244, 300, 576, 417, 225, 9244, 397, 576, 417, 521, 377, 576, 1850, 998, 405, 565, 12146, 413, 342, 377, 417, 5, 25409, 12, 13053, 397, 417, 397, 404, 13, 422, 631, 417, 273, 374, 225, 2280, 77, 30, 225, 8286, 422, 631, 282, 300, 576, 417, 225, 576, 417, 521, 377, 576, 1377, 998, 565, 25409, 12, 13053, 397, 404, 13, 405, 565, 12146, 13093, 342, 4202, 417, 5, 25409, 12, 13053, 397, 417, 397, 404, 13, 422, 631, 417, 273, 374, 225, 521, 409, 95, 16629, 22204, 97, 348, 25976, 521, 710, 95, 70, 403, 292, 67, 45, 12, 13053, 16, 94, 16869, 353, 5545, 16474, 521, 710, 95, 45, 67, 13053, 12, 94, 16869, 316, 326, 328, 2165, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 403, 292, 67, 45, 12, 13053, 16, 94, 16, 18413, 273, 315, 1065, 77, 3113, 4036, 33, 8643, 4672, 436, 8395, 29704, 326, 315, 45, 17, 38, 403, 292, 445, 3113, 578, 315, 7342, 605, 403, 292, 445, 16, 404, 334, 3846, 3113, 598, 770, 261, 280, 315, 1019, 7923, 9244, 471, 1237, 998, 18, 225, 12943, 30, 9244, 1493, 279, 2863, 261, 280, 7233, 16, 364, 779, 77, 13, 1300, 998, 225, 1493, 279, 2863, 261, 21094, 13, 11989, 300, 315, 1065, 77, 6, 578, 315, 1896, 13888, 6, 578, 315, 1017, 9126, 6, 13382, 300, 2863, 6039, 261, 1884, 2280, 77, 1338, 13, 225, 2030, 7263, 7022, 30, 521, 10086, 95, 16629, 22204, 97, 4238, 2 ]
raise KeyError, name
raise KeyError(name)
def new(self, __name__=None, **kw): name = __name__ if name is None: name = self._newName() while name in self._contents: name = self._newName() elif name in self._contents: raise KeyError, name obj = self._factory(**kw) self._contents[name] = obj obj.__name__ = name obj.__parent__ = self return obj
5aea085a061467a358be19048e0a8c53b2420b41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5aea085a061467a358be19048e0a8c53b2420b41/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 2890, 16, 1001, 529, 972, 33, 7036, 16, 2826, 9987, 4672, 508, 273, 1001, 529, 972, 309, 508, 353, 599, 30, 508, 273, 365, 6315, 2704, 461, 1435, 1323, 508, 316, 365, 6315, 3980, 30, 508, 273, 365, 6315, 2704, 461, 1435, 1327, 508, 316, 365, 6315, 3980, 30, 1002, 4999, 12, 529, 13, 1081, 273, 365, 6315, 6848, 12, 636, 9987, 13, 365, 6315, 3980, 63, 529, 65, 273, 1081, 1081, 16186, 529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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 394, 12, 2890, 16, 1001, 529, 972, 33, 7036, 16, 2826, 9987, 4672, 508, 273, 1001, 529, 972, 309, 508, 353, 599, 30, 508, 273, 365, 6315, 2704, 461, 1435, 1323, 508, 316, 365, 6315, 3980, 30, 508, 273, 365, 6315, 2704, 461, 1435, 1327, 508, 316, 365, 6315, 3980, 30, 1002, 4999, 12, 529, 13, 1081, 273, 365, 6315, 6848, 12, 636, 9987, 13, 365, 6315, 3980, 63, 529, 65, 273, 1081, 1081, 16186, 529, 972, 273, 508, 1081, 16186, 2938, 972, 273, 365, 327, 1081, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.sock.send(str)
if self.sock: self.sock.send(str) else: raise SMTPServerDisconnected
def send(self, str): """Send `str' to the server.""" if self.debuglevel > 0: print 'send:', `str` self.sock.send(str)
735724c0fe173a9243fb0784590ae4f126a95e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/735724c0fe173a9243fb0784590ae4f126a95e94/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 609, 4672, 3536, 3826, 1375, 701, 11, 358, 326, 1438, 12123, 309, 365, 18, 4148, 2815, 405, 374, 30, 1172, 296, 4661, 30, 2187, 1375, 701, 68, 365, 18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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1366, 12, 2890, 16, 609, 4672, 3536, 3826, 1375, 701, 11, 358, 326, 1438, 12123, 309, 365, 18, 4148, 2815, 405, 374, 30, 1172, 296, 4661, 30, 2187, 1375, 701, 68, 365, 18, 15031, 18, 4661, 12, 701, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
percent = int(POST.has_key(u'percent'))
percent = int(POST[u'percent'])
def ajax_editshare(request): ret = [] if request.method == u'POST': POST = request.POST if POST.has_key(u'username') and POST.has_key(u'percent'): percent = int(POST.has_key(u'percent')) print "received percent " , str(percent) if random.randrange(2) == 1: ret = {"success" : False, "error" : "error in " + "blah" * 20} else: ret = {"success" : True, "error" : ""} print "returning ret: ", str(ret) json = simplejson.dumps(ret) print "json object is ", str(json) return HttpResponse(json, mimetype='application/json')
d5beb689159776dc2ff7bdfaa10b03d65fde7d32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/d5beb689159776dc2ff7bdfaa10b03d65fde7d32/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10733, 67, 4619, 14419, 12, 2293, 4672, 325, 273, 5378, 309, 590, 18, 2039, 422, 582, 11, 3798, 4278, 5485, 273, 590, 18, 3798, 309, 5485, 18, 5332, 67, 856, 12, 89, 11, 5053, 6134, 471, 5485, 18, 5332, 67, 856, 12, 89, 11, 8849, 11, 4672, 5551, 273, 509, 12, 3798, 63, 89, 11, 8849, 19486, 1172, 315, 15213, 5551, 315, 269, 609, 12, 8849, 13, 309, 2744, 18, 7884, 3676, 12, 22, 13, 422, 404, 30, 325, 273, 12528, 4768, 6, 294, 1083, 16, 315, 1636, 6, 294, 315, 1636, 316, 315, 397, 315, 3083, 9795, 6, 380, 4200, 97, 469, 30, 325, 273, 12528, 4768, 6, 294, 1053, 16, 315, 1636, 6, 294, 1408, 97, 225, 1172, 315, 2463, 310, 325, 30, 3104, 609, 12, 1349, 13, 1163, 273, 4143, 1977, 18, 13302, 1121, 12, 1349, 13, 1172, 315, 1977, 733, 353, 3104, 609, 12, 1977, 13, 327, 9476, 12, 1977, 16, 12595, 2218, 3685, 19, 1977, 6134, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10733, 67, 4619, 14419, 12, 2293, 4672, 325, 273, 5378, 309, 590, 18, 2039, 422, 582, 11, 3798, 4278, 5485, 273, 590, 18, 3798, 309, 5485, 18, 5332, 67, 856, 12, 89, 11, 5053, 6134, 471, 5485, 18, 5332, 67, 856, 12, 89, 11, 8849, 11, 4672, 5551, 273, 509, 12, 3798, 63, 89, 11, 8849, 19486, 1172, 315, 15213, 5551, 315, 269, 609, 12, 8849, 13, 309, 2744, 18, 7884, 3676, 12, 22, 13, 422, 404, 30, 325, 273, 12528, 4768, 6, 294, 1083, 16, 315, 1636, 6, 294, 315, 1636, 316, 315, 397, 315, 3083, 9795, 6, 380, 4200, 97, 469, 30, 325, 273, 12528, 4768, 6, 294, 1053, 16, 315, 1636, 6, 294, 1408, 97, 2 ]
if authors: edition['authors'] = authors
if authors: assert len(authors) == 1 edition['author_' + field] = authors[0]
def find_authors (r, edition): authors = [] for tag, subtags in [ ('100', 'abc'), ('110', 'ab'), ('111', 'acdn') ]: for f in r.get_fields(tag): author = {} if tag == '100' and 'd' in f.contents: author = parse_date(f.contents['d'][0]) author['name'] = " ".join([j.strip(' /,;:') for i, j in f.subfield_sequence if i in subtags]) if tag == '100': db_name = [j.strip(' /,;:') for i, j in f.subfield_sequence if i in 'abcd'] author['db_name'] = " ".join(db_name) if 'q' in f.contents: author['fuller_name'] = ' '.join(f.contents['q']) else: author['db_name'] = author['name'] authors.append(author) if authors: edition['authors'] = authors
f5869a3168805cf9cd2bfb944d44b7e13f463da3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/f5869a3168805cf9cd2bfb944d44b7e13f463da3/parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 19368, 261, 86, 16, 28432, 4672, 14494, 273, 5378, 364, 1047, 16, 720, 4156, 316, 306, 7707, 6625, 2187, 296, 18947, 19899, 7707, 17506, 2187, 296, 378, 19899, 7707, 20227, 2187, 296, 1077, 5176, 6134, 308, 30, 364, 284, 316, 436, 18, 588, 67, 2821, 12, 2692, 4672, 2869, 273, 2618, 309, 1047, 422, 296, 6625, 11, 471, 296, 72, 11, 316, 284, 18, 3980, 30, 2869, 273, 1109, 67, 712, 12, 74, 18, 3980, 3292, 72, 3546, 63, 20, 5717, 2869, 3292, 529, 3546, 273, 315, 3552, 5701, 3816, 78, 18, 6406, 2668, 342, 16, 31, 2497, 13, 364, 277, 16, 525, 316, 284, 18, 1717, 1518, 67, 6178, 309, 277, 316, 720, 4156, 5717, 309, 1047, 422, 296, 6625, 4278, 1319, 67, 529, 273, 306, 78, 18, 6406, 2668, 342, 16, 31, 2497, 13, 364, 277, 16, 525, 316, 284, 18, 1717, 1518, 67, 6178, 309, 277, 316, 296, 378, 4315, 3546, 2869, 3292, 1966, 67, 529, 3546, 273, 315, 3552, 5701, 12, 1966, 67, 529, 13, 309, 296, 85, 11, 316, 284, 18, 3980, 30, 2869, 3292, 2854, 264, 67, 529, 3546, 273, 296, 2418, 5701, 12, 74, 18, 3980, 3292, 85, 19486, 469, 30, 2869, 3292, 1966, 67, 529, 3546, 273, 2869, 3292, 529, 3546, 225, 14494, 18, 6923, 12, 4161, 13, 309, 14494, 30, 1815, 562, 12, 19368, 13, 422, 404, 28432, 3292, 4161, 4623, 397, 652, 65, 273, 14494, 63, 20, 65, 225, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 19368, 261, 86, 16, 28432, 4672, 14494, 273, 5378, 364, 1047, 16, 720, 4156, 316, 306, 7707, 6625, 2187, 296, 18947, 19899, 7707, 17506, 2187, 296, 378, 19899, 7707, 20227, 2187, 296, 1077, 5176, 6134, 308, 30, 364, 284, 316, 436, 18, 588, 67, 2821, 12, 2692, 4672, 2869, 273, 2618, 309, 1047, 422, 296, 6625, 11, 471, 296, 72, 11, 316, 284, 18, 3980, 30, 2869, 273, 1109, 67, 712, 12, 74, 18, 3980, 3292, 72, 3546, 63, 20, 5717, 2869, 3292, 529, 3546, 273, 315, 3552, 5701, 3816, 78, 18, 6406, 2668, 342, 16, 31, 2497, 13, 364, 277, 16, 525, 316, 284, 18, 1717, 1518, 67, 6178, 309, 277, 316, 720, 4156, 5717, 2 ]
matching = forbidfiles = []
listmatching = forbidfiles = []
def find_nomasked_files(self, forbidpattern, basedir='.'): """ Finds files who do NOT have 'forbidpattern' in their file name starting from 'basedir' -> list """
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, 1104, 67, 12306, 835, 329, 67, 2354, 12, 2890, 16, 364, 19773, 4951, 16, 15573, 2218, 1093, 4672, 3536, 4163, 87, 1390, 10354, 741, 4269, 1240, 296, 1884, 19773, 4951, 11, 316, 3675, 585, 508, 5023, 628, 296, 31722, 11, 317, 666, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1104, 67, 12306, 835, 329, 67, 2354, 12, 2890, 16, 364, 19773, 4951, 16, 15573, 2218, 1093, 4672, 3536, 4163, 87, 1390, 10354, 741, 4269, 1240, 296, 1884, 19773, 4951, 11, 316, 3675, 585, 508, 5023, 628, 296, 31722, 11, 317, 666, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not self.alive:
if not self.alive.isSet():
def __init__(self, *args, **kwds): self.serial = serial.Serial() self.serial.timeout = 0.5 #make sure that the alive flag can be checked from time to time self.settings = TerminalSetup() #placeholder for the settings self.thread = None # begin wxGlade: TerminalFrame.__init__ kwds["style"] = wxDEFAULT_FRAME_STYLE wxFrame.__init__(self, *args, **kwds) self.text_ctrl_output = wxTextCtrl(self, -1, "", style=wxTE_MULTILINE|wxTE_READONLY) # Menu Bar self.frame_terminal_menubar = wxMenuBar() self.SetMenuBar(self.frame_terminal_menubar) wxglade_tmp_menu = wxMenu() wxglade_tmp_menu.Append(ID_CLEAR, "&Clear", "", wxITEM_NORMAL) wxglade_tmp_menu.Append(ID_SAVEAS, "&Save Text As...", "", wxITEM_NORMAL) wxglade_tmp_menu.AppendSeparator() wxglade_tmp_menu.Append(ID_SETTINGS, "&Port Settings...", "", wxITEM_NORMAL) wxglade_tmp_menu.Append(ID_TERM, "&Terminal Settings...", "", wxITEM_NORMAL) wxglade_tmp_menu.AppendSeparator() wxglade_tmp_menu.Append(ID_EXIT, "&Exit", "", wxITEM_NORMAL) self.frame_terminal_menubar.Append(wxglade_tmp_menu, "&File") # Menu Bar end
bc318d41448fea891c29a778413d7a54f68ccfc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/bc318d41448fea891c29a778413d7a54f68ccfc0/wxTerminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 365, 18, 8818, 273, 2734, 18, 6342, 1435, 365, 18, 8818, 18, 4538, 273, 374, 18, 25, 282, 468, 6540, 3071, 716, 326, 13714, 2982, 848, 506, 5950, 628, 813, 358, 813, 365, 18, 4272, 273, 18778, 7365, 1435, 468, 12988, 364, 326, 1947, 365, 18, 5930, 273, 599, 468, 2376, 7075, 21308, 2486, 30, 18778, 3219, 16186, 2738, 972, 17149, 9614, 4060, 11929, 273, 7075, 5280, 67, 15072, 67, 15066, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 13, 365, 18, 955, 67, 16277, 67, 2844, 273, 7075, 1528, 12418, 12, 2890, 16, 300, 21, 16, 23453, 2154, 33, 27226, 1448, 67, 12845, 30690, 96, 27226, 1448, 67, 6949, 10857, 13, 225, 468, 9809, 16654, 365, 18, 3789, 67, 15979, 67, 27617, 373, 297, 273, 7075, 4599, 5190, 1435, 365, 18, 694, 4599, 5190, 12, 2890, 18, 3789, 67, 15979, 67, 27617, 373, 297, 13, 7075, 7043, 2486, 67, 5645, 67, 5414, 273, 7075, 4599, 1435, 7075, 7043, 2486, 67, 5645, 67, 5414, 18, 5736, 12, 734, 67, 23181, 985, 16, 7830, 9094, 3113, 23453, 7075, 12674, 67, 15480, 13, 7075, 7043, 2486, 67, 5645, 67, 5414, 18, 5736, 12, 734, 67, 25242, 3033, 16, 7830, 4755, 3867, 2970, 7070, 16, 23453, 7075, 12674, 67, 15480, 13, 7075, 7043, 2486, 67, 5645, 67, 5414, 18, 5736, 6581, 1435, 7075, 7043, 2486, 67, 5645, 67, 5414, 18, 5736, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 4672, 365, 18, 8818, 273, 2734, 18, 6342, 1435, 365, 18, 8818, 18, 4538, 273, 374, 18, 25, 282, 468, 6540, 3071, 716, 326, 13714, 2982, 848, 506, 5950, 628, 813, 358, 813, 365, 18, 4272, 273, 18778, 7365, 1435, 468, 12988, 364, 326, 1947, 365, 18, 5930, 273, 599, 468, 2376, 7075, 21308, 2486, 30, 18778, 3219, 16186, 2738, 972, 17149, 9614, 4060, 11929, 273, 7075, 5280, 67, 15072, 67, 15066, 7075, 3219, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 25577, 13, 365, 18, 955, 67, 16277, 67, 2844, 273, 7075, 1528, 12418, 12, 2890, 16, 300, 21, 16, 23453, 2154, 33, 27226, 2 ]
cty.c_int, [cty.c_long],
cty.c_int, [cty.c_long],
def fl_end_command(p1): """ fl_end_command(p1) -> num. """ retval = _fl_end_command(p1) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 409, 67, 3076, 12, 84, 21, 4672, 3536, 1183, 67, 409, 67, 3076, 12, 84, 21, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 409, 67, 3076, 12, 84, 21, 13, 327, 5221, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1183, 67, 409, 67, 3076, 12, 84, 21, 4672, 3536, 1183, 67, 409, 67, 3076, 12, 84, 21, 13, 317, 818, 18, 3536, 225, 5221, 273, 389, 2242, 67, 409, 67, 3076, 12, 84, 21, 13, 327, 5221, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]