rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
data = fromstring(data) | data = etree.fromstring(data, parser=parser) | def first_pass(data): try: data = fromstring(data) except etree.XMLSyntaxError, err: self.oeb.log.exception('Initial parse failed:') repl = lambda m: ENTITYDEFS.get(m.group(1), m.group(0)) data = ENTITY_RE.sub(repl, data) try: data = fromstring(data) except etree.XMLSyntaxError, err: self.oeb.logger.warn('Parsing file ... | ce736fa6ea7acc65bc13207eae98dd29560e4c9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/ce736fa6ea7acc65bc13207eae98dd29560e4c9d/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1122,
67,
5466,
12,
892,
4672,
775,
30,
501,
273,
12031,
18,
2080,
1080,
12,
892,
16,
2082,
33,
4288,
13,
1335,
12031,
18,
4201,
22510,
16,
393,
30,
365,
18,
15548,
70,
18,
1330,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1122,
67,
5466,
12,
892,
4672,
775,
30,
501,
273,
12031,
18,
2080,
1080,
12,
892,
16,
2082,
33,
4288,
13,
1335,
12031,
18,
4201,
22510,
16,
393,
30,
365,
18,
15548,
70,
18,
1330,
18,... |
phandle = parallelize_initfunction(cachednodelist, processnode, parallelinstances, startstate, endstate, nodeprocessfunction, args) | phandle = parallelize_initfunction(cachednodelist, processnode, parallelinstances, acceptnewnode, startstate, endstate, nodeprocessfunction, args) | def locateandprocessvessels(statefunctionargtuplelist, uniquename, sleeptime, acceptnewnode=False,parallelinstances=1): """ <Purpose> Looks up a public key and then calls a function on a set of nodes <Arguments> statefunctionargtuplelist: A list of tuples with a start state (publickey), end state (publickey), a functi... | 8bc026a50e60280d4f30df59ce49673f1feff62b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/8bc026a50e60280d4f30df59ce49673f1feff62b/pollinglib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10627,
464,
2567,
90,
403,
10558,
12,
2019,
915,
3175,
88,
89,
412,
5449,
16,
15426,
1069,
16,
272,
11182,
10650,
16,
2791,
2704,
2159,
33,
8381,
16,
18054,
10162,
33,
21,
4672,
3536,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10627,
464,
2567,
90,
403,
10558,
12,
2019,
915,
3175,
88,
89,
412,
5449,
16,
15426,
1069,
16,
272,
11182,
10650,
16,
2791,
2704,
2159,
33,
8381,
16,
18054,
10162,
33,
21,
4672,
3536,
... |
talkback = content.talkback | print 'getDiscussionFor: ', content.__class__.__name__ if not shasattr(aq_base(content), 'talkback'): talkback = self._createDiscussionFor( content ) else: talkback = content.talkback | def getDiscussionFor(self, content): """ Return the talkback for content, creating it if need be. """ if not self.isDiscussionAllowedFor( content ): raise DiscussionNotAllowed | 00877a4b1e98166de77d612ee90842f77af2a2e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/00877a4b1e98166de77d612ee90842f77af2a2e2/Patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
24393,
1290,
12,
2890,
16,
913,
4672,
3536,
2000,
326,
26591,
823,
364,
913,
16,
4979,
518,
309,
1608,
506,
18,
3536,
309,
486,
365,
18,
291,
24393,
5042,
1290,
12,
913,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
24393,
1290,
12,
2890,
16,
913,
4672,
3536,
2000,
326,
26591,
823,
364,
913,
16,
4979,
518,
309,
1608,
506,
18,
3536,
309,
486,
365,
18,
291,
24393,
5042,
1290,
12,
913,
262,
30,
... |
components.registerAdapter(ListModel, PgSQL.PgResultSet, IModel) | components.registerAdapter(ListModel, PgSQL.PgResultSet, mvc.IModel) | def setData(self, data): setattr(self.parent, self.name, data) | 327a05cbbbad65ab4531afce84bb1517cbe9d90f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/327a05cbbbad65ab4531afce84bb1517cbe9d90f/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
501,
4672,
9241,
12,
2890,
18,
2938,
16,
365,
18,
529,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
7929,
12,
2890,
16,
501,
4672,
9241,
12,
2890,
18,
2938,
16,
365,
18,
529,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if line.strip(): self.parseLine(line, peerid) | self.parseLine(line, peerid) | def parseMessage(self, data, peerid): if data: lines = data.split("\n") for line in lines: if line.strip(): self.parseLine(line, peerid) | aa8d0513eff6d412885924a7d96beeb974298dab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12833/aa8d0513eff6d412885924a7d96beeb974298dab/servent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1079,
12,
2890,
16,
501,
16,
4261,
350,
4672,
309,
501,
30,
2362,
273,
501,
18,
4939,
31458,
82,
7923,
364,
980,
316,
2362,
30,
309,
980,
18,
6406,
13332,
365,
18,
2670,
1670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1079,
12,
2890,
16,
501,
16,
4261,
350,
4672,
309,
501,
30,
2362,
273,
501,
18,
4939,
31458,
82,
7923,
364,
980,
316,
2362,
30,
309,
980,
18,
6406,
13332,
365,
18,
2670,
1670,
... |
print dst_geom.ExportToWkt() | print(dst_geom.ExportToWkt()) | def ogr_factory_4(): src_wkt = 'POINT(2 5 3)' exp_wkt = 'MULTIPOINT(2 5 3)' src_geom = ogr.CreateGeometryFromWkt( src_wkt ) dst_geom = ogr.ForceToMultiPoint( src_geom ) if ogrtest.check_feature_geometry( dst_geom, exp_wkt ): print dst_geom.ExportToWkt() return 'fail' src_wkt = 'GEOMETRYCOLLECTION(POINT(2 5 3),POINT... | 1559772190a41c08c88d9e19e0f49b564439b503 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/1559772190a41c08c88d9e19e0f49b564439b503/ogr_factory.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
3197,
67,
6848,
67,
24,
13332,
225,
1705,
67,
91,
8629,
273,
296,
8941,
12,
22,
1381,
890,
2506,
1329,
67,
91,
8629,
273,
296,
26588,
8941,
12,
22,
1381,
890,
2506,
225,
1705,
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,
320,
3197,
67,
6848,
67,
24,
13332,
225,
1705,
67,
91,
8629,
273,
296,
8941,
12,
22,
1381,
890,
2506,
1329,
67,
91,
8629,
273,
296,
26588,
8941,
12,
22,
1381,
890,
2506,
225,
1705,
6... |
def main(use_pygame_console=0, interactmethod="twistedinteract"): | def main(use_pygame_console=0, interactmethod=default_interactmethod): | def main(use_pygame_console=0, interactmethod="twistedinteract"): si, se, so = sys.stdin, sys.stderr, sys.stdout try: if 0 and use_pygame_console: # pygame currently borked from pyrepl.pygame_console import PyGameConsole, FakeStdin, FakeStdout con = PyGameConsole() sys.stderr = sys.stdout = FakeStdout(con) sys.stdin = ... | 0a7bbd9f219d0eea5a78055c1a2f2ab977bbbac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/278/0a7bbd9f219d0eea5a78055c1a2f2ab977bbbac5/python_reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1202,
67,
2074,
13957,
67,
8698,
33,
20,
16,
16592,
2039,
33,
1886,
67,
2761,
621,
2039,
4672,
7533,
16,
695,
16,
1427,
273,
2589,
18,
21772,
16,
2589,
18,
11241,
16,
2589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1202,
67,
2074,
13957,
67,
8698,
33,
20,
16,
16592,
2039,
33,
1886,
67,
2761,
621,
2039,
4672,
7533,
16,
695,
16,
1427,
273,
2589,
18,
21772,
16,
2589,
18,
11241,
16,
2589,
... |
for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1]) | if not self.options.actions: for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1]) | def upgrade_testing(self): """Upgrade testing using the unstable packages | 333b76f04c83e940fd1667457dc7d9c0a58c6aa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/333b76f04c83e940fd1667457dc7d9c0a58c6aa6/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
67,
3813,
310,
12,
2890,
4672,
3536,
10784,
7769,
1450,
326,
640,
15021,
5907,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
67,
3813,
310,
12,
2890,
4672,
3536,
10784,
7769,
1450,
326,
640,
15021,
5907,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
text="Please choose input and output") | message_format="Please choose input and output") | def export_dialog(self, widget): ex = ExportDialog() input_model = ex.combobox_input.get_active() output_model = ex.combobox_output.get_active() if not (output_model and input_model): md = gtk.MessageDialog(type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_CLOSE, text="Please choose input and output") else: self.iterstart = ... | edfaf0eb04a37f31e76bb13107762afbf5e921a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5205/edfaf0eb04a37f31e76bb13107762afbf5e921a6/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
12730,
12,
2890,
16,
3604,
4672,
431,
273,
11054,
6353,
1435,
810,
67,
2284,
273,
431,
18,
9301,
27570,
67,
2630,
18,
588,
67,
3535,
1435,
876,
67,
2284,
273,
431,
18,
9301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
12730,
12,
2890,
16,
3604,
4672,
431,
273,
11054,
6353,
1435,
810,
67,
2284,
273,
431,
18,
9301,
27570,
67,
2630,
18,
588,
67,
3535,
1435,
876,
67,
2284,
273,
431,
18,
9301,
... |
if ar[1] != 'f': | def run ( self ): global ar global status while 1: if self.readline(): if len(ar) > 3 and ar[0] == 'P': #print #received packet print "%s Sender=%d Rec=%d Seq=%d Data:" % (time.time(),ord(ar[3]),ord(ar[2]),ord(ar[1])) print ar[4:] elif len(ar) > 1 and ar[0] == 'D': #debug info if... | df8f7c831c89b8e1eeb2aa8512fe097e89393d42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11679/df8f7c831c89b8e1eeb2aa8512fe097e89393d42/rfinterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
365,
262,
30,
2552,
419,
2552,
1267,
1323,
404,
30,
309,
365,
18,
896,
1369,
13332,
309,
562,
12,
297,
13,
405,
890,
471,
419,
63,
20,
65,
422,
296,
52,
4278,
468,
1188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
261,
365,
262,
30,
2552,
419,
2552,
1267,
1323,
404,
30,
309,
365,
18,
896,
1369,
13332,
309,
562,
12,
297,
13,
405,
890,
471,
419,
63,
20,
65,
422,
296,
52,
4278,
468,
1188,
... | |
"a": token} | "a": token, "sk": self.network.session_key, "api_key": self.network.api_key} | def _do_handshake(self): """Handshakes with the server""" timestamp = str(int(time.time())) token = md5(self.password + timestamp) params = {"hs": "true", "p": "1.2.1", "c": self.client_id, "v": self.client_version, "u": self.username, "t": timestamp, "a": token} server = self.network.submission_server response = _S... | f3b4182317ff3f41a1614218b6e91fcc4b699268 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9926/f3b4182317ff3f41a1614218b6e91fcc4b699268/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
2349,
7478,
12,
2890,
4672,
3536,
1144,
674,
3223,
598,
326,
1438,
8395,
225,
2858,
273,
609,
12,
474,
12,
957,
18,
957,
1435,
3719,
1147,
273,
3481,
25,
12,
2890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
2349,
7478,
12,
2890,
4672,
3536,
1144,
674,
3223,
598,
326,
1438,
8395,
225,
2858,
273,
609,
12,
474,
12,
957,
18,
957,
1435,
3719,
1147,
273,
3481,
25,
12,
2890,
18,
... |
self.geoclue = Geoclue.DiscoverLocation() self.geoclue.init() | def __init__(self): self.plugin_path = os.path.dirname(os.path.abspath(__file__)) self.glade_file = os.path.join(self.plugin_path, "geolocalized.glade") # the preference menu for the plugin self.menu_item = gtk.MenuItem("Geolocalized Task Preferences") # toolbar button for the new Location view # create the pixbuf wi... | 12aa706127ecc14ac0202cf17283e5add9dd74b1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/12aa706127ecc14ac0202cf17283e5add9dd74b1/geolocalized-tasks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
4094,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
972,
768,
972,
3719,
365,
18,
7043,
2486,
67,
768,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
4094,
67,
803,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
972,
768,
972,
3719,
365,
18,
7043,
2486,
67,
768,
273,
... | |
if downDict['Dir'] and not os.path.isdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ): try: os.mkdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ) | if downDict['Dir'] and not os.path.isdir( os.path.join(self['global']['workingDir'],downDict['Dir'])): try: os.mkdir( os.path.join(self['global']['workingDir'], downDict['Dir'] ) ) | def check(self): global mechanize if not self['global']['urllib'] and not mechanize: print >> sys.stderr, 'Using urllib2 instead of mechanize. setting urllib = True' self['global']['urllib'] = True if 'saveFile' not in self['global'] or self['global']['saveFile'] == None: self['global']['saveFile'] = u'savedstate.dat'... | 633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2552,
1791,
7472,
554,
309,
486,
365,
3292,
6347,
21712,
718,
2941,
3546,
471,
486,
1791,
7472,
554,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
7736,
11527,
22,
3560,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
2552,
1791,
7472,
554,
309,
486,
365,
3292,
6347,
21712,
718,
2941,
3546,
471,
486,
1791,
7472,
554,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
7736,
11527,
22,
3560,... |
None, [cty.c_int, STRING], | None, [cty.c_int, STRING], | def fl_setpup_bw(n, bw): """ fl_setpup_bw(n, bw) """ _fl_setpup_bw(n, bw) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
84,
416,
67,
70,
91,
12,
82,
16,
12986,
4672,
3536,
1183,
67,
542,
84,
416,
67,
70,
91,
12,
82,
16,
12986,
13,
3536,
225,
389,
2242,
67,
542,
84,
416,
67,
70,
91,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
84,
416,
67,
70,
91,
12,
82,
16,
12986,
4672,
3536,
1183,
67,
542,
84,
416,
67,
70,
91,
12,
82,
16,
12986,
13,
3536,
225,
389,
2242,
67,
542,
84,
416,
67,
70,
91,
... |
logger.info(' '+filepath_rel+': no errors found') | logger.info(filepath_rel+': no errors found') | def verify(): all_errors_found = 0 | 9e249a6dacfafcde61ac83d5cd8becc030ac159f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13644/9e249a6dacfafcde61ac83d5cd8becc030ac159f/eagle3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
13332,
777,
67,
4324,
67,
7015,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
3929,
13332,
777,
67,
4324,
67,
7015,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self._form_app = form_app.App("Nigeria Forms", self.router) | self._form_app = form_app.App(self.router) | def start(self): # initialize the forms app for nigeria self._form_app = form_app.App("Nigeria Forms", self.router) # this tells the form app to add itself as a message handler # which registers the regex and function that this will dispatch to self._form_app.add_message_handler_to(self) # this tells the form app that ... | 2ad75c64da9f51476527ec9a765533eab14e489c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/2ad75c64da9f51476527ec9a765533eab14e489c/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
468,
4046,
326,
10138,
595,
364,
290,
360,
264,
1155,
365,
6315,
687,
67,
2910,
273,
646,
67,
2910,
18,
3371,
12,
2890,
18,
10717,
13,
468,
333,
24551,
326,
646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
468,
4046,
326,
10138,
595,
364,
290,
360,
264,
1155,
365,
6315,
687,
67,
2910,
273,
646,
67,
2910,
18,
3371,
12,
2890,
18,
10717,
13,
468,
333,
24551,
326,
646,
... |
formlength = formlength - 8 - chunk.chunksize if chunk.chunksize & 1: formlength = formlength - 1 | def initfp(self, file): self._file = file self._version = 0 self._decomp = None self._markers = [] self._soundpos = 0 form = self._file.read(4) if form != 'FORM': raise Error, 'file does not start with FORM id' formlength = _read_long(self._file) if formlength <= 0: raise Error, 'invalid FORM chunk data size' formdata ... | d5e487709f4c6e2aacee5677e1c110b4a128ef25 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d5e487709f4c6e2aacee5677e1c110b4a128ef25/aifc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7944,
12,
2890,
16,
585,
4672,
365,
6315,
768,
273,
585,
365,
6315,
1589,
273,
374,
365,
6315,
323,
2919,
273,
599,
365,
6315,
22807,
273,
5378,
365,
6315,
29671,
917,
273,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
7944,
12,
2890,
16,
585,
4672,
365,
6315,
768,
273,
585,
365,
6315,
1589,
273,
374,
365,
6315,
323,
2919,
273,
599,
365,
6315,
22807,
273,
5378,
365,
6315,
29671,
917,
273,
374,
... | |
self._vte.feed_child(txt) | for term in self.terminator.term_list: if term == self or term._group != None and term._group == self._group: term._vte.feed_child(txt) | def on_drag_data_received(self, widget, drag_context, x, y, selection_data, info, time, data): dbg ("Drag Data Received") if selection_data.type == 'text/plain': #copy text to destination #print "%s %s" % (selection_data.type, selection_data.target) txt = selection_data.data.strip() if txt[0:7] == "file://": txt = "'%s... | 938fb0d0b767bc5f4855a0416700fe6acf286d07 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/938fb0d0b767bc5f4855a0416700fe6acf286d07/terminatorterm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15997,
67,
892,
67,
15213,
12,
2890,
16,
3604,
16,
8823,
67,
2472,
16,
619,
16,
677,
16,
4421,
67,
892,
16,
1123,
16,
813,
16,
501,
4672,
28966,
7566,
11728,
1910,
21066,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15997,
67,
892,
67,
15213,
12,
2890,
16,
3604,
16,
8823,
67,
2472,
16,
619,
16,
677,
16,
4421,
67,
892,
16,
1123,
16,
813,
16,
501,
4672,
28966,
7566,
11728,
1910,
21066,
79... |
expect(f.read(1), 'a') | expect(f.read(1), b'a') | def expect(got_this, expect_this): if test_support.verbose: print('%r =?= %r ...' % (got_this, expect_this), end=' ') if got_this != expect_this: if test_support.verbose: print('no') raise test_support.TestFailed, 'got %r, but expected %r' %\ (got_this, expect_this) else: if test_support.verbose: print('yes') | f55d86abe0e358709c72f404db4b832ea362c7d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/f55d86abe0e358709c72f404db4b832ea362c7d9/test_largefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
29909,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
13212,
67,
2211,
16,
4489,
67,
2211,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
29909,
86,
273,
35,
33,
738,
86,
25956,
738,
261,
13212,
67,
2211,
16,
4489,
67,
2211,
... |
msg.to = ap.get("to") msg.subject = ap.get("subject") | msg.to = ap.get(TO) msg.subject = ap.get(SUBJECT) | def _decode(self, xfr): dp = EMPTY_DP mp = EMPTY_MP | e2816373f624d2ef21833a5ff2d1fd3b95acfd03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/197/e2816373f624d2ef21833a5ff2d1fd3b95acfd03/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3922,
12,
2890,
16,
619,
4840,
4672,
9986,
273,
8984,
67,
8640,
6749,
273,
8984,
67,
4566,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
389,
3922,
12,
2890,
16,
619,
4840,
4672,
9986,
273,
8984,
67,
8640,
6749,
273,
8984,
67,
4566,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
nodes = [] nodes.extend(flatten_nodes(self.tests)) if self.else_ is not None: nodes.append(self.else_) return tuple(nodes) | nodelist = [] nodelist.extend(flatten_nodes(self.tests)) if self.else_ is not None: nodelist.append(self.else_) return tuple(nodelist) | def getChildNodes(self): nodes = [] nodes.extend(flatten_nodes(self.tests)) if self.else_ is not None: nodes.append(self.else_) return tuple(nodes) | 7dce7618a9a2ec21fadacd49967dbf4d460b4941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7dce7618a9a2ec21fadacd49967dbf4d460b4941/ast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23895,
12,
2890,
4672,
2199,
273,
5378,
2199,
18,
14313,
12,
16940,
67,
4690,
12,
2890,
18,
16341,
3719,
309,
365,
18,
12107,
67,
353,
486,
599,
30,
5411,
2199,
18,
6923,
12,
2890,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23895,
12,
2890,
4672,
2199,
273,
5378,
2199,
18,
14313,
12,
16940,
67,
4690,
12,
2890,
18,
16341,
3719,
309,
365,
18,
12107,
67,
353,
486,
599,
30,
5411,
2199,
18,
6923,
12,
2890,
18,... |
memberships = Membership.gql("WHERE user = :1", user) | actualGroup = Group.get(self.request.get("group")) memberships = Membership.gql("WHERE user = :1 AND group != :2", user, actualGroup) | def getGroups(self, user): memberships = Membership.gql("WHERE user = :1", user) groups = map((lambda x: x.group), memberships) return groups | b1e3ad0af9dd8c2bcdc55f000c6a770ad22469f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3133/b1e3ad0af9dd8c2bcdc55f000c6a770ad22469f8/groupHandlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22708,
12,
2890,
16,
729,
4672,
3214,
1114,
273,
3756,
18,
588,
12,
2890,
18,
2293,
18,
588,
2932,
1655,
6,
3719,
12459,
87,
273,
28100,
18,
75,
1217,
2932,
12299,
729,
273,
294,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22708,
12,
2890,
16,
729,
4672,
3214,
1114,
273,
3756,
18,
588,
12,
2890,
18,
2293,
18,
588,
2932,
1655,
6,
3719,
12459,
87,
273,
28100,
18,
75,
1217,
2932,
12299,
729,
273,
294,
21,
... |
return w.page(title, data + | return w.page(title, data + | def unlock(uri, http_user, login): """unlock a user account password.""" title = _("Unlock account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) users.reload() data += w.page_body_end() if users.is_system_login(login): return w.page(title, w.error(_("Failed to unlock account"), [ _("alter s... | 1ac7de7fa0474fe0812c899f93a87f4be2a8eadb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/1ac7de7fa0474fe0812c899f93a87f4be2a8eadb/users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7186,
12,
1650,
16,
1062,
67,
1355,
16,
3925,
4672,
3536,
26226,
279,
729,
2236,
2201,
12123,
225,
2077,
273,
389,
2932,
7087,
2236,
738,
87,
7923,
738,
3925,
501,
225,
273,
341,
18,
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,
7186,
12,
1650,
16,
1062,
67,
1355,
16,
3925,
4672,
3536,
26226,
279,
729,
2236,
2201,
12123,
225,
2077,
273,
389,
2932,
7087,
2236,
738,
87,
7923,
738,
3925,
501,
225,
273,
341,
18,
2... |
m = "Server returned an error: '%s'" % msg[1:] | m = "Server returned an error: '%s'" % msg[1] | def _handle_error(self, msg): """ Deals with error messages by raising them as exceptions. """ | 71e12d1b5eaf057668ebf4ecc32e9f3ac16d6b17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13574/71e12d1b5eaf057668ebf4ecc32e9f3ac16d6b17/worldmodel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
1636,
12,
2890,
16,
1234,
4672,
3536,
1505,
1031,
598,
555,
2743,
635,
28014,
2182,
487,
4798,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
1636,
12,
2890,
16,
1234,
4672,
3536,
1505,
1031,
598,
555,
2743,
635,
28014,
2182,
487,
4798,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
- ``i`` - round (0 = i = n) | - ``i`` - round (0 <= i <= n) | def key_schedule_polynomials(self, i): """ Return polynomials for the `i`-th round of the key schedule. | 361ee6a2b2c797fdc77944b615cb058df81aca2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/361ee6a2b2c797fdc77944b615cb058df81aca2e/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
67,
3915,
13602,
87,
12,
2890,
16,
277,
4672,
3536,
2000,
16991,
87,
364,
326,
1375,
77,
68,
17,
451,
3643,
434,
326,
498,
4788,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
67,
3915,
13602,
87,
12,
2890,
16,
277,
4672,
3536,
2000,
16991,
87,
364,
326,
1375,
77,
68,
17,
451,
3643,
434,
326,
498,
4788,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
time.sleep(5) | time.sleep(wait) wait = min(wait*2, 300) | def _putPageOld(self, text, comment=None, watchArticle=False, minorEdit=True, newPage=False, token=None, newToken=False, sysop=False, captcha=None, botflag=True, maxTries=-1): """Upload 'text' as new content of Page by filling out the edit form. | 83bd9e3ef494861e1302c7b51f2e970a147cccd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/83bd9e3ef494861e1302c7b51f2e970a147cccd2/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
1964,
7617,
12,
2890,
16,
977,
16,
2879,
33,
7036,
16,
4267,
7880,
33,
8381,
16,
8439,
4666,
33,
5510,
16,
394,
1964,
33,
8381,
16,
1147,
33,
7036,
16,
394,
1345,
33,
8381,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
458,
1964,
7617,
12,
2890,
16,
977,
16,
2879,
33,
7036,
16,
4267,
7880,
33,
8381,
16,
8439,
4666,
33,
5510,
16,
394,
1964,
33,
8381,
16,
1147,
33,
7036,
16,
394,
1345,
33,
8381,... |
running_status = IDLE | except: logger.exception("Error trying to commit in bgsync") try: | def silentCallback(*args, **kwds): # Simply return the interrupt flag return interrupt_flag == IMMEDIATE_STOP | f1b62db6d8b3c28cab8cdd7839f8900fd1db3964 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f1b62db6d8b3c28cab8cdd7839f8900fd1db3964/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10404,
2428,
30857,
1968,
16,
2826,
25577,
4672,
468,
9587,
1283,
327,
326,
13123,
2982,
327,
13123,
67,
6420,
422,
6246,
15971,
1777,
67,
17513,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10404,
2428,
30857,
1968,
16,
2826,
25577,
4672,
468,
9587,
1283,
327,
326,
13123,
2982,
327,
13123,
67,
6420,
422,
6246,
15971,
1777,
67,
17513,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if the script completes successfully, return the concatenation of ``stdout`` and ``stderr``. else fail. | if the script completes successfully, return its ``stdout``, else fail the test. | def run_script(self, script=None, args=None): """run a script in a separate process. | 75b482a898630e234393ff9417678f152d784ee0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11588/75b482a898630e234393ff9417678f152d784ee0/setproctitle_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
4263,
12,
2890,
16,
2728,
33,
7036,
16,
833,
33,
7036,
4672,
3536,
2681,
279,
2728,
316,
279,
9004,
1207,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
4263,
12,
2890,
16,
2728,
33,
7036,
16,
833,
33,
7036,
4672,
3536,
2681,
279,
2728,
316,
279,
9004,
1207,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Reporter.reportError(self, testCase, method, exc_info) def reportSuccess(self, testCase, method): | Reporter.reportError(self, testClass, method, exc_info) def reportSuccess(self, testClass, method): | def reportError(self, testCase, method, exc_info): self.write('E') Reporter.reportError(self, testCase, method, exc_info) | 5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/5e3758d35a6809c31c90a4ec1d96f7b2e095b8b0/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17887,
12,
2890,
16,
1842,
2449,
16,
707,
16,
3533,
67,
1376,
4672,
365,
18,
2626,
2668,
41,
6134,
25585,
18,
6006,
668,
12,
2890,
16,
1842,
2449,
16,
707,
16,
3533,
67,
1376,
13,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17887,
12,
2890,
16,
1842,
2449,
16,
707,
16,
3533,
67,
1376,
4672,
365,
18,
2626,
2668,
41,
6134,
25585,
18,
6006,
668,
12,
2890,
16,
1842,
2449,
16,
707,
16,
3533,
67,
1376,
13,
2,... |
def __init__(self, url=None): | def __init__(self, url={}): | def __init__(self, url=None): SafeProxy.__init__(self, self.name, url) for method in self.methods: setattr(self, method, eval('lambda *x:self.run_method(method, x)', {'self':self, 'method':method})) | 466eaa2b99da6ff8cfd0900a0ffde3b9270b0d92 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/466eaa2b99da6ff8cfd0900a0ffde3b9270b0d92/Proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
880,
12938,
4672,
14060,
3886,
16186,
2738,
972,
12,
2890,
16,
365,
18,
529,
16,
880,
13,
364,
707,
316,
365,
18,
5163,
30,
9241,
12,
2890,
16,
707,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
880,
12938,
4672,
14060,
3886,
16186,
2738,
972,
12,
2890,
16,
365,
18,
529,
16,
880,
13,
364,
707,
316,
365,
18,
5163,
30,
9241,
12,
2890,
16,
707,
16... |
'Build', 'Cache', 'Collection', 'Data', 'Depends', 'Fetcher', 'Parsing', 'PersistData', 'Provider', 'RunQueue', 'TaskData', 'Util')) | "Default", "Build", "Cache", "Collection", "Data", "Depends", "Fetcher", "Parsing", "PersistData", "Provider", "RunQueue", "TaskData", "Util")) | def _NamedTuple(name, fields): Tuple = collections.namedtuple(name, " ".join(fields)) return Tuple(*range(len(fields))) | 350c3126e130b1f6d22c6b5061a3feacc05025fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8123/350c3126e130b1f6d22c6b5061a3feacc05025fc/msg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7604,
9038,
12,
529,
16,
1466,
4672,
7257,
273,
6980,
18,
13188,
8052,
12,
529,
16,
315,
3552,
5701,
12,
2821,
3719,
327,
7257,
30857,
3676,
12,
1897,
12,
2821,
20349,
225,
2,
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,
389,
7604,
9038,
12,
529,
16,
1466,
4672,
7257,
273,
6980,
18,
13188,
8052,
12,
529,
16,
315,
3552,
5701,
12,
2821,
3719,
327,
7257,
30857,
3676,
12,
1897,
12,
2821,
20349,
225,
2,
-10... |
hfile = cStringIO.StringIO(bytes) self.headers = self.MessageClass(hfile) | self.headers = self.MessageClass(self.rfile, 0) | def parse_request(self): """Parse a request (internal). | cffb9dee673cd00ee341bdd504066af67e49f09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cffb9dee673cd00ee341bdd504066af67e49f09b/BaseHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2293,
12,
2890,
4672,
3536,
3201,
279,
590,
261,
7236,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2293,
12,
2890,
4672,
3536,
3201,
279,
590,
261,
7236,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.out += self.ids_to_labels(node) | set_anchor = not(isinstance(node.parent, nodes.caption) or isinstance(node.parent, nodes.title)) self.out += self.ids_to_labels(node, set_anchor) | def visit_target(self, node): # Skip indirect targets: if ('refuri' in node # external hyperlink or 'refid' in node # resolved internal link or 'refname' in node): # unresolved internal link ## self.out.append('%% %s\n' % node) # for debugging return self.out.append('%\n') self.out += self.ids_to_labels(nod... | 6d0e673df8a8a162ea831fe884be17ae4ef52a46 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/6d0e673df8a8a162ea831fe884be17ae4ef52a46/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3299,
12,
2890,
16,
756,
4672,
468,
6611,
16807,
5774,
30,
309,
7707,
1734,
1650,
11,
316,
756,
4202,
468,
3903,
9512,
1232,
578,
296,
1734,
350,
11,
316,
756,
377,
468,
4640... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3299,
12,
2890,
16,
756,
4672,
468,
6611,
16807,
5774,
30,
309,
7707,
1734,
1650,
11,
316,
756,
4202,
468,
3903,
9512,
1232,
578,
296,
1734,
350,
11,
316,
756,
377,
468,
4640... |
return self.regex.match(str(leaf.cat)) | return self.regex.match(str(leaf.cat)) is not None | def is_satisfied_by(self, leaf): return self.regex.match(str(leaf.cat)) | 7021b9e889cb99f1462dabe273d2e7800122fbee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8383/7021b9e889cb99f1462dabe273d2e7800122fbee/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
12973,
21501,
67,
1637,
12,
2890,
16,
7839,
4672,
327,
365,
18,
7584,
18,
1916,
12,
701,
12,
12070,
18,
2574,
3719,
353,
486,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
12973,
21501,
67,
1637,
12,
2890,
16,
7839,
4672,
327,
365,
18,
7584,
18,
1916,
12,
701,
12,
12070,
18,
2574,
3719,
353,
486,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"Couldn't find terminating boundary: %s" % boundary) terminator = mo.start() linesep = mo.group('sep') if mo.end() < len(payload): epilogue = payload[mo.end():] | "Couldn't find terminating boundary: %s" % boundary) else: endre = re.compile('(?P<sep>\r\n|\r|\n){2}$') mo = endre.search(payload) if not mo: raise Errors.BoundaryError( "Couldn't find terminating boundary, and no "+ "trailing empty line") else: linesep = mo.group('sep') terminator = len(payload) | def _parsebody(self, container, fp): # Parse the body, but first split the payload on the content-type # boundary if present. boundary = container.get_boundary() isdigest = (container.get_type() == 'multipart/digest') # If there's a boundary, split the payload text into its constituent # parts and parse each separately... | 3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3f1ae9b34469c4a9c9ea69dfeb77feedc8a53ac5/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
3432,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1417,
16,
1496,
1122,
1416,
326,
2385,
603,
326,
913,
17,
723,
468,
7679,
309,
3430,
18,
7679,
273,
1478,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
3432,
12,
2890,
16,
1478,
16,
4253,
4672,
468,
2884,
326,
1417,
16,
1496,
1122,
1416,
326,
2385,
603,
326,
913,
17,
723,
468,
7679,
309,
3430,
18,
7679,
273,
1478,
18,
588,
... |
return '' | return u'' | def get_in_language(self, language): if self.raw_data and self.raw_data.has_key(language): return self.raw_data[language] else: return '' | 54d1f63bda2a6ef36ecb97d19845898465ce1fa6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/807/54d1f63bda2a6ef36ecb97d19845898465ce1fa6/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
267,
67,
4923,
12,
2890,
16,
2653,
4672,
309,
365,
18,
1899,
67,
892,
471,
365,
18,
1899,
67,
892,
18,
5332,
67,
856,
12,
4923,
4672,
327,
365,
18,
1899,
67,
892,
63,
4923... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
267,
67,
4923,
12,
2890,
16,
2653,
4672,
309,
365,
18,
1899,
67,
892,
471,
365,
18,
1899,
67,
892,
18,
5332,
67,
856,
12,
4923,
4672,
327,
365,
18,
1899,
67,
892,
63,
4923... |
dat = self._get_line()[:-2] | dat = self._get_line() | def _get_response(self): | 46586822058b54c93e36247f31b13b4d7286f0a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/46586822058b54c93e36247f31b13b4d7286f0a2/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2740,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2740,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
<url type="application/rss+xml" indexOffset="1" rel="results" template="%(search_syntax)s" /> <atom:link rel="search" href="%(siteurl)s/search/opensearchdescription" type="application/opensearchdescription+xml" title="Content Search" /> | <atom:link rel="search" href="%(siteurl)s/opensearchdescription" type="application/opensearchdescription+xml" title="Content Search" /> | def tmpl_xml_rss_prologue(self, current_url=None, previous_url=None, next_url=None, first_url=None, last_url=None, nb_found=None, jrec=None, rg=None): """Creates XML RSS 2.0 prologue.""" out = """<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://pur... | 0b2970baab66c776567b8547fb241de18d0c9af0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2139/0b2970baab66c776567b8547fb241de18d0c9af0/websearch_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
2902,
67,
25151,
67,
685,
1330,
344,
12,
2890,
16,
783,
67,
718,
33,
7036,
16,
2416,
67,
718,
33,
7036,
16,
1024,
67,
718,
33,
7036,
16,
1122,
67,
718,
33,
7036,
16,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
2902,
67,
25151,
67,
685,
1330,
344,
12,
2890,
16,
783,
67,
718,
33,
7036,
16,
2416,
67,
718,
33,
7036,
16,
1024,
67,
718,
33,
7036,
16,
1122,
67,
718,
33,
7036,
16,
114... |
def __init__(self, session, transponders): | def __init__(self, session, transponders, flags): | def __init__(self, session, transponders): Screen.__init__(self, session) self.session.nav.stopService() self["scan_progress"] = ProgressBar() self["scan_state"] = Label("scan state") self["scan"] = CScan(self["scan_progress"], self["scan_state"], transponders) | 3ff9ec2869649c38251899fc0fbe9c651a061dfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/3ff9ec2869649c38251899fc0fbe9c651a061dfc/ServiceScan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
906,
3111,
414,
16,
2943,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
225,
365,
18,
3184,
18,
11589,
18,
5681,
1179,
1435,
225,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1339,
16,
906,
3111,
414,
16,
2943,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
225,
365,
18,
3184,
18,
11589,
18,
5681,
1179,
1435,
225,
365,... |
m = re.search(r'https?://.*?jstor.+?/(\d{4,})(/|$|\?)', url) | m = re.search(r'https?://.*?jstor.+?/(\d{4,})', url) | def url_to_id(url): # If there's a DOI then we'll have that m = re.search(r'doi=10.2307/(\d+)', url) if m: return int(m.group(1)) # If it's the old style SICI then, annoyingly, we'll need to fetch it if 'sici=' in url: page = urlopen(url).read() m = re.search(r'<a id="info" href="/stable/(\d+)">Article Information</a... | 0c61891867f63ce3442a8c9a8e6959517000716a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13110/0c61891867f63ce3442a8c9a8e6959517000716a/jstor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
67,
869,
67,
350,
12,
718,
4672,
225,
468,
971,
1915,
1807,
279,
5467,
45,
1508,
732,
5614,
1240,
716,
312,
273,
283,
18,
3072,
12,
86,
14271,
11359,
33,
2163,
18,
4366,
8642,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
880,
67,
869,
67,
350,
12,
718,
4672,
225,
468,
971,
1915,
1807,
279,
5467,
45,
1508,
732,
5614,
1240,
716,
312,
273,
283,
18,
3072,
12,
86,
14271,
11359,
33,
2163,
18,
4366,
8642,
1... |
limit=1, order='date_cancel ASC') | limit=1, order='date_cancel') | def _membership_cancel(self, cr, uid, ids, name, args, context=None): '''Return the cancel date of membership''' res = {} member_line_obj = self.pool.get('membership.membership_line') for partner_id in ids: line_id = member_line_obj.search(cr, uid, [('partner', '=', partner_id)], limit=1, order='date_cancel ASC') if li... | a0cc6ae3dc18eb6d07ba11be5f2d2071fe20b622 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/a0cc6ae3dc18eb6d07ba11be5f2d2071fe20b622/membership.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19679,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
9163,
990,
326,
3755,
1509,
434,
12459,
26418,
400,
273,
2618,
3140,
67,
1369,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19679,
67,
10996,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
33,
7036,
4672,
9163,
990,
326,
3755,
1509,
434,
12459,
26418,
400,
273,
2618,
3140,
67,
1369,... |
- ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound | - ``X`` - a scheme or set of abstract rational points of a scheme; - ``B`` - a positive integer bound. | def enum_affine_rational_field(X,B): """ Enumerates affine rational points on scheme X (defined over `\QQ`) up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound OUTPUT: - a list containing the affine points of X of height up to B, sorted. EXAM... | 7437114fd97818d63a9f0b766fecf0fb34f4f16c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/7437114fd97818d63a9f0b766fecf0fb34f4f16c/rational_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
7329,
558,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
28381,
436,
8371,
3143,
603,
4355,
1139,
261,
2178,
1879,
1375,
64,
53,
53,
24065,
731,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
7329,
558,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
28381,
436,
8371,
3143,
603,
4355,
1139,
261,
2178,
1879,
1375,
64,
53,
53,
24065,
731,
358,
... |
out = open(filename, 'w') | out = open(filename, 'wb') | def write(self, filename, language='gif'): """ Render the graph using the output format `language`, and write the result to `filename`. :return: True if rendering was successful. """ s = self.render(language) if s is not None: out = open(filename, 'w') out.write(s) out.close() return True else: return False | 435dcbeda1429f0584f1e8b77ae1f239f66582c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/435dcbeda1429f0584f1e8b77ae1f239f66582c3/dotgraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
16,
2653,
2218,
13905,
11,
4672,
3536,
6987,
326,
2667,
1450,
326,
876,
740,
1375,
4923,
9191,
471,
1045,
326,
563,
358,
1375,
3459,
8338,
294,
2463,
30,
1053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
1544,
16,
2653,
2218,
13905,
11,
4672,
3536,
6987,
326,
2667,
1450,
326,
876,
740,
1375,
4923,
9191,
471,
1045,
326,
563,
358,
1375,
3459,
8338,
294,
2463,
30,
1053,
... |
object, name = resolve(thing, forceload) desc = describe(object) module = inspect.getmodule(object) if name and '.' in name: desc += ' in ' + name[:name.rfind('.')] elif module and module is not object: desc += ' in module ' + module.__name__ if type(object) is _OLD_INSTANCE_TYPE: object = object.__class__ elif not (... | pager(render_doc(thing, title, forceload)) | def doc(thing, title='Python Library Documentation: %s', forceload=0): """Display text documentation, given an object or a path to an object.""" try: object, name = resolve(thing, forceload) desc = describe(object) module = inspect.getmodule(object) if name and '.' in name: desc += ' in ' + name[:name.rfind('.')] elif ... | 8441f15626998df7881f49223948b7e6fef18c08 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8441f15626998df7881f49223948b7e6fef18c08/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
12,
4274,
16,
2077,
2218,
15774,
18694,
20495,
30,
738,
87,
2187,
364,
2183,
6189,
33,
20,
4672,
3536,
4236,
977,
7323,
16,
864,
392,
733,
578,
279,
589,
358,
392,
733,
12123,
775... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
12,
4274,
16,
2077,
2218,
15774,
18694,
20495,
30,
738,
87,
2187,
364,
2183,
6189,
33,
20,
4672,
3536,
4236,
977,
7323,
16,
864,
392,
733,
578,
279,
589,
358,
392,
733,
12123,
775... |
self.removeDns(name) | try: self.removeDns(name) except: pass | def addDns(self, name, ip): self.removeDns(name) if (self.dnsKeyFile != ""): cmd = "nsupdate -k %s" % (self.dnsKeyFile) else: cmd = "nsupdate" (stdin, stdout) = os.popen2(cmd) stdin.write("server %s\n" % (self.dnsServer)) stdin.write("update add %s.%s %d A %s\n" % (name, self.dnsDomain, self.dnsExpire, ip)) stdin.write... | 6c4d387340afc3b09f522c9610fa15ee649dccfb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/6c4d387340afc3b09f522c9610fa15ee649dccfb/dhcpdns.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
18600,
12,
2890,
16,
508,
16,
2359,
4672,
775,
30,
365,
18,
4479,
18600,
12,
529,
13,
1335,
30,
1342,
309,
261,
2890,
18,
14926,
31314,
480,
1408,
4672,
1797,
273,
315,
2387,
2725... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
18600,
12,
2890,
16,
508,
16,
2359,
4672,
775,
30,
365,
18,
4479,
18600,
12,
529,
13,
1335,
30,
1342,
309,
261,
2890,
18,
14926,
31314,
480,
1408,
4672,
1797,
273,
315,
2387,
2725... |
AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-27. Will be cleaned up further. | def _remove_bases_from_duplex(self, group, resizeEndAxisAtom, numberOfBasePairsToRemove): """ AVAILABLE AS A DEBUG PREFERENCE ONLY AS OF 2008-03-27. Will be cleaned up further. Remove the spcified number of base pairs from the duplex. @param group: The DnaGroup which contains this duplex @type group: DnaGroup @param... | 4090824539fc516abf6a30244c3d3d05582e6bbc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/4090824539fc516abf6a30244c3d3d05582e6bbc/DnaDuplex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
18602,
67,
2080,
67,
72,
2268,
92,
12,
2890,
16,
1041,
16,
7041,
1638,
6558,
3641,
16,
7922,
2171,
10409,
12765,
4672,
3536,
225,
3581,
326,
1694,
71,
939,
1300,
434,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
67,
18602,
67,
2080,
67,
72,
2268,
92,
12,
2890,
16,
1041,
16,
7041,
1638,
6558,
3641,
16,
7922,
2171,
10409,
12765,
4672,
3536,
225,
3581,
326,
1694,
71,
939,
1300,
434,
10... | |
self.bottom_right_margin[0] * self.mm_to_page | self.bottom_right_margin[0] * mm_to_dc | def calculateScale(self, dc): page_ppi_x, page_ppi_y = self.GetPPIPrinter() screen_ppi_x, screen_ppi_y = self.GetPPIScreen() screen_to_page = 1.0 * page_ppi_y / screen_ppi_y | 4bebb256853615ba19e6f179b242b1cab3934f85 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/4bebb256853615ba19e6f179b242b1cab3934f85/stcprint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
5587,
12,
2890,
16,
6744,
4672,
1363,
67,
84,
7259,
67,
92,
16,
1363,
67,
84,
7259,
67,
93,
273,
365,
18,
967,
52,
1102,
12149,
1435,
5518,
67,
84,
7259,
67,
92,
16,
225,
551... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
5587,
12,
2890,
16,
6744,
4672,
1363,
67,
84,
7259,
67,
92,
16,
1363,
67,
84,
7259,
67,
93,
273,
365,
18,
967,
52,
1102,
12149,
1435,
5518,
67,
84,
7259,
67,
92,
16,
225,
551... |
elif not self.has_section(section): | elif section not in self.__sections: | def has_option(self, section, option): """Check for the existence of a given option in a given section.""" if not section or section == "DEFAULT": return option in self.__defaults elif not self.has_section(section): return 0 else: option = self.optionxform(option) return option in self.__sections[section] | c2ff9051d2dace414d5ec928fa3e41edd9297992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c2ff9051d2dace414d5ec928fa3e41edd9297992/ConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
3482,
12,
2890,
16,
2442,
16,
1456,
4672,
3536,
1564,
364,
326,
15782,
434,
279,
864,
1456,
316,
279,
864,
2442,
12123,
309,
486,
2442,
578,
2442,
422,
315,
5280,
6877,
327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
3482,
12,
2890,
16,
2442,
16,
1456,
4672,
3536,
1564,
364,
326,
15782,
434,
279,
864,
1456,
316,
279,
864,
2442,
12123,
309,
486,
2442,
578,
2442,
422,
315,
5280,
6877,
327,
1... |
self.sock.connect((self.getConf("host"), self.getConf("port"))) nick = self.getConf("nick") | host = self.getConfig("host") self.sock.connect((host, self.getConfig("port"))) nick = self.getConfig("nick") | def run(self): # connect to IRC etc. self.sock = socket.socket() self.sock.connect((self.getConf("host"), self.getConf("port"))) nick = self.getConf("nick") self.sock.send("NICK %s\r\n" % nick) self.sock.send("USER %s %s bla :%s\r\n" % (nick, self.getConf("host"), nick)) for t in self.getConf("owner").split(): if t.str... | f0ef72d9754bb11d23a3064fcf0a17add7d850ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/f0ef72d9754bb11d23a3064fcf0a17add7d850ef/IRCInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
3077,
358,
467,
11529,
5527,
18,
365,
18,
15031,
273,
2987,
18,
7814,
1435,
1479,
273,
365,
18,
588,
809,
2932,
2564,
7923,
365,
18,
15031,
18,
3612,
12443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
3077,
358,
467,
11529,
5527,
18,
365,
18,
15031,
273,
2987,
18,
7814,
1435,
1479,
273,
365,
18,
588,
809,
2932,
2564,
7923,
365,
18,
15031,
18,
3612,
12443,
... |
def ignore_prompts_and_output(s): | __internal_test1 = ''' def foo(x): " EXAMPLES: sage: 2+2 4 " return x '''.lstrip() __internal_test2 = ''' sage: 2 + 2 4 '''.lstrip() def ignore_prompts_and_output(aString): | def hide_all(self): for C in self.__cells: try: C.set_cell_output_type('hidden') except AttributeError: pass | 8dca6ec08bfce6b0fd76ef23f87e7f5c68474280 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8dca6ec08bfce6b0fd76ef23f87e7f5c68474280/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6853,
67,
454,
12,
2890,
4672,
364,
385,
316,
365,
16186,
14741,
30,
775,
30,
385,
18,
542,
67,
3855,
67,
2844,
67,
723,
2668,
6345,
6134,
1335,
6394,
30,
1342,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6853,
67,
454,
12,
2890,
4672,
364,
385,
316,
365,
16186,
14741,
30,
775,
30,
385,
18,
542,
67,
3855,
67,
2844,
67,
723,
2668,
6345,
6134,
1335,
6394,
30,
1342,
2,
-100,
-100,
-100,
... |
stn(self.name, 100), | stn(name, 100), | def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), ... | 3354f285b958bbe8fa99b0091fcd4335251dec71 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3354f285b958bbe8fa99b0091fcd4335251dec71/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
1203,
487,
279,
13908,
1160,
533,
18,
3536,
2140,
273,
306,
384,
82,
12,
529,
16,
2130,
3631,
518,
82,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
1203,
487,
279,
13908,
1160,
533,
18,
3536,
2140,
273,
306,
384,
82,
12,
529,
16,
2130,
3631,
518,
82,
12,
... |
return super(account_voucher, self).unlink(self, cr, uid, unlink_ids) | return super(account_voucher, self).unlink(cr, uid, unlink_ids, context=context) | def unlink(self, cr, uid, ids, context={}): vouchers = self.read(cr, uid, ids, ['state']) unlink_ids = [] for t in vouchers: if t['state'] in ('draft', 'cancel'): unlink_ids.append(t['id']) else: raise osv.except_osv('Invalid action !', 'Cannot delete Voucher(s) which are already opened or paid !') return super(account... | 4b8f8dff839a3601d1a23e36d4720bdb69c0813d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4b8f8dff839a3601d1a23e36d4720bdb69c0813d/voucher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
331,
31952,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
10228,
2019,
19486,
8255,
67,
2232,
273,
5378,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
331,
31952,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
10228,
2019,
19486,
8255,
67,
2232,
273,
5378,
364,... |
if (len(self.colind)>0) and (max(self.colind) >= N): | if (nzmax < nnz): raise ValueError, "Nzmax must not be less than nnz." if (nnz>0) and (max(self.colind[:nnz]) >= M): | def _check(self): M,N = self.shape if (rank(self.data) != 1) or (rank(self.colind) != 1) or \ (rank(self.indptr) != 1): raise ValueError, "Data, colind, and indptr arrays "\ "should be rank 1." if (len(self.data) != len(self.colind)): raise ValueError, "Data and row list should have same length" if (len(self.indptr) !=... | 40c0a6da933b8818f7693a49ace1b684ee2f68a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/40c0a6da933b8818f7693a49ace1b684ee2f68a1/Sparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
12,
2890,
4672,
490,
16,
50,
273,
365,
18,
4867,
309,
261,
11500,
12,
2890,
18,
892,
13,
480,
404,
13,
578,
261,
11500,
12,
2890,
18,
1293,
728,
13,
480,
404,
13,
578,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
12,
2890,
4672,
490,
16,
50,
273,
365,
18,
4867,
309,
261,
11500,
12,
2890,
18,
892,
13,
480,
404,
13,
578,
261,
11500,
12,
2890,
18,
1293,
728,
13,
480,
404,
13,
578,
5... |
if oldPath and type(oldPath) != types.StringType: | if oldPath and (type(oldPath) != types.StringType and type(oldPath) != types.UnicodeType): | def getUserResultsOutputDir(self, request, oldPath = None, oldUserName = None): """ Builds a default output path for the user if oldPath is None. If oldPath (a path to a previously processed item) is a string, then attempts to replace the old login name with the name of the current request owner. @param oldPath Old out... | 253867d90460bdef9b01dcde3e04442af4825f2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/253867d90460bdef9b01dcde3e04442af4825f2f/pluginmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
3447,
1447,
1621,
12,
2890,
16,
590,
16,
1592,
743,
273,
599,
16,
1592,
15296,
273,
599,
4672,
3536,
3998,
87,
279,
805,
876,
589,
364,
326,
729,
309,
1592,
743,
353,
599,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
3447,
1447,
1621,
12,
2890,
16,
590,
16,
1592,
743,
273,
599,
16,
1592,
15296,
273,
599,
4672,
3536,
3998,
87,
279,
805,
876,
589,
364,
326,
729,
309,
1592,
743,
353,
599,
18,
... |
return {} | return datas['form'] | def check(self, cursor, user, datas, context=None): if not (datas['form']['term1'] < datas['form']['term2'] \ < datas['form']['term3']): self.raise_user_error(cursor, error="warning", error_description="term_overlap_desc") return {} | ed5bd42bb8620f2ce5768b89c9d65497a58ae567 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/ed5bd42bb8620f2ce5768b89c9d65497a58ae567/account.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3347,
16,
729,
16,
5386,
16,
819,
33,
7036,
4672,
309,
486,
261,
13178,
3292,
687,
21712,
6408,
21,
3546,
411,
5386,
3292,
687,
21712,
6408,
22,
3546,
521,
411,
5386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3347,
16,
729,
16,
5386,
16,
819,
33,
7036,
4672,
309,
486,
261,
13178,
3292,
687,
21712,
6408,
21,
3546,
411,
5386,
3292,
687,
21712,
6408,
22,
3546,
521,
411,
5386... |
assert rnn.minimizer.step_cost(x,y) < -20 | if theano.config.mode=='DEBUG_MODE': assert rnn.minimizer.step_cost(x,y) < -.9 else: assert rnn.minimizer.step_cost(x,y) < -20 | def test_example_rnn(): minimizer_fn = sgd_minimizer(stepsize = 0.001) n_vis = 5 n_out = 3 n_hid = 4 rnn_module = ExampleRNN(n_vis, minimizer_fn) rnn = rnn_module.make() rng = N.random.RandomState(unittest_tools.fetch_seed(7722342)) x = rng.randn(10,n_vis) y = rng.randn(10,n_out) #set y to be like x with a lag of L... | 8e158ada4c84304901f86cae4d4965e738f75c7a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/8e158ada4c84304901f86cae4d4965e738f75c7a/test_inplace_opt_for_value.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8236,
67,
86,
9074,
13332,
18172,
1824,
67,
4293,
273,
11150,
72,
67,
1154,
381,
1824,
12,
4119,
1467,
273,
374,
18,
11664,
13,
225,
290,
67,
3516,
273,
1381,
290,
67,
659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8236,
67,
86,
9074,
13332,
18172,
1824,
67,
4293,
273,
11150,
72,
67,
1154,
381,
1824,
12,
4119,
1467,
273,
374,
18,
11664,
13,
225,
290,
67,
3516,
273,
1381,
290,
67,
659,
... |
'defaults' is an n-tuple of the default values of the last n arguments.""" if not isfunction(func): raise TypeError, 'arg is not a Python function' | 'defaults' is an n-tuple of the default values of the last n arguments. """ if ismethod(func): func = func.im_func if not isfunction(func): raise TypeError('arg is not a Python function') | def getargspec(func): """Get the names and default values of a function's arguments. A tuple of four things is returned: (args, varargs, varkw, defaults). 'args' is a list of the argument names (it may contain nested lists). 'varargs' and 'varkw' are the names of the * and ** arguments or None. 'defaults' is an n-tupl... | 6496788e7a287aedfaa61c0a87feeaeb2fbb06a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6496788e7a287aedfaa61c0a87feeaeb2fbb06a6/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23172,
12,
644,
4672,
3536,
967,
326,
1257,
471,
805,
924,
434,
279,
445,
1807,
1775,
18,
225,
432,
3193,
434,
12792,
9198,
353,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23172,
12,
644,
4672,
3536,
967,
326,
1257,
471,
805,
924,
434,
279,
445,
1807,
1775,
18,
225,
432,
3193,
434,
12792,
9198,
353,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
16,... |
if len(value) or keep_blank_values: if dict.has_key (name): dict[name].append(value) else: dict[name] = [value] return dict | r.append(name, value) return r | def parse_qs(qs, keep_blank_values=0, strict_parsing=0): """Parse a query given as a string argument. Arguments: qs: URL-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in URL encoded queries should be treated as blank strings. A true value inicates that blanks should be ret... | 4b586b9580d56feba0bd5380153e55fef13be2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4b586b9580d56feba0bd5380153e55fef13be2cf/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
12926,
12,
12926,
16,
3455,
67,
12111,
67,
2372,
33,
20,
16,
5490,
67,
24979,
33,
20,
4672,
3536,
3201,
279,
843,
864,
487,
279,
533,
1237,
18,
225,
13599,
30,
225,
8719,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
12926,
12,
12926,
16,
3455,
67,
12111,
67,
2372,
33,
20,
16,
5490,
67,
24979,
33,
20,
4672,
3536,
3201,
279,
843,
864,
487,
279,
533,
1237,
18,
225,
13599,
30,
225,
8719,
3... |
if command_template is not None, then program_string == program name and argv is given by command_template with %s replaced by the full path to the program. Else, program_string is interpreted as a shell command with first name being the program name. | Return the program name and argv of the process that would be executed by run_program(program_string, command_template). | def run_program(program_string, command_template=None): """ if command_template is not None, then program_string == program name and argv is given by command_template with %s replaced by the full path to the program. Else, program_string is interpreted as a shell command with first name being the program name. """ env... | b96c9d8299fab0aa1027363c989c5c55f374ac5d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12851/b96c9d8299fab0aa1027363c989c5c55f374ac5d/wutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
12890,
12,
12890,
67,
1080,
16,
1296,
67,
3202,
33,
7036,
4672,
3536,
2000,
326,
5402,
508,
471,
5261,
434,
326,
1207,
716,
4102,
506,
7120,
635,
1086,
67,
12890,
12,
12890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
12890,
12,
12890,
67,
1080,
16,
1296,
67,
3202,
33,
7036,
4672,
3536,
2000,
326,
5402,
508,
471,
5261,
434,
326,
1207,
716,
4102,
506,
7120,
635,
1086,
67,
12890,
12,
12890,
... |
'module': mod.name, 'href': mod.branch.module}) | 'module': mod.name, 'href': mod.branch.module})) | def run(self, config, options, args): module_set = jhbuild.moduleset.load(config) module_list = module_set.get_full_module_list() for mod in module_list: if mod.type in ('meta', 'tarball'): continue | 0570f19b5c1b181ec68c308c7fc78d92703f711b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/0570f19b5c1b181ec68c308c7fc78d92703f711b/checkmodulesets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
642,
16,
702,
16,
833,
4672,
1605,
67,
542,
273,
525,
76,
3510,
18,
6400,
278,
18,
945,
12,
1425,
13,
1605,
67,
1098,
273,
1605,
67,
542,
18,
588,
67,
2854,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
642,
16,
702,
16,
833,
4672,
1605,
67,
542,
273,
525,
76,
3510,
18,
6400,
278,
18,
945,
12,
1425,
13,
1605,
67,
1098,
273,
1605,
67,
542,
18,
588,
67,
2854,
67,... |
os.unlink(TESTFN) | test_support.unlink(TESTFN) | def test_codingspec(self): try: for enc in ALL_CJKENCODINGS: print('# coding:', enc, file=io.open(TESTFN, 'w')) execfile(TESTFN) finally: os.unlink(TESTFN) | e359ad4c9d7893138c0c6b01c50c2fca1839a821 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e359ad4c9d7893138c0c6b01c50c2fca1839a821/test_multibytecodec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1559,
899,
705,
12,
2890,
4672,
775,
30,
364,
2446,
316,
8061,
67,
39,
19474,
14672,
55,
30,
1172,
2668,
7,
14848,
30,
2187,
2446,
16,
585,
33,
1594,
18,
3190,
12,
16961,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1559,
899,
705,
12,
2890,
4672,
775,
30,
364,
2446,
316,
8061,
67,
39,
19474,
14672,
55,
30,
1172,
2668,
7,
14848,
30,
2187,
2446,
16,
585,
33,
1594,
18,
3190,
12,
16961,
1... |
return True | return True | def createReport(cr, uid, report, ids, name=False): files = [] for id in ids: try: service = netsvc.LocalService(report) (result, format) = service.create(cr, uid, [id], {}, {}) if not name: report_file = '/tmp/reports'+ str(id) + '.pdf' else: report_file = name fp = open(report_file,'wb+') fp.write(result); fp.close(... | 5a558b6b1034593b8c71deeda96db7e8dd5329c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5a558b6b1034593b8c71deeda96db7e8dd5329c3/smtpclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4820,
12,
3353,
16,
4555,
16,
2605,
16,
3258,
16,
508,
33,
8381,
4672,
1390,
273,
5378,
364,
612,
316,
3258,
30,
775,
30,
1156,
273,
21954,
4227,
18,
25635,
12,
6006,
13,
261,
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,
752,
4820,
12,
3353,
16,
4555,
16,
2605,
16,
3258,
16,
508,
33,
8381,
4672,
1390,
273,
5378,
364,
612,
316,
3258,
30,
775,
30,
1156,
273,
21954,
4227,
18,
25635,
12,
6006,
13,
261,
2... |
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk) | self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) | def __init__(self, screenName=None, baseName=None, className='Tk', useTk=1): """Return a new Toplevel widget on screen SCREENNAME. A new Tcl interpreter will be created. BASENAME will be used for the identification of the profile file (see readprofile). It is constructed from sys.argv[0] without extensions if None is g... | 194397e70f7430d928cab4d48a7d0f93549e7048 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/194397e70f7430d928cab4d48a7d0f93549e7048/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5518,
461,
33,
7036,
16,
16162,
33,
7036,
16,
2658,
2218,
56,
79,
2187,
999,
56,
79,
33,
21,
4672,
3536,
990,
279,
394,
7202,
2815,
3604,
603,
5518,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5518,
461,
33,
7036,
16,
16162,
33,
7036,
16,
2658,
2218,
56,
79,
2187,
999,
56,
79,
33,
21,
4672,
3536,
990,
279,
394,
7202,
2815,
3604,
603,
5518,
34... |
for name in addons.get_modules(): mod_name = name if name[-4:]=='.zip': mod_name=name[:-4] | for mod_name in addons.get_modules(): | def update_list(self, cr, uid, context={}): robj = self.pool.get('ir.module.repository') res = [0, 0] # [update, add] | b1ea2dafc3fca01afc5438af083ef47873ab4456 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/b1ea2dafc3fca01afc5438af083ef47873ab4456/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... |
image = self(letter) | image = self.image(letter) | def fixed_point(self, letter): r""" Returns the fixed point of ``self`` beginning by the given ``letter``. | 91d4f00c9bd422ee38a0c55f76c789b46ffb73c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/91d4f00c9bd422ee38a0c55f76c789b46ffb73c1/morphism.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5499,
67,
1153,
12,
2890,
16,
9471,
4672,
436,
8395,
2860,
326,
5499,
1634,
434,
12176,
2890,
10335,
8435,
635,
326,
864,
12176,
13449,
68,
8338,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5499,
67,
1153,
12,
2890,
16,
9471,
4672,
436,
8395,
2860,
326,
5499,
1634,
434,
12176,
2890,
10335,
8435,
635,
326,
864,
12176,
13449,
68,
8338,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
testRealAllInput.timeout = 5 | def testRealAllInput(self): cgiFilename = os.path.abspath(self.mktemp()) cgiFile = file(cgiFilename, 'wt') cgiFile.write(READALLINPUT_CGI) cgiFile.close() | 497f67db80dbfffc7109051e230f6f09ac089187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/497f67db80dbfffc7109051e230f6f09ac089187/test_cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
6955,
1595,
1210,
12,
2890,
4672,
276,
10052,
5359,
273,
1140,
18,
803,
18,
5113,
803,
12,
2890,
18,
24816,
5814,
10756,
276,
10052,
812,
273,
585,
12,
19062,
5359,
16,
296,
6046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6955,
1595,
1210,
12,
2890,
4672,
276,
10052,
5359,
273,
1140,
18,
803,
18,
5113,
803,
12,
2890,
18,
24816,
5814,
10756,
276,
10052,
812,
273,
585,
12,
19062,
5359,
16,
296,
6046,
... | |
self.setText(fname) | def openFileChooserDialog(self): """ Prompts the user to choose a file from disk and inserts the full path into the lineEdit widget. """ _dir = getDefaultWorkingDirectory() if self.directory: if os.path.isdir(self.directory): _dir = self.directory | b3200c1af3d588daa7f79171b33d4bd69f3aeeef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b3200c1af3d588daa7f79171b33d4bd69f3aeeef/PM_FileChooser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31622,
17324,
6353,
12,
2890,
4672,
3536,
17552,
1092,
326,
729,
358,
9876,
279,
585,
628,
4234,
471,
15607,
326,
1983,
589,
1368,
326,
980,
4666,
3604,
18,
3536,
225,
389,
1214,
273,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31622,
17324,
6353,
12,
2890,
4672,
3536,
17552,
1092,
326,
729,
358,
9876,
279,
585,
628,
4234,
471,
15607,
326,
1983,
589,
1368,
326,
980,
4666,
3604,
18,
3536,
225,
389,
1214,
273,
48... | |
import sys | import sys, time | def purge(base_dirs, gigs, ignore, dry_run=False): """Delete directories under `base_dirs` until `gigs` GB are free Will not delete directories listed in the ignore list.""" gigs *= 1024 * 1024 * 1024 if freespace(base_dirs[0]) >= gigs: return dirs = [] for base_dir in base_dirs: if os.path.exists(base_dir): for d i... | 3b0b21e1ed368c4d9e46e35798e4becfbc7f3211 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6206/3b0b21e1ed368c4d9e46e35798e4becfbc7f3211/purge_builds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
1969,
67,
8291,
16,
314,
360,
87,
16,
2305,
16,
10299,
67,
2681,
33,
8381,
4672,
3536,
2613,
6402,
3613,
1375,
1969,
67,
8291,
68,
3180,
1375,
75,
360,
87,
68,
25069,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
1969,
67,
8291,
16,
314,
360,
87,
16,
2305,
16,
10299,
67,
2681,
33,
8381,
4672,
3536,
2613,
6402,
3613,
1375,
1969,
67,
8291,
68,
3180,
1375,
75,
360,
87,
68,
25069,
854,
... |
Return the derived series of this group as a list of | Return the lower central series of this group as a list of | def lower_central_series(self): """ Return the derived series of this group as a list of permutation groups. | 56e08d94620643e7e8ad3c83a3d29cf2e4dcc6d4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/56e08d94620643e7e8ad3c83a3d29cf2e4dcc6d4/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2612,
67,
71,
12839,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
2612,
18291,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2612,
67,
71,
12839,
67,
10222,
12,
2890,
4672,
3536,
2000,
326,
2612,
18291,
4166,
434,
333,
1041,
487,
279,
666,
434,
17440,
3252,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
eq(int(time.mktime(timetup[:9])), 1044470846) | t = int(time.mktime(timetup[:9])) eq(time.localtime(t)[:6], timetup[:6]) | def test_parsedate_acceptable_to_time_functions(self): eq = self.assertEqual timetup = Utils.parsedate('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup)), 1044470846) eq(int(time.strftime('%Y', timetup)), 2003) timetup = Utils.parsedate_tz('5 Feb 2003 13:47:26 -0800') eq(int(time.mktime(timetup[:9])), 1044470846... | 08562c411899c7a6afd61f96417afe027bfc1dbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/08562c411899c7a6afd61f96417afe027bfc1dbb/test_email.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2670,
712,
67,
9436,
429,
67,
869,
67,
957,
67,
10722,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
26668,
416,
273,
6091,
18,
2670,
712,
2668,
25,
5782,
70,
4044,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
712,
67,
9436,
429,
67,
869,
67,
957,
67,
10722,
12,
2890,
4672,
7555,
273,
365,
18,
11231,
5812,
26668,
416,
273,
6091,
18,
2670,
712,
2668,
25,
5782,
70,
4044,
23,
... |
data.append('Connection: close') | def to_str(self): state = self.state | 6c2d2d650798878146be18225f8e3ae8bf1ff2a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/6c2d2d650798878146be18225f8e3ae8bf1ff2a6/response.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
4672,
919,
273,
365,
18,
2019,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
701,
12,
2890,
4672,
919,
273,
365,
18,
2019,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
encodings = [self.options.input_encoding, 'utf-8'] | encodings = [self.settings.input_encoding, 'utf-8'] | def decode(self, data): """ Decode a string, `data`, heuristically. Raise UnicodeError if unsuccessful. | 3f9490a061df406cd80f543206a76f29cb5b8e57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/3f9490a061df406cd80f543206a76f29cb5b8e57/io.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2890,
16,
501,
4672,
3536,
6209,
279,
533,
16,
1375,
892,
9191,
25833,
1230,
18,
20539,
9633,
668,
309,
29411,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2890,
16,
501,
4672,
3536,
6209,
279,
533,
16,
1375,
892,
9191,
25833,
1230,
18,
20539,
9633,
668,
309,
29411,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sage: a2 = WeightRing(WeylCharacterRing(['A',2])) sage: a2(-1) -a2(0,0,0) | sage: a2 = WeightRing(WeylCharacterRing(['A',2])) sage: a2(-1) -a2(0,0,0) | def __call__(self, *args): """ Coerces the element into the ring. | af4f5f46d5016de6167398d67987ba1855db181e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/af4f5f46d5016de6167398d67987ba1855db181e/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
3536,
7695,
264,
764,
326,
930,
1368,
326,
9221,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
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,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
4672,
3536,
7695,
264,
764,
326,
930,
1368,
326,
9221,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
os.system('7za.exe x -y -o"%s" "%s" ' % (os.path.dirname(options.osmInput),options.osmInput)) | if os.path.dirname(options.osmInput)=="": os.system('7za.exe x -y "%s"' % (options.osmInput)) else: os.system('7za.exe x -y "%s" -o"%s" ' % (options.osmInput,os.path.dirname(options.osmInput))) | def createKmlV2(self,kmlFileName="output",heightFactor=10000,threshold=0.005): """ A 'lighter' kml version focused on users and polygons Args: kmlFileName: the name of the resulting kml (the osc filename per default) heightFactor: artifical altitude of the nodes (to see them better when far away) threshold: lat or long... | 8d466c020177ff485302ac9c3f4597e8ab68015b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1927/8d466c020177ff485302ac9c3f4597e8ab68015b/osmaware.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
47,
781,
58,
22,
12,
2890,
16,
79,
781,
4771,
1546,
2844,
3113,
4210,
6837,
33,
23899,
16,
8699,
33,
20,
18,
28564,
4672,
3536,
432,
296,
23624,
11,
417,
781,
1177,
22397,
603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
47,
781,
58,
22,
12,
2890,
16,
79,
781,
4771,
1546,
2844,
3113,
4210,
6837,
33,
23899,
16,
8699,
33,
20,
18,
28564,
4672,
3536,
432,
296,
23624,
11,
417,
781,
1177,
22397,
603,
... |
Start a transaction, performing an implicit commit if necessary. | Start a transaction, performing an implicit commit if necessary. | def startTransaction(self): """ __startTransaciton__ Start a transaction, performing an implicit commit if necessary. | f6d38da4b0910650112bd5df8a6e148fb35b760b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/f6d38da4b0910650112bd5df8a6e148fb35b760b/MergeSensorDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
3342,
12,
2890,
4672,
3536,
1001,
1937,
1429,
1077,
26949,
972,
225,
3603,
279,
2492,
16,
14928,
392,
10592,
3294,
309,
4573,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
3342,
12,
2890,
4672,
3536,
1001,
1937,
1429,
1077,
26949,
972,
225,
3603,
279,
2492,
16,
14928,
392,
10592,
3294,
309,
4573,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
raise AssertionError("Items are not equal:\n" \ "ACTUAL: %s\n" \ "DESIRED: %s\n" % (str(actual), str(desired))) | raise AssertionError(msg) | def assert_equal(actual,desired,err_msg='',verbose=True): """ Raise an assertion if two objects are not equal. Given two objects (lists, tuples, dictionaries or numpy arrays), check that all elements of these objects are equal. An exception is raised at the first conflicting values. Parameters ---------- actual : lis... | 37f318c8be5c0f0eb7e7d217690446fbbc0d50d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/37f318c8be5c0f0eb7e7d217690446fbbc0d50d2/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
9729,
12,
18672,
16,
30458,
16,
370,
67,
3576,
2218,
2187,
11369,
33,
5510,
4672,
3536,
20539,
392,
11240,
309,
2795,
2184,
854,
486,
3959,
18,
225,
16803,
2795,
2184,
261,
977... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1815,
67,
9729,
12,
18672,
16,
30458,
16,
370,
67,
3576,
2218,
2187,
11369,
33,
5510,
4672,
3536,
20539,
392,
11240,
309,
2795,
2184,
854,
486,
3959,
18,
225,
16803,
2795,
2184,
261,
977... |
sage: R.<x> = QQ['x'] | sage: R.<x> = QQ['x'] | def local_coordinates_at_infinity(self, prec = 20, name = 't'): """ For the genus g hyperelliptic curve y^2 = f(x), returns (x(t), y(t)) such that (y(t))^2 = f(x(t)), where t = x^g/y is the local parameter at infinity | b4e1545eaa37e1811f989723319008a1806539dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b4e1545eaa37e1811f989723319008a1806539dc/hyperelliptic_generic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
16941,
67,
270,
67,
267,
7850,
12,
2890,
16,
13382,
273,
4200,
16,
508,
273,
296,
88,
11,
4672,
3536,
2457,
326,
3157,
407,
314,
9512,
292,
549,
21507,
8882,
677,
66,
22,
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,
1191,
67,
16941,
67,
270,
67,
267,
7850,
12,
2890,
16,
13382,
273,
4200,
16,
508,
273,
296,
88,
11,
4672,
3536,
2457,
326,
3157,
407,
314,
9512,
292,
549,
21507,
8882,
677,
66,
22,
2... |
if entry.doc and entry.doc[1]: print ' | if entry.doc and entry.doc[1]: print ' | print '#\tdef ' + methName + '(self' + build.BuildCallList(fdesc, entry.names, "defaultNamedOptArg", "defaultNamedNotOptArg","defaultUnnamedArg") + '):' | b6b5af220bd02fa5a7af3c2ea99e2f377504ef16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/b6b5af220bd02fa5a7af3c2ea99e2f377504ef16/genpy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
2946,
64,
88,
536,
296,
397,
7917,
461,
397,
7747,
2890,
11,
397,
1361,
18,
3116,
1477,
682,
12,
74,
5569,
16,
1241,
18,
1973,
16,
315,
1886,
7604,
6179,
4117,
3113,
315,
1886,
7604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1172,
2946,
64,
88,
536,
296,
397,
7917,
461,
397,
7747,
2890,
11,
397,
1361,
18,
3116,
1477,
682,
12,
74,
5569,
16,
1241,
18,
1973,
16,
315,
1886,
7604,
6179,
4117,
3113,
315,
1886,
7604,
... |
dd = mydict(w_kwds=w({1:2, 3:4})) | dd = mydict(w_kwds=w({"1":2, "3":4})) | def deepwrap(lp): return [[w(a),w(b)] for a,b in lp] | 82b5d0f837decdacd0104fa4cf833b8605fd5f28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/82b5d0f837decdacd0104fa4cf833b8605fd5f28/test_dictobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4608,
4113,
12,
9953,
4672,
327,
12167,
91,
12,
69,
3631,
91,
12,
70,
25887,
364,
279,
16,
70,
316,
12423,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4608,
4113,
12,
9953,
4672,
327,
12167,
91,
12,
69,
3631,
91,
12,
70,
25887,
364,
279,
16,
70,
316,
12423,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
for x in env.Glob(os.path.join(subdir,"*.cc")) | for x in env.Glob(os.path.join(subdir,"*.cc", strings=True)) | def Glob(env, exclude=[], subdirs=[]): testSources = env.Glob("*.test.cc", strings=True) sources = [ x for x in env.Glob("*.cc", strings=True) if x not in testSources and x not in exclude ] for subdir in subdirs: testSources += glob.glob(os.path.join(subdir,"*.test.cc")) sources += [ x for x in env.Glob(os.path.join(su... | 5c65bcaf35b46ce632acb15aa52b7e9621274600 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2548/5c65bcaf35b46ce632acb15aa52b7e9621274600/senfutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18901,
12,
3074,
16,
4433,
22850,
6487,
720,
8291,
33,
8526,
4672,
1842,
8628,
273,
1550,
18,
13499,
2932,
11146,
3813,
18,
952,
3113,
2064,
33,
5510,
13,
5550,
273,
306,
619,
364,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18901,
12,
3074,
16,
4433,
22850,
6487,
720,
8291,
33,
8526,
4672,
1842,
8628,
273,
1550,
18,
13499,
2932,
11146,
3813,
18,
952,
3113,
2064,
33,
5510,
13,
5550,
273,
306,
619,
364,
619,
... |
<td id='key'>%s</td> | <td>%s</td> | def gen_html(self, stats_xml): """ generates html snippet from xml stats | 6d4654648141f3ce579847eefc4aedcfb2f3caab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/6d4654648141f3ce579847eefc4aedcfb2f3caab/web_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
2620,
12,
2890,
16,
3177,
67,
2902,
4672,
3536,
6026,
1729,
13016,
628,
2025,
3177,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
2620,
12,
2890,
16,
3177,
67,
2902,
4672,
3536,
6026,
1729,
13016,
628,
2025,
3177,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif kind == 'relpath': | elif kind in ('relpath', 'path'): | def globprefix(pat): '''return the non-glob prefix of a path, e.g. foo/* -> foo''' root = [] for p in pat.split('/'): if contains_glob(p): break root.append(p) return '/'.join(root) or '.' | c2df6059cdf27dd8dfe4927dd4b90ba364c74a78 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/c2df6059cdf27dd8dfe4927dd4b90ba364c74a78/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4715,
3239,
12,
16330,
4672,
9163,
2463,
326,
1661,
17,
10581,
1633,
434,
279,
589,
16,
425,
18,
75,
18,
8431,
20308,
317,
8431,
26418,
1365,
273,
5378,
364,
293,
316,
9670,
18,
4939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4715,
3239,
12,
16330,
4672,
9163,
2463,
326,
1661,
17,
10581,
1633,
434,
279,
589,
16,
425,
18,
75,
18,
8431,
20308,
317,
8431,
26418,
1365,
273,
5378,
364,
293,
316,
9670,
18,
4939,
... |
if self.flash_atimes.get(filepath) != None and atime: | if (self.flash_atimes.get(filepath) != None and self.flash_atimes.get(filepath) != atime): logging.info("Caffeine has detected that Flash video is playing, and will auto-activate") activate = True self.status_string = _("Activated for Flash.") | def _check_for_Flash(self): print "_check_for_Flash" try: tmp = "/tmp" activate = False ## look for filenames that begin with 'Flash' for file in os.listdir(tmp): if file.startswith("Flash"): filepath = os.path.join(tmp, file) ## Time of last access. atime = os.stat(filepath).st_atime ### see if user is buffering a fla... | 1a5b0c1133e950283a75e4340b52f4c837774818 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/1a5b0c1133e950283a75e4340b52f4c837774818/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
1172,
4192,
1893,
67,
1884,
67,
11353,
6,
775,
30,
1853,
273,
2206,
5645,
6,
10235,
273,
1083,
7541,
2324,
364,
9066,
716,
2376,
598,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
1172,
4192,
1893,
67,
1884,
67,
11353,
6,
775,
30,
1853,
273,
2206,
5645,
6,
10235,
273,
1083,
7541,
2324,
364,
9066,
716,
2376,
598,
29... |
log.msg('|||'.join(prefix, command, params)) | log.msg('|||'.join((prefix, command, params))) | def irc_unknown(self, prefix, command, params): log.msg('|||'.join(prefix, command, params)) | 2562020447cf349330ad28ca3b2083882cf9d2e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/2562020447cf349330ad28ca3b2083882cf9d2e9/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
1310,
67,
8172,
12,
2890,
16,
1633,
16,
1296,
16,
859,
4672,
613,
18,
3576,
2668,
20081,
96,
10332,
5701,
12,
3239,
16,
1296,
16,
859,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
277,
1310,
67,
8172,
12,
2890,
16,
1633,
16,
1296,
16,
859,
4672,
613,
18,
3576,
2668,
20081,
96,
10332,
5701,
12,
3239,
16,
1296,
16,
859,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
def formatToFile(self, changeSet, cfg, f): | def formatToFile(self, changeSet, f): | def formatToFile(self, changeSet, cfg, f): | ec0d8a64f7bf0aa19f7e063bbae4234d7b1cd259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ec0d8a64f7bf0aa19f7e063bbae4234d7b1cd259/trove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
15450,
12,
2890,
16,
26104,
16,
2776,
16,
284,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
15450,
12,
2890,
16,
26104,
16,
2776,
16,
284,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
object.__name__ != 'xml.etree'): | object.__name__ not in ('xml.etree', 'test.pydoc_mod')): | def getdocloc(self, object): """Return the location of module docs or None""" | a738e270d1a49778c42693b19f43460dfcf301ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/a738e270d1a49778c42693b19f43460dfcf301ef/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2434,
1829,
12,
2890,
16,
733,
4672,
3536,
990,
326,
2117,
434,
1605,
3270,
578,
599,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2434,
1829,
12,
2890,
16,
733,
4672,
3536,
990,
326,
2117,
434,
1605,
3270,
578,
599,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if verbose is True: | if verbose: | def readHorizonDistanceFromSummValueTable(fList, verbose=False): """ read in the SummValueTables from a list of files and return the horizon distance versus total mass @param fList: list of input files @param verbose: True of False (default is False) """ output = {} massOutput = {} count = 0 if len(fList) == 0:... | f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f/InspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
44,
20648,
7200,
1265,
3495,
81,
620,
1388,
12,
74,
682,
16,
3988,
33,
8381,
4672,
3536,
855,
316,
326,
9352,
81,
620,
6905,
628,
279,
666,
434,
1390,
471,
327,
326,
366,
20648,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
44,
20648,
7200,
1265,
3495,
81,
620,
1388,
12,
74,
682,
16,
3988,
33,
8381,
4672,
3536,
855,
316,
326,
9352,
81,
620,
6905,
628,
279,
666,
434,
1390,
471,
327,
326,
366,
20648,
... |
error = _(u'error_required', default=u'${name} is required, please correct.', mapping={'name': label}) error = translate(error, context=instance) | error = i18n.translate( 'plone', 'error_required', {'name': label}, instance, default = "%s is required, please correct." % label, ) | def validate_required(self, instance, value, errors): if not value: label = self.widget.Label(instance) name = self.getName() error = _(u'error_required', default=u'${name} is required, please correct.', mapping={'name': label}) error = translate(error, context=instance) errors[name] = error return error return None | 7ceff8c470eae33b4a063061230f3f8948cfaf8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12165/7ceff8c470eae33b4a063061230f3f8948cfaf8b/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
309,
486,
460,
30,
1433,
273,
365,
18,
6587,
18,
2224,
12,
1336,
13,
508,
273,
365,
18,
17994,
1435,
555,
273,
277,
2643,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
309,
486,
460,
30,
1433,
273,
365,
18,
6587,
18,
2224,
12,
1336,
13,
508,
273,
365,
18,
17994,
1435,
555,
273,
277,
2643,
... |
self.contraint_kwargs['use_alter'] = kwargs.pop('use_alter') | self.constraint_kwargs['use_alter'] = kwargs.pop('use_alter') | def __init__(self, entity, name, *args, **kwargs): self.colname = kwargs.pop('colname', []) if self.colname and not isinstance(self.colname, list): self.colname = [self.colname] | c5f6bc80ac5c36fccc4c062ad2a9db659231b3a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11921/c5f6bc80ac5c36fccc4c062ad2a9db659231b3a1/relationships.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1522,
16,
508,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
18,
1293,
529,
273,
1205,
18,
5120,
2668,
1293,
529,
2187,
5378,
13,
309,
365,
18,
1293,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1522,
16,
508,
16,
380,
1968,
16,
2826,
4333,
4672,
365,
18,
1293,
529,
273,
1205,
18,
5120,
2668,
1293,
529,
2187,
5378,
13,
309,
365,
18,
1293,
529,
... |
menu += ' <a class="plain_text" href="%s__edit__.html">Edit</a>'%self.filename() + vbar | menu += ' <a class="plain_text" href="%s?edit">Edit</a>'%self.filename() + vbar | def html(self, include_title=True, do_print=False, authorized=False): n = len(self.__cells) s = '' if include_title: S = self.system() if not (S is None): system = ' (%s mode)'%S else: system ='' if not authorized: lock_text = ' <span id="worksheet_lock" class="locked" onClick="unlock_worksheet()">[locked]</... | a1277e4a56c30edd8910190453f701a5401039b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/a1277e4a56c30edd8910190453f701a5401039b5/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
2890,
16,
2341,
67,
2649,
33,
5510,
16,
741,
67,
1188,
33,
8381,
16,
10799,
33,
8381,
4672,
290,
273,
562,
12,
2890,
16186,
14741,
13,
272,
273,
875,
309,
2341,
67,
2649,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
12,
2890,
16,
2341,
67,
2649,
33,
5510,
16,
741,
67,
1188,
33,
8381,
16,
10799,
33,
8381,
4672,
290,
273,
562,
12,
2890,
16186,
14741,
13,
272,
273,
875,
309,
2341,
67,
2649,
3... |
fp = file(patchname, 'rb') | try: fp = file(patchobj, 'rb') except TypeError: fp = patchobj | def internalpatch(patchname, ui, strip, cwd, files): """use builtin patch to apply <patchname> to the working directory. returns whether patch was applied with fuzz factor.""" fp = file(patchname, 'rb') if cwd: curdir = os.getcwd() os.chdir(cwd) try: ret = applydiff(ui, fp, files, strip=strip) finally: if cwd: os.chdir... | 5636d52ec05ad9b16844c9ce646859e0ecd81642 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/5636d52ec05ad9b16844c9ce646859e0ecd81642/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2713,
2272,
12,
2272,
529,
16,
5915,
16,
2569,
16,
7239,
16,
1390,
4672,
3536,
1202,
15273,
4729,
358,
2230,
411,
2272,
529,
34,
358,
326,
5960,
1867,
18,
1135,
2856,
4729,
1703,
6754,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2713,
2272,
12,
2272,
529,
16,
5915,
16,
2569,
16,
7239,
16,
1390,
4672,
3536,
1202,
15273,
4729,
358,
2230,
411,
2272,
529,
34,
358,
326,
5960,
1867,
18,
1135,
2856,
4729,
1703,
6754,
... |
hc.putheader('Content-Length', str(len(parent.body))) | hc.putheader('Content-Length', parent.body_length) | def __init__(self, parent, node): self.parent = parent self.node = node self.failed = False | bdf7d8c0256fd4c3c5b8a6025bd58331b8f43ef1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/bdf7d8c0256fd4c3c5b8a6025bd58331b8f43ef1/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
756,
4672,
365,
18,
2938,
273,
982,
365,
18,
2159,
273,
756,
365,
18,
7307,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
756,
4672,
365,
18,
2938,
273,
982,
365,
18,
2159,
273,
756,
365,
18,
7307,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return sage_eval(maxima.eval("bessel_i(%s,%s)"%(float(nu),float(z)))) def bessel_J(nu,z,alg="pari",prec=53): | raise ValueError, "unknown algorithm '%s'"%algorithm def bessel_J(nu,z,algorithm="pari",prec=53): | def bessel_I(nu,z,alg = "pari",prec=53): r""" Implements the "I-Bessel function", or "modified Bessel function, 1st kind", with index (or "order") nu and argument z. INPUT: nu -- a real (or complex, for pari) number z -- a real (positive) alg - "pari" or "maxima" or "scipy" prec - real precision (for Pari only) DEFI... | 28583b63e951675be5d37abb781bb0ef0026cb95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/28583b63e951675be5d37abb781bb0ef0026cb95/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
45,
12,
13053,
16,
94,
16,
18413,
273,
315,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
29704,
326,
315,
45,
17,
38,
403,
292,
445,
3113,
578,
315,
7342,
605,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
403,
292,
67,
45,
12,
13053,
16,
94,
16,
18413,
273,
315,
1065,
77,
3113,
4036,
33,
8643,
4672,
436,
8395,
29704,
326,
315,
45,
17,
38,
403,
292,
445,
3113,
578,
315,
7342,
605,... |
raise KeyError, name | raise KeyError(name) | def new(self, __name__=None, **kw): name = __name__ if name is None: name = self._newName() while name in self._contents: name = self._newName() elif name in self._contents: raise KeyError, name obj = self._factory(**kw) self._contents[name] = obj obj.__name__ = name obj.__parent__ = self return obj | 5aea085a061467a358be19048e0a8c53b2420b41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/5aea085a061467a358be19048e0a8c53b2420b41/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1001,
529,
972,
33,
7036,
16,
2826,
9987,
4672,
508,
273,
1001,
529,
972,
309,
508,
353,
599,
30,
508,
273,
365,
6315,
2704,
461,
1435,
1323,
508,
316,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
12,
2890,
16,
1001,
529,
972,
33,
7036,
16,
2826,
9987,
4672,
508,
273,
1001,
529,
972,
309,
508,
353,
599,
30,
508,
273,
365,
6315,
2704,
461,
1435,
1323,
508,
316,
365,
6315,
... |
self.sock.send(str) | if self.sock: self.sock.send(str) else: raise SMTPServerDisconnected | def send(self, str): """Send `str' to the server.""" if self.debuglevel > 0: print 'send:', `str` self.sock.send(str) | 735724c0fe173a9243fb0784590ae4f126a95e94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/735724c0fe173a9243fb0784590ae4f126a95e94/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
609,
4672,
3536,
3826,
1375,
701,
11,
358,
326,
1438,
12123,
309,
365,
18,
4148,
2815,
405,
374,
30,
1172,
296,
4661,
30,
2187,
1375,
701,
68,
365,
18,
15031,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
609,
4672,
3536,
3826,
1375,
701,
11,
358,
326,
1438,
12123,
309,
365,
18,
4148,
2815,
405,
374,
30,
1172,
296,
4661,
30,
2187,
1375,
701,
68,
365,
18,
15031,
18,
... |
percent = int(POST.has_key(u'percent')) | percent = int(POST[u'percent']) | def ajax_editshare(request): ret = [] if request.method == u'POST': POST = request.POST if POST.has_key(u'username') and POST.has_key(u'percent'): percent = int(POST.has_key(u'percent')) print "received percent " , str(percent) if random.randrange(2) == 1: ret = {"success" : False, "error" : "error in " + "blah" * 20} ... | d5beb689159776dc2ff7bdfaa10b03d65fde7d32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/d5beb689159776dc2ff7bdfaa10b03d65fde7d32/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
4619,
14419,
12,
2293,
4672,
325,
273,
5378,
309,
590,
18,
2039,
422,
582,
11,
3798,
4278,
5485,
273,
590,
18,
3798,
309,
5485,
18,
5332,
67,
856,
12,
89,
11,
5053,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
4619,
14419,
12,
2293,
4672,
325,
273,
5378,
309,
590,
18,
2039,
422,
582,
11,
3798,
4278,
5485,
273,
590,
18,
3798,
309,
5485,
18,
5332,
67,
856,
12,
89,
11,
5053,
6134,
... |
if authors: edition['authors'] = authors | if authors: assert len(authors) == 1 edition['author_' + field] = authors[0] | def find_authors (r, edition): authors = [] for tag, subtags in [ ('100', 'abc'), ('110', 'ab'), ('111', 'acdn') ]: for f in r.get_fields(tag): author = {} if tag == '100' and 'd' in f.contents: author = parse_date(f.contents['d'][0]) author['name'] = " ".join([j.strip(' /,;:') for i, j in f.subfield_sequence if i in s... | f5869a3168805cf9cd2bfb944d44b7e13f463da3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/f5869a3168805cf9cd2bfb944d44b7e13f463da3/parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
19368,
261,
86,
16,
28432,
4672,
14494,
273,
5378,
364,
1047,
16,
720,
4156,
316,
306,
7707,
6625,
2187,
296,
18947,
19899,
7707,
17506,
2187,
296,
378,
19899,
7707,
20227,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19368,
261,
86,
16,
28432,
4672,
14494,
273,
5378,
364,
1047,
16,
720,
4156,
316,
306,
7707,
6625,
2187,
296,
18947,
19899,
7707,
17506,
2187,
296,
378,
19899,
7707,
20227,
2187,... |
matching = forbidfiles = [] | listmatching = forbidfiles = [] | def find_nomasked_files(self, forbidpattern, basedir='.'): """ Finds files who do NOT have 'forbidpattern' in their file name starting from 'basedir' -> list """ | bf0a89a46775157cb8fb878e26dde2335a2436f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/bf0a89a46775157cb8fb878e26dde2335a2436f2/pyfind_revdep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12306,
835,
329,
67,
2354,
12,
2890,
16,
364,
19773,
4951,
16,
15573,
2218,
1093,
4672,
3536,
4163,
87,
1390,
10354,
741,
4269,
1240,
296,
1884,
19773,
4951,
11,
316,
3675,
585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
67,
12306,
835,
329,
67,
2354,
12,
2890,
16,
364,
19773,
4951,
16,
15573,
2218,
1093,
4672,
3536,
4163,
87,
1390,
10354,
741,
4269,
1240,
296,
1884,
19773,
4951,
11,
316,
3675,
585... |
if not self.alive: | if not self.alive.isSet(): | def __init__(self, *args, **kwds): self.serial = serial.Serial() self.serial.timeout = 0.5 #make sure that the alive flag can be checked from time to time self.settings = TerminalSetup() #placeholder for the settings self.thread = None # begin wxGlade: TerminalFrame.__init__ kwds["style"] = wxDEFAULT_FRAME_STYLE wxFr... | bc318d41448fea891c29a778413d7a54f68ccfc0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2937/bc318d41448fea891c29a778413d7a54f68ccfc0/wxTerminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
365,
18,
8818,
273,
2734,
18,
6342,
1435,
365,
18,
8818,
18,
4538,
273,
374,
18,
25,
282,
468,
6540,
3071,
716,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
365,
18,
8818,
273,
2734,
18,
6342,
1435,
365,
18,
8818,
18,
4538,
273,
374,
18,
25,
282,
468,
6540,
3071,
716,
326,
... |
cty.c_int, [cty.c_long], | cty.c_int, [cty.c_long], | def fl_end_command(p1): """ fl_end_command(p1) -> num. """ retval = _fl_end_command(p1) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
409,
67,
3076,
12,
84,
21,
4672,
3536,
1183,
67,
409,
67,
3076,
12,
84,
21,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
409,
67,
3076,
12,
84,
21,
13,
327,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
409,
67,
3076,
12,
84,
21,
4672,
3536,
1183,
67,
409,
67,
3076,
12,
84,
21,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
67,
409,
67,
3076,
12,
84,
21,
13,
327,
5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.