rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
error = int(error.split(None, 1)) | error = int(error.split(None, 1)[0]) | def __init__(self, applications, catch=(404,)): self.apps = applications self.catch_codes = {} self.catch_exceptions = [] for error in catch: if isinstance(error, str): error = int(error.split(None, 1)) if isinstance(error, httpexceptions.HTTPException): exc = error code = error.code else: exc = httpexceptions.get_exception(error) code = error self.catch_codes[code] = exc self.catch_exceptions.append(exc) self.catch_exceptions = tuple(self.catch_exceptions) | ddfe81497a3ba9d729b75d1d040e5d954504b190 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/ddfe81497a3ba9d729b75d1d040e5d954504b190/cascade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12165,
16,
1044,
28657,
11746,
16,
3719,
30,
365,
18,
11411,
273,
12165,
365,
18,
14683,
67,
7000,
273,
2618,
365,
18,
14683,
67,
11855,
273,
5378,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12165,
16,
1044,
28657,
11746,
16,
3719,
30,
365,
18,
11411,
273,
12165,
365,
18,
14683,
67,
7000,
273,
2618,
365,
18,
14683,
67,
11855,
273,
5378,
364,
... |
retString += string.replace("\n", '') | retString += string.replace("\n", '').replace("\r", '') | def _get_header(str): '''Get the full text of a header and remove newlines.''' list = decode_header(str) retString = '' for string, charset in list: retString += string.replace("\n", '') return retString | e8e207f775f5601535954c3e4738f14b5592ab21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3483/e8e207f775f5601535954c3e4738f14b5592ab21/bugmail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3374,
12,
701,
4672,
9163,
967,
326,
1983,
977,
434,
279,
1446,
471,
1206,
19181,
1093,
6309,
666,
273,
2495,
67,
3374,
12,
701,
13,
325,
780,
273,
875,
364,
533,
16,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3374,
12,
701,
4672,
9163,
967,
326,
1983,
977,
434,
279,
1446,
471,
1206,
19181,
1093,
6309,
666,
273,
2495,
67,
3374,
12,
701,
13,
325,
780,
273,
875,
364,
533,
16,
4... |
ext = ('pyc' if __debug__ else 'pyo') expected = [base.format(ext) for base in ('__init__.{}', 'bar.{}')] expected.extend(['__init__.py', 'bar.py']) expected.sort() | expected = sorted(['__init__.py', '__init__.pyc', 'bar.py', 'bar.pyc']) | def test_legacy_paths(self): # Ensure that with the proper switch, compileall leaves legacy # pyc/pyo files, and no __pycache__ directory. retcode = subprocess.call( (sys.executable, '-m', 'compileall', '-b', '-q', self.pkgdir)) self.assertEqual(retcode, 0) # Verify the __pycache__ directory contents. cachedir = os.path.join(self.pkgdir, '__pycache__') self.assertFalse(os.path.exists(cachedir)) ext = ('pyc' if __debug__ else 'pyo') expected = [base.format(ext) for base in ('__init__.{}', 'bar.{}')] expected.extend(['__init__.py', 'bar.py']) expected.sort() self.assertEqual(sorted(os.listdir(self.pkgdir)), expected) | e80883cb43a11ecbf3ebdca16c035d50f1eb9a4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/e80883cb43a11ecbf3ebdca16c035d50f1eb9a4a/test_compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17386,
67,
4481,
12,
2890,
4672,
468,
7693,
716,
598,
326,
5338,
1620,
16,
4074,
454,
15559,
8866,
468,
2395,
71,
19,
2074,
83,
1390,
16,
471,
1158,
1001,
2074,
2493,
972,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17386,
67,
4481,
12,
2890,
4672,
468,
7693,
716,
598,
326,
5338,
1620,
16,
4074,
454,
15559,
8866,
468,
2395,
71,
19,
2074,
83,
1390,
16,
471,
1158,
1001,
2074,
2493,
972,
18... |
except DoesNotExistError: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Caught a DoesNotExistError while calling interface.release_vessels") | def release_resources(auth, vesselhandle_list): """ <Purpose> Release resources for a user over XMLRPC. <Arguments> auth An authorization dict of the form {'username':username, 'password':password} vesselhandle_list A list of vessel handles <Exceptions> Raises xmlrpclib Fault objects: 100, "GENIOpError" for internal GENI errors. 102, "GENIInvalidUserInput" if a user provides invalid vessel handles. <Returns> 0 on success. Raises a fault otherwise. """ geni_user = _auth(auth) #TODO: validate vessel_list. #if not isinstance(vessel_list, list): # raise TypeError("Invalid data types in handle list.") # since we're given a list of vessel 'handles', we need to convert them to a # list of actual Vessel objects; as release_vessels_of_user expects Vessel objs. try: list_of_vessel_objs = interface.get_vessel_list(vesselhandle_list) except DoesNotExistError: # given handle refers to a non-existant vessel # throw a fault? pass try: interface.release_vessels(geni_user, list_of_vessel_objs) except DoesNotExistError: raise xmlrpclib.Fault(100, "GENIOpError: Internal GENI Error! Caught a DoesNotExistError while calling interface.release_vessels") except InvalidRequestError, err: # vessel exists but isn't valid for you to use. raise xmlrpclib.Fault(102, "GENIInvalidUserInput: Tried to release a vessel that didn't belong to you. Details: " + str(err)) return 0 | e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/e15bef7c1eeeea6ae4b8f7315efcfc14ff360ad0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
67,
4683,
12,
1944,
16,
331,
403,
292,
4110,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
10819,
2703,
364,
279,
729,
1879,
3167,
8087,
18,
411,
4628,
34,
1357,
1922,
6093,
2065,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
67,
4683,
12,
1944,
16,
331,
403,
292,
4110,
67,
1098,
4672,
3536,
411,
10262,
4150,
34,
10819,
2703,
364,
279,
729,
1879,
3167,
8087,
18,
411,
4628,
34,
1357,
1922,
6093,
2065,
... | |
Either x or x-m must be an integer. | Either m or x-m must be an integer. | def binomial(x,m): r""" Return the binomial coefficient $$ x (x-1) \cdots (x-m+1) / m! $$ which is defined for $m \in \Z$ and any $x$. If $m<0$ return $0$. If x-m is an integer we define: binomial(x,m)= binomial(x,x-m) (This rule makes sense if x is assumed to be an integer) INPUT:: x,m -- numbers or symbolic expressions Either x or x-m must be an integer. OUTPUT:: number EXAMPLES:: sage: binomial(5,2) 10 sage: binomial(2,0) 1 sage: binomial(1/2, 0) 1 sage: binomial(3,-1) 0 sage: binomial(20,10) 184756 sage: binomial(RealField()('2.5'), 2) 1.87500000000000 sage: n=var('n'); binomial(n,2) (n - 1)*n/2 sage: n=var('n'); binomial(n,n) 1 sage: n=var('n'); binomial(n,n-1) n """ if not isinstance(m, (int, long, integer.Integer)): try: m=integer_ring.ZZ(x-m) except TypeError: raise TypeError, 'Either m or x-m must be an integer' if isinstance(x, (int, long, integer.Integer)): return integer_ring.ZZ(pari(x).binomial(m)) try: P = x.parent() except AttributeError: P = type(x) if m < 0: return P(0) return misc.prod([x-i for i in xrange(m)]) / P(factorial(m)) | 1a020eacc741381f5e57fe8e80e43aef5e717d5f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1a020eacc741381f5e57fe8e80e43aef5e717d5f/arith.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
11496,
12,
92,
16,
81,
4672,
436,
8395,
2000,
326,
4158,
11496,
16554,
5366,
619,
261,
92,
17,
21,
13,
521,
4315,
6968,
261,
92,
17,
81,
15,
21,
13,
342,
312,
5,
5366,
1492,
... |
return "/Users/gschmidt/Movies/mahnamahna.mpeg" | return self.item.getFilename() | def getPath(self): # NEEDS return "/Users/gschmidt/Movies/mahnamahna.mpeg" | 185159b0ac3bde69e8e08ff969675209f7ad5432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/185159b0ac3bde69e8e08ff969675209f7ad5432/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4339,
12,
2890,
4672,
468,
12901,
2056,
55,
327,
2206,
6588,
19,
564,
343,
13138,
88,
19,
16727,
29028,
19,
2540,
76,
17808,
9795,
6582,
18,
19951,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
4339,
12,
2890,
4672,
468,
12901,
2056,
55,
327,
2206,
6588,
19,
564,
343,
13138,
88,
19,
16727,
29028,
19,
2540,
76,
17808,
9795,
6582,
18,
19951,
6,
2,
-100,
-100,
-100,
-100,
-100,
... |
Sub(quality, "secondaryAzimuthalGap").text = '%s' % self.EventAzimGap | Sub(quality, "azimuthalGap").text = '%s' % self.EventAzimGap Sub(quality, "secondaryAzimuthalGap") | def hyp20002XML(self): """ Returns output of hypo2000 as xml file """ xml = Element("event") Sub(Sub(xml, "event_id"), "value").text = self.xmlEventID Sub(Sub(xml, "event_type"), "value").text = "manual" # we save P picks on Z-component and S picks on N-component # XXX standard values for unset keys!!!???!!!??? epidists = [] for i in range(len(self.streams)): if self.dicts[i].has_key('P'): pick = Sub(xml, "pick") wave = Sub(pick, "waveform") wave.set("networkCode", self.streams[i][0].stats.network) wave.set("stationCode", self.streams[i][0].stats.station) wave.set("channelCode", self.streams[i][0].stats.channel) wave.set("locationCode", "") date = Sub(pick, "time") # prepare time of pick picktime = self.streams[i][0].stats.starttime picktime += (self.dicts[i]['P'] / self.streams[i][0].stats.sampling_rate) Sub(date, "value").text = picktime.isoformat() # + '.%06i' % picktime.microsecond) if self.dicts[i].has_key('PErr1') and self.dicts[i].has_key('PErr2'): temp = float(self.dicts[i]['PErr2'] - self.dicts[i]['PErr1']) temp /= self.streams[i][0].stats.sampling_rate Sub(date, "uncertainty").text = str(temp) else: Sub(date, "uncertainty") Sub(pick, "phaseHint").text = "P" if self.dicts[i].has_key('POnset'): Sub(pick, "onset").text = self.dicts[i]['POnset'] else: Sub(pick, "onset") if self.dicts[i].has_key('PPol'): if self.dicts[i]['PPol'] == 'up' or self.dicts[i]['PPol'] == 'poorup': Sub(pick, "polarity").text = 'positive' elif self.dicts[i]['PPol'] == 'down' or self.dicts[i]['PPol'] == 'poordown': Sub(pick, "polarity").text = 'negative' else: Sub(pick, "polarity") if self.dicts[i].has_key('PWeight'): Sub(pick, "weight").text = '%i' % self.dicts[i]['PWeight'] else: Sub(pick, "weight") Sub(Sub(pick, "min_amp"), "value") #XXX what is min_amp??? if self.dicts[i].has_key('Psynth'): Sub(pick, "phase_compu").text #XXX this is redundant. can be constructed from above info Sub(Sub(pick, "phase_res"), "value").text = '%s' % self.dicts[i]['Pres'] Sub(Sub(pick, "phase_weight"), "value").text = '%s' % self.dicts[i]['PsynthWeight'] Sub(Sub(pick, "phase_delay"), "value") Sub(Sub(pick, "azimuth"), "value").text = '%s' % self.dicts[i]['PAzim'] Sub(Sub(pick, "incident"), "value").text = '%s' % self.dicts[i]['PInci'] Sub(Sub(pick, "epi_dist"), "value").text = '%s' % self.dicts[i]['distEpi'] Sub(Sub(pick, "hyp_dist"), "value").text = '%s' % self.dicts[i]['distHypo'] if self.dicts[i].has_key('S'): axind = self.dicts[i]['Saxind'] pick = Sub(xml, "pick") wave = Sub(pick, "waveform") wave.set("networkCode", self.streams[i][axind].stats.network) wave.set("stationCode", self.streams[i][axind].stats.station) wave.set("channelCode", self.streams[i][axind].stats.channel) wave.set("locationCode", "") date = Sub(pick, "time") # prepare time of pick picktime = self.streams[i][axind].stats.starttime picktime += (self.dicts[i]['S'] / self.streams[i][axind].stats.sampling_rate) Sub(date, "value").text = picktime.isoformat() # + '.%06i' % picktime.microsecond) if self.dicts[i].has_key('SErr1') and self.dicts[i].has_key('SErr2'): temp = float(self.dicts[i]['SErr2'] - self.dicts[i]['SErr1']) temp /= self.streams[i][axind].stats.sampling_rate Sub(date, "uncertainty").text = str(temp) else: Sub(date, "uncertainty") Sub(pick, "phaseHint").text = "S" if self.dicts[i].has_key('SOnset'): Sub(pick, "onset").text = self.dicts[i]['SOnset'] else: Sub(pick, "onset") if self.dicts[i].has_key('SPol'): if self.dicts[i]['SPol'] == 'up' or self.dicts[i]['SPol'] == 'poorup': Sub(pick, "polarity").text = 'positive' elif self.dicts[i]['SPol'] == 'down' or self.dicts[i]['SPol'] == 'poordown': Sub(pick, "polarity").text = 'negative' else: Sub(pick, "polarity") if self.dicts[i].has_key('SWeight'): Sub(pick, "weight").text = '%i' % self.dicts[i]['SWeight'] else: Sub(pick, "weight") Sub(Sub(pick, "min_amp"), "value") #XXX what is min_amp??? if self.dicts[i].has_key('Ssynth'): Sub(pick, "phase_compu").text #XXX this is redundant. can be constructed from above info Sub(Sub(pick, "phase_res"), "value").text = '%s' % self.dicts[i]['Sres'] Sub(Sub(pick, "phase_weight"), "value").text = '%s' % self.dicts[i]['SsynthWeight'] Sub(Sub(pick, "phase_delay"), "value") Sub(Sub(pick, "azimuth"), "value").text = '%s' % self.dicts[i]['SAzim'] Sub(Sub(pick, "incident"), "value").text = '%s' % self.dicts[i]['SInci'] Sub(Sub(pick, "epi_dist"), "value").text = '%s' % self.dicts[i]['distEpi'] Sub(Sub(pick, "hyp_dist"), "value").text = '%s' % self.dicts[i]['distHypo'] #XXX XXX XXX XXX check lines below and compare to e.g. # teide:8080/xml/seismology/event/baynet09_0641.xml # especially "earth_mod" could be set with meaningful value # read from hypo2000 output origin = Sub(xml, "origin") date = Sub(origin, "time") Sub(date, "value").text = self.EventTime.isoformat() # + '.%03i' % self.EventTime.microsecond Sub(date, "uncertainty") lat = Sub(origin, "latitude") Sub(lat, "value").text = '%s' % self.EventLat Sub(lat, "uncertainty").text = '%s' % self.EventErrY #XXX Lat Error in km??!! lon = Sub(origin, "longitude") Sub(lon, "value").text = '%s' % self.EventLon Sub(lon, "uncertainty").text = '%s' % self.EventErrX #XXX Lon Error in km??!! depth = Sub(origin, "depth") Sub(depth, "value").text = '%s' % self.EventZ Sub(depth, "uncertainty").text = '%s' % self.EventErrZ Sub(origin, "depth_type").text = "from location program" Sub(origin, "earth_mod").text = "STAUFEN" Sub(origin, "originUncertainty") quality = Sub(origin, "originQuality") Sub(quality, "P_usedPhaseCount").text = '%i' % self.PCount Sub(quality, "S_usedPhaseCount").text = '%i' % self.SCount Sub(quality, "usedPhaseCount").text = '%i' % (self.PCount + self.SCount) Sub(quality, "usedStationCount").text = '%i' % self.usedStationsCount Sub(quality, "associatedPhaseCount").text = '%i' % (self.PCount + self.SCount) Sub(quality, "associatedStationCount").text = '%i' % len(self.dicts) Sub(quality, "depthPhaseCount").text = "0" Sub(quality, "standardError").text = '%s' % self.EventStdErr Sub(quality, "secondaryAzimuthalGap").text = '%s' % self.EventAzimGap Sub(quality, "groundTruthLevel") Sub(quality, "minimumDistance").text = '%s' % self.epidistMin Sub(quality, "maximumDistance").text = '%s' % self.epidistMax Sub(quality, "medianDistance").text = '%s' % self.epidistMedian magnitude = Sub(xml, "magnitude") mag = Sub(magnitude, "mag") if np.isnan(self.netMag): Sub(mag, "value") Sub(mag, "uncertainty") else: Sub(mag, "value").text = '%s' % self.netMag Sub(mag, "uncertainty").text = '%s' % self.netMagVar Sub(magnitude, "type").text = "Ml" Sub(magnitude, "stationCount").text = '%i' % self.staMagCount for i in range(len(self.streams)): stationMagnitude = Sub(xml, "stationMagnitude") if self.dicts[i].has_key('Mag'): mag = Sub(stationMagnitude, 'mag') Sub(mag, 'value').text = '%s' % self.dicts[i]['Mag'] Sub(mag, 'uncertainty').text Sub(stationMagnitude, 'station').text = '%s' % self.dicts[i]['Station'] if self.dicts[i]['MagUse']: Sub(stationMagnitude, 'weight').text = '%s' % (1. / self.staMagCount) else: Sub(stationMagnitude, 'weight').text = '0' Sub(stationMagnitude, 'channels').text = '%s' % self.dicts[i]['MagChannel'] return tostring(xml,pretty_print=True,xml_declaration=True) | cdb296935764c4f637eb405e18bf7388bd815e22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/cdb296935764c4f637eb405e18bf7388bd815e22/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
6976,
3103,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
16117,
83,
17172,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16117,
6976,
3103,
4201,
12,
2890,
4672,
3536,
2860,
876,
434,
16117,
83,
17172,
487,
2025,
585,
3536,
2025,
273,
225,
3010,
2932,
2575,
7923,
2592,
12,
1676,
12,
2902,
16,
315,
2575,
67... |
assert d == "e2da3bb63e6468141e4830e6f6aa220c" | assert d == "c4089359af431bb2962d6a8e457dd86f" | def exercise_atoms(): pdb_inp = pdb.input(source_info=None, lines=flex.split_lines("""\ | 57535404decd05f3a5832686a97f513c3085e932 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/57535404decd05f3a5832686a97f513c3085e932/tst_hierarchy_v2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
14937,
13332,
10892,
67,
31647,
273,
10892,
18,
2630,
12,
3168,
67,
1376,
33,
7036,
16,
2362,
33,
27592,
18,
4939,
67,
3548,
2932,
3660,
64,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
24165,
67,
14937,
13332,
10892,
67,
31647,
273,
10892,
18,
2630,
12,
3168,
67,
1376,
33,
7036,
16,
2362,
33,
27592,
18,
4939,
67,
3548,
2932,
3660,
64,
2,
-100,
-100,
-100,
-100,
-100,
... |
self.title, self.input = input.split('\n', 1) if self.title: self.title = self.title.strip() | self.title = title self.input = input | def __init__(self, input, correct, file, line, setup=None, teardown=None, context=None): unittest.TestCase.__init__(self, 'test') self.title, self.input = input.split('\n', 1) if self.title: self.title = self.title.strip() self.correct = correct self.file = file self.line = line self._setup = setup self._teardown = teardown | 6648663ff7931a79e9e83e80dd03f1448d2d7676 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/6648663ff7931a79e9e83e80dd03f1448d2d7676/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
3434,
16,
585,
16,
980,
16,
3875,
33,
7036,
16,
28196,
33,
7036,
16,
819,
33,
7036,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
3434,
16,
585,
16,
980,
16,
3875,
33,
7036,
16,
28196,
33,
7036,
16,
819,
33,
7036,
4672,
2836,
3813,
18,
4709,
2449,
16186,
2738,
972,
12,
28... |
return [] | return {} | def readCharBlacklist(self, char_blacklist_file): if not char_blacklist_file: return [] char_blacklist = {} for char in open(char_blacklist_file).readlines(): if char: char = int(char.strip()) char_blacklist[char]=True return char_blacklist | b77644c9582d2ebd46f70aa81102b546954fccc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/b77644c9582d2ebd46f70aa81102b546954fccc0/fontswitcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2156,
25811,
12,
2890,
16,
1149,
67,
22491,
67,
768,
4672,
309,
486,
1149,
67,
22491,
67,
768,
30,
327,
2618,
1149,
67,
22491,
273,
2618,
364,
1149,
316,
1696,
12,
3001,
67,
22491... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2156,
25811,
12,
2890,
16,
1149,
67,
22491,
67,
768,
4672,
309,
486,
1149,
67,
22491,
67,
768,
30,
327,
2618,
1149,
67,
22491,
273,
2618,
364,
1149,
316,
1696,
12,
3001,
67,
22491... |
if not content.type.any() and \ content.type.derived(): name = content.type.name node.set('xsi:type', name) log.debug('encoding name=(%s) on:\n\t%s', name, node) node.addPrefix(Namespace.xsins[0], Namespace.xsins[1]) | if not content.type.any() and content.type.derived(): name = content.type.name ns = content.type.namespace() ref = ':'.join((ns[0], name)) node.set('xsi:type', ref) log.debug('encoding name=(%s)', name) node.addPrefix(ns[0], ns[1]) node.addPrefix(Namespace.xsins[0], Namespace.xsins[1]) | def encode(self, node, content): """ Add (soap) encoding information @param node: The node to update. @type node: L{Element} @param content: The content for which proccessing has ended. @type content: L{Object} """ if not content.type.any() and \ content.type.derived(): name = content.type.name node.set('xsi:type', name) log.debug('encoding name=(%s) on:\n\t%s', name, node) node.addPrefix(Namespace.xsins[0], Namespace.xsins[1]) | 226991359d254c1e348799799ecc745a4a739316 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5377/226991359d254c1e348799799ecc745a4a739316/marshaller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
756,
16,
913,
4672,
3536,
1436,
261,
19215,
13,
2688,
1779,
632,
891,
756,
30,
1021,
756,
358,
1089,
18,
632,
723,
756,
30,
511,
95,
1046,
97,
632,
891,
913,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
756,
16,
913,
4672,
3536,
1436,
261,
19215,
13,
2688,
1779,
632,
891,
756,
30,
1021,
756,
358,
1089,
18,
632,
723,
756,
30,
511,
95,
1046,
97,
632,
891,
913,
30,
... |
Return True if this group is cyclic. | Return ``True`` if this group is cyclic. | def is_cyclic(self): """ Return True if this group is cyclic. EXAMPLES:: sage: G = PermutationGroup(['(1,2,3)(4,5)', '(1,2,3,4,5)']) sage: G.is_cyclic() False sage: G = PermutationGroup(['(1,2,3)(4,5)']) sage: G.is_cyclic() True """ return self._gap_().IsCyclic().bool() | 1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2431,
18964,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
30383,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2431,
18964,
12,
2890,
4672,
3536,
2000,
12176,
5510,
10335,
309,
333,
1041,
353,
30383,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9245,
1114,
12,
32... |
log.is_success = false | log.is_success = False | def check_mirror_url(mirror_url): url = mirror_url.url + 'lastsync' logger.info("checking URL %s" % url) log = MirrorLog(url=mirror_url, check_time=datetime.utcnow()) try: start = time.time() result = urllib2.urlopen(url, timeout=10) data = result.read() result.close() end = time.time() # lastsync should be an epoch value, but some mirrors # are creating their own in RFC-3339 format: # '2010-09-02 11:05:06+02:00' parsed_time = None try: parsed_time = datetime.utcfromtimestamp(int(data)) except ValueError: # it is bad news to try logging the lastsync value; # sometimes we get a crazy-encoded web page. logger.info("attempting to parse generated lastsync file" " from mirror %s" % url) parsed_time = parse_rfc3339_datetime(data) log.last_sync = parsed_time # if we couldn't parse a time, this is a failure if parsed_time == None: log.error = "Could not parse time from lastsync" log.is_success = False log.duration = end - start logger.debug("success: %s, %.2f" % (url, log.duration)) except urllib2.HTTPError, e: if e.code == 404: # we have a duration, just not a success end = time.time() log.duration = end - start log.is_success = False log.error = str(e) logger.debug("failed: %s, %s" % (url, log.error)) except urllib2.URLError, e: log.is_success=False log.error = e.reason if isinstance(e.reason, types.StringTypes) and \ re.search(r'550.*No such file', e.reason): # similar to 404 case above, still record duration end = time.time() log.duration = end - start if isinstance(e.reason, socket.timeout): log.error = "Connection timed out." elif isinstance(e.reason, socket.error): log.error = e.reason.args[1] logger.debug("failed: %s, %s" % (url, log.error)) except socket.timeout, e: log.is_success = false log.error = "Connection timed out." logger.debug("failed: %s, %s" % (url, log.error)) log.save() return log | fe5e460d0607cb0989a92441afe2bdd52640f214 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/fe5e460d0607cb0989a92441afe2bdd52640f214/mirrorcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
27197,
67,
718,
12,
27197,
67,
718,
4672,
880,
273,
15593,
67,
718,
18,
718,
397,
296,
2722,
8389,
11,
1194,
18,
1376,
2932,
24609,
1976,
738,
87,
6,
738,
880,
13,
613,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
27197,
67,
718,
12,
27197,
67,
718,
4672,
880,
273,
15593,
67,
718,
18,
718,
397,
296,
2722,
8389,
11,
1194,
18,
1376,
2932,
24609,
1976,
738,
87,
6,
738,
880,
13,
613,
273,... |
os.makedirs(os.path.join(mm_cfg.LIST_DATA_DIR, name), 02775) | try: os.makedirs(os.path.join(mm_cfg.LIST_DATA_DIR, name), 02775) except OSError: raise Errors.MMUnknownListError | def Create(self, name, admin, crypted_password): if Utils.list_exists(name): raise Errors.MMListAlreadyExistsError, name Utils.ValidateEmail(admin) omask = os.umask(0) try: os.makedirs(os.path.join(mm_cfg.LIST_DATA_DIR, name), 02775) finally: os.umask(omask) self._full_path = os.path.join(mm_cfg.LIST_DATA_DIR, name) self._internal_name = name # Don't use Lock() since that tries to load the non-existant config.db self.__lock.lock() self.InitVars(name, admin, crypted_password) self._ready = 1 self.InitTemplates() self.Save() | 03cefec889a189ac182db77a254bee97fc3d4ac7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/03cefec889a189ac182db77a254bee97fc3d4ac7/MailList.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
12,
2890,
16,
508,
16,
3981,
16,
276,
4567,
67,
3664,
4672,
309,
6091,
18,
1098,
67,
1808,
12,
529,
4672,
1002,
9372,
18,
8206,
682,
16686,
668,
16,
508,
6091,
18,
4270,
4134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
12,
2890,
16,
508,
16,
3981,
16,
276,
4567,
67,
3664,
4672,
309,
6091,
18,
1098,
67,
1808,
12,
529,
4672,
1002,
9372,
18,
8206,
682,
16686,
668,
16,
508,
6091,
18,
4270,
4134,
... |
if _UseAnimation: self.canvas.mpl_connect('draw_event', self._handleDrawEvent) | self.canvas.mpl_connect('draw_event', self._handleDrawEvent) | def __init__(self, master, timeRange = 3600, width = 8, height = 2, numSubplots = 1, showGrid = True, dateFormat = "%H:%M:%S", updateInterval = None, cnvTimeFunc = None, doAutoscale = True, | 3b283b48ede157cec1c6e79ad973ff5a399f5fbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6354/3b283b48ede157cec1c6e79ad973ff5a399f5fbe/StripChartWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
16,
813,
2655,
273,
12396,
16,
1835,
273,
1725,
16,
2072,
273,
576,
16,
818,
1676,
13214,
273,
404,
16,
2405,
6313,
273,
1053,
16,
16996,
273,
2213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4171,
16,
813,
2655,
273,
12396,
16,
1835,
273,
1725,
16,
2072,
273,
576,
16,
818,
1676,
13214,
273,
404,
16,
2405,
6313,
273,
1053,
16,
16996,
273,
2213... |
if is_pdftohtml: | if is_pdftohtml and length > -1: | def dump(raw, where): import os dp = getattr(self.extra_opts, 'debug_pipeline', None) if dp and os.path.exists(dp): odir = os.path.join(dp, 'input') if os.path.exists(odir): odir = os.path.join(odir, where) if not os.path.exists(odir): os.makedirs(odir) name, i = None, 0 while not name or os.path.exists(os.path.join(odir, name)): i += 1 name = '%04d.html'%i with open(os.path.join(odir, name), 'wb') as f: f.write(raw.encode('utf-8')) | 0ce2126cdc5b78440059018355494e2bdb3fd95f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/0ce2126cdc5b78440059018355494e2bdb3fd95f/preprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
1899,
16,
1625,
4672,
1930,
1140,
9986,
273,
3869,
12,
2890,
18,
7763,
67,
4952,
16,
296,
4148,
67,
14511,
2187,
599,
13,
309,
9986,
471,
1140,
18,
803,
18,
1808,
12,
9295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
1899,
16,
1625,
4672,
1930,
1140,
9986,
273,
3869,
12,
2890,
18,
7763,
67,
4952,
16,
296,
4148,
67,
14511,
2187,
599,
13,
309,
9986,
471,
1140,
18,
803,
18,
1808,
12,
9295,
... |
val = ((x1-x0)* aprioriDist[values[i]])/len(self.data) | if i == len(aprioriDist)-1: v = x1-x0 - total else: v = int(((x1-x0)* aprioriDist[values[i]])/float(len(self.data))) | def addRect(self, x0, x1, y0, y1, condition = "", usedAttrs = [], attrVals = ""): x0 = int(x0); x1 = int(x1); y0 = int(y0); y1 = int(y1) if x0 == x1: x1+=1 if y0 == y1: y1+=1 | e9d9dacd9a0eba29f2c3082ac6763755c24eb485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/e9d9dacd9a0eba29f2c3082ac6763755c24eb485/OWMosaicDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6120,
12,
2890,
16,
619,
20,
16,
619,
21,
16,
677,
20,
16,
677,
21,
16,
2269,
273,
23453,
1399,
8262,
273,
5378,
16,
1604,
13169,
273,
1408,
4672,
619,
20,
273,
509,
12,
92,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
6120,
12,
2890,
16,
619,
20,
16,
619,
21,
16,
677,
20,
16,
677,
21,
16,
2269,
273,
23453,
1399,
8262,
273,
5378,
16,
1604,
13169,
273,
1408,
4672,
619,
20,
273,
509,
12,
92,
2... |
if __namedColors is not None: return __namedColors | global _namedColors if _namedColors is not None: return _namedColors | def getAllNamedColors(): #returns a dictionary of all the named ones in the module # uses a singleton for efficiency if __namedColors is not None: return __namedColors import colors __namedColors = {} for (name, value) in colors.__dict__.items(): if isinstance(value, Color): __namedColors[name] = value return __namedColors | 3daa68405a22f63b744187a24ada665bcc516ed9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/3daa68405a22f63b744187a24ada665bcc516ed9/colors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5514,
7604,
12570,
13332,
468,
6154,
279,
3880,
434,
777,
326,
4141,
5945,
316,
326,
1605,
468,
4692,
279,
6396,
364,
30325,
2552,
389,
13188,
12570,
309,
389,
13188,
12570,
353,
486,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5514,
7604,
12570,
13332,
468,
6154,
279,
3880,
434,
777,
326,
4141,
5945,
316,
326,
1605,
468,
4692,
279,
6396,
364,
30325,
2552,
389,
13188,
12570,
309,
389,
13188,
12570,
353,
486,
599,... |
print self.TC.mount(0, target[0], "ME182BT") | print self.TC.mount(0, target[0], "ME182BT") | def action(self, button): selection = self.treeview.get_selection() model, iter = selection.get_selected() if iter: state = self.liststore.get(iter, 2) path = self.liststore.get(iter, 0) target = self.liststore.get(iter, 1) if state[0] == "volume not mounted": self.liststore.set(iter, 2, "mounted") print self.TC.mount(0, target[0], "ME182BT") elif state[0] == "mounted": self.liststore.set(iter, 2, "unmounted") return | 1927e83351e540bbe69485b75510e7cc834a2758 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3000/1927e83351e540bbe69485b75510e7cc834a2758/gTrueCrypt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
938,
16,
1400,
273,
4421,
18,
588,
67,
8109,
1435,
309,
1400,
30,
919,
273,
365,
18,
1098,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
3568,
4672,
4421,
273,
365,
18,
3413,
1945,
18,
588,
67,
10705,
1435,
938,
16,
1400,
273,
4421,
18,
588,
67,
8109,
1435,
309,
1400,
30,
919,
273,
365,
18,
1098,
2... |
13 0 LOAD_FAST 0 (a) | %-4d 0 LOAD_FAST 0 (a) | def _f(a): print a return 1 | ba3442719752c0249b79d560478e9add02475101 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ba3442719752c0249b79d560478e9add02475101/test_dis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
12,
69,
4672,
1172,
279,
327,
404,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
12,
69,
4672,
1172,
279,
327,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.__query_dict__['dillhole'][0] + ' ' + \ self.__query_dict__['dillhole'][1] + ' ?' | self.__query_dict__['expression'][0] + ' ' + \ self.__query_dict__['expression'][1] + ' ?' | def __init__(self, database, query_dict=None): """ point out strings '"value"' """ if not isinstance(database, SQLDatabase): raise TypeError('%s is not a valid SQLDatabase'%database) self.__database__ = database self.__query_dict__ = query_dict # TODO: ERROR CHECKING: # 1. Confirm query_dict matches skeleton: # 2. confirm tblname is in database: # 3. confirm display_cols in tblname: # 4. confirm col (from dillhole is in tblname): # confirm operator: verify_operator(query_dict['dillhole'][1]) # make tuple: if self.__query_dict__ is not None: self.__param_tuple__ = (self.__query_dict__['dillhole'][2],) else: self.__param_tuple__ = None # make query string: if self.__query_dict__ is not None: self.__query_string__ = 'SELECT ' + self.__query_dict__['table_name'] + \ '.' + self.__query_dict__['display_cols'] + \ ' FROM ' + self.__query_dict__['table_name'] + \ ' WHERE ' + self.__query_dict__['table_name'] + '.' + \ self.__query_dict__['dillhole'][0] + ' ' + \ self.__query_dict__['dillhole'][1] + ' ?' else: self.__query_string__ = None | ccd462ba82c8e638768d9aaffb11ed63f3c9a76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ccd462ba82c8e638768d9aaffb11ed63f3c9a76d/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
225,
309,
486,
1549,
12,
6231,
16,
3063,
4254,
4672,
1002,
3580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2063,
16,
843,
67,
1576,
33,
7036,
4672,
3536,
1634,
596,
2064,
2119,
1132,
5187,
3536,
225,
309,
486,
1549,
12,
6231,
16,
3063,
4254,
4672,
1002,
3580,
... |
pass | if self.focused: self.focused.unfocus() self.focused = None | def cleanup( self): """called when switching to another mode""" #self._recent_key_seq = '' pass | 92973d53b4f0c7d7b893685c491dc4c205d7af3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4298/92973d53b4f0c7d7b893685c491dc4c205d7af3d/modes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
365,
4672,
3536,
11777,
1347,
30882,
358,
4042,
1965,
8395,
468,
2890,
6315,
20872,
67,
856,
67,
5436,
273,
875,
430,
365,
18,
74,
14569,
30,
365,
18,
74,
14569,
18,
318,
139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
12,
365,
4672,
3536,
11777,
1347,
30882,
358,
4042,
1965,
8395,
468,
2890,
6315,
20872,
67,
856,
67,
5436,
273,
875,
430,
365,
18,
74,
14569,
30,
365,
18,
74,
14569,
18,
318,
139... |
author_email='zope3-dev@zope.org', | author_email='zope-dev@zope.org', | def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | 7659c4e3ec54d2d14237a4c971cef2e78106baac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10012/7659c4e3ec54d2d14237a4c971cef2e78106baac/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
30857,
86,
1973,
4672,
327,
1696,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
12287,
12,
972,
768,
972,
3631,
380,
86,
1973,
13,
2934,
896,
1435,
225,
2,
-100,
-100,
-100,... |
c.Run() | def call_jobqueue_set_drain(node_list, drain_flag): """Set the drain flag on the queue. | ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
4688,
4000,
67,
542,
67,
72,
7596,
12,
2159,
67,
1098,
16,
15427,
67,
6420,
4672,
3536,
694,
326,
15427,
2982,
603,
326,
2389,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
4688,
4000,
67,
542,
67,
72,
7596,
12,
2159,
67,
1098,
16,
15427,
67,
6420,
4672,
3536,
694,
326,
15427,
2982,
603,
326,
2389,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
'd': r"(?P<d>3[0-1]|[0-2]\d|\d| \d)", | 'd': r"(?P<d>3[0-1]|[1-2]\d|0[1-9]|[1-9]| [1-9])", | def __init__(self, locale_time=LocaleTime()): """Init inst with non-locale regexes and store LocaleTime object.""" # XXX: should 0 be valid for: # day (d), julian day (j), month (m), and hour12 (I)? super(TimeRE,self).__init__({ # The " \d" option is to make %c from ANSI C work 'd': r"(?P<d>3[0-1]|[0-2]\d|\d| \d)", 'H': r"(?P<H>2[0-3]|[0-1]\d|\d)", 'I': r"(?P<I>0\d|1[0-2]|\d)", 'j': r"(?P<j>(?:3[0-5]\d|36[0-6])|[0-2]\d\d|\d\d|\d)", 'm': r"(?P<m>0\d|1[0-2]|\d)", 'M': r"(?P<M>[0-5]\d|\d)", 'S': r"(?P<S>6[0-1]|[0-5]\d|\d)", 'U': r"(?P<U>5[0-3]|[0-4]\d|\d)", 'w': r"(?P<w>[0-6])", 'W': r"(?P<W>5[0-3]|[0-4]\d|\d)", # Same as U 'y': r"(?P<y>\d\d)", 'Y': r"(?P<Y>\d\d\d\d)"}) self.locale_time = locale_time | 50f001a2bec2167530d44e08a09c827478352447 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/50f001a2bec2167530d44e08a09c827478352447/_strptime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2573,
67,
957,
33,
3916,
950,
1435,
4672,
3536,
2570,
1804,
598,
1661,
17,
6339,
28522,
471,
1707,
6458,
950,
733,
12123,
468,
11329,
30,
1410,
374,
506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2573,
67,
957,
33,
3916,
950,
1435,
4672,
3536,
2570,
1804,
598,
1661,
17,
6339,
28522,
471,
1707,
6458,
950,
733,
12123,
468,
11329,
30,
1410,
374,
506,
... |
if print_tree: print print SCons.Util.render_tree(self.target, get_children) | def execute(self): if self.target.get_state() == SCons.Node.up_to_date: if self.top: print 'scons: "%s" is up to date.' % str(self.target) if print_tree: print print SCons.Util.render_tree(self.target, get_children) else: try: self.target.build() if self.top and print_tree: print print SCons.Util.render_tree(self.target, get_children) except BuildError, e: sys.stderr.write("scons: *** [%s] Error %s\n" % (e.node, str(e.stat))) raise | b56b2f19bd1a51f4e2f68affbbd2303d69840d27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/b56b2f19bd1a51f4e2f68affbbd2303d69840d27/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
309,
365,
18,
3299,
18,
588,
67,
2019,
1435,
422,
20487,
18,
907,
18,
416,
67,
869,
67,
712,
30,
309,
365,
18,
3669,
30,
1172,
296,
87,
8559,
30,
2213,
87,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
309,
365,
18,
3299,
18,
588,
67,
2019,
1435,
422,
20487,
18,
907,
18,
416,
67,
869,
67,
712,
30,
309,
365,
18,
3669,
30,
1172,
296,
87,
8559,
30,
2213,
87,
6,... | |
this = apply(_quickfix.new_ContAmtType, args) | this = _quickfix.new_ContAmtType(*args) | def __init__(self, *args): this = apply(_quickfix.new_ContAmtType, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
660,
31787,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
660,
31787,
559,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
3... |
if event.key() == ord('A'): index = self.currentIndex() if not index.isValid(): return self.model().addAnnotation(index, {'type':'beer', 'alc': '5.1', 'name': 'rothaus'}) if event.key() == ord('D'): index = self.currentIndex() if not index.isValid(): return self.model().removeAnnotation(index) | def keyPressEvent(self, event): ## handle deletions of items if event.key() == Qt.Key_Delete: index = self.currentIndex() if not index.isValid(): return parent = self.model().parent(index) self.model().removeRow(index.row(), parent) | 28363c24f0576c37694ba68b8c9bb3d163d0321e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/142/28363c24f0576c37694ba68b8c9bb3d163d0321e/annotationmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
7541,
1640,
26334,
434,
1516,
309,
871,
18,
856,
1435,
422,
7354,
18,
653,
67,
2613,
30,
770,
273,
365,
18,
2972,
1016,
1435,
309,
486,
770,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
11840,
1133,
12,
2890,
16,
871,
4672,
7541,
1640,
26334,
434,
1516,
309,
871,
18,
856,
1435,
422,
7354,
18,
653,
67,
2613,
30,
770,
273,
365,
18,
2972,
1016,
1435,
309,
486,
770,
... | |
def begin_batch(self): """ Denote the beginning of a batch update. No update commands will be sent to the backend server until end_batch() is called. Any update commands issued outside of a begin_batch()/ end_batch() series will be immediately processed. begin_batch/end_batch transactions can be nested. The transaction will not be sent to the backend server until as many end_batch() calls have been made as begin_batch()s. """ if not self.batch_cnt: self.__batch_queue = [] self.batch_cnt += 1 return self.batch_cnt def end_batch(self, commit=False): """ Denote the end of a batch update. Sends any queued commands to the backend server. If `commit` is True, then a <commit/> command is included at the end of the list of commands sent. """ batch_cnt = self.batch_cnt - 1 if batch_cnt < 0: raise SolrException( "end_batch called without a corresponding begin_batch") self.batch_cnt = batch_cnt if batch_cnt: return False if commit: self.__batch_queue.append('<commit/>') return self._update("".join(self.__batch_queue)) | def begin_batch(self): """ Denote the beginning of a batch update. | 10c60c538f0740775ac218c7e53a1f14861578cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4931/10c60c538f0740775ac218c7e53a1f14861578cf/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
5303,
12,
2890,
4672,
3536,
22453,
1168,
326,
8435,
434,
279,
2581,
1089,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2376,
67,
5303,
12,
2890,
4672,
3536,
22453,
1168,
326,
8435,
434,
279,
2581,
1089,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
open(mainwrapperpath, "w").write(BOOTSTRAP_SCRIPT % locals()) os.chmod(mainwrapperpath, 0775) | open(bootstrappath, "w").write(BOOTSTRAP_SCRIPT % locals()) os.chmod(bootstrappath, 0775) | def preProcess(self): resdir = "Contents/Resources" if self.executable is not None: if self.mainprogram is None: execname = self.name else: execname = os.path.basename(self.executable) execpath = pathjoin(self.execdir, execname) if not self.symlink_exec: self.files.append((self.executable, execpath)) self.binaries.append(execpath) self.execpath = execpath | 3b64c2b31cddc5ef8bf1569d9df6834e1957d5bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3b64c2b31cddc5ef8bf1569d9df6834e1957d5bd/bundlebuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2227,
12,
2890,
4672,
400,
1214,
273,
315,
6323,
19,
3805,
6,
309,
365,
18,
17751,
353,
486,
599,
30,
309,
365,
18,
5254,
12890,
353,
599,
30,
1196,
529,
273,
365,
18,
529,
469,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2227,
12,
2890,
4672,
400,
1214,
273,
315,
6323,
19,
3805,
6,
309,
365,
18,
17751,
353,
486,
599,
30,
309,
365,
18,
5254,
12890,
353,
599,
30,
1196,
529,
273,
365,
18,
529,
469,... |
self.tk.call(self._w, 'dropsite', 'set', index) | self.tk.call(self._w, 'dropsite', 'set', index) | def dropsite_set(self, index): | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29535,
1137,
67,
542,
12,
2890,
16,
770,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
out = self.bot.say | def d_PrivateMsg(self, nick, _1, _2, _3, text): | bf34db320db25e90f3714ca16b3b3cff056558eb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/bf34db320db25e90f3714ca16b3b3cff056558eb/dtella_dc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
67,
6014,
3332,
12,
2890,
16,
10909,
16,
389,
21,
16,
389,
22,
16,
389,
23,
16,
977,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
302,
67,
6014,
3332,
12,
2890,
16,
10909,
16,
389,
21,
16,
389,
22,
16,
389,
23,
16,
977,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
ValueError | ValueError: you should pass exactly one of of_degree and max_degree | def polynomials( self, of_degree = None, max_degree = None ): """ Return an iterator over the polynomials of specified degree. | 3eb6f5d2076fa6fa0385bdfc619bbdb2c4ad2e3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/3eb6f5d2076fa6fa0385bdfc619bbdb2c4ad2e3d/polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
365,
16,
434,
67,
21361,
273,
599,
16,
943,
67,
21361,
273,
599,
262,
30,
3536,
2000,
392,
2775,
1879,
326,
16991,
87,
434,
1269,
10782,
18,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
365,
16,
434,
67,
21361,
273,
599,
16,
943,
67,
21361,
273,
599,
262,
30,
3536,
2000,
392,
2775,
1879,
326,
16991,
87,
434,
1269,
10782,
18,
2,
-100,
-100,
-100,
-100,
... |
def review-index(self): | def review_index(self): | def review-index(self): c.person = c.signed_in_person # hack for bug#34, don't show miniconfs to reviewers # Jiri: unless they're also organisers... if 'organiser' in [r.name for r in c.signed_in_person.roles]: c.proposal_types = self.dbsession.query(ProposalType).all() else: c.proposal_types = self.dbsession.query(ProposalType).filter(ProposalType.c.name <> 'Miniconf').all() | 4f52e3760d9051fcaa1380094850a8a9eb1deb34 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/4f52e3760d9051fcaa1380094850a8a9eb1deb34/proposal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
1615,
12,
2890,
4672,
276,
18,
12479,
273,
276,
18,
5679,
67,
267,
67,
12479,
468,
11769,
364,
7934,
7,
5026,
16,
2727,
1404,
2405,
1131,
3950,
2556,
358,
10725,
414,
468,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
1615,
12,
2890,
4672,
276,
18,
12479,
273,
276,
18,
5679,
67,
267,
67,
12479,
468,
11769,
364,
7934,
7,
5026,
16,
2727,
1404,
2405,
1131,
3950,
2556,
358,
10725,
414,
468,
8... |
def tamagawa_product(self): | def tamagawa_product_bsd(self): | def tamagawa_product(self): r""" Given an elliptic curve `E` over a number field `K`, this function returns the integer `C(E/K)` that appears in the Birch and Swinnerton-Dyer conjecture accounting for the local information at finite places. If the model is a global minimal model then `C(E/K)` is simply the product of the Tamagawa numbers `c_v` where `v` runs over all prime ideals of `K`. Otherwise, if the model has to be changed at a place `v` a correction factor appears. The definition is such that `C(E/K)` times the periods at the infinite places is invariant under change of the Weierstrass model. See [Ta2] and [Do] for details. .. note:: This definition is slightly different from the definition of ``tamagawa_product`` for curves defined over `\QQ`. Over the rational number it is always defined to be the product of the Tamagawa numbers, so the two definitions only agree when the model is global minimal. OUTPUT: A rational number EXAMPLES:: sage: K.<i> = NumberField(x^2+1) sage: E = EllipticCurve([0,2+i]) sage: E.tamagawa_product() 1 sage: E = EllipticCurve([(2*i+1)^2,i*(2*i+1)^7]) sage: E.tamagawa_product() 4 An example where the Neron model changes over K:: sage: K.<t> = NumberField(x^5-10*x^3+5*x^2+10*x+1) sage: E = EllipticCurve(K,'75a1') sage: E.tamagawa_product() 5 sage: da = E.local_data() sage: [dav.tamagawa_number() for dav in da] [1, 1] REFERENCES: - [Ta2] Tate, John, On the conjectures of Birch and Swinnerton-Dyer and a geometric analog. Seminaire Bourbaki, Vol. 9, Exp. No. 306. - [Do] Dokchitser, Tim and Vladimir, On the Birch-Swinnerton-Dyer quotients modulo squares, Annals of Math., 2010. """ da = self.local_data() pr = 1 for dav in da: pp = dav.prime() cv = dav.tamagawa_number() # uu is the quotient of the Neron differential at pp divided by # the differential associated to this particular equation E uu = self.isomorphism_to(dav.minimal_model()).u uu_abs_val = pp.smallest_integer()**(pp.residue_class_degree()*valuation(uu,pp)) pr *= cv * uu_abs_val return pr | 73136fe88017b1ada2ab43235edd1ad9bf1f056d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/73136fe88017b1ada2ab43235edd1ad9bf1f056d/ell_number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
301,
346,
2219,
69,
67,
5896,
67,
2038,
72,
12,
2890,
4672,
436,
8395,
16803,
392,
415,
549,
21507,
8882,
1375,
41,
68,
1879,
279,
1300,
652,
1375,
47,
9191,
333,
445,
1135,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
301,
346,
2219,
69,
67,
5896,
67,
2038,
72,
12,
2890,
4672,
436,
8395,
16803,
392,
415,
549,
21507,
8882,
1375,
41,
68,
1879,
279,
1300,
652,
1375,
47,
9191,
333,
445,
1135,
326,
... |
if newSelection != self.selectedVisibles or self.hoverSelected and not self.hoverSelecting: | if newSelection != self.selectedVisibles or (self.hoverSelected and not self.hoverSelecting): | def selectVisibles(self, visibles, extend = False, findShortestPath = False): if (extend or findShortestPath) and not self.hoverSelected: newSelection = set(self.selectedVisibles) else: newSelection = set() if findShortestPath: # Add the visibles that exist along the path to the selection. for visible in visibles: for startVisible in self.selectedVisibles: for pathObject in startVisible.client.shortestPathTo(visible.client): for pathVisible in self.visiblesForObject(pathObject): newSelection.add(pathVisible) elif extend and len(visibles) == 1 and visibles[0] in newSelection: # Remove the visible from the selection newSelection.remove(visibles[0]) else: # Add the visibles to the new selection. for visible in visibles: newSelection.add(visible) if newSelection != self.selectedVisibles or self.hoverSelected and not self.hoverSelecting: self.clearDragger() self.selectedVisibles = newSelection if len(self.selectedVisibles) == 0: # There is no selection so hover selecting should be enabled. self.hoverSelecting = False self.hoverSelect = True elif not self.hoverSelecting: # An explicit selection has been made via the GUI or console. self.hoverSelect = False # disable hover selecting if len(self.selectedVisibles) == 1: # Add a dragger to the selected visible. visible = list(self.selectedVisibles)[0] if visible.isDraggable(): self.addDragger(visible) dispatcher.send(('set', 'selection'), self) self.hoverSelected = self.hoverSelecting self.hoverSelecting = False | 046bd8ebb1a4aa88b88e7e2cbcda99f728add42f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/046bd8ebb1a4aa88b88e7e2cbcda99f728add42f/Display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
3282,
495,
1040,
12,
2890,
16,
2281,
495,
1040,
16,
2133,
273,
1083,
16,
1104,
4897,
395,
743,
273,
1083,
4672,
309,
261,
14313,
578,
1104,
4897,
395,
743,
13,
471,
486,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
3282,
495,
1040,
12,
2890,
16,
2281,
495,
1040,
16,
2133,
273,
1083,
16,
1104,
4897,
395,
743,
273,
1083,
4672,
309,
261,
14313,
578,
1104,
4897,
395,
743,
13,
471,
486,
365,
18,... |
execute(DELETE + argument) os.system('rm -rf %s/* %s/*' % (configuration.home_backup_dir, | execute(DEL + argument) os.system('sudo rm -rf %s/* %s/*' % (configuration.home_backup_dir, | def clean_system(): """ Remove all stuff to make the system clean, testsuite-wise.""" test_message('''cleaning system from previous runs.''') # delete them first in case of a previous failed testsuite run. # don't check exit codes or such, this will be done later. for argument in ( ['user', 'toto'], ['user', 'tutu'], ['user', 'tata'], ['user', '--login=utilisager.normal'], ['user', '--login=test.responsibilly'], ['user', '--login=utilicateur.accentue'], ['profile', '--group=utilisagers', '--del-users', '--no-archive'], ['profile', '--group=responsibilisateurs', '--del-users', '--no-archive'], ['group', '--name=test_users_A'], ['group', '--name=test_users_B'], ['group', '--name=groupeA'], ['group', '--name=B-Group_Test'], ['group', '--name=groupe_a_skel'] ): execute(DELETE + argument) os.system('rm -rf %s/* %s/*' % (configuration.home_backup_dir, configuration.home_archive_dir)) test_message('''system cleaned from previous testsuite runs.''') | 07cb13c975b820cb15074a8378ec89357e5846f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/07cb13c975b820cb15074a8378ec89357e5846f4/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
4299,
13332,
3536,
3581,
777,
10769,
358,
1221,
326,
2619,
2721,
16,
7434,
9519,
17,
2460,
12123,
225,
1842,
67,
2150,
2668,
6309,
6200,
310,
2619,
628,
2416,
7597,
1093,
11,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
4299,
13332,
3536,
3581,
777,
10769,
358,
1221,
326,
2619,
2721,
16,
7434,
9519,
17,
2460,
12123,
225,
1842,
67,
2150,
2668,
6309,
6200,
310,
2619,
628,
2416,
7597,
1093,
11,
6... |
list -- list of EllpticCurve objects. | list -- list of EllipticCurve objects. | def isogeny_class(self, label): """ Returns the isogeny class of elliptic curves that are isogeneous to the curve with given Cremona label. INPUT: label -- string OUTPUT: list -- list of EllpticCurve objects. """ conductor, iso, num = parse_cremona_label(label) A = self.allcurves(conductor) K = [k for k in A.keys() if k[:len(iso)] == iso and k[len(iso)].isdigit()] return [self.elliptic_curve(str(conductor) + id) for id in K] | ea7222c470d5e09631300cfbe105bbf29eef90ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ea7222c470d5e09631300cfbe105bbf29eef90ea/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
19409,
93,
67,
1106,
12,
2890,
16,
1433,
4672,
3536,
2860,
326,
353,
19409,
93,
667,
434,
415,
549,
21507,
24106,
716,
854,
353,
30075,
1481,
358,
326,
8882,
598,
864,
5799,
2586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
19409,
93,
67,
1106,
12,
2890,
16,
1433,
4672,
3536,
2860,
326,
353,
19409,
93,
667,
434,
415,
549,
21507,
24106,
716,
854,
353,
30075,
1481,
358,
326,
8882,
598,
864,
5799,
2586,
... |
if not isinstance(value, self.content_class): | if value and not isinstance(value, self.content_class): | def get(self, instance, **kwargs): value = ObjectField.get(self, instance, **kwargs) if not isinstance(value, self.content_class): value = self._wrapValue(instance, value) if (shasattr(value, '__of__', acquire=True) and not kwargs.get('unwrapped', False)): return value.__of__(instance) else: return value | 809657aff1e48a9eb15209837cdae668475834bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/809657aff1e48a9eb15209837cdae668475834bc/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
791,
16,
2826,
4333,
4672,
460,
273,
1033,
974,
18,
588,
12,
2890,
16,
791,
16,
2826,
4333,
13,
309,
460,
471,
486,
1549,
12,
1132,
16,
365,
18,
1745,
67,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
791,
16,
2826,
4333,
4672,
460,
273,
1033,
974,
18,
588,
12,
2890,
16,
791,
16,
2826,
4333,
13,
309,
460,
471,
486,
1549,
12,
1132,
16,
365,
18,
1745,
67,
1106,
... |
self.mapping.append (u"a�bc2A�BC") | self.mapping.append (u"abc2ABC") | def __init__(self, nextFunc=None, handleTimeout = True): self.mapping = [] self.lang = language.getLanguage() self.useableChars=None self.nextFunction=nextFunc if self.lang == 'de_DE': self.mapping.append (u".,?'\"0-()@/:_$") # 0 self.mapping.append (u" 1") # 1 self.mapping.append (u"a�bc2A�BC") # 2 self.mapping.append (u"def3DEF") # 3 self.mapping.append (u"ghi4GHI") # 4 self.mapping.append (u"jkl5JKL") # 5 self.mapping.append (u"mno�6MNO�") # 6 self.mapping.append (u"pqrs�7PQRS�") # 7 self.mapping.append (u"tu�v8TU�V") # 8 self.mapping.append (u"wxyz9WXYZ") # 9 elif self.lang == 'es_ES': self.mapping.append (u".,?'\"0-()@/:_$") # 0 self.mapping.append (u" 1") # 1 self.mapping.append (u"abc��2ABC��") # 2 self.mapping.append (u"de��f3DEF��") # 3 self.mapping.append (u"ghi��4GHI��") # 4 self.mapping.append (u"jkl5JKL") # 5 self.mapping.append (u"mn�o��6MN�O��") # 6 self.mapping.append (u"pqrs7PQRS") # 7 self.mapping.append (u"tuv��8TUV��") # 8 self.mapping.append (u"wxyz9WXYZ") # 9 if self.lang in ['sv_SE', 'fi_FI']: self.mapping.append (u".,?'\"0-()@/:_$") # 0 self.mapping.append (u" 1") # 1 self.mapping.append (u"abc��2ABC��") # 2 self.mapping.append (u"def�3DEF�") # 3 self.mapping.append (u"ghi4GHI") # 4 self.mapping.append (u"jkl5JKL") # 5 self.mapping.append (u"mno�6MNO�") # 6 self.mapping.append (u"pqrs7PQRS") # 7 self.mapping.append (u"tuv8TUV") # 8 self.mapping.append (u"wxyz9WXYZ") # 9 else: self.mapping.append (u".,?'\"0-()@/:_$") # 0 self.mapping.append (u" 1") # 1 self.mapping.append (u"abc2ABC") # 2 self.mapping.append (u"def3DEF") # 3 self.mapping.append (u"ghi4GHI") # 4 self.mapping.append (u"jkl5JKL") # 5 self.mapping.append (u"mno6MNO") # 6 self.mapping.append (u"pqrs7PQRS") # 7 self.mapping.append (u"tuv8TUV") # 8 self.mapping.append (u"wxyz9WXYZ") # 9 | 465b7a546fceb6eb038ba0c7fc08bb713c5559ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/465b7a546fceb6eb038ba0c7fc08bb713c5559ef/NumericalTextInput.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1024,
2622,
33,
7036,
16,
1640,
2694,
273,
1053,
4672,
365,
18,
6770,
273,
5378,
365,
18,
4936,
273,
2653,
18,
588,
3779,
1435,
365,
18,
1202,
429,
7803,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1024,
2622,
33,
7036,
16,
1640,
2694,
273,
1053,
4672,
365,
18,
6770,
273,
5378,
365,
18,
4936,
273,
2653,
18,
588,
3779,
1435,
365,
18,
1202,
429,
7803,... |
if not os.path.exists(debian_file) and not os.path.exists(ubuntu_file): print " + Leaving %s (removed in Both)" % filename | if not os.path.exists(right_file) and not os.path.exists(left_file): print " + Leaving %s (removed in both)" % filename | def update_oneside(filename, debian_file, ubuntu_file, base_file, merged_file): """Update files by copying or deleting when they only exist on one side.""" dirname = os.path.dirname(merged_file) # File removed in Ubuntu, leave it removed if os.path.exists(base_file) and not os.path.exists(ubuntu_file): print " + Leaving %s (removed in Ubuntu)" % filename return True # File removed in Debian, remove it if os.path.exists(base_file) and not os.path.exists(debian_file): if os.path.exists(merged_file): print " + Removing %s (removed in Debian)" % filename os.unlink(merged_file) return True # File new in Ubuntu only if os.path.exists(ubuntu_file) and not os.path.exists(debian_file): print " + Leaving %s (added in Ubuntu)" % filename return True # File new in Debian only if os.path.exists(debian_file) and not os.path.exists(ubuntu_file): if not os.path.isdir(dirname): os.makedirs(dirname) print " + Copying %s (added in Debian)" % filename shutil.copy2(debian_file, merged_file) return True # Removed both sides if not os.path.exists(debian_file) and not os.path.exists(ubuntu_file): print " + Leaving %s (removed in Both)" % filename return True return False | 144cd852907c9e860817a286fd32fd93f856e242 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1955/144cd852907c9e860817a286fd32fd93f856e242/hi_mom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5322,
831,
12,
3459,
16,
18202,
2779,
67,
768,
16,
13910,
25348,
67,
768,
16,
1026,
67,
768,
16,
5384,
67,
768,
4672,
3536,
1891,
1390,
635,
8933,
578,
12993,
1347,
2898,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
5322,
831,
12,
3459,
16,
18202,
2779,
67,
768,
16,
13910,
25348,
67,
768,
16,
1026,
67,
768,
16,
5384,
67,
768,
4672,
3536,
1891,
1390,
635,
8933,
578,
12993,
1347,
2898,
133... |
self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] | self.anythingElse() | def processCharacters(self, token): self.parser.parseError("expected-doctype-but-got-chars") self.parser.compatMode = "quirks" self.parser.phase = self.parser.phases["beforeHtml"] self.parser.phase.processCharacters(token) | 5ffcb84f153ade0b8b7a2d4cdfb6f77a05ee5232 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4487/5ffcb84f153ade0b8b7a2d4cdfb6f77a05ee5232/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
11600,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
3825,
17,
2896,
12387,
17,
12885,
17,
13212,
17,
7549,
7923,
365,
18,
2273,
4274,
12427,
1435,
365,
18,
4288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
11600,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
3825,
17,
2896,
12387,
17,
12885,
17,
13212,
17,
7549,
7923,
365,
18,
2273,
4274,
12427,
1435,
365,
18,
4288,
... |
@require_perm('view', Order) def view(request, id): order = Order.objects.for_company().get(id=id) whoCanSeeThis = order.whoHasPermissionTo('view') return render_with_request(request, 'orders/view.html', {'title':'Ordre: %s' % order.order_name, 'order':order, 'whoCanSeeThis':whoCanSeeThis}) | def delete(request, id): return form(request, id) | 04fe2b6695242689f71dc05b12426552d76ba0a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12430/04fe2b6695242689f71dc05b12426552d76ba0a3/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2293,
16,
612,
4672,
327,
646,
12,
2293,
16,
612,
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,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2293,
16,
612,
4672,
327,
646,
12,
2293,
16,
612,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
FROM ?)""" connection.cursor().execute( sqlquery, (table_name,) ) | FROM """, table_name, ')' ]) connection.cursor().execute( sqlquery ) | def clean_using_coinc_table( connection, table_name, verbose = False, clean_experiment_map = True, clean_coinc_event_table = True, clean_coinc_definer = True, clean_coinc_event_map = True, clean_mapped_tables = True, selected_tables = []): """ Clears experiment_map, coinc_event, coinc_event_map, and all tables pointing to the coinc_event_map of triggers that are no longer in the specified table. Note that the experiment_summary, experiment, and time_slide_tables are left alone. This is because even if no events are left in an experiment, we still want info. about the experiment that was performed. @connection to a sqlite database @table_name: name of table on which basing the cleaning. Can be any table having a coinc_event_id column. @clean_experiment_map: if set to True will clean the experiment_map table @clean_coinc_event_table: if set to True will clean the coinc_event table @clean_coinc_definer: if set to True will clean the coinc_definer table if clean_coinc_event_table is set to True (the coinc_event_table is used to determine what coinc_definers to delete) @clean_coinc_event_map: if set to True, will clean the coinc_event_map @clean_mapped_tables: clean tables listed in the coinc_event_map who's event_ids are not not in the coinc_event_map @selected_tables: if clean_mapped_tables is on, will clean the listed tables if they appear in the coinc_event_map and have an event_id column. Default, [], is to clean all tables found. The requirement that the table has an event_id avoids cleaning simulation tables. """ # Delete from experiment_map if clean_experiment_map: if verbose: print >> sys.stderr, "Cleaning the experiment_map table..." sqlquery = """ DELETE FROM experiment_map WHERE coinc_event_id NOT IN ( SELECT coinc_event_id FROM ?""" connection.cursor().execute( sqlquery, (table_name,) ) connection.commit() # Delete from coinc_event if clean_coinc_event_table: if verbose: print >> sys.stderr, "Cleaning the coinc_event table..." sqlquery = """ DELETE FROM experiment_map WHERE coinc_event_id NOT IN ( SELECT coinc_event_id FROM ?""" connection.cursor().execute( sqlquery, (table_name,) ) connection.commit() # Delete from coinc_definer if clean_coinc_definer and clean_coinc_event_table: if verbose: print >> sys.stderr, "Cleaning the coinc_definer table..." sqlquery = """ DELETE FROM coinc_definer WHERE coinc_def_id NOT IN ( SELECT coinc_def_id FROM coinc_event )""" connection.cursor().execute( sqlquery ) connection.commit() # Find tables listed in coinc_event_map if clean_mapped_tables and selected_tables == []: selected_tables = get_cem_table_names(connection) # Delete from coinc_event_map if clean_coinc_event_map: if verbose: print >> sys.stderr, "Cleaning the coinc_event_map table..." sqlquery = """ DELETE FROM coinc_event_map WHERE coinc_event_id NOT IN ( SELECT coinc_event_id FROM ?)""" connection.cursor().execute( sqlquery, (table_name,) ) connection.commit() # Delete events from tables that were listed in the coinc_event_map # we only want to delete event_ids, not simulations, so if a table # does not have an event_id, we just pass if clean_mapped_tables: clean_mapped_event_tables( connection, selected_tables, raise_err_on_mission_evid = False, verbose = verbose ) if verbose: print >> sys.stderr, "done." | 9edf708fb0141e77915abb6fb546e3cf05f54a6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/9edf708fb0141e77915abb6fb546e3cf05f54a6d/ligolw_sqlutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
9940,
67,
12645,
71,
67,
2121,
12,
1459,
16,
1014,
67,
529,
16,
3988,
273,
1083,
16,
2721,
67,
18142,
67,
1458,
273,
1053,
16,
2721,
67,
12645,
71,
67,
2575,
67,
2121,
273,... |
def do_current(self, city): | def do_current(self, line): | def do_current(self, city): """ current CITY | 8827b15496f5f474965b352a253dfc2648a268e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/8827b15496f5f474965b352a253dfc2648a268e0/wetboobs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2972,
12,
2890,
16,
980,
4672,
3536,
783,
385,
4107,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2972,
12,
2890,
16,
980,
4672,
3536,
783,
385,
4107,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.dt = 0.0 | def __init__(self, callback, priority = 0): if __debug__: if self.debugTaskTraceback: self.debugInitTraceback = StackTrace("Task "+str(callback), 1, 10) # Unique ID for each task self.id = Task.count Task.count += 1 self.__call__ = callback self.__priority = priority self.__removed = 0 if TaskManager.taskTimerVerbose: self.dt = 0.0 self.avgDt = 0.0 self.maxDt = 0.0 self.runningTotal = 0.0 self.pstats = None self.extraArgs = None # Used for doLaters self.wakeTime = 0.0 # for repeating doLaters self.delayTime = 0.0 | 4e9c3e7b5cc14af689237cd2316a97c616e728a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/4e9c3e7b5cc14af689237cd2316a97c616e728a1/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1348,
16,
4394,
273,
374,
4672,
309,
1001,
4148,
972,
30,
309,
365,
18,
4148,
2174,
3448,
823,
30,
365,
18,
4148,
2570,
3448,
823,
273,
22164,
2932,
2174... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1348,
16,
4394,
273,
374,
4672,
309,
1001,
4148,
972,
30,
309,
365,
18,
4148,
2174,
3448,
823,
30,
365,
18,
4148,
2570,
3448,
823,
273,
22164,
2932,
2174... | |
tfn = os.path.join(path, "tmp", | tfn = os.path.join(path, os.path.normpath(os.path.join("..", "tmp")), | def maildir_train(h, path, is_spam, force): """Train bayes with all messages from a maildir.""" if loud: print " Reading as Maildir" import time import socket pid = os.getpid() host = socket.gethostname() counter = 0 trained = 0 for fn in os.listdir(path): counter += 1 cfn = os.path.join(path, fn) tfn = os.path.join(path, "tmp", "%d.%d_%d.%s" % (time.time(), pid, counter, host)) if loud: sys.stdout.write(" %s \r" % fn) sys.stdout.flush() f = file(cfn, "rb") msg = mboxutils.get_message(f) f.close() if not msg_train(h, msg, is_spam, force): continue trained += 1 f = file(tfn, "wb") f.write(msg.as_string()) f.close() # XXX: This will raise an exception on Windows. Do any Windows # people actually use Maildirs? os.rename(tfn, cfn) if loud: print (" Trained %d out of %d messages " % (trained, counter)) | 45aadd2af1dbe10c78d56023129580f6864eb14b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/45aadd2af1dbe10c78d56023129580f6864eb14b/mboxtrain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10843,
545,
481,
67,
9754,
12,
76,
16,
589,
16,
353,
67,
1752,
301,
16,
2944,
4672,
3536,
23419,
324,
528,
281,
598,
777,
2743,
628,
279,
10843,
545,
481,
12123,
225,
309,
437,
1100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10843,
545,
481,
67,
9754,
12,
76,
16,
589,
16,
353,
67,
1752,
301,
16,
2944,
4672,
3536,
23419,
324,
528,
281,
598,
777,
2743,
628,
279,
10843,
545,
481,
12123,
225,
309,
437,
1100,
... |
def __init__(self, abortable=False, frame=None): | def __init__(self, abortable=False, frame=0): | def __init__(self, abortable=False, frame=None): """ :param abortable: see the :attr:`~kaa.InProgress.abortable` property. (Default: False) :type abortable: bool """ super(InProgress, self).__init__() self._exception_signal = Signal() self._finished = False self._finished_event = threading.Event() self._exception = None self._unhandled_exception = None self.progress = None self.abortable = abortable | 528ac341939c8c61d82deee44475112f47554e9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/528ac341939c8c61d82deee44475112f47554e9e/async.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6263,
429,
33,
8381,
16,
2623,
33,
20,
4672,
3536,
294,
891,
6263,
429,
30,
2621,
326,
294,
1747,
28288,
98,
7282,
69,
18,
13434,
18,
18623,
429,
68,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6263,
429,
33,
8381,
16,
2623,
33,
20,
4672,
3536,
294,
891,
6263,
429,
30,
2621,
326,
294,
1747,
28288,
98,
7282,
69,
18,
13434,
18,
18623,
429,
68,
1... |
if os.access( gladefile, os.R_OK ): | if os.access( os.path.join( GLADEFILE_PATH, gladefile ), os.R_OK ): | def __init__( self, gladefile=None, root=None ): | b0639908e5a2b65e5d9c7f9f5f5a5bc42e0db78b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/b0639908e5a2b65e5d9c7f9f5f5a5bc42e0db78b/Window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
5118,
69,
536,
398,
33,
7036,
16,
1365,
33,
7036,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
5118,
69,
536,
398,
33,
7036,
16,
1365,
33,
7036,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ret = [credits_above_thresh, credits_below_thresh, geni_user_record, total_vessels] | ret = [credits_above_thresh, credits_below_thresh, geni_user_record, int(total_vessels)] | def credit_compare(a, b): return cmp(a['percent'], b['percent']) | 445b878e05f55a1b9458b1793be8fd549afd8d75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/445b878e05f55a1b9458b1793be8fd549afd8d75/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12896,
67,
9877,
12,
69,
16,
324,
4672,
327,
9411,
12,
69,
3292,
8849,
17337,
324,
3292,
8849,
19486,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12896,
67,
9877,
12,
69,
16,
324,
4672,
327,
9411,
12,
69,
3292,
8849,
17337,
324,
3292,
8849,
19486,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
("share/doc/prelude-correlator/sample-plugin", docs_plugin_support), ("share/doc/prelude-correlator/sample-plugin/myplugin", docs_plugin_files), | def init_siteconfig(self, prefix): config = open("PreludeCorrelator/siteconfig.py", "w") print >> config, "conf_dir = '%s'" % os.path.abspath(prefix + "/etc/prelude-correlator") print >> config, "lib_dir = '%s'" % os.path.abspath(prefix + "/var/lib/prelude-correlator") config.close() | 7cd300069d788c4366846e2ca600aa46c8e45cf6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3386/7cd300069d788c4366846e2ca600aa46c8e45cf6/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
25404,
22703,
12,
2890,
16,
1633,
4672,
642,
273,
1696,
2932,
1386,
80,
1317,
6217,
2878,
639,
19,
25404,
22703,
18,
2074,
3113,
315,
91,
7923,
1172,
1671,
642,
16,
315,
3923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
25404,
22703,
12,
2890,
16,
1633,
4672,
642,
273,
1696,
2932,
1386,
80,
1317,
6217,
2878,
639,
19,
25404,
22703,
18,
2074,
3113,
315,
91,
7923,
1172,
1671,
642,
16,
315,
3923,
... | |
sage: print c == 1 or c == 2 | sage: c == 1 or c == 2 | def row_containing_sym(L, c, x): """ Given an improper latin square L with L[r1, c] = L[r2, c] = x, return r1 or r2 with equal probability. This is an internal function and should only be used in LatinSquare_generator(). EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: L = matrix([(0, 1, 0, 3), (3, 0, 2, 1), (1, 0, 3, 2), (2, 3, 1, 0)]) sage: print L [0 1 0 3] [3 0 2 1] [1 0 3 2] [2 3 1 0] sage: c = row_containing_sym(L, 1, 0) sage: print c == 1 or c == 2 True """ r1 = -1 r2 = -1 for r in range(L.nrows()): if r1 >= 0 and r2 >= 0: break if L[r, c] == x and r1 < 0: r1 = r continue if L[r, c] == x and r2 < 0: r2 = r break assert r1 >= 0 and r2 >= 0 if coin(): return r1 else: return r2 | 0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1213,
3280,
67,
8117,
12,
48,
16,
276,
16,
619,
4672,
3536,
16803,
392,
13069,
457,
30486,
8576,
511,
598,
511,
63,
86,
21,
16,
276,
65,
273,
511,
63,
86,
22,
16,
276,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1213,
3280,
67,
8117,
12,
48,
16,
276,
16,
619,
4672,
3536,
16803,
392,
13069,
457,
30486,
8576,
511,
598,
511,
63,
86,
21,
16,
276,
65,
273,
511,
63,
86,
22,
16,
276,
65... |
print "no focal mechanism data." | err = "Error: No focal mechanism data!" appendTextview(self.textviewStdErr, err) | def showFocMec(self): if self.dictFocalMechanism == {}: print "no focal mechanism data." return # make up the figure: fig = plt.figure(1002, figsize=(2, 2)) fig.clear() fig.subplots_adjust(left=0, bottom=0, right=1, top=1) # plot the selected solution Beachball([self.dictFocalMechanism['Strike'], self.dictFocalMechanism['Dip'], self.dictFocalMechanism['Rake']], fig=fig) # plot the alternative solutions if self.focMechList != []: for d in self.focMechList: Beachball([d['Strike'], d['Dip'], d['Rake']], nofill=True, fig=fig, edgecolor='k', linewidth=1., alpha=0.3) try: fig.suptitle("Dip: %6.2f Strike: %6.2f Rake: %6.2f\n" % \ (self.dictFocalMechanism['Dip'], self.dictFocalMechanism['Strike'], self.dictFocalMechanism['Rake']) + \ "Errors: %i/%i" % \ (self.dictFocalMechanism['Errors'], self.dictFocalMechanism['Station Polarity Count']), fontsize=10) except: fig.suptitle("Dip: %6.2f Strike: %6.2f Rake: %6.2f\n" % \ (self.dictFocalMechanism['Dip'], self.dictFocalMechanism['Strike'], self.dictFocalMechanism['Rake']) + \ "Used Polarities: %i" % \ self.dictFocalMechanism['Station Polarity Count'], fontsize=10) fig.canvas.set_window_title("Focal Mechanism (%i of %i)" % \ (self.focMechCurrent + 1, self.focMechCount)) fig.subplots_adjust(top=0.88) # make room for suptitle # values 0.02 and 0.96 fit best over the outer edges of beachball #ax = fig.add_axes([0.00, 0.02, 1.00, 0.96], polar=True) ax = fig.add_axes([0.00, 0.02, 1.00, 0.84], polar=True) ax.set_axis_off() for d in self.dicts: if 'PAzim' in d and 'PInci' in d and 'PPol' in d: if d['PPol'] == "up": color = "black" elif d['PPol'] == "poorup": color = "darkgrey" elif d['PPol'] == "poordown": color = "lightgrey" elif d['PPol'] == "down": color = "white" else: continue # southern hemisphere projection if d['PInci'] > 90: inci = 180. - d['PInci'] #azim = -180. + d['PAzim'] else: inci = d['PInci'] azim = d['PAzim'] #we have to hack the azimuth because of the polar plot #axes orientation plotazim = (np.pi / 2.) - ((azim / 180.) * np.pi) ax.scatter([plotazim], [inci], facecolor=color) ax.text(plotazim, inci, " " + d['Station'], fontsize=10, va="top") #this fits the 90 degree incident value to the beachball edge best ax.set_ylim([0., 91]) fig.canvas.draw() | 4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
42,
504,
49,
557,
12,
2890,
4672,
309,
365,
18,
1576,
42,
23735,
31546,
422,
16648,
393,
273,
315,
668,
30,
2631,
284,
23735,
12860,
501,
4442,
714,
1528,
1945,
12,
2890,
18,
955... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
42,
504,
49,
557,
12,
2890,
4672,
309,
365,
18,
1576,
42,
23735,
31546,
422,
16648,
393,
273,
315,
668,
30,
2631,
284,
23735,
12860,
501,
4442,
714,
1528,
1945,
12,
2890,
18,
955... |
configurator = configuratorClass(self.runid, wfPolicy, prodPolicy, self.logger) | configurator = configuratorClass(self.runid, prodPolicy, wfPolicy, self.logger) | def createConfigurator(self, runid, wfPolicy, prodPolicy): self.logger.log(Log.DEBUG, "WorkflowManager:createConfigurator") | 6e19c93138cc4e791f490f6461969b871f91e115 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/6e19c93138cc4e791f490f6461969b871f91e115/WorkflowManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
17182,
12,
2890,
16,
1086,
350,
16,
11578,
2582,
16,
10791,
2582,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
8484,
1318,
30,
2640,
17182,
7923,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
17182,
12,
2890,
16,
1086,
350,
16,
11578,
2582,
16,
10791,
2582,
4672,
365,
18,
4901,
18,
1330,
12,
1343,
18,
9394,
16,
315,
8484,
1318,
30,
2640,
17182,
7923,
2,
-100,
-100,
-10... |
end_date, date)) | end_date, 'TWIXT')) | def delete_events(self, events, date, calendar_user): """Delete events from a calendar. Keyword arguments: events: List of non-expanded calendar events to delete. date: Date string specifying the date range of the events, as the date option. calendar_user: "User" of the calendar to delete events from. """ single_events = [e for e in events if not e.recurrence and e.event_status.value != 'CANCELED'] recurring_events = [e for e in events if e.recurrence and e.when] # Not sure which is faster/better: above approach, or using set subtraction # recurring_events = set(events) - set(single_events) if not single_events and not recurring_events: raise EventsNotFound delete_default = googlecl.CONFIG.getboolean('GENERAL', 'delete_by_default') self.Delete(single_events, 'event', delete_default) start_date, end_date = get_start_and_end(date) # option_list is a list of tuples, (prompt_string, deletion_instruction) # prompt_string gets displayed to the user, # deletion_instruction is a special string that will let the program know # what to do. 'ALL' and 'NONE' are obvious -- but it might also be # a date range similar to the date range initially passed in. That value # will ultimately be passed to get_events to get events to delete. option_list = [('All events in this series', 'ALL')] if start_date and end_date: option_list.append(('Instances between ' + start_date + ' and ' + end_date, date)) elif start_date or end_date: delete_date = (start_date or end_date) option_list.append(('Instances on ' + delete_date, _tomorrowize(delete_date))) option_list.append(('All events on and after ' + delete_date, delete_date)) option_list.append(('Do not delete', 'NONE')) prompt_str = '' for i, option in enumerate(option_list): prompt_str += str(i) + ') ' + option[0] + '\n' for event in recurring_events: if self.prompt_for_delete: delete_selection = -1 while delete_selection < 0 or delete_selection > len(option_list)-1: delete_selection = int(raw_input('Delete "%s"?\n%s' % (event.title.text, prompt_str))) option = option_list[delete_selection] if option[1] == 'ALL': gdata.service.GDataService.Delete(self, event.GetEditLink().href) elif option[1] != 'NONE': try: self._batch_delete_recur(option[1], event, calendar_user) except EventsNotFound: print 'No events found matching request!' else: gdata.service.GDataService.Delete(self, event.GetEditLink().href) | 23fd3d59a2121c80459f2021852b8a78de699aaf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/23fd3d59a2121c80459f2021852b8a78de699aaf/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5989,
12,
2890,
16,
2641,
16,
1509,
16,
5686,
67,
1355,
4672,
3536,
2613,
2641,
628,
279,
5686,
18,
225,
18317,
1775,
30,
2641,
30,
987,
434,
1661,
17,
17336,
5686,
2641,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
67,
5989,
12,
2890,
16,
2641,
16,
1509,
16,
5686,
67,
1355,
4672,
3536,
2613,
2641,
628,
279,
5686,
18,
225,
18317,
1775,
30,
2641,
30,
987,
434,
1661,
17,
17336,
5686,
2641,
358... |
if not kegtype: | if not kegtype and not kegtype == 0: | def onUse( char, potionkeg ): kegtype = None socket = char.socket backpack = char.getbackpack() if not char or not backpack: return False if not potionkeg.hasscript( 'potionkeg' ): return False if not potionkeg.hastag( 'kegfill' ): kegfill = 0 potionkeg.settag( 'kegfill', kegfill ) potionkeg.resendtooltip() else: kegfill = int( potionkeg.gettag( 'kegfill' ) ) if kegfill < 0: # Safeguard against negative fills kegfill = 0 if potionkeg.hasintproperty( 'potiontype' ): kegtype = potionkeg.getintproperty( 'potiontype' ) if potionkeg.hastag( 'potiontype' ): kegtype = int( potionkeg.gettag( 'potiontype' ) ) if not kegtype: socket.clilocmessage( 502222 ) return True if potionkeg.name != POTIONS[ kegtype ][ KEG_NAME ]: potionkeg.name = POTIONS[ kegtype ][ KEG_NAME ] potionkeg.update() if kegfill > 0 and kegfill <= 100: count = backpack.countitems( [ 'f0e' ] ) if count >= 1: backpack.removeitems( [ 'f0e' ], 1 ) newpot = wolfpack.additem( POTIONS[ kegtype ][ POT_DEF ] ) if not newpot: return False newpot.decay = 1 newpot.movable = 1 socket.clilocmessage( 502242 ) # You pour some of the keg's contents into an empty bottle... socket.clilocmessage( 502243 ) # ...and place it into your backpack. if not wolfpack.utilities.tobackpack( newpot, char ): newpot.update() char.soundeffect(0x240) kegfill -= 1 potionkeg.settag('kegfill', kegfill ) if kegfill == 0: if potionkeg.name != "#1041641": potionkeg.name = '#1041641' potionkeg.deltag( 'potiontype' ) potionkeg.update() socket.clilocmessage( 502245 ) # The keg is now empty potionkeg.resendtooltip() return True else: socket.clilocmessage( 500315 ) return True else: if potionkeg.name != "#1041641": potionkeg.name = '#1041641' if potionkeg.hastag( 'potiontype' ): potionkeg.deltag( 'potiontype' ) socket.clilocmessage( 502222 ) potionkeg.update() return True | 27e2628d2e9ec9b3c4f611a87eb5b0415276e5e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/27e2628d2e9ec9b3c4f611a87eb5b0415276e5e3/potionkeg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3727,
12,
1149,
16,
5974,
285,
79,
1332,
262,
30,
417,
1332,
723,
273,
599,
2987,
273,
1149,
18,
7814,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
225,
309,
486,
1149,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3727,
12,
1149,
16,
5974,
285,
79,
1332,
262,
30,
417,
1332,
723,
273,
599,
2987,
273,
1149,
18,
7814,
1473,
2920,
273,
1149,
18,
588,
823,
2920,
1435,
225,
309,
486,
1149,
578,
... |
if opts['plain']: | if opts.get('plain'): | def makepatch(patch, idx, total): desc = [] node = None body = '' for line in patch: if line.startswith('#'): if line.startswith('# Node ID'): node = line.split()[-1] continue if line.startswith('diff -r') or line.startswith('diff --git'): break desc.append(line) if not node: raise ValueError | e48386cad337fc8ad23ccd992fc19ce1b45e1870 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/e48386cad337fc8ad23ccd992fc19ce1b45e1870/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29796,
881,
505,
12,
2272,
16,
2067,
16,
2078,
4672,
3044,
273,
5378,
756,
273,
599,
1417,
273,
875,
364,
980,
316,
4729,
30,
309,
980,
18,
17514,
1918,
2668,
10038,
4672,
309,
980,
18... |
res = pythonCall( 0, replicaManager.putAndRegister, outFile, os.path.realpath( file ), outputSE.name, catalog = outputFCName ) | res = pythonCall( 2 * 3600, replicaManager.putAndRegister, outFile, os.path.realpath( file ), outputSE.name, catalog = outputFCName ) | def __retrieveAndUploadFile( self, file, outputDict ): """ Retrieve, Upload, and remove """ fileName = file inputPath = outputDict['InputPath'] inputFCName = outputDict['InputFC'] inBytes = 0 if inputFCName == 'LocalDisk': inFile = file file = os.path.join( inputPath, file ) else: inputFC = FileCatalog( [inputFCName] ) | 20aa57e0dd6683c56035539c1b0eda97a38ff5f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/20aa57e0dd6683c56035539c1b0eda97a38ff5f7/OutputDataExecutor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17466,
1876,
4777,
812,
12,
365,
16,
585,
16,
876,
5014,
262,
30,
3536,
10708,
16,
9414,
16,
471,
1206,
3536,
3968,
273,
585,
810,
743,
273,
876,
5014,
3292,
1210,
743,
3546,
810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17466,
1876,
4777,
812,
12,
365,
16,
585,
16,
876,
5014,
262,
30,
3536,
10708,
16,
9414,
16,
471,
1206,
3536,
3968,
273,
585,
810,
743,
273,
876,
5014,
3292,
1210,
743,
3546,
810... |
modules[file] = os.path.join(dirname, file) if file == '__init__.py': found_init = 1 | modules['%s.%s' % (pkgname, file[:-3])] = 1 | def find_modules(dirname): """ If C{dirname} contains a package, then return the filenames for the package, its modules, and all of its descendant packages and modules. If C{dirname} does not contain a package, then return an empty list. @rtype: C{list} of C{string} @return: The filenames for the package in C{dirname}, its modules, and all of its descendant packages and modules. @type dirname: C{string} @param dirname: The directory name to search. """ if not os.path.isdir(dirname): return [] found_init = 0 modules = {} dirs = [] # Search for directories & modules, and check for __init__.py. # Don't include duplicates (like foo.py and foo.pyc), and give # precedance to the .py files. for file in os.listdir(dirname): filepath = os.path.join(dirname, file) if os.path.isdir(filepath): dirs.append(filepath) elif not re.match(r'\w+.py.?', file): continue # Ignore things like ".#foo.py" or "a-b.py" elif file[-3:] == '.py': modules[file] = os.path.join(dirname, file) if file == '__init__.py': found_init = 1 elif file[-4:-1] == '.py': modules.setdefault(file[:-1], file) if file[:-1] == '__init__.py': found_init = 1 modules = modules.values() # If there was no __init__.py, then this isn't a package # directory; return nothing. if not found_init: return [] # Recurse to the child directories. for d in dirs: modules += find_modules(d) return modules | b9eaae15c1716aa772cd1f26c76cd22cf5b3881d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b9eaae15c1716aa772cd1f26c76cd22cf5b3881d/imports.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
12,
12287,
4672,
3536,
971,
385,
95,
12287,
97,
1914,
279,
2181,
16,
1508,
327,
326,
9066,
364,
326,
2181,
16,
2097,
4381,
16,
471,
777,
434,
2097,
17465,
5907,
471,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
6400,
12,
12287,
4672,
3536,
971,
385,
95,
12287,
97,
1914,
279,
2181,
16,
1508,
327,
326,
9066,
364,
326,
2181,
16,
2097,
4381,
16,
471,
777,
434,
2097,
17465,
5907,
471,
43... |
self.checksyntax(filename) | def check_module_event(self, event): filename = self.getfilename() if not filename: return if not self.tabnanny(filename): return self.checksyntax(filename) | c426ffcdfc12cbe13e307cf3897d99a5511fc8ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c426ffcdfc12cbe13e307cf3897d99a5511fc8ca/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
1544,
273,
365,
18,
588,
3459,
1435,
309,
486,
1544,
30,
327,
309,
486,
365,
18,
7032,
82,
1072,
93,
12,
3459,
4672,
327,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
2978,
67,
2575,
12,
2890,
16,
871,
4672,
1544,
273,
365,
18,
588,
3459,
1435,
309,
486,
1544,
30,
327,
309,
486,
365,
18,
7032,
82,
1072,
93,
12,
3459,
4672,
327,
365,
18,
... | |
Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg | Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg. | def buildnextreg(self, path, clist): """Recursively build our regexp given a path, and a controller list. Returns the regular expression string, and two booleans that can be ignored as they're only used internally by buildnextreg """ if path: part = path[0] else: part = '' reg = '' # noreqs will remember whether the remainder has either a string match, or a non-defaulted # regexp match on a key, allblank remembers if the rest could possible be completely empty (rest, noreqs, allblank) = ('', True, True) if len(path[1:]) > 0: self.prior = part (rest, noreqs, allblank) = self.buildnextreg(path[1:], clist) if isinstance(part, dict) and part['type'] == ':': var = part['name'] partreg = '' # First we plug in the proper part matcher if self.reqs.has_key(var): partreg = '(?P<' + var + '>' + self.reqs[var] + ')' elif var == 'controller': partreg = '(?P<' + var + '>' + '|'.join(map(re.escape, clist)) + ')' elif self.prior == '/': partreg = '(?P<' + var + '>[^/]+?)' else: partreg = '(?P<' + var + '>[^%s]+?)' % ''.join(self.done_chars) if self.reqs.has_key(var): noreqs = False if not self.defaults.has_key(var): allblank = False noreqs = False # Now we determine if its optional, or required. This changes depending on what is in # the rest of the match. If noreqs is true, then its possible the entire thing is optional # as there's no reqs or string matches. if noreqs: # The rest is optional, but now we have an optional with a regexp. Wrap to ensure that if we match # anything, we match our regexp first. It's still possible we could be completely blank as we have # a default if self.reqs.has_key(var) and self.defaults.has_key(var): reg = '(' + partreg + rest + ')?' # Or we have a regexp match with no default, so now being completely blank form here on out isn't # possible elif self.reqs.has_key(var): allblank = False reg = partreg + rest # If the character before this is a special char, it has to be followed by this elif self.defaults.has_key(var) and self.prior in (',', ';', '.'): reg = partreg + rest # Or we have a default with no regexp, don't touch the allblank elif self.defaults.has_key(var): reg = partreg + '?' + rest # Or we have a key with no default, and no reqs. Not possible to be all blank from here else: allblank = False reg = partreg + rest # In this case, we have something dangling that might need to be matched else: # If they can all be blank, and we have a default here, we know its # safe to make everything from here optional. Since something else in # the chain does have req's though, we have to make the partreg here # required to continue matching if allblank and self.defaults.has_key(var): reg = '(' + partreg + rest + ')?' # Same as before, but they can't all be blank, so we have to require it all to ensure # our matches line up right else: reg = partreg + rest elif isinstance(part, dict) and part['type'] == '*': var = part['name'] if noreqs: if self.defaults.has_key(var): reg = '(?P<' + var + '>.*)' + rest else: reg = '(?P<' + var + '>.*)' + rest allblank = False noreqs = False else: if allblank and self.defaults.has_key(var): reg = '(?P<' + var + '>.*)' + rest elif self.defaults.has_key(var): reg = '(?P<' + var + '>.*)' + rest else: allblank = False noreqs = False reg = '(?P<' + var + '>.*)' + rest elif part and part[-1] in self.done_chars: if allblank: reg = re.escape(part[:-1]) + '(' + re.escape(part[-1]) + rest + ')?' else: allblank = False reg = re.escape(part) + rest # We have a normal string here, this is a req, and it prevents us from being all blank else: noreqs = False allblank = False reg = re.escape(part) + rest return (reg, noreqs, allblank) | 52ae2d9eaabbf5ff009086347bb090d7048fa505 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12081/52ae2d9eaabbf5ff009086347bb090d7048fa505/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
3536,
12474,
1361,
3134,
7195,
864,
279,
589,
16,
471,
279,
2596,
666,
18,
225,
2860,
326,
6736,
2652,
533,
16,
471,
2795,
3105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4285,
1574,
12,
2890,
16,
589,
16,
927,
376,
4672,
3536,
12474,
1361,
3134,
7195,
864,
279,
589,
16,
471,
279,
2596,
666,
18,
225,
2860,
326,
6736,
2652,
533,
16,
471,
2795,
3105... |
files = files.filter(lambda x: x.endswith(".dir"), self.incrementEntries) | files = filter(lambda x: x.endswith(".dir"), files) | def _getLastChangedBackupTime(self, filename): files = self.groupedIncrementEntries.get(filename, []) if os.path.isdir(joinPaths(self.completePath, filename)): files = files.filter(lambda x: x.endswith(".dir"), self.incrementEntries) files.sort() if not files: return self._getFirstBackupAfterDate(None) return self._getFirstBackupAfterDate(incrementEntry(files[-1]).getDate()) | aa8390e52b87a46db41be998afa2df9242993b87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2223/aa8390e52b87a46db41be998afa2df9242993b87/librdiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3024,
5033,
6248,
950,
12,
2890,
16,
1544,
4672,
1390,
273,
365,
18,
25472,
10798,
5400,
18,
588,
12,
3459,
16,
5378,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
5701,
4466,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
3024,
5033,
6248,
950,
12,
2890,
16,
1544,
4672,
1390,
273,
365,
18,
25472,
10798,
5400,
18,
588,
12,
3459,
16,
5378,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
5701,
4466,
... |
s = self.get_time() | s = get_time() | def calibrate(self, m): # Modified by Tim Peters n = m s = self.get_time() while n: self.simple() n = n - 1 f = self.get_time() my_simple = f - s #print "Simple =", my_simple, | bc75e8f6af740f0d3b26d6eeaa9a4428ce268142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc75e8f6af740f0d3b26d6eeaa9a4428ce268142/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
5141,
12,
2890,
16,
312,
4672,
468,
21154,
635,
12652,
453,
1032,
290,
273,
312,
272,
273,
336,
67,
957,
1435,
1323,
290,
30,
365,
18,
9647,
1435,
290,
273,
290,
300,
404,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
5141,
12,
2890,
16,
312,
4672,
468,
21154,
635,
12652,
453,
1032,
290,
273,
312,
272,
273,
336,
67,
957,
1435,
1323,
290,
30,
365,
18,
9647,
1435,
290,
273,
290,
300,
404,
284,
... |
addFmt ('fi', True, [ None, None, None, None, None, u"Huhtikuu %d", None, None, None, None, None, None ]) | addFmt2('fi', True, u"%s %%d", True ) | def addFmt2( lang, isMnthOfYear, pattern, makeUpperCase = None ): addFmt( lang, isMnthOfYear, makeMonthNamedList( lang, pattern, makeUpperCase )) | 9c89f2d41aa715a883a13e3d4522c33979f1a94a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/9c89f2d41aa715a883a13e3d4522c33979f1a94a/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
16090,
22,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1936,
16,
1221,
8915,
273,
599,
262,
30,
527,
16090,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1221,
5445,
7604,
682,
12,
3303,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
16090,
22,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1936,
16,
1221,
8915,
273,
599,
262,
30,
527,
16090,
12,
3303,
16,
15707,
82,
451,
19091,
16,
1221,
5445,
7604,
682,
12,
3303,
... |
*New in Jinja 1.1* | *new in Jinja 1.1* | def do_batch(linecount, fill_with=None): """ A filter that batches items. It works pretty much like `slice` just the other way round. It returns a list of lists with the given number of items. If you provide a second parameter this is used to fill missing items. See this example: .. sourcecode:: html+jinja <table> {%- for row in items|batch(3, ' ') %} <tr> {%- for column in row %} <tr>{{ column }}</td> {%- endfor %} </tr> {%- endfor %} </table> *New in Jinja 1.1* """ def wrapped(env, context, value): result = [] tmp = [] for item in value: if len(tmp) == linecount: result.append(tmp) tmp = [] tmp.append(item) if tmp: if fill_with is not None and len(tmp) < linecount: tmp += [fill_with] * (linecount - len(tmp)) result.append(tmp) return result return wrapped | eec3138d28317e0ccd76640be6e6624675f3e78a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/eec3138d28317e0ccd76640be6e6624675f3e78a/filters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5303,
12,
7511,
557,
592,
16,
3636,
67,
1918,
33,
7036,
4672,
3536,
432,
1034,
716,
13166,
1516,
18,
2597,
6330,
7517,
9816,
3007,
1375,
6665,
68,
2537,
326,
1308,
4031,
3643,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5303,
12,
7511,
557,
592,
16,
3636,
67,
1918,
33,
7036,
4672,
3536,
432,
1034,
716,
13166,
1516,
18,
2597,
6330,
7517,
9816,
3007,
1375,
6665,
68,
2537,
326,
1308,
4031,
3643,
... |
if self.run_task(task): | if exec_func(task_name, recipe.data): | def bake(self, options, args): | 76eb1f70b4623f9091724f04add1689f7822eb9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5897/76eb1f70b4623f9091724f04add1689f7822eb9b/baker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
911,
12,
2890,
16,
702,
16,
833,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
911,
12,
2890,
16,
702,
16,
833,
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,
-... |
def __init__(self, application, env_parent_dir, env_paths): | def __init__(self, application, env_parent_dir, env_paths, single_env): | def __init__(self, application, env_parent_dir, env_paths): self.application = application self.environ = {} self.environ['trac.env_path'] = None if env_parent_dir: self.environ['trac.env_parent_dir'] = env_parent_dir else: self.environ['trac.env_paths'] = env_paths | a5fd0203fa0c419cc17c9c2ee632262a696a064d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/a5fd0203fa0c419cc17c9c2ee632262a696a064d/standalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2521,
16,
1550,
67,
2938,
67,
1214,
16,
1550,
67,
4481,
16,
2202,
67,
3074,
4672,
365,
18,
3685,
273,
2521,
365,
18,
28684,
273,
2618,
365,
18,
28684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2521,
16,
1550,
67,
2938,
67,
1214,
16,
1550,
67,
4481,
16,
2202,
67,
3074,
4672,
365,
18,
3685,
273,
2521,
365,
18,
28684,
273,
2618,
365,
18,
28684,
... |
self._update_status("Unable to successfully build and test", results_file=failure_log) | self._update_status("Unable to successfully do a clean build and test", results_file=failure_log) | def _can_build_and_test(self): try: self.run_webkit_patch([ "build-and-test", "--force-clean", "--build", "--test", "--non-interactive", "--no-update", "--build-style=both", "--quiet"]) except ScriptError, e: failure_log = self._log_from_script_error_for_upload(e) self._update_status("Unable to successfully build and test", results_file=failure_log) return False return True | 09c6ab91192eb20d813099a8c920995c6b32a7cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/09c6ab91192eb20d813099a8c920995c6b32a7cb/queues.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4169,
67,
3510,
67,
464,
67,
3813,
12,
2890,
4672,
775,
30,
365,
18,
2681,
67,
29319,
67,
2272,
3816,
315,
3510,
17,
464,
17,
3813,
3113,
5238,
5734,
17,
6200,
3113,
5238,
3510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4169,
67,
3510,
67,
464,
67,
3813,
12,
2890,
4672,
775,
30,
365,
18,
2681,
67,
29319,
67,
2272,
3816,
315,
3510,
17,
464,
17,
3813,
3113,
5238,
5734,
17,
6200,
3113,
5238,
3510,
... |
elif type(stdout) == int: | elif isinstance(stdout, int): | def _get_handles(self, stdin, stdout, stderr): """Construct and return tupel with IO objects: p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite """ if stdin == None and stdout == None and stderr == None: return (None, None, None, None, None, None) | 95702de0f98da1d3b802ca9a49a105d914f43a51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/95702de0f98da1d3b802ca9a49a105d914f43a51/subprocess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
24111,
12,
2890,
16,
8801,
16,
3909,
16,
4514,
4672,
3536,
7249,
471,
327,
15822,
292,
598,
1665,
2184,
30,
293,
22,
71,
896,
16,
293,
22,
71,
2626,
16,
276,
22,
84,
... |
if __debug__: if self.wantDebugIndicator: onScreenDebug.add("posDelta1", self.avatarNodePath.getPosDelta(render).pPrintValues()) if 0: onScreenDebug.add("posDelta3", render.getRelativeVector( self.avatarNodePath, self.avatarNodePath.getPosDelta(render)).pPrintValues()) if 0: onScreenDebug.add("gravity", self.gravity.getLocalVector().pPrintValues()) onScreenDebug.add("priorParent", self.priorParent.getLocalVector().pPrintValues()) onScreenDebug.add("avatarViscosity", "% 10.4f"%(self.avatarViscosity.getCoef(),)) onScreenDebug.add("physObject pos", physObject.getPosition().pPrintValues()) onScreenDebug.add("physObject hpr", physObject.getOrientation().getHpr().pPrintValues()) onScreenDebug.add("physObject orien", physObject.getOrientation().pPrintValues()) if 1: onScreenDebug.add("physObject vel", physObject.getVelocity().pPrintValues()) onScreenDebug.add("physObject len", "% 10.4f"%physObject.getVelocity().length()) if 0: onScreenDebug.add("posDelta4", self.priorParentNp.getRelativeVector( render, self.avatarNodePath.getPosDelta(render)).pPrintValues()) if 1: onScreenDebug.add("priorParent", self.priorParent.getLocalVector().pPrintValues()) if 0: onScreenDebug.add("priorParent po", self.priorParent.getVector(physObject).pPrintValues()) if 0: onScreenDebug.add("__posDelta", self.__oldPosDelta.pPrintValues()) if 1: onScreenDebug.add("contact", contact.pPrintValues()) if 0: onScreenDebug.add("__oldContact", contact.pPrintValues()) onScreenDebug.add("__oldAirborneHeight", "% 10.4f"%( self.getAirborneHeight(),)) | def handleAvatarControls(self, task): """ Check on the arrow keys and update the avatar. """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%(base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar h = % 10.4f\n"%(base.localAvatar.getH(),)) #onScreenDebug.append("localAvatar anim = %s\n"%(base.localAvatar.animFSM.getCurrentState().getName(),)) #assert(self.debugPrint("handleAvatarControls(task=%s)"%(task,))) physObject=self.actorNode.getPhysicsObject() #rotAvatarToPhys=Mat3.rotateMatNormaxis(-self.avatarNodePath.getH(), Vec3.up()) #rotPhysToAvatar=Mat3.rotateMatNormaxis(self.avatarNodePath.getH(), Vec3.up()) contact=self.actorNode.getContactVector() # hack fix for falling through the floor: if contact==Vec3.zero() and self.avatarNodePath.getZ()<-50.0: # DCR: don't reset X and Y; allow player to move self.reset() self.avatarNodePath.setZ(50.0) messenger.send("walkerIsOutOfWorld", [self.avatarNodePath]) | 26c17f70fcfa45ec83704a784de1cab5357f8a7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/26c17f70fcfa45ec83704a784de1cab5357f8a7a/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
16910,
18,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829,
13140,
30,
603,
795... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
16910,
18,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829,
13140,
30,
603,
795... | |
if output is None: self.write_iteration_keyval(attr, keyval) continue | def postprocess(self): """The following patterns parse the following outputs: TCP -- bidirectional 20080806120605,10.75.222.14,59744,10.75.222.13,5001,13,0.0-10.0,105054208,84029467 20080806120605,10.75.222.14,5001,10.75.222.13,46112,12,0.0-10.0,1176387584,940172245 CPU: 38.88% -- 85 samples | dc922cffa78641d46d2f63f718d7ace073d60d09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/dc922cffa78641d46d2f63f718d7ace073d60d09/iperf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
2567,
12,
2890,
4672,
3536,
1986,
3751,
6884,
1109,
326,
3751,
6729,
30,
9911,
1493,
9949,
24699,
4044,
3672,
3672,
26,
22343,
4848,
25,
16,
2163,
18,
5877,
18,
28855,
18,
3461,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
2567,
12,
2890,
4672,
3536,
1986,
3751,
6884,
1109,
326,
3751,
6729,
30,
9911,
1493,
9949,
24699,
4044,
3672,
3672,
26,
22343,
4848,
25,
16,
2163,
18,
5877,
18,
28855,
18,
3461,
16... | |
if not self.pk: try: makedirs(self.layer_path()) makedirs(self.template_path()) makedirs(self.upload_hd_path()) makedirs(self.upload_template_path()) makedirs(self.upload_thumb_path()) except OSError, error: print error | def save(self, force_insert=False, force_update=False): if not self.pk: try: makedirs(self.layer_path()) makedirs(self.template_path()) makedirs(self.upload_hd_path()) makedirs(self.upload_template_path()) makedirs(self.upload_thumb_path()) except OSError, error: print error super(Issue, self).save(force_insert, force_update) | 73ef761c789a8002c2fe63b4ca1640427094bc19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/73ef761c789a8002c2fe63b4ca1640427094bc19/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
2944,
67,
6387,
33,
8381,
16,
2944,
67,
2725,
33,
8381,
4672,
2240,
12,
12956,
16,
365,
2934,
5688,
12,
5734,
67,
6387,
16,
2944,
67,
2725,
13,
225,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
2944,
67,
6387,
33,
8381,
16,
2944,
67,
2725,
33,
8381,
4672,
2240,
12,
12956,
16,
365,
2934,
5688,
12,
5734,
67,
6387,
16,
2944,
67,
2725,
13,
225,
2,
-100,
-100... | |
vstr = markup.plaintext_to_html(vstr) | vstr = quote_html(vstr) | def pprint_pyval(self, pyval, multiline=True, summary_linelen=0): # Handle the most common cases first. The following types # will never need any line wrapping, etc; and they cover most # variable values (esp int, for constants). I leave out # LongType on purpose, since long values may need line- # wrapping. if (type(pyval) is types.IntType or type(pyval) is types.FloatType or type(pyval) is types.NoneType or type(pyval) is types.ComplexType): # none of these should contain '&', '<' or '>'. vstr = repr(pyval) return vstr + ' ' * (self._variable_linelen-len(vstr)) | 002d70bfdb399f96d8ebf5ed35ed01eb526ca66c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/002d70bfdb399f96d8ebf5ed35ed01eb526ca66c/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468... |
elif line.category_id.contribute and line.category_id.include_in_salary and line.category_id.amount_type == 'fix': | elif line.category_id.contribute and line.category_id.amount_type == 'fix': | def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids for slip in self.browse(cr, uid, ids): allow = 0.0 #for emp in emp_pool.browse(cr, uid, [vals['employee_id'][0]]): emp = slip.employee_id sql_req= ''' SELECT c.id as id, c.wage as wage, function as function FROM hr_contract c LEFT JOIN hr_employee emp on (c.employee_id=emp.id) LEFT JOIN hr_contract_wage_type cwt on (cwt.id = c.wage_type_id) LEFT JOIN hr_contract_wage_type_period p on (cwt.period_id = p.id) WHERE (emp.id=%s) AND (date_start <= %s) AND (date_end IS NULL OR date_end >= %s) LIMIT 1 ''' cr.execute(sql_req, (emp.id, vals['date'], vals['date'])) contract_id = cr.dictfetchone() if not contract_id: continue contract = self.pool.get('hr.contract').browse(cr, uid, contract_id['id']) sal_type = contract.wage_type_id.type function = contract.function.id lines = [] if function: func = func_pool.read(cr, uid, function, ['line_ids']) lines = slip_line_pool.browse(cr, uid, func['line_ids']) | 9cefb7520803ded7f648633ccca30e623a0dd192 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9cefb7520803ded7f648633ccca30e623a0dd192/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... |
((have_prelink and (vflags & _RPMVERIFY_FILESIZE) and (my_st_size != size)) or (csum and vflags & _RPMVERIFY_DIGEST))): | (verify_digest or (pf.verify_size and have_prelink and my_st_size != pf.size))): if pf.digest: digest_type = pf.digest[0] csum = pf.digest[0] + ':' + pf.digest[1] else: digest_type = csum_type csum = '' | def _ftype(mode): """ Given a "mode" return the name of the type of file. """ if stat.S_ISREG(mode): return "file" if stat.S_ISDIR(mode): return "directory" if stat.S_ISLNK(mode): return "symlink" if stat.S_ISFIFO(mode): return "fifo" if stat.S_ISCHR(mode): return "character device" if stat.S_ISBLK(mode): return "block device" return "<unknown>" | 1f1a9c8f653cd8cc3aa77f966051de6095bdd390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/1f1a9c8f653cd8cc3aa77f966051de6095bdd390/packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
723,
12,
3188,
4672,
3536,
16803,
279,
315,
3188,
6,
327,
326,
508,
434,
326,
618,
434,
585,
18,
3536,
309,
610,
18,
55,
67,
5127,
5937,
12,
3188,
4672,
225,
327,
315,
768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
74,
723,
12,
3188,
4672,
3536,
16803,
279,
315,
3188,
6,
327,
326,
508,
434,
326,
618,
434,
585,
18,
3536,
309,
610,
18,
55,
67,
5127,
5937,
12,
3188,
4672,
225,
327,
315,
768,
... |
query_radius=1 | query_radius=10 | def all_get_radii(self): """Return All Fixed Neighbor Search results. | 6dd679c8e75c7248bd2a7adfd29d57df80d12beb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/6dd679c8e75c7248bd2a7adfd29d57df80d12beb/KDTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
588,
67,
6012,
2835,
12,
2890,
4672,
3536,
990,
4826,
15038,
30663,
280,
5167,
1686,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
588,
67,
6012,
2835,
12,
2890,
4672,
3536,
990,
4826,
15038,
30663,
280,
5167,
1686,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if is_datatype(datatype, Enumerate): value = datatype.get_namespace(value) | def build_form_namespace(self, fields): """ This utility method builds a namespace suitable to use to produce an HTML form. Its input data is a list (fields) that defines the form variables to consider: [(<field name>, <is field required>), ...] | cd5ecdf31e68509207e348e70782af36b7f466c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/cd5ecdf31e68509207e348e70782af36b7f466c3/context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
687,
67,
4937,
12,
2890,
16,
1466,
4672,
3536,
1220,
12788,
707,
10736,
279,
1981,
10631,
358,
999,
358,
11402,
392,
3982,
646,
18,
29517,
810,
501,
353,
279,
666,
261,
2821,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
687,
67,
4937,
12,
2890,
16,
1466,
4672,
3536,
1220,
12788,
707,
10736,
279,
1981,
10631,
358,
999,
358,
11402,
392,
3982,
646,
18,
29517,
810,
501,
353,
279,
666,
261,
2821,
... | |
dbm_som0 = dr_lib.add_files(datalist, Data_Paths=conf.bmon_path.toPath(), SO_Axis=conf.so_axis, dataset_type="background", Verbose=conf.verbose, Timer=t)[0] if t is not None: t.getTime(msg="After reading beam monitor data ") | dbm_som0 = dr_lib.add_files(config.data, Data_Paths=config.bmon_path.toPath(), SO_Axis=config.so_axis, dataset_type=dataset_type, Verbose=config.verbose, Timer=tim)[0] if tim is not None: tim.getTime(msg="After reading beam monitor data ") | def run(config, tim=None): """ This method is where the data reduction process gets done. @param config: Object containing the data reduction configuration information. @type config: L{hlr_utils.Configure} @param tim: (OPTIONAL) Object that will allow the method to perform timing evaluations. @type tim: C{sns_time.DiffTime} """ if tim is not None: tim.getTime(False) old_time = tim.getOldTime() if config.data is None: raise RuntimeError("Need to pass a data filename to the driver "\ +"script.") # Read in geometry if one is provided if config.inst_geom is not None: if config.verbose: print "Reading in instrument geometry file" inst_geom_dst = DST.getInstance("application/x-NxsGeom", config.inst_geom) else: inst_geom_dst = None # Add so_axis to Configure object conf.so_axis = "time_of_flight" # Step 0: Open appropriate data files # Data if conf.verbose: print "Reading %s file" % dataset_type # The [0] is to get the data SOM and ignore the None background SOM dp_som = dr_lib.add_files(datalist, Data_Paths=conf.data_paths.toPath(), SO_Axis=conf.so_axis, Signal_ROI=conf.roi_file, dataset_type="background", Verbose=conf.verbose, Timer=t)[0] if t is not None: t.getTime(msg="After reading %s " % dataset_type) dp_som0 = dr_lib.fix_bin_contents(dp_som) del dp_som if conf.inst_geom is not None: i_geom_dst.setGeometry(conf.data_paths.toPath(), dp_som0) if conf.verbose: print "Reading in beam monitor data from %s file" % dataset_type # The [0] is to get the data SOM and ignore the None background SOM dbm_som0 = dr_lib.add_files(datalist, Data_Paths=conf.bmon_path.toPath(), SO_Axis=conf.so_axis, dataset_type="background", Verbose=conf.verbose, Timer=t)[0] if t is not None: t.getTime(msg="After reading beam monitor data ") # Note: time_zero_offset_det MUST be a tuple if conf.time_zero_offset_det is not None: dp_som0.attr_list["Time_zero_offset_det"] = \ conf.time_zero_offset_det.toValErrTuple() # Note: time_zero_offset_mon MUST be a tuple if conf.time_zero_offset_mon is not None and not get_background: dbm_som0.attr_list["Time_zero_offset_mon"] = \ conf.time_zero_offset_mon.toValErrTuple() # Step 2: Convert TOF to wavelength for data and monitor if conf.verbose: print "Converting TOF to wavelength" if t is not None: t.getTime(False) # Convert beam monitor dbm_som1 = common_lib.tof_to_wavelength_lin_time_zero( dbm_som0, units="microsecond", time_zero_offset=conf.time_zero_offset_mon.toValErrTuple()) # Convert detector pixels dp_som1 = common_lib.tof_to_wavelength_lin_time_zero( dp_som0, units="microsecond", time_zero_offset=conf.time_zero_offset_det.toValErrTuple(), inst_param="total") if t is not None: t.getTime(msg="After converting TOF to wavelength ") del dp_som0, dbm_som0 if conf.verbose: print "Cutting spectra" if t is not None: t.getTime(False) dp_som2 = dr_lib.cut_spectra(dp_som1, conf.lambda_low_cut, conf.lambda_high_cut) dbm_som2 = dr_lib.cut_spectra(dbm_som1, conf.lambda_low_cut, conf.lambda_high_cut) if t is not None: t.getTime(msg="After cutting spectra ") del dp_som1, dbm_som1 # Put the data on the same axis dp_som3 = dr_lib.sum_by_rebin_frac(dp_som2, config.lambda_bins.toNessiList()) if tim is not None: tim.setOldTime(old_time) tim.getTime(msg="Total Running Time") | bb758ce3cbe25f73e8a8618bfaf541f06d48e121 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/763/bb758ce3cbe25f73e8a8618bfaf541f06d48e121/sas_background.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
16,
1658,
33,
7036,
4672,
3536,
1220,
707,
353,
1625,
326,
501,
20176,
1207,
5571,
2731,
18,
225,
632,
891,
642,
30,
1033,
4191,
326,
501,
20176,
1664,
1779,
18,
632,
7... |
runpipe = Popen4(command, bufsize=16384) | runpipe = popen2.Popen4(command, bufsize=16384) | def saferun(self, command): '''Run a command in a pipe dealing with stdout buffer overloads''' self.CondPrint('debug', '> %s' % command) | 6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7864,
586,
318,
12,
2890,
16,
1296,
4672,
9163,
1997,
279,
1296,
316,
279,
6010,
21964,
598,
3909,
1613,
1879,
17135,
26418,
365,
18,
12441,
5108,
2668,
4148,
2187,
11279,
738,
87,
11,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7864,
586,
318,
12,
2890,
16,
1296,
4672,
9163,
1997,
279,
1296,
316,
279,
6010,
21964,
598,
3909,
1613,
1879,
17135,
26418,
365,
18,
12441,
5108,
2668,
4148,
2187,
11279,
738,
87,
11,
7... |
check_call([cvs, '-d', cvsroot, 'checkout', '-P', '-r', tag, '-d', leaf, 'mozilla/%s' % module], cwd=os.path.join(topsrcdir, parent)) | check_call_noisy([cvs, '-d', cvsroot, 'checkout', '-P', '-r', tag, '-d', leaf, 'mozilla/%s' % module], cwd=os.path.join(topsrcdir, parent)) | def do_cvs_checkout(modules, tag, cvsroot, cvs): """Check out a CVS directory. modules is a list of directories to check out, e.g. ['nsprpub'] """ for module in modules: (parent, leaf) = os.path.split(module) check_call([cvs, '-d', cvsroot, 'checkout', '-P', '-r', tag, '-d', leaf, 'mozilla/%s' % module], cwd=os.path.join(topsrcdir, parent)) | 00aaeed871ec9115b2cae2a6356fecd118ccabb0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/00aaeed871ec9115b2cae2a6356fecd118ccabb0/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
71,
6904,
67,
17300,
12,
6400,
16,
1047,
16,
276,
6904,
3085,
16,
276,
6904,
4672,
3536,
1564,
596,
279,
385,
14640,
1867,
18,
4381,
353,
279,
666,
434,
6402,
358,
866,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
71,
6904,
67,
17300,
12,
6400,
16,
1047,
16,
276,
6904,
3085,
16,
276,
6904,
4672,
3536,
1564,
596,
279,
385,
14640,
1867,
18,
4381,
353,
279,
666,
434,
6402,
358,
866,
596,
... |
self.debug('PlayerInfoBlock: %s' % pib) | if len(pib) == 0: self.debug('no such client found') return None | def getClient(self, cid): """Get a connected client from storage or create it B3 CID <--> BFBC2 character name B3 GUID <--> BFBC2 EA_guid """ # try to get the client from the storage of already authed clients client = self.clients.getByCID(cid) if not client: if cid == 'Server': return self.clients.newClient('Server', guid='Server', name='Server', hide=True, pbid='Server', team=b3.TEAM_UNKNOWN, squad=SQUAD_NEUTRAL) # must be the first time we see this client words = self.write(('admin.listPlayers', 'player', cid)) pib = PlayerInfoBlock(words) self.debug('PlayerInfoBlock: %s' % pib) p = pib[0] cid = p['name'] if 'clanTag' in p and len(p['clanTag']) > 0: name = "[" + p['clanTag'] + "] " + p['name'] client = self.clients.newClient(cid, guid=p['guid'], name=name, team=p['teamId'], squad=p['squadId'], data=p) self.queueEvent(b3.events.Event(b3.events.EVT_CLIENT_JOIN, p, client)) return client | 03ea835b7a1d4baaffb3b9f13d990c3f8111c817 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12909/03ea835b7a1d4baaffb3b9f13d990c3f8111c817/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7635,
12,
2890,
16,
7504,
4672,
3536,
967,
279,
5840,
1004,
628,
2502,
578,
752,
518,
605,
23,
385,
734,
282,
411,
413,
34,
605,
42,
16283,
22,
3351,
508,
605,
23,
20322,
225,
411,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7635,
12,
2890,
16,
7504,
4672,
3536,
967,
279,
5840,
1004,
628,
2502,
578,
752,
518,
605,
23,
385,
734,
282,
411,
413,
34,
605,
42,
16283,
22,
3351,
508,
605,
23,
20322,
225,
411,
4... |
def tryProtocolCombo (server_protocol, client_protocol, expectedToWork, certsreqs=None): | def try_protocol_combo(server_protocol, client_protocol, expect_success, certsreqs=None): | def tryProtocolCombo (server_protocol, client_protocol, expectedToWork, certsreqs=None): | f08683542eada763321715f558eac5b2baec28e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f08683542eada763321715f558eac5b2baec28e9/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
5752,
16156,
261,
3567,
67,
8373,
16,
1004,
67,
8373,
16,
2665,
774,
2421,
16,
13870,
25782,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
5752,
16156,
261,
3567,
67,
8373,
16,
1004,
67,
8373,
16,
2665,
774,
2421,
16,
13870,
25782,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
user = users.get_current_user() if user: mkey = '/results/user/' + user.email() else: mkey = '/results/remote_addr/' + self.request.remote_addr memcache.delete(mkey) | ClearUserCache() | def post(self): # Clear cache for this user/remote_addr. user = users.get_current_user() if user: mkey = '/results/user/' + user.email() else: mkey = '/results/remote_addr/' + self.request.remote_addr memcache.delete(mkey) # Extract description + intrinsic. description = str(self.request.get('description')) m = re.match('^~~~intrinsic: ([0-9]+)~~~(.*)$', description) if m: intrinsic = int(m.group(1)) description = m.group(2) else: intrinsic = 0 # Pick out definition definition = str(self.request.get('definition')) if definition: definition = definition.split(' ') else: definition = [] # Get user agent string. user_agent = self.request.headers.get('USER_AGENT', '') # Get out icon. icon = str(self.request.get('icon', '')) # Get source for each word that goes into this one. sources = {} for w in set(definition): query = db.GqlQuery('SELECT * FROM WordSource WHERE ANCESTOR is :1', w) src = query.fetch(1) if src: dsource = DecodeSource(w, src[0].source) sources.update(dsource) sources['this'] = [intrinsic] + definition my_source = EncodeSource(sources) # Compile it. my_executable = CompileSource('this', sources) # Transactionally add word and icon. db.run_in_transaction(AddFullWord, description=description, definition=definition, intrinsic=intrinsic, author=users.get_current_user(), remote_addr=self.request.remote_addr, user_agent=user_agent, keywords=FindKeywords(description), icon=icon, source=my_source, executable=my_executable) # Update score of each word used. for w in set(definition): UpdateScore(w) | 6b0de005d5a7ed60d5899b0e289c03fa5d908052 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/6b0de005d5a7ed60d5899b0e289c03fa5d908052/iconforth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
468,
10121,
1247,
364,
333,
729,
19,
7222,
67,
4793,
18,
10121,
1299,
1649,
1435,
468,
8152,
2477,
397,
28871,
18,
2477,
273,
609,
12,
2890,
18,
2293,
18,
588,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
12,
2890,
4672,
468,
10121,
1247,
364,
333,
729,
19,
7222,
67,
4793,
18,
10121,
1299,
1649,
1435,
468,
8152,
2477,
397,
28871,
18,
2477,
273,
609,
12,
2890,
18,
2293,
18,
588,
26... |
self.__deleteFileSelection() | self.__deleteFileSelection() | def __saveModel( self, *arg ) : | 4aea2a590e9d7a8a7769456664c223248776a740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/4aea2a590e9d7a8a7769456664c223248776a740/MainWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1488,
12,
365,
16,
380,
3175,
262,
294,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5688,
1488,
12,
365,
16,
380,
3175,
262,
294,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
review.score, COUNT(review.id) AS " | review.score, COUNT(review.id) AS " | def proposals_by_strong_rank(self): """ List of proposals ordered by number of certain score / total number of reviewers [CFP] """ query = """ | eb2895ad014d63b312b71edb8998575baedf1fe5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12856/eb2895ad014d63b312b71edb8998575baedf1fe5/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
22536,
67,
1637,
67,
9110,
67,
11500,
12,
2890,
4672,
3536,
987,
434,
450,
22536,
5901,
635,
1300,
434,
8626,
4462,
342,
2078,
1300,
434,
10725,
414,
306,
8955,
52,
65,
3536,
843,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
22536,
67,
1637,
67,
9110,
67,
11500,
12,
2890,
4672,
3536,
987,
434,
450,
22536,
5901,
635,
1300,
434,
8626,
4462,
342,
2078,
1300,
434,
10725,
414,
306,
8955,
52,
65,
3536,
843,
... |
if namespace.isAbsentNamespace(): defn = 'pyxb.namespace.CreateAbsentNamespace()' else: defn = 'pyxb.namespace.NamespaceForURI(%s, create_if_missing=True)' % (repr(namespace.uri()),) self.__namespaceDeclarations.append('%s = %s' % (name, defn)) | if definition is None: if namespace.isAbsentNamespace(): definition = 'pyxb.namespace.CreateAbsentNamespace()' else: definition = 'pyxb.namespace.NamespaceForURI(%s, create_if_missing=True)' % (repr(namespace.uri()),) self.__namespaceDeclarations.append('%s = %s' % (name, definition)) | def defineNamespace (self, namespace, name, require_unique=True, **kw): rv = self.__referencedNamespaces.get(namespace) print '%s define %s current %s has %s' % (self, namespace, self.__referencedNamespaces, rv) if rv is not None: print 'WARNING: Module already have reference to %s' % (namespace,) return rv if require_unique: name = utility.PrepareIdentifier(name, self.__uniqueInModule, **kw) if namespace.isAbsentNamespace(): defn = 'pyxb.namespace.CreateAbsentNamespace()' else: defn = 'pyxb.namespace.NamespaceForURI(%s, create_if_missing=True)' % (repr(namespace.uri()),) self.__namespaceDeclarations.append('%s = %s' % (name, defn)) self.__namespaceDeclarations.append("%s.configureCategories(['typeBinding', 'elementBinding'])" % (name,)) self.__referencedNamespaces[namespace] = name return name | 9f5af2d1d44c2b5959dfd93a88068cafbaa04be3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/9f5af2d1d44c2b5959dfd93a88068cafbaa04be3/generate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4426,
3402,
261,
2890,
16,
1981,
16,
508,
16,
2583,
67,
6270,
33,
5510,
16,
2826,
9987,
4672,
5633,
273,
365,
16186,
20883,
13180,
18,
588,
12,
4937,
13,
1172,
1995,
87,
4426,
738,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4426,
3402,
261,
2890,
16,
1981,
16,
508,
16,
2583,
67,
6270,
33,
5510,
16,
2826,
9987,
4672,
5633,
273,
365,
16186,
20883,
13180,
18,
588,
12,
4937,
13,
1172,
1995,
87,
4426,
738,
87,... |
actions_list = input_file.readlines() | actions_list = [] for line in input_file.readlines(): if not line.startswith(' actions_list.append(line) | def __init__(self): (options,args) = ParseCommandLine() input_file = open(options.input_file_name) actions_list = input_file.readlines() input_file.close() | 5b7bf3231ee0987c700b8b6be9a7078a3ae7ffe5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/5b7bf3231ee0987c700b8b6be9a7078a3ae7ffe5/auto_ui_test_input_generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
261,
2116,
16,
1968,
13,
273,
2884,
21391,
1435,
810,
67,
768,
273,
1696,
12,
2116,
18,
2630,
67,
768,
67,
529,
13,
4209,
67,
1098,
273,
5378,
364,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
261,
2116,
16,
1968,
13,
273,
2884,
21391,
1435,
810,
67,
768,
273,
1696,
12,
2116,
18,
2630,
67,
768,
67,
529,
13,
4209,
67,
1098,
273,
5378,
364,
9... |
self.dynamic_util | self.dynamic_util, | def getSandboxModules(self): """Return list of module dependencies.""" import Ganga.Lib.MonitoringServices.Dashboard import sys return DashboardMS.getSandboxModules(self) + [ Ganga.Lib.MonitoringServices.Dashboard.CommonUtil, Ganga.Lib.MonitoringServices.Dashboard.BackendMS, self.dynamic_util ] | 00e3049d6176f90a37f2465f58d578fbdb4081f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/00e3049d6176f90a37f2465f58d578fbdb4081f1/BackendMS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
9069,
7782,
12,
2890,
4672,
3536,
990,
666,
434,
1605,
5030,
12123,
1930,
611,
539,
69,
18,
5664,
18,
18410,
5676,
18,
14830,
1930,
2589,
327,
18230,
3537,
18,
588,
17881,
7782,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
9069,
7782,
12,
2890,
4672,
3536,
990,
666,
434,
1605,
5030,
12123,
1930,
611,
539,
69,
18,
5664,
18,
18410,
5676,
18,
14830,
1930,
2589,
327,
18230,
3537,
18,
588,
17881,
7782,
12... |
node.text=u"blindtext1\u00A0blindtext2\u00Ablindtext3 "+ "blindtext4\u00A0lindtext\u00A0blindtext\u00A0" | node.text=(u"blindtext1\u00A0blindtext2\u00Ablindtext3 "+ u"blindtext4\u00A0blindtext\u00A0blindtext\u00A0") | def setNBSP(): node = Player.getElementByID("dynamictext") node.width=100 node.text=u"blindtext1\u00A0blindtext2\u00Ablindtext3 "+ "blindtext4\u00A0lindtext\u00A0blindtext\u00A0" | 8e2394e01d055683bfb06c7dfd89ddcf749c1b15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/8e2394e01d055683bfb06c7dfd89ddcf749c1b15/WordsTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
20626,
3118,
13332,
756,
273,
19185,
18,
21336,
13331,
2932,
31129,
933,
408,
7923,
756,
18,
2819,
33,
6625,
756,
18,
955,
33,
89,
6,
3083,
728,
955,
21,
64,
89,
713,
37,
20,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
20626,
3118,
13332,
756,
273,
19185,
18,
21336,
13331,
2932,
31129,
933,
408,
7923,
756,
18,
2819,
33,
6625,
756,
18,
955,
33,
89,
6,
3083,
728,
955,
21,
64,
89,
713,
37,
20,
30... |
return self._groups | return self._groupnames def by_group(self, elts): ungrouped = [e for e in elts if not self._anygroup.has_key(e.name())] grouped = [(g, [e for e in elts if self._groupmembers[g].has_key(e.name())]) for g in self._groupnames] if ungrouped: return [(None,ungrouped)]+grouped else: return grouped | def groups(self): return self._groups | 3483c073f313594e2126bb590c1618ff249ff09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3483c073f313594e2126bb590c1618ff249ff09b/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3252,
12,
2890,
4672,
327,
365,
6315,
4650,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3252,
12,
2890,
4672,
327,
365,
6315,
4650,
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... |
- B -- positive integer OUTPUT: - vector over ZZ with B entries | - ``B`` -- positive integer OUTPUT: vector over `\\ZZ` with ``B`` entries | def theta_series_vector(self, B): """ Return theta series coefficients of self, as a vector of `B` integers. | b7a16ed05ab1759a61c3840607275d6cd5b220a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/b7a16ed05ab1759a61c3840607275d6cd5b220a1/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
67,
10222,
67,
7737,
12,
2890,
16,
605,
4672,
3536,
2000,
7338,
4166,
14229,
434,
365,
16,
487,
279,
3806,
434,
1375,
38,
68,
12321,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7338,
67,
10222,
67,
7737,
12,
2890,
16,
605,
4672,
3536,
2000,
7338,
4166,
14229,
434,
365,
16,
487,
279,
3806,
434,
1375,
38,
68,
12321,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
FixedTargetTest.__init__(self, targets) | FixedTargetTest.__init__(self, utargets) | def __init__(self, targets): BaseHTTPTest.__init__(self) utargets = [t for t in targets if self._is_useable_url(t, ['http'])] FixedTargetTest.__init__(self, targets) | 90c90d31036c691f9c9aaf7f88b6f051e32e6285 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3762/90c90d31036c691f9c9aaf7f88b6f051e32e6285/soat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5774,
4672,
3360,
3693,
4709,
16186,
2738,
972,
12,
2890,
13,
5218,
826,
87,
273,
306,
88,
364,
268,
316,
5774,
309,
365,
6315,
291,
67,
1202,
429,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5774,
4672,
3360,
3693,
4709,
16186,
2738,
972,
12,
2890,
13,
5218,
826,
87,
273,
306,
88,
364,
268,
316,
5774,
309,
365,
6315,
291,
67,
1202,
429,
67,
... |
self._statusbar(msg="Searching...") | self._statusbar(_("Searching for %s..." %keywords)) | def _fork(): repos_tree = self.gld.get_widget("repos_tree") repos_model = repos_tree.get_model() pacs = self.database.get_by_keywords(keywords) if self.search_iter: repos_model.remove(self.search_iter) self.search_iter = repos_model.append(None, [_("Search results for '%s'") %keywords]) self.models["search"] = search_list(pacs) repos_tree.set_cursor_on_cell((1)) dlg.destroy() win.window.set_cursor(None) if dlg.run() == RESPONSE_ACCEPT: keywords = dlg.entry.get_text() if keywords: dlg.vbox.set_sensitive(False) self._statusbar(msg="Searching...") win.window.set_cursor(wait_cursor) dlg.window.set_cursor(wait_cursor) gobject.idle_add(_fork) else: dlg.destroy() error_dlg = error_dialog(None, _("You should insert at least one keyword to search for"), self.icon) error_dlg.run() error_dlg.destroy() | 9064ea83b7f7c250ddde26dda9d2d559d0848000 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/9064ea83b7f7c250ddde26dda9d2d559d0848000/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23335,
13332,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
13686,
67,
2284,
273,
13686,
67,
3413,
18,
588,
67,
2284,
1435,
225,
293,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23335,
13332,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
13686,
67,
2284,
273,
13686,
67,
3413,
18,
588,
67,
2284,
1435,
225,
293,
28... |
if verbose: print 'unpack tuple' a, b, c = t if a != 1 or b != 2 or c != 3: raise TestFailed | >>> l = [4, 5, 6] >>> a, b, c = l >>> a == 4 and b == 5 and c == 6 True | def __getitem__(self, i): if i >= 0 and i < 3: return i raise IndexError | 3981511070311e958bd2cd48b1ab16b24f8b350e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3981511070311e958bd2cd48b1ab16b24f8b350e/test_unpack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
1545,
374,
471,
277,
411,
890,
30,
327,
277,
1002,
10195,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
277,
1545,
374,
471,
277,
411,
890,
30,
327,
277,
1002,
10195,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache % self.parent().prime_pow(halt - right.valuation()): | elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache.lift() % self.parent().prime_pow(halt - right.valuation()): | def __cmp__(self, right, halt = None): if halt is None: halt = self.parent().halting_parameter() #print "self = %s, type = %s"%(self, type(self)) #print "right = %s, type = %s"%(right, type(right)) if self.valuation() < right.valuation(): return -1 elif self.valuation() > right.valuation(): return 1 elif self.valuation() is infinity and right.valuation() is infinity: return 0 #comparing valuations can throw an exception if self and right are both congruent to zero modulo p^halt, but we want this to be passed upstream. We now know that the valuations are equal and both less than halt, so both have type Integer now rather than Valuation. if self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) < right._cache % self.parent().prime_pow(halt - right.valuation()): return -1 elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache % self.parent().prime_pow(halt - right.valuation()): return 1 if self._cache != right._cache: #According to spec, we only compare up to halt. We now know that self and right are equal up to halt, but unequal above. In order to maintain consistency with previous calls to __cmp__, we throw an exception here. raise PrecisionError, "I'm supposed to tell you these are equal, because they're congruent modulo p^halt, but " jump = 1 start = min(self.precision_absolute(), right.precision_absolute()) end = halt - start while jump <= end: self.set_precision_absolute(start + jump) right.set_precision_absolute(start + jump) if self._cache != right._cache: if self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return -1 elif self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return 1 jump = 2 * jump self.set_precision_absolute(halt) right.set_precision_absolute(halt) if self._cache != right._cache: if self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return -1 elif self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return 1 return 0 | 9fa135a5cd623a645e15a84938ff8e9507360652 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9fa135a5cd623a645e15a84938ff8e9507360652/padic_lazy_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
16,
18389,
273,
599,
4672,
309,
18389,
353,
599,
30,
18389,
273,
365,
18,
2938,
7675,
22314,
1787,
67,
6775,
1435,
468,
1188,
315,
2890,
273,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
16,
18389,
273,
599,
4672,
309,
18389,
353,
599,
30,
18389,
273,
365,
18,
2938,
7675,
22314,
1787,
67,
6775,
1435,
468,
1188,
315,
2890,
273,
738,
... |
g2c = self.g2c if g2c is not None: opt.append(g2c) c_compiler = self.c_compiler if sys.platform == 'win32' and c_compiler and \ c_compiler.compiler_type=='msvc': opt.append('gcc') runtime_lib = msvc_runtime_library() if runtime_lib: opt.append(runtime_lib) if sys.platform == 'darwin': opt.append('cc_dynamic') return opt def get_flags_debug(self): return ['-g'] def get_flags_opt(self): if self.get_version()<='3.3.3': opt = ['-O2'] else: opt = ['-O3'] opt.append('-funroll-loops') return opt def get_flags_arch(self): return [] return opt class Gnu95FCompiler(GnuFCompiler): compiler_type = 'gnu95' compiler_aliases = ('gfortran',) description = 'GNU Fortran 95 compiler' def version_match(self, version_string): v = self.gnu_version_match(version_string) if not v or v[0] != 'gfortran': return None return v[1] possible_executables = ['gfortran', 'f95'] executables = { 'version_cmd' : ["<F90>", "--version"], 'compiler_f77' : [None, "-Wall", "-ffixed-form", "-fno-second-underscore"], 'compiler_f90' : [None, "-Wall", "-fno-second-underscore"], 'compiler_fix' : [None, "-Wall", "-ffixed-form", "-fno-second-underscore"], 'linker_so' : ["<F90>", "-Wall"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"], 'linker_exe' : [None, "-Wall"] } if sys.platform == 'win32': for key in ['version_cmd', 'compiler_f77', 'compiler_f90', 'compiler_fix', 'linker_so', 'linker_exe']: executables[key].append('-mno-cygwin') module_dir_switch = '-J' module_include_switch = '-I' g2c = 'gfortran' def _can_target(self, cmd, arch): """Return true is the compiler support the -arch flag for the given architecture.""" newcmd = cmd[:] st, out = exec_command(" ".join(newcmd)) if st == 0: for line in out.splitlines(): m = re.search(_R_ARCHS[arch], line) if m: return True return False def _universal_flags(self, cmd): """Return a list of -arch flags for every supported architecture.""" if not sys.platform == 'darwin': return [] arch_flags = [] for arch in ["ppc", "i686"]: if self._can_target(cmd, arch): arch_flags.extend(["-arch", arch]) return arch_flags def get_flags(self): flags = GnuFCompiler.get_flags(self) arch_flags = self._universal_flags(self.compiler_f90) if arch_flags: flags[:0] = arch_flags return flags def get_flags_linker_so(self): flags = GnuFCompiler.get_flags_linker_so(self) arch_flags = self._universal_flags(self.linker_so) if arch_flags: flags[:0] = arch_flags return flags def get_library_dirs(self): opt = GnuFCompiler.get_library_dirs(self) if sys.platform == 'win32': c_compiler = self.c_compiler if c_compiler and c_compiler.compiler_type == "msvc": target = self.get_target() if target: d = os.path.normpath(self.get_libgcc_dir()) root = os.path.join(d, os.pardir, os.pardir, os.pardir, os.pardir) mingwdir = os.path.normpath(os.path.join(root, target, "lib")) full = os.path.join(mingwdir, "libmingwex.a") if os.path.exists(full): opt.append(mingwdir) return opt def get_libraries(self): opt = GnuFCompiler.get_libraries(self) if sys.platform == 'darwin': opt.remove('cc_dynamic') if sys.platform == 'win32': c_compiler = self.c_compiler if c_compiler and c_compiler.compiler_type == "msvc": if "gcc" in opt: i = opt.index("gcc") opt.insert(i+1, "mingwex") opt.insert(i+1, "mingw32") return opt def get_target(self): status, output = exec_command(self.compiler_f77 + ['-v'], use_tee=0) if not status: m = TARGET_R.search(output) if m: return m.group(1) return "" class Sage_FCompiler_1(Gnu95FCompiler): compiler_type = 'gnu95' version_match = simple_version_match(start='GNU Fortran') executables = { 'version_cmd' : ["sage_fortran","--version"], 'compiler_f77' : ["sage_fortran","-Wall","-ffixed-form","-fno-second-underscore"], 'compiler_f90' : ["sage_fortran","-Wall","-fno-second-underscore"], 'compiler_fix' : ["sage_fortran","-Wall","-ffixed-form","-fno-second-underscore"], 'linker_so' : ["sage_fortran","-Wall","-shared"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"], 'linker_exe' : ["sage_fortran","-Wall"] } if sys.platform == 'win32': for key in ['version_cmd', 'compiler_f77', 'compiler_f90', 'compiler_fix', 'linker_so', 'linker_exe']: executables[key].append('-mno-cygwin') def find_executables(self): pass module_dir_switch = '-J' module_include_switch = '-I' g2c = 'gfortran' def get_libraries(self): opt = GnuFCompiler.get_libraries(self) if sys.platform == 'darwin': opt.remove('cc_dynamic') return opt class Sage_FCompiler(FCompiler): compiler_type = 'g95' version_pattern = r'G95 \((GCC (?P<gccversion>[\d.]+)|.*?) \(g95 (?P<version>.*)!\) (?P<date>.*)\).*' suggested_f90_compiler = 'sage_fortran' if os.uname()[0]=="Darwin": link_command=["sage_fortran","-undefined", "dynamic_lookup", "-bundle"] else: link_command=["sage_fortran","-shared"] executables = { 'version_cmd' : ["sage_fortran", "--version"], 'compiler_f77' : ["sage_fortran", "-ffixed-form"], 'compiler_fix' : ["sage_fortran", "-ffixed-form"], 'compiler_f90' : ["sage_fortran"], 'linker_so' : link_command, 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"], 'linker_exe' : ["sage_fortran",""] } pic_flags = ['-fpic'] module_dir_switch = '-fmod=' module_include_switch = '-I' def get_flags_linker_so(self): opt = self.linker_so[1:] if sys.platform=='darwin': target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) if target is None or target == '': target = '10.3' major, minor = target.split('.') if int(minor) < 3: minor = '3' warnings.warn('Environment variable ' 'MACOSX_DEPLOYMENT_TARGET reset to %s.%s' % (major, minor)) os.environ['MACOSX_DEPLOYMENT_TARGET'] = '%s.%s' % (major, minor) if sys.platform[:5]=='sunos': opt.append('-mimpure-text') return opt def get_library_dirs(self): SAGE_LOCAL=os.environ['SAGE_LOCAL'] GCC_LIB_DIR=SAGE_LOCAL+"/lib/" if os.path.exists(GCC_LIB_DIR + "gcc-lib"): GCC_LIB_DIR += "gcc-lib/" GCC_LIB_DIR += os.listdir(GCC_LIB_DIR)[0] + "/" GCC_LIB_DIR += os.listdir(GCC_LIB_DIR)[0] + "/" return [GCC_LIB_DIR] def get_libraries(self): l=[] if os.uname()[-1] == 'Power Macintosh': l.append('SystemStubs') else: if os.uname()[0].startswith('Linux'): l.append('f95') return l def get_flags(self): return ['-fno-second-underscore'] def get_flags_opt(self): return ['-O'] def get_flags_debug(self): return ['-g'] | c.dump_properties() compilers.append(("fcompiler="+compiler, None, fcompiler_class[compiler][2] + ' (%s)' % v)) compilers_ni = list(set(fcompiler_class.keys()) - set(platform_compilers)) compilers_ni = [("fcompiler="+fc, None, fcompiler_class[fc][2]) for fc in compilers_ni] compilers.sort() compilers_na.sort() compilers_ni.sort() pretty_printer = FancyGetopt(compilers) pretty_printer.print_help("Fortran compilers found:") pretty_printer = FancyGetopt(compilers_na) pretty_printer.print_help("Compilers available for this " "platform, but not found:") if compilers_ni: pretty_printer = FancyGetopt(compilers_ni) pretty_printer.print_help("Compilers not available on this platform:") print "For compiler details, run 'config_fc --verbose' setup command." def dummy_fortran_file(): fo, name = make_temp_file(suffix='.f') fo.write(" subroutine dummy()\n end\n") fo.close() return name[:-2] is_f_file = re.compile(r'.*[.](for|ftn|f77|f)\Z',re.I).match _has_f_header = re.compile(r'-[*]-\s*fortran\s*-[*]-',re.I).search _has_f90_header = re.compile(r'-[*]-\s*f90\s*-[*]-',re.I).search _has_fix_header = re.compile(r'-[*]-\s*fix\s*-[*]-',re.I).search _free_f90_start = re.compile(r'[^c*!]\s*[^\s\d\t]',re.I).match def is_free_format(file): """Check if file is in free format Fortran.""" result = 0 f = open(file,'r') line = f.readline() n = 10000 if _has_f_header(line): n = 0 elif _has_f90_header(line): n = 0 result = 1 while n>0 and line: line = line.rstrip() if line and line[0]!='!': n -= 1 if (line[0]!='\t' and _free_f90_start(line[:5])) or line[-1:]=='&': result = 1 break line = f.readline() f.close() return result def has_f90_header(src): f = open(src,'r') line = f.readline() f.close() return _has_f90_header(line) or _has_fix_header(line) _f77flags_re = re.compile(r'(c|)f77flags\s*\(\s*(?P<fcname>\w+)\s*\)\s*=\s*(?P<fflags>.*)',re.I) def get_f77flags(src): """ Search the first 20 lines of fortran 77 code for line pattern `CF77FLAGS(<fcompiler type>)=<f77 flags>` Return a dictionary {<fcompiler type>:<f77 flags>}. """ flags = {} f = open(src,'r') i = 0 for line in f.readlines(): i += 1 if i>20: break m = _f77flags_re.match(line) if not m: continue fcname = m.group('fcname').strip() fflags = m.group('fflags').strip() flags[fcname] = split_quoted(fflags) f.close() return flags | def get_libraries(self): opt = [] d = self.get_libgcc_dir() if d is not None: g2c = self.g2c + '-pic' f = self.static_lib_format % (g2c, self.static_lib_extension) if not os.path.isfile(os.path.join(d,f)): g2c = self.g2c else: g2c = self.g2c | 88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
31417,
12,
2890,
4672,
2153,
273,
5378,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
302,
353,
486,
599,
30,
314,
22,
71,
273,
365,
18,
75,
22,
71,
397,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
31417,
12,
2890,
4672,
2153,
273,
5378,
302,
273,
365,
18,
588,
67,
2941,
75,
952,
67,
1214,
1435,
309,
302,
353,
486,
599,
30,
314,
22,
71,
273,
365,
18,
75,
22,
71,
397,... |
ui.write("Found bad cset: %s\n" % hg.hex(b.badrev)) | ui.write("Found bad cset: %s\n" % hg.hex(b.badnode)) | def test(ui, repo, rev): """test the bisection code""" b = bisect(ui, repo) rev = repo.lookup(rev) ui.write("testing with rev %s\n" % hg.hex(rev)) anc = b.ancestors() while len(anc) > 1: if not rev in anc: ui.warn("failure while bisecting\n") sys.exit(1) ui.write("it worked :)\n") new_rev = b.next() ui.write("choosing if good or bad\n") if rev in b.ancestors(head=new_rev): b.bad(new_rev) ui.write("it is bad\n") else: b.good(new_rev) ui.write("it is good\n") anc = b.ancestors() #repo.update(new_rev, force=True) for v in anc: if v != rev: ui.warn("fail to found cset! :(\n") return 1 ui.write("Found bad cset: %s\n" % hg.hex(b.badrev)) ui.write("Everything is ok :)\n") return 0 | 6919e042e934d02082016dfb73d7ed6ccac1b5b5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/6919e042e934d02082016dfb73d7ed6ccac1b5b5/hbisect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
4881,
16,
3538,
16,
5588,
4672,
3536,
3813,
326,
324,
784,
349,
981,
8395,
324,
273,
27031,
12,
4881,
16,
3538,
13,
5588,
273,
3538,
18,
8664,
12,
9083,
13,
5915,
18,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
4881,
16,
3538,
16,
5588,
4672,
3536,
3813,
326,
324,
784,
349,
981,
8395,
324,
273,
27031,
12,
4881,
16,
3538,
13,
5588,
273,
3538,
18,
8664,
12,
9083,
13,
5915,
18,
2626,
... |
result = self.__setRegistrationRequest(fileDict['LFN'],se,'') | result = self.__setRegistrationRequest(fileDict['LFN'],se,'',fileDict) | def transferAndRegisterFile(self,fileName,localPath,lfn,destinationSEList,fileGUID=None,fileCatalog=None): """Performs the transfer and register operation with failover. """ errorList = [] for se in destinationSEList: self.log.info('Attempting rm.putAndRegister("%s","%s","%s",guid="%s",catalog="%s")' %(lfn,localPath,se,fileGUID,fileCatalog)) result = self.rm.putAndRegister(lfn,localPath,se,guid=fileGUID,catalog=fileCatalog) self.log.verbose(result) if not result['OK']: self.log.error('rm.putAndRegister failed with message',result['Message']) errorList.append(result['Message']) continue | 7a20f605299fa7e624d8f2dad9d33a602c724dde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7a20f605299fa7e624d8f2dad9d33a602c724dde/FailoverTransfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
1876,
3996,
812,
12,
2890,
16,
17812,
16,
3729,
743,
16,
80,
4293,
16,
10590,
1090,
682,
16,
768,
17525,
33,
7036,
16,
768,
9769,
33,
7036,
4672,
3536,
9409,
326,
7412,
471,
1744... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
1876,
3996,
812,
12,
2890,
16,
17812,
16,
3729,
743,
16,
80,
4293,
16,
10590,
1090,
682,
16,
768,
17525,
33,
7036,
16,
768,
9769,
33,
7036,
4672,
3536,
9409,
326,
7412,
471,
1744... |
newline = ' firefox: ' + self.exePath if 'testtitle' in line: newline = line.replace('testtitle', self.title) | newline = 'firefox: ' + self.exePath if 'title:' in line: newline = 'title: ' + self.title | def writeConfigFile(self): configFile = open(path.join(self.configPath, "sample.config")) self.currentDate = self._getCurrentDateString() if not self.buildid: self.buildid = self._getCurrentBuildId() if not self.outputName: self.outputName = self.currentDate + "_config.yml" destination = open(self.outputName, "w") config = configFile.readlines() configFile.close() buildidString = "'" + str(self.buildid) + "'" for line in config: newline = line if 'firefox:' in line: newline = ' firefox: ' + self.exePath if 'testtitle' in line: newline = line.replace('testtitle', self.title) if self.testDateFromBuildId: newline += '\n' newline += 'testdate: "%s"\n' % self._getTimeFromBuildId() if 'testfilename' in line: newline = line.replace('testfilename', self.outputName) if 'testbranchid' in line: newline = line.replace('testbranchid', buildidString) else: if 'testbranch' in line: newline = line.replace('testbranch', self.branch) destination.write(newline) destination.close() if self.verbose: self._dumpConfiguration() | 4c906af96dfa1b3a689b4abe42854d0d160b3472 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11102/4c906af96dfa1b3a689b4abe42854d0d160b3472/PerfConfigurator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
13705,
12,
2890,
4672,
12247,
273,
1696,
12,
803,
18,
5701,
12,
2890,
18,
1425,
743,
16,
315,
6358,
18,
1425,
6,
3719,
365,
18,
2972,
1626,
273,
365,
6315,
588,
3935,
1626,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
13705,
12,
2890,
4672,
12247,
273,
1696,
12,
803,
18,
5701,
12,
2890,
18,
1425,
743,
16,
315,
6358,
18,
1425,
6,
3719,
365,
18,
2972,
1626,
273,
365,
6315,
588,
3935,
1626,
780,
... |
def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False, endpoint_tolerance=1e-5): | def srange(start, end=None, step=1, universe=None, check=True, include_endpoint=False): r""" Return list of numbers \code{a, a+step, ..., a+k*step}, where \code{a+k*step < b} and \code{a+(k+1)*step > b}. This provides one way to iterate over Sage integers as opposed to Python int's. It also allows you to specify step sizes for such an iteration. Note, however, that what is returned is a full list of Integers and not an iterator. It is potentially much slower than the Python range function, depending on the application. The function xsrange() provides an iterator with similar functionality which would usually be more efficient than using srange(). INPUT: a -- number b -- number (default: None) step -- number (default: 1) include_endpoint -- whether or not to include the endpoint (default: False) OUTPUT: list If b is None, then b is set equal to a and a is set equal to the 0 in the parent of b. Unlike range, a and b can be any type of numbers, and the resulting list involves numbers of that type. NOTE: This function is called \code{srange} to distinguish it from the builtin Python \code{range} command. The s at the beginning of the name stands for ``Sage''. SEE ALSO: xsrange -- iterator version EXAMPLES: sage: v = srange(5); v [0, 1, 2, 3, 4] sage: type(v[2]) <type 'sage.rings.integer.Integer'> sage: srange(1, 10) [1, 2, 3, 4, 5, 6, 7, 8, 9] sage: srange(10, 1, -1) [10, 9, 8, 7, 6, 5, 4, 3, 2] sage: srange(10,1,-1, include_endpoint=True) [10, 9, 8, 7, 6, 5, 4, 3, 2, 1] sage: Q = RationalField() sage: srange(1,10,Q('1/2')) [1, 3/2, 2, 5/2, 3, 7/2, 4, 9/2, 5, 11/2, 6, 13/2, 7, 15/2, 8, 17/2, 9, 19/2] sage: R = RealField() sage: srange(1,5,R('0.5')) [1.00000000000000, 1.50000000000000, 2.00000000000000, 2.50000000000000, 3.00000000000000, 3.50000000000000, 4.00000000000000, 4.50000000000000] sage: srange(0,1,R('0.4')) [0.000000000000000, 0.400000000000000, 0.800000000000000] sage: srange(1.0, 5.0, include_endpoint=True) [1.00000000000000, 2.00000000000000, 3.00000000000000, 4.00000000000000, 5.00000000000000] sage: srange(1.0, 1.1) [1.00000000000000] sage: srange(1.0, 1.0) [] sage: V = VectorSpace(QQ, 2) sage: srange(V([0,0]), V([5,5]), step=V([2,2])) [(0, 0), (2, 2), (4, 4)] """ from sage.structure.sequence import Sequence from sage.rings.all import ZZ if end is None: end = start start = 0 if check: if universe is None: universe = Sequence([start, end, step]).universe() start, end, step = universe(start), universe(end), universe(step) if include_endpoint: if universe in [int, long, ZZ]: if (end-start) % step == 0: end += step else: count = (end-start)/step if count == int(float(count)): end += step if universe is int or universe is long: return range(start, end, step) elif universe is ZZ: return ZZ.range(start, end, step) else: L = [] sign = 1 if step > 0 else -1 # In order for range to make sense, start, end, and step must lie in a 1-dim real subspace... count = int(math.ceil((float((end-start)/step)))) if count <= 0: return L # we assume that a+b*c = a + b + ... + b if not (start + count * step)*sign > end*sign: # we won't get there by adding, perhaps comparison in the ring is bad # rather than enter an infinite loop, do something sensible # the 'not' is hear because incomparable items return False L = [start + k*step for k in range(count)] # this is slower due to coercion and mult elif step > 0: while start < end: L.append(start) start += step elif step < 0: while start > end: L.append(start) start += step else: raise ValueError, "step must not be 0" return L | 7dbed6340590bb07caaccdfb42c33acf5a427320 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7dbed6340590bb07caaccdfb42c33acf5a427320/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
16,
2494,
67,
25456,
33,
21,
73,
17,
25,
4672,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
3676,
12,
1937,
16,
679,
33,
7036,
16,
2235,
33,
21,
16,
29235,
33,
7036,
16,
866,
33,
5510,
16,
2341,
67,
8003,
33,
8381,
16,
2494,
67,
25456,
33,
21,
73,
17,
25,
4672,
436,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.