rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
chars = self.text.get("1.0", "end-1c") | chars = str(self.text.get("1.0", "end-1c")) | def writefile(self, filename): self.fixlastline() try: f = open(filename, "w") chars = self.text.get("1.0", "end-1c") f.write(chars) f.close() ## print "saved to", `filename` return 1 except IOError, msg: tkMessageBox.showerror("I/O Error", str(msg), master=self.text) return 0 | a2bc259dd71d53f643db13ac5077fafe9d5bacae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a2bc259dd71d53f643db13ac5077fafe9d5bacae/IOBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
768,
12,
2890,
16,
1544,
4672,
365,
18,
904,
2722,
1369,
1435,
775,
30,
284,
273,
1696,
12,
3459,
16,
315,
91,
7923,
5230,
273,
609,
12,
2890,
18,
955,
18,
588,
2932,
21,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
768,
12,
2890,
16,
1544,
4672,
365,
18,
904,
2722,
1369,
1435,
775,
30,
284,
273,
1696,
12,
3459,
16,
315,
91,
7923,
5230,
273,
609,
12,
2890,
18,
955,
18,
588,
2932,
21,
18,
... |
def _GatherBlockDevs(instance): | def _SymlinkBlockDev(instance_name, device_path, device_name): """Set up symlinks to a instance's block device. This is an auxiliary function run when an instance is start (on the primary node) or when an instance is migrated (on the target node). Args: instance_name: the name of the target instance device_path: path... | def _GatherBlockDevs(instance): """Set up an instance's block device(s). This is run on the primary node at instance startup. The block devices must be already assembled. @type instance: L{objects.Instance} @param instance: the instance whose disks we shoul assemble @rtype: list @return: list of (disk_object, device_... | 9332fd8a2a645d97eb8711206cd6944aa1dffb2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/9332fd8a2a645d97eb8711206cd6944aa1dffb2e/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
18475,
1768,
8870,
12,
1336,
67,
529,
16,
2346,
67,
803,
16,
2346,
67,
529,
4672,
3536,
694,
731,
23146,
358,
279,
791,
1807,
1203,
2346,
18,
225,
1220,
353,
392,
9397,
20606,
445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18475,
1768,
8870,
12,
1336,
67,
529,
16,
2346,
67,
803,
16,
2346,
67,
529,
4672,
3536,
694,
731,
23146,
358,
279,
791,
1807,
1203,
2346,
18,
225,
1220,
353,
392,
9397,
20606,
445... |
new_id = ir_model_data_obj._get_id(cursor, user, | new_id = ir_model_data_obj.get_id(cursor, user, | def process_liness(self, datas, prefix, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' | 25b6b8a4ceaac8134297505685c91b26cda0ad3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/25b6b8a4ceaac8134297505685c91b26cda0ad3d/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
2... |
aa = OWGUI.comboBox(ib, self, "addIdAs", label = "Place" + " ", orientation = 0, items = ["Class attribute", "Attribute", "Meta attribute"], callback=self.selectionChange) | aa = OWGUI.comboBox(ib, self, "addIdAs", label = "Place" + " ", orientation = 0, items = ["Class attribute", "Attribute", "Meta attribute"], callback=self.commitDataIf) | def __init__(self, parent=None, signalManager=None): #OWWidget.__init__(self, parent, 'Hierarchical Clustering') OWWidget.__init__(self, parent, signalManager, 'Hierarchical Clustering') self.parent=parent self.callbackDeposit=[] self.inputs=[("Distance matrix", orange.SymMatrix, self.dataset)] self.outputs=[("Selected... | e75d3f4822d22f5bb58797e9030f0f6891a29f5c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/e75d3f4822d22f5bb58797e9030f0f6891a29f5c/OWHierarchicalClustering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
468,
7306,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
296,
44,
14529,
29103,
6134,
18233,
4609,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
982,
33,
7036,
16,
4277,
1318,
33,
7036,
4672,
468,
7306,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
296,
44,
14529,
29103,
6134,
18233,
4609,
16186,
... |
log.log( "<directive>SYS(), docheck(), SyntaxError evaluating rule '%s'" % (self.args.rule), 4 ) | log.log( "<directive>SYS.docheck(): SyntaxError evaluating rule '%s'" % (self.args.rule), 4 ) | def docheck(self, Config): | 6dc32b1c3cc30e401b3a60443a793ffc21c712f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/6dc32b1c3cc30e401b3a60443a793ffc21c712f3/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1893,
12,
2890,
16,
1903,
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,
741,
1893,
12,
2890,
16,
1903,
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... |
except RuntimeError: continue | except RuntimeError, re: if "particle mass is zero" in str(re): continue else: raise | def set_radius(r): from pyrticle._internal import ShapeFunction cloud.reconstructor.set_shape_function( ShapeFunction(r, cloud.mesh_data.dimensions, exponent,)) | 24c934182915671313650b949234064045a8ec27 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12869/24c934182915671313650b949234064045a8ec27/cloud.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11282,
12,
86,
4672,
628,
2395,
3797,
3711,
6315,
7236,
1930,
12383,
2083,
5051,
18,
266,
12316,
18,
542,
67,
4867,
67,
915,
12,
12383,
2083,
12,
86,
16,
5051,
18,
15557,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11282,
12,
86,
4672,
628,
2395,
3797,
3711,
6315,
7236,
1930,
12383,
2083,
5051,
18,
266,
12316,
18,
542,
67,
4867,
67,
915,
12,
12383,
2083,
12,
86,
16,
5051,
18,
15557,
67,
... |
self.startReading() | def _connectDone(self): self.startReading() self.protocol = self.connector.buildProtocol(self.getPeer()) self.protocol.makeConnection(self) self.logstr = self.protocol.__class__.__name__+",client" | 8adc84f987a9ccc810aae73cd1a8806ef08ad85b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8adc84f987a9ccc810aae73cd1a8806ef08ad85b/tcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3612,
7387,
12,
2890,
4672,
365,
18,
8373,
273,
365,
18,
23159,
18,
3510,
5752,
12,
2890,
18,
588,
6813,
10756,
365,
18,
8373,
18,
6540,
1952,
12,
2890,
13,
365,
18,
10011,
313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3612,
7387,
12,
2890,
4672,
365,
18,
8373,
273,
365,
18,
23159,
18,
3510,
5752,
12,
2890,
18,
588,
6813,
10756,
365,
18,
8373,
18,
6540,
1952,
12,
2890,
13,
365,
18,
10011,
313,
... | |
self.type = tokens[1] | self.type = Variable(tokens[1]) | def __init__(self, tokens, nodelist): self.type = None self.tokens = [] self.mode = None if tokens and len(tokens)>1: self.type = tokens[1] if tokens[-2] == 'as': self.mode = tokens[-1] self.tokens = tokens[2:-2] else: self.tokens = tokens[2:] self.nodelist = nodelist | 1726780ec97114a47ce2817483559c57117d5259 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3687/1726780ec97114a47ce2817483559c57117d5259/charts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2430,
16,
30068,
4672,
365,
18,
723,
273,
599,
365,
18,
7860,
273,
5378,
365,
18,
3188,
273,
599,
309,
2430,
471,
562,
12,
7860,
13,
34,
21,
30,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2430,
16,
30068,
4672,
365,
18,
723,
273,
599,
365,
18,
7860,
273,
5378,
365,
18,
3188,
273,
599,
309,
2430,
471,
562,
12,
7860,
13,
34,
21,
30,
225,
... |
elif long_arg.match(text): option, arg = long_arg.groups() elif short_long_arg.match(text): option, arg = short_long_arg.groups() | elif match.search('(-[-\w]+) \[?(\w+)]?', text): option = match[1] arg = match[2] return (option, arg) | def getopt(self): """Get option name(s) and argument type from option header.""" text = self.header option = '' arg = '' # Typical option header styles long = re.compile('(-[-\w]+)') short_long = re.compile('(-\w), --[-\w]+') long_arg = re.compile('(-[-\w]+) \[?(\w+)]?') short_long_arg = re.compile('(-\w) (\w+), --[-\w... | 87af7849b0cf7c3c517637d593b8089cd3246ceb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/87af7849b0cf7c3c517637d593b8089cd3246ceb/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3838,
12,
2890,
4672,
3536,
967,
1456,
508,
12,
87,
13,
471,
1237,
618,
628,
1456,
1446,
12123,
977,
273,
365,
18,
3374,
1456,
273,
875,
1501,
273,
875,
468,
16973,
1706,
1456,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
3838,
12,
2890,
4672,
3536,
967,
1456,
508,
12,
87,
13,
471,
1237,
618,
628,
1456,
1446,
12123,
977,
273,
365,
18,
3374,
1456,
273,
875,
1501,
273,
875,
468,
16973,
1706,
1456,
14... |
def __init__(self): self.mibInstrumController = instrum.MibInstrumController( builder.MibBuilder() ) | def __init__(self, mibInstrumController=None): if mibInstrumController is None: self.mibInstrumController = instrum.MibInstrumController( builder.MibBuilder() ) else: self.mibInstrumController = mibInstrumController | def __init__(self): self.mibInstrumController = instrum.MibInstrumController( builder.MibBuilder() ) self.mibInstrumController.mibBuilder.loadModules( 'SNMPv2-MIB', 'SNMP-MPD-MIB', 'SNMP-COMMUNITY-MIB', 'SNMP-TARGET-MIB', 'SNMP-USER-BASED-SM-MIB' ) # Registered context engine IDs self.__appsRegistration = {} | a29473efb168f58cc7dabd4a33b99aca0c38a1e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/587/a29473efb168f58cc7dabd4a33b99aca0c38a1e8/rfc3412.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
312,
495,
382,
701,
379,
2933,
33,
7036,
4672,
309,
312,
495,
382,
701,
379,
2933,
353,
599,
30,
365,
18,
81,
495,
382,
701,
379,
2933,
273,
16170,
379... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
495,
382,
701,
379,
2933,
33,
7036,
4672,
309,
312,
495,
382,
701,
379,
2933,
353,
599,
30,
365,
18,
81,
495,
382,
701,
379,
2933,
273,
16170,
379... |
update_file(basefile.name, diff) | print "writing file, %s" % basefile.name if fulldata: newdata = fulldata else: newdata = '\n'.join(difflib.restore(diff.split('\n'), 1)) open(basefile.name, 'w').write(newdata) | def AcceptEntry(self, meta, _, entry_name, diff, fulldata): '''per-plugin bcfg2-admin pull support''' hsq = "Found host-specific file %s; Should it be updated (n/Y): " repo_vers = lxml.etree.Element('ConfigFile', name=entry_name) self.Entries['ConfigFile'][entry_name](repo_vers, meta) repo_curr = repo_vers.text # find ... | dac88b71a1ea84f844a90925de8e479f270f9982 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11867/dac88b71a1ea84f844a90925de8e479f270f9982/Cfg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8662,
1622,
12,
2890,
16,
2191,
16,
389,
16,
1241,
67,
529,
16,
3122,
16,
1983,
892,
4672,
9163,
457,
17,
4094,
6533,
2137,
22,
17,
3666,
6892,
2865,
26418,
366,
11410,
273,
315,
2043,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8662,
1622,
12,
2890,
16,
2191,
16,
389,
16,
1241,
67,
529,
16,
3122,
16,
1983,
892,
4672,
9163,
457,
17,
4094,
6533,
2137,
22,
17,
3666,
6892,
2865,
26418,
366,
11410,
273,
315,
2043,... |
console.info("Building %s version of demo variant %s for library %s version %s" %(demoVersion,demoVariant, self.libraryName, self.versionName) ) | console.info("Generating %s version of demo variant %s for library %s version %s" %(demoVersion,demoVariant, self.libraryName, self.versionName) ) | def buildDemo(self, demoVariant = "default", demoVersion = "build"): if not self.hasDemoDir: console.error("Library %s version %s has no demo folder!" %(self.library.dir, self.dir)) return console.info("Building %s version of demo variant %s for library %s version %s" %(demoVersion,demoVariant, self.libraryName, self.... | 07d17d89801ed3ff9a94b2c9ec545eeae202386f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/07d17d89801ed3ff9a94b2c9ec545eeae202386f/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
27126,
12,
2890,
16,
21477,
9356,
273,
315,
1886,
3113,
21477,
1444,
273,
315,
3510,
6,
4672,
309,
486,
365,
18,
5332,
27126,
1621,
30,
2983,
18,
1636,
2932,
9313,
738,
87,
1177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
27126,
12,
2890,
16,
21477,
9356,
273,
315,
1886,
3113,
21477,
1444,
273,
315,
3510,
6,
4672,
309,
486,
365,
18,
5332,
27126,
1621,
30,
2983,
18,
1636,
2932,
9313,
738,
87,
1177,
... |
self.gLogger.warn('Overwriting file %s for job %d' % (filename,int(jobID))) | gLogger.warn('Overwriting file %s for job %d' % (filename,int(jobID))) | def storeFile(self,jobID,filename,fileString,sandbox_type='Input'): """ Store input sandbox ASCII file for jobID with the name filename which is given with its string body """ | f4a103b640ec847f34897b41972c940d65408e8e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/f4a103b640ec847f34897b41972c940d65408e8e/SandboxDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
812,
12,
2890,
16,
4688,
734,
16,
3459,
16,
768,
780,
16,
27004,
67,
723,
2218,
1210,
11,
4672,
3536,
4994,
810,
15202,
11768,
585,
364,
28913,
598,
326,
508,
1544,
1492,
353,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1707,
812,
12,
2890,
16,
4688,
734,
16,
3459,
16,
768,
780,
16,
27004,
67,
723,
2218,
1210,
11,
4672,
3536,
4994,
810,
15202,
11768,
585,
364,
28913,
598,
326,
508,
1544,
1492,
353,
86... |
res, comment = Residence.parse(value, world= self.world, place= part.place, default_place=part.defaults.place) assert comment is None res = self.register(res) residences.add(res) | res = self.parse_ad(part, value, sub) if who: Resides_at(who, res, timestamp=(sub or part).updated) for insub in (s for v, s in part.mget('in', []) if s): for value, sub in insub.mget('ad', []): res = self.parse_ad(part, value, sub) if who: Resides_at(who, res, timestamp=(sub or part).updated) def parse_ad(self, part,... | def parse_residences(self, part, who=None): r'''Parse 'ad' and 'home' lines for a person, family or organisation, which define to one or more residences and contact details for that person/organisation. ''' residences = set() for value, sub in part.mget('ad', []): res, comment = Residence.parse(value, world= self.worl... | 6c32f5b78a49581b3eb4a922a27428bdc44045fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10902/6c32f5b78a49581b3eb4a922a27428bdc44045fa/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
15567,
2369,
12,
2890,
16,
1087,
16,
10354,
33,
7036,
4672,
436,
26418,
3201,
296,
361,
11,
471,
296,
8712,
11,
2362,
364,
279,
6175,
16,
6755,
578,
15501,
10742,
16,
1492,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
15567,
2369,
12,
2890,
16,
1087,
16,
10354,
33,
7036,
4672,
436,
26418,
3201,
296,
361,
11,
471,
296,
8712,
11,
2362,
364,
279,
6175,
16,
6755,
578,
15501,
10742,
16,
1492,
4... |
results.extend(site_ob.getCatalogedObjectsCheckView(meta_type=meta_list, path=path, **base_kw)) | def searchGeoPoints(self, path='', geo_types=None, query='', approved=True, landscape_type=[], administrative_level=[], REQUEST=None): """Returns all the GeoPoints that match the specified criteria. | d9cf3fcd5b650aba728da7d88d9dc5b3926f0577 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/d9cf3fcd5b650aba728da7d88d9dc5b3926f0577/GeoMapTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12447,
5636,
12,
2890,
16,
589,
2218,
2187,
7856,
67,
2352,
33,
7036,
16,
843,
2218,
2187,
20412,
33,
5510,
16,
19193,
12476,
67,
723,
22850,
6487,
30162,
1535,
67,
2815,
22850,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12447,
5636,
12,
2890,
16,
589,
2218,
2187,
7856,
67,
2352,
33,
7036,
16,
843,
2218,
2187,
20412,
33,
5510,
16,
19193,
12476,
67,
723,
22850,
6487,
30162,
1535,
67,
2815,
22850,
64... | |
Return a string containing the literal text of the header but with the keyword stripped. All leading, trailing and embedded whitespace is kept in the string, however. Return None if the header does not occur. | Return a string containing the literal text of the header but with the keyword stripped. All leading, trailing and embedded whitespace is kept in the string, however. Return None if the header does not occur. | def getrawheader(self, name): """A higher-level interface to getfirstmatchingheader(). | 8ede07cdfca2de9fd7d4ed84bc2b545f5d60f4da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8ede07cdfca2de9fd7d4ed84bc2b545f5d60f4da/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1899,
3374,
12,
2890,
16,
508,
4672,
3536,
37,
10478,
17,
2815,
1560,
358,
336,
3645,
16271,
3374,
7675,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1899,
3374,
12,
2890,
16,
508,
4672,
3536,
37,
10478,
17,
2815,
1560,
358,
336,
3645,
16271,
3374,
7675,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
return [gd[e] for e in self.varstrs(name,round,rc,e)] | return [gd[e] for e in self.varstrs(name, nr, rc, e)] | def vars(self, name, round, rc=None, e=None): """ Return a list ofvariables in self. | 62424369e932ac59629cb4d40b7e47ae2a712293 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62424369e932ac59629cb4d40b7e47ae2a712293/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4153,
12,
2890,
16,
508,
16,
3643,
16,
4519,
33,
7036,
16,
425,
33,
7036,
4672,
3536,
2000,
279,
666,
434,
7528,
316,
365,
18,
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,
4153,
12,
2890,
16,
508,
16,
3643,
16,
4519,
33,
7036,
16,
425,
33,
7036,
4672,
3536,
2000,
279,
666,
434,
7528,
316,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.get_data(client).remove() | try: self.get_data(client).remove() except KeyError: pass | def on_unmanage_client(self, screen, client): self.get_data(client).remove() | 68a14eb0a110048e867d6a45409a7c6fabe4ba6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10761/68a14eb0a110048e867d6a45409a7c6fabe4ba6a/decorator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
318,
12633,
67,
2625,
12,
2890,
16,
5518,
16,
1004,
4672,
365,
18,
588,
67,
892,
12,
2625,
2934,
4479,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
603,
67,
318,
12633,
67,
2625,
12,
2890,
16,
5518,
16,
1004,
4672,
365,
18,
588,
67,
892,
12,
2625,
2934,
4479,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
s1_im = npy.zeros(h2_im.shape, complex) | s1_im = npy.zeros(h1_im.shape, complex) | def initialize(self): p = self.input_parameters self.verbose = p['verbose'] if self.verbose: print "initializing calculator..." self.energies = p['energies'] pl1 = self.pl1 pl2 = self.pl2 if p['s1'] == None: p['s1'] = npy.identity(len(p['h1'])) if p['s2'] == None: p['s2'] = npy.identity(len(p['h2'])) if p['s'] == None:... | 3e4c25e9ca923b443495d1a291d33a676aebe985 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/3e4c25e9ca923b443495d1a291d33a676aebe985/calculators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
293,
273,
365,
18,
2630,
67,
3977,
365,
18,
11369,
273,
293,
3292,
11369,
3546,
309,
365,
18,
11369,
30,
1172,
315,
6769,
6894,
15497,
7070,
365,
18,
708,
20921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
12,
2890,
4672,
293,
273,
365,
18,
2630,
67,
3977,
365,
18,
11369,
273,
293,
3292,
11369,
3546,
309,
365,
18,
11369,
30,
1172,
315,
6769,
6894,
15497,
7070,
365,
18,
708,
20921,
... |
if not TestExpectationsFile.ToTestPlatformName(platform): | if not platform in test_expectations.TestExpectationsFile.PLATFORMS: | def main(): """Main function to produce new baselines.""" option_parser = optparse.OptionParser() option_parser.add_option('-v', '--verbose', action='store_true', default=False, help='include debug-level logging.') option_parser.add_option('-p', '--platforms', default='win,mac,linux', help=('Comma delimited list of p... | a234badcc6a0b842a911566a22a4b3e27cb63701 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/a234badcc6a0b842a911566a22a4b3e27cb63701/rebaseline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
358,
11402,
394,
2580,
14567,
12123,
225,
1456,
67,
4288,
273,
2153,
2670,
18,
1895,
2678,
1435,
1456,
67,
4288,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
358,
11402,
394,
2580,
14567,
12123,
225,
1456,
67,
4288,
273,
2153,
2670,
18,
1895,
2678,
1435,
1456,
67,
4288,
18,
1289,
67,
3482,
2668,
17,
90,
2187,
353... |
res = line[i] and eval(line[i]) | res = line[i] and bool(line[i]) | def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = '' data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in... | cf3c817bca7198545eaa14244f50ebaaaa117fe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/cf3c817bca7198545eaa14244f50ebaaaa117fe3/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
420... |
fp = file(fname, 'r') | fp = file(fname, 'rb') | def __init__(self, ui, fname): self.fname = fname self.ui = ui try: fp = file(fname, 'r') self.lines = fp.readlines() self.exists = True except IOError: dirname = os.path.dirname(fname) if dirname and not os.path.isdir(dirname): dirs = dirname.split(os.path.sep) d = "" for x in dirs: d = os.path.join(d, x) if not os.pa... | e7af8babfd61c408dec564c925298cef5367a3cf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/e7af8babfd61c408dec564c925298cef5367a3cf/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5915,
16,
5299,
4672,
365,
18,
12749,
273,
5299,
365,
18,
4881,
273,
5915,
775,
30,
4253,
273,
585,
12,
12749,
16,
296,
6731,
6134,
365,
18,
3548,
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,
16,
5915,
16,
5299,
4672,
365,
18,
12749,
273,
5299,
365,
18,
4881,
273,
5915,
775,
30,
4253,
273,
585,
12,
12749,
16,
296,
6731,
6134,
365,
18,
3548,
273,
... |
'domain': "[('id','in', ["+','.join(map(str, data['form']['leg_ids']))+"])]", | 'domain': "[('dossier_id','in', ["+','.join(map(str, data['form']['leg_ids']))+"])]", | def _open_leg(self, cr, uid, data, context): pool_obj = pooler.get_pool(cr.dbname) model_data_ids = pool_obj.get('ir.model.data').search(cr,uid,[('model','=','ir.ui.view'),('name','=','cci_missions_legalization_form')]) resource_id = pool_obj.get('ir.model.data').read(cr, uid, model_data_ids,fields=['res_id'])[0]['res_... | 0b4f50bb23bfc895bdc4c8fcc5858eb38c5b0105 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/0b4f50bb23bfc895bdc4c8fcc5858eb38c5b0105/create_legalization.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
1935,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
67,
2603,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
938,
67,
892,
67,
2232,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3190,
67,
1935,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
67,
2603,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
938,
67,
892,
67,
2232,
273,
... |
self.templatename = 'project/projects.html' | self.templatneame = 'project/projects.html' | def __init__(self, request): PootleIndex.__init__(self, request) self.templatename = 'project/projects.html' | bc0077b3123dd4b1b3846f0a83e40d10057bb430 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/bc0077b3123dd4b1b3846f0a83e40d10057bb430/indexpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
453,
1632,
298,
1016,
16186,
2738,
972,
12,
2890,
16,
590,
13,
365,
18,
27380,
270,
1069,
273,
296,
4406,
19,
13582,
18,
2620,
11,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
453,
1632,
298,
1016,
16186,
2738,
972,
12,
2890,
16,
590,
13,
365,
18,
27380,
270,
1069,
273,
296,
4406,
19,
13582,
18,
2620,
11,
2,
-100,
... |
license_file = metadata["License File"] license_path = os.path.join(path, license_file) if not os.path.exists(license_path): raise LicenseError("License file '" + license_file + "' doesn't exist. " "Either add a 'License File:' section to " "README.chromium or add the missing file.") | for filename in (metadata["License File"], "COPYING"): license_path = os.path.join(path, filename) if os.path.exists(license_path): metadata["License File"] = filename break license_path = None if not license_path: raise LicenseError("License file not found. " "Either add a file named LICENSE, " "import upstream's COP... | def ParseDir(path): """Examine a third_party/foo component and extract its metadata.""" # Try to find README.chromium. readme_path = os.path.join(path, 'README.chromium') if not os.path.exists(readme_path): raise LicenseError("missing README.chromium") # Parse metadata fields out of README.chromium. # We provide a de... | e64b3d8f98945fd2ea47b68fb677265ca2633cba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/e64b3d8f98945fd2ea47b68fb677265ca2633cba/licenses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
1621,
12,
803,
4672,
3536,
424,
301,
558,
279,
12126,
67,
21214,
19,
11351,
1794,
471,
2608,
2097,
1982,
12123,
225,
468,
6161,
358,
1104,
10746,
958,
18,
16298,
5077,
18,
24778,
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,
2884,
1621,
12,
803,
4672,
3536,
424,
301,
558,
279,
12126,
67,
21214,
19,
11351,
1794,
471,
2608,
2097,
1982,
12123,
225,
468,
6161,
358,
1104,
10746,
958,
18,
16298,
5077,
18,
24778,
6... |
if latest_reply and last_visited < latest_reply: | if latest_reply and last_visited and last_visited < latest_reply: | def review_detail(request, review_request_id, local_site_name=None, template_name="reviews/review_detail.html"): """ Main view for review requests. This covers the review request information and all the reviews on it. """ # If there's a local_site passed in the URL, we want to look up the review # request based on the ... | 6cad4b658dcdc4e3917f2a80c3cce53a7c22a845 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/6cad4b658dcdc4e3917f2a80c3cce53a7c22a845/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
8992,
12,
2293,
16,
10725,
67,
2293,
67,
350,
16,
1191,
67,
4256,
67,
529,
33,
7036,
16,
1542,
67,
529,
1546,
266,
7061,
19,
16041,
67,
8992,
18,
2620,
6,
4672,
3536,
1274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10725,
67,
8992,
12,
2293,
16,
10725,
67,
2293,
67,
350,
16,
1191,
67,
4256,
67,
529,
33,
7036,
16,
1542,
67,
529,
1546,
266,
7061,
19,
16041,
67,
8992,
18,
2620,
6,
4672,
3536,
1274... |
eJx1kE0LgkAQhu/zK+bggv6FQkhQSvJjMfMkDJS75cU95P+n3SwbUPc2s8/78jAHdX8aNFrDS43Y pFV9jTJKiiYkYhMRQK9xMCN2SveD6lBWZS5r9AHtc+FpEXrSO0LwwX8olVk8t23lhFjBhHBVjlr5 tJGZYkX+37yI8oQoQAZue0X1iVvZceFkd7bCIQ8zGrycU+l21nGpOOW/EdjNLCtnBxaibW/9sGeJ pIjhDfhHdDA= | eJx1kMsKgzAQRff5ilkY0F9oESoordRHUOtKmIUmrRtTav6fJooaWs1uJudeDnPh7UuCFIKMXEEd F9UjSDDKah/RmhAJ6QUMUkHHRT/wDliRp6wCl4B+JjwvfIc5V+JN+IJinoRr21GO7lDUFBlm58+n C2OVuJt1FqQRogcrdmwUVDfbR4+/NnpFJ+AplYTyHjOz0nb/clN6DpDTSm7F1lVp05Ttp3+r8bwm oiwkX126c9k= | def after_install(options, home_dir): subprocess.call([join(home_dir, 'bin', 'easy_install'), 'MyPackage']) subprocess.call([join(home_dir, 'bin', 'my-package-script'), 'setup', home_dir]) | c61f21825283f1f12136dcae2cba3dc462d9bc03 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12981/c61f21825283f1f12136dcae2cba3dc462d9bc03/virtualenv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
73,
15762,
67,
5425,
19899,
296,
12062,
2261,
19486,
6652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
73,
15762,
67,
5425,
19899,
296,
12062,
2261,
19486,
6652,
... |
EXAMPLES: | EXAMPLES:: | def __repr__(self): r""" Print a TestGlobalNewName. | 3bed29c45c1270055cd235e22fd02f632971b39e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/3bed29c45c1270055cd235e22fd02f632971b39e/explain_pickle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
436,
8395,
3038,
279,
7766,
5160,
1908,
461,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
436,
8395,
3038,
279,
7766,
5160,
1908,
461,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
p = reactor.listenUDP(0, server, interface='127.0.0.1') pr = server.packetReceived = defer.Deferred() | pr = self.server.packetReceived = defer.Deferred() | def testShutdownFromDatagramReceived(self): | 9599c601494a7dec157f36e72101974f6ec29a22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/9599c601494a7dec157f36e72101974f6ec29a22/test_udp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
10961,
1265,
5139,
17049,
8872,
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,
... | [
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,
1842,
10961,
1265,
5139,
17049,
8872,
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,
... |
print modules == modules_, lists == lists_, configurations == configurations_, files == files_ | def changeBertosVersion(self): dialog = QDialog() layout = QVBoxLayout() version_page = BVersionPage() version_page.reloadData() layout.addWidget(version_page) button_layout = QHBoxLayout() button_layout.addStretch() cancel_button = QPushButton(self.tr("Cancel")) button_layout.addWidget(cancel_button) ok_button = QPush... | e5342297fe73a412dfc0d22bac403f30b05e3bc0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9114/e5342297fe73a412dfc0d22bac403f30b05e3bc0/BEditingDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
38,
1051,
538,
1444,
12,
2890,
4672,
6176,
273,
2238,
6353,
1435,
3511,
273,
2238,
58,
3514,
3744,
1435,
1177,
67,
2433,
273,
605,
1444,
1964,
1435,
1177,
67,
2433,
18,
17517,
751,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
38,
1051,
538,
1444,
12,
2890,
4672,
6176,
273,
2238,
6353,
1435,
3511,
273,
2238,
58,
3514,
3744,
1435,
1177,
67,
2433,
273,
605,
1444,
1964,
1435,
1177,
67,
2433,
18,
17517,
751,... | |
st.wait() if vcs == 'hg': return [x.decode().rstrip() for x in st.stdout] else: output = (x.decode().rstrip().rsplit(None, 1)[-1] for x in st.stdout if x[0] in b'AM') | try: st.wait() if vcs == 'hg': return [x.decode().rstrip() for x in st.stdout] else: output = (x.decode().rstrip().rsplit(None, 1)[-1] for x in st.stdout if x[0] in b'AM') | def changed_files(): """Get the list of changed or added files from the VCS.""" if os.path.isdir('.hg'): vcs = 'hg' cmd = 'hg status --added --modified --no-status' elif os.path.isdir('.svn'): vcs = 'svn' cmd = 'svn status --quiet --non-interactive --ignore-externals' else: sys.exit('need a checkout to get modified fil... | c8baa1f0c44790e33f55f6db937eeeaef9e72c67 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/c8baa1f0c44790e33f55f6db937eeeaef9e72c67/patchcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3550,
67,
2354,
13332,
3536,
967,
326,
666,
434,
3550,
578,
3096,
1390,
628,
326,
776,
4596,
12123,
309,
1140,
18,
803,
18,
291,
1214,
2668,
18,
26981,
11,
4672,
20255,
273,
296,
26981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3550,
67,
2354,
13332,
3536,
967,
326,
666,
434,
3550,
578,
3096,
1390,
628,
326,
776,
4596,
12123,
309,
1140,
18,
803,
18,
291,
1214,
2668,
18,
26981,
11,
4672,
20255,
273,
296,
26981,
... |
raise talosError("crash during run") | raise talosError("crash during run (stack found)") | def checkForCrashes(browser_config, profile_dir): if platform.system() in ('Windows', 'Microsoft'): stackwalkpaths = ['win32', 'minidump_stackwalk.exe'] elif platform.system() == 'Linux': stackwalkpaths = ['linux', 'minidump_stackwalk'] elif platform.system() == 'Darwin': stackwalkpaths = ['osx', 'minidump_stackwalk'] ... | 17c2e657b9f87f960d0bb1147aee3675f416a8f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12156/17c2e657b9f87f960d0bb1147aee3675f416a8f2/ttest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13855,
12893,
7690,
12,
11213,
67,
1425,
16,
3042,
67,
1214,
4672,
309,
4072,
18,
4299,
1435,
316,
7707,
10399,
2187,
296,
22350,
11,
4672,
2110,
11348,
4481,
273,
10228,
8082,
1578,
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,
13855,
12893,
7690,
12,
11213,
67,
1425,
16,
3042,
67,
1214,
4672,
309,
4072,
18,
4299,
1435,
316,
7707,
10399,
2187,
296,
22350,
11,
4672,
2110,
11348,
4481,
273,
10228,
8082,
1578,
2187,... |
self.assertEquals("body", body.tagName) | self.assertEquals("BODY", body.tagName) | def testElement(self): html = self.doc.documentElement self.assertEquals("html", html.tagName) self.assertEquals("http://www.w3.org/1999/xhtml", html.getAttribute("xmlns")) self.assert_(html.getAttributeNode("xmlns")) nodes = html.getElementsByTagName("body") self.assertEquals(1, nodes.length) body = nodes.item(0) ... | 5a2e50bbaa1e0b40cc03700461535e110d77adbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/5a2e50bbaa1e0b40cc03700461535e110d77adbe/w3c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1046,
12,
2890,
4672,
1729,
273,
365,
18,
2434,
18,
5457,
1046,
225,
365,
18,
11231,
8867,
2932,
2620,
3113,
1729,
18,
2692,
461,
13,
365,
18,
11231,
8867,
2932,
2505,
2207,
5591,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1046,
12,
2890,
4672,
1729,
273,
365,
18,
2434,
18,
5457,
1046,
225,
365,
18,
11231,
8867,
2932,
2620,
3113,
1729,
18,
2692,
461,
13,
365,
18,
11231,
8867,
2932,
2505,
2207,
5591,
... |
lastRequests = nRequests | lastRequest = nRequests | def export_getFilesPageSummaryWeb(self, selectDict, sortList, startItem, maxItems): """ Get the summary of the request information for a given page in the request monitor in a generic format """ resultDict = {} last_update = None if selectDict.has_key('LastUpdate'): last_update = selectDict['LastUpdate'] del selectDict... | edfd1b68af8952be0d0c4065059c9525ef9cbeb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/edfd1b68af8952be0d0c4065059c9525ef9cbeb4/TransferDBMonitoringHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
588,
2697,
1964,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
326,
590,
1779,
364,
279,
864,
1363,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
2697,
1964,
4733,
4079,
12,
2890,
16,
2027,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
326,
590,
1779,
364,
279,
864,
1363,
316,... |
for generator in self.highest_weight_vectors(): yield generator for x in self._rec(generator): yield x def _rec(self, x): """ Returns an generator for the children of x. EXAMPLES: sage: C = CrystalOfLetters(['A', 5]) sage: list(C._rec(C(1))) [2, 3, 4, 5, 6] """ for i in self.index_set: y = x.f(i) if y is None: contin... | return CrystalBacktracker(self).iterator() | sage: def fb3spin(a,b,c):\ C = CrystalOfTableaux(['B',3],shape=[a+b+c,b+c,c]);\ D = CrystalOfSpins(['B',3]);\ return TensorProductOfCrystals(C,D,generators=[[C[0],D[0]]]) | 559bf3ffb75e3d5ca5a2ac4ab1ea13334bb5ea62 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/559bf3ffb75e3d5ca5a2ac4ab1ea13334bb5ea62/crystals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
12754,
23,
22876,
12,
69,
16,
70,
16,
71,
4672,
64,
385,
273,
14998,
31365,
951,
1388,
18196,
12,
3292,
38,
2187,
23,
6487,
4867,
22850,
69,
15,
70,
15,
71,
16,
70,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
12754,
23,
22876,
12,
69,
16,
70,
16,
71,
4672,
64,
385,
273,
14998,
31365,
951,
1388,
18196,
12,
3292,
38,
2187,
23,
6487,
4867,
22850,
69,
15,
70,
15,
71,
16,
70,
1... |
See also: :function:`Partition`, :meth:`Partition.to_exp` | See also: :func:`Partition`, :meth:`Partition.to_exp` | def from_polynomial_exp(self, p): r""" Conversion from polynomial in exponential notation | e590cc8877be643672b7cb85ed6de403c8b01e3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/e590cc8877be643672b7cb85ed6de403c8b01e3c/monomial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
67,
3915,
13602,
67,
2749,
12,
2890,
16,
293,
4672,
436,
8395,
16401,
628,
16991,
316,
21774,
12155,
2,
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,
628,
67,
3915,
13602,
67,
2749,
12,
2890,
16,
293,
4672,
436,
8395,
16401,
628,
16991,
316,
21774,
12155,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._send('%s %s' % (key.replace('/', ':'), value)) | if key == 'CFRQ/VALUE': value = value.strip('MmHhZz') + '000000' key = key.replcace('/', ':') self._send('%s %s' % (key, value)) | def set(self, keys, values): """'Advanced' set. | 63bdf5d43f818fe68edbdded331a1c86ff30bd23 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14654/63bdf5d43f818fe68edbdded331a1c86ff30bd23/synth_agent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
1311,
16,
924,
4672,
3536,
11,
23618,
11,
444,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
1311,
16,
924,
4672,
3536,
11,
23618,
11,
444,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
ret = "" | ret = [] | def __str__(self): ret = "" for agent in self.useragents: ret = ret + "User-agent: "+agent+"\n" for line in self.rulelines: ret = ret + str(line) + "\n" return ret | abd73684845787e8ddae978ee818a3f71c02d5df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/abd73684845787e8ddae978ee818a3f71c02d5df/robotparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
325,
273,
5378,
364,
4040,
316,
365,
18,
1355,
23560,
30,
325,
273,
325,
397,
315,
1299,
17,
5629,
30,
13773,
5629,
9078,
64,
82,
6,
364,
980,
316,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
4672,
325,
273,
5378,
364,
4040,
316,
365,
18,
1355,
23560,
30,
325,
273,
325,
397,
315,
1299,
17,
5629,
30,
13773,
5629,
9078,
64,
82,
6,
364,
980,
316,
36... |
realPath = root + path | realPath = util.joinPaths(root, path) | def _setupRemoves(self, repos, pathsMoved, troveCs, changeSet, baseTrove, fsTrove, root, flags): # Remove old files. if the files have already been removed, just # mention that fact and continue. Don't erase files which # have changed contents. fileList = [ ((pathId,) + baseTrove.getFile(pathId)[1:]) for pathId in trov... | 605a9025a42fc3710cd4ed33848e32d8cf1d1fb1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/605a9025a42fc3710cd4ed33848e32d8cf1d1fb1/update.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
6220,
12,
2890,
16,
13686,
16,
2953,
25317,
16,
23432,
537,
14272,
16,
26104,
16,
1026,
56,
303,
537,
16,
2662,
56,
303,
537,
16,
1365,
16,
2943,
4672,
468,
3581,
1592,
1390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8401,
6220,
12,
2890,
16,
13686,
16,
2953,
25317,
16,
23432,
537,
14272,
16,
26104,
16,
1026,
56,
303,
537,
16,
2662,
56,
303,
537,
16,
1365,
16,
2943,
4672,
468,
3581,
1592,
1390... |
sage: C.cliques_node_clique_number(cliques=E) | sage: C.cliques_vertex_clique_number(cliques=E) | def cliques_node_clique_number(self, nodes=None, with_labels=False, cliques=None): r""" Returns a list of sizes of the largest maximal cliques containing each node. (Returns a single value if only one input node). Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirect... | 7d819cbf1df622e9f76b4801233dbb334f44d362 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7d819cbf1df622e9f76b4801233dbb334f44d362/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
2159,
67,
4857,
1857,
67,
2696,
12,
2890,
16,
2199,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
4942,
29896,
33,
7036,
4672,
436,
8395,
2860,
279,
666,
434,
8453,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4942,
29896,
67,
2159,
67,
4857,
1857,
67,
2696,
12,
2890,
16,
2199,
33,
7036,
16,
598,
67,
5336,
33,
8381,
16,
4942,
29896,
33,
7036,
4672,
436,
8395,
2860,
279,
666,
434,
8453,
434,
... |
if len(changed) > 1: plural = 's were' else: plural = ' was' summary = 'This %s has been created through the web.'%cn m.append('\n%s\n'%summary) | m.append('\nThis %s has been created through ' 'the web.\n'%cn) | def newissue(self, message=None): ''' add an issue ''' cn = self.classname cl = self.db.classes[cn] | a8e9d396bbe6e91021f16264c09232ce1c6ab1b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/a8e9d396bbe6e91021f16264c09232ce1c6ab1b9/roundup_cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
13882,
12,
2890,
16,
883,
33,
7036,
4672,
9163,
527,
392,
5672,
9163,
6227,
273,
365,
18,
18340,
927,
273,
365,
18,
1966,
18,
4701,
63,
10305,
65,
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,
394,
13882,
12,
2890,
16,
883,
33,
7036,
4672,
9163,
527,
392,
5672,
9163,
6227,
273,
365,
18,
18340,
927,
273,
365,
18,
1966,
18,
4701,
63,
10305,
65,
2,
-100,
-100,
-100,
-100,
-100,... |
datapath = os.environ.get('CASAPATH').split()[0]+'/data/regression/g192redux/reference/' | datapath = os.environ.get('CASAPATH').split()[0]+'/data/regression/imsmooth/' | def setUp(self): if(os.path.exists(targetres_im)): os.system('rm -rf ' +targetres_im) datapath = os.environ.get('CASAPATH').split()[0]+'/data/regression/g192redux/reference/' os.system('cp -r ' +datapath + targetres_im +' ' + targetres_im) | 9d2dd0e141447d79cf02574035ea18ca042b561c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/9d2dd0e141447d79cf02574035ea18ca042b561c/test_imsmooth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
309,
12,
538,
18,
803,
18,
1808,
12,
3299,
455,
67,
381,
3719,
30,
1140,
18,
4299,
2668,
8864,
300,
5809,
296,
397,
3299,
455,
67,
381,
13,
225,
27807,
273,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
309,
12,
538,
18,
803,
18,
1808,
12,
3299,
455,
67,
381,
3719,
30,
1140,
18,
4299,
2668,
8864,
300,
5809,
296,
397,
3299,
455,
67,
381,
13,
225,
27807,
273,
11... |
module.include_dirs.append(sage_inc) | def add_base_flags(module): incdirs = filter(os.path.exists, [os.path.join(p, 'include') for p in basedir[sys.platform] ]) libdirs = filter(os.path.exists, [os.path.join(p, 'lib') for p in basedir[sys.platform] ]+ [os.path.join(p, 'lib64') for p in basedir[sys.platform] ] ) module.include_dirs.extend(incdirs) ... | f3295df895aea7d383dd5cd7e643ea00ab239263 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/f3295df895aea7d383dd5cd7e643ea00ab239263/setupext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1969,
67,
7133,
12,
2978,
4672,
7290,
8291,
273,
1034,
12,
538,
18,
803,
18,
1808,
16,
306,
538,
18,
803,
18,
5701,
12,
84,
16,
296,
6702,
6134,
364,
293,
316,
15573,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1969,
67,
7133,
12,
2978,
4672,
7290,
8291,
273,
1034,
12,
538,
18,
803,
18,
1808,
16,
306,
538,
18,
803,
18,
5701,
12,
84,
16,
296,
6702,
6134,
364,
293,
316,
15573,
63,
... | |
for account_id, sum in cr.fetchall(): res2[account_id] = round(sum,2) | ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: acc_set = ",".join(map(str, ids2)) cr.execute("""SELECT account_analytic_account.id, \ sum (product_template.list_price * \ account_analytic_line.unit_amount * \ ((100-hr_timesheet_invoice_factor.factor)/100)) \ AS ca_to_invoice \ FROM product_temp... | def _ca_to_invoice_calc(self, cr, uid, ids, name, arg, context={}): ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) # Amount uninvoiced hours to invoice at sale price acc_set = ",".join(map(str, ids2)) cr.execute("""SELECT account_analytic_account.id,sum (product_template.list_price * account_analytic_lin... | 0a4296a2b12138902a63e4ecbee7ba061c84ccb0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/0a4296a2b12138902a63e4ecbee7ba061c84ccb0/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5353,
67,
869,
67,
16119,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
3258,
22,
273,
365,
18,
3072,
12,
3353,
16,
4555,
16,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5353,
67,
869,
67,
16119,
67,
12448,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
3258,
22,
273,
365,
18,
3072,
12,
3353,
16,
4555,
16,
306,
... |
invs = list(inv) invs2 = list(inv) n = len(invs) for a in invs: if not is_prime_power(a): invs2.remove(a) facs = factor(a) pfacs = [facs[i][0]**facs[i][1] for i in range(len(facs))] invs2 = invs2 + pfacs invs2.sort() return invs2 | return diagonal_matrix(ZZ,inv).elementary_divisors() | def elementary_divisors(self): """ EXAMPLES: sage: G = AbelianGroup(2,[2,6]) sage: G Multiplicative Abelian Group isomorphic to C2 x C6 sage: G.invariants() [2, 6] sage: G.elementary_divisors() [2, 2, 3] sage: J = AbelianGroup([1,3,5,12]) sage: J.elementary_divisors() [3, 3, 4, 5] """ inv = self.invariants() invs = lis... | 197264f7962f163e14c6c867603c15c6fff6f36c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/197264f7962f163e14c6c867603c15c6fff6f36c/abelian_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
814,
67,
2892,
291,
1383,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
611,
273,
9771,
292,
2779,
1114,
12,
22,
16,
63,
22,
16,
26,
5717,
272,
410,
30,
611,
5991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
814,
67,
2892,
291,
1383,
12,
2890,
4672,
3536,
5675,
8900,
11386,
30,
272,
410,
30,
611,
273,
9771,
292,
2779,
1114,
12,
22,
16,
63,
22,
16,
26,
5717,
272,
410,
30,
611,
5991,
... |
plot = plotutils.SimplePlot(r"Likelihood", r"number",\ r"Histogramm of on/offsource") | plot = plotutils.SimplePlot(r"Likelihood", r"counts",\ r"Histogramm of on/offsource with %d bins"%\ (n_bin)) | def draw_error_boxes(plot, x, dx, y, dy, col): bx, by = create_area(x, dx, y, dy ) plot.ax.fill(bx, by, ec='w', fc = col, alpha = 0.2) bx, by = create_area(x, dx, y, 2*dy ) plot.ax.fill(bx, by, ec='w', fc = col, alpha = 0.2) bx, by = create_area(x, dx, y, 3*dy ) plot.ax.fill(bx, by, ec='k', fc = col, alpha = 0.2) | 1255f96f9ea797db92f07cd46bd63cfc62de9774 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/1255f96f9ea797db92f07cd46bd63cfc62de9774/PopStatement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
1636,
67,
15918,
12,
4032,
16,
619,
16,
6633,
16,
677,
16,
7732,
16,
645,
4672,
225,
24356,
16,
635,
273,
752,
67,
5036,
12,
92,
16,
6633,
16,
677,
16,
7732,
262,
3207,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
67,
1636,
67,
15918,
12,
4032,
16,
619,
16,
6633,
16,
677,
16,
7732,
16,
645,
4672,
225,
24356,
16,
635,
273,
752,
67,
5036,
12,
92,
16,
6633,
16,
677,
16,
7732,
262,
3207,
1... |
test('replace', 'one!two!three!', 'one@two@three@', '!', '@', 0) | test('replace', 'one!two!three!', 'one!two!three!', '!', '@', 0) | def __getitem__(self, i): return self.seq[i] | da45d55a6ecff00ca714cbcf66fb2133621ca836 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/da45d55a6ecff00ca714cbcf66fb2133621ca836/test_strop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
327,
365,
18,
5436,
63,
77,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
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,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
327,
365,
18,
5436,
63,
77,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.filt("""<frameset><frame src="aaa"><embed name="sp", style><applet hspace="file:\\">""", """<frameset><frame src="aaa"><embed name="sp", style><applet>""") | self.filt("""<frameset><frame src="aaa"><embed name="sp" style><applet hspace="file:\\\\">""", """<frameset><frame src="aaa"><embed name="sp" style><applet>""") | def testAppletHspace (self): self.filt("""<frameset><frame src="aaa"><embed name="sp", style><applet hspace="file:\\">""", """<frameset><frame src="aaa"><embed name="sp", style><applet>""") | c57f671115f51744639ece8a11d7eae0f46e0a45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/c57f671115f51744639ece8a11d7eae0f46e0a45/test_rewriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
23696,
44,
2981,
261,
2890,
4672,
365,
18,
30991,
2932,
3660,
32,
10278,
278,
4438,
3789,
1705,
1546,
26676,
14050,
8483,
508,
1546,
1752,
3113,
2154,
4438,
438,
1469,
366,
2981,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23696,
44,
2981,
261,
2890,
4672,
365,
18,
30991,
2932,
3660,
32,
10278,
278,
4438,
3789,
1705,
1546,
26676,
14050,
8483,
508,
1546,
1752,
3113,
2154,
4438,
438,
1469,
366,
2981,
154... |
c.ConnectNode(node) | self._ConnectNode(c, node) | def call_blockdev_shutdown(self, node, disk): """Request shutdown of a given block device. | 253482126e14ec90848550d2d2005740e45f62a8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/253482126e14ec90848550d2d2005740e45f62a8/rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
2629,
5206,
67,
15132,
12,
2890,
16,
756,
16,
4234,
4672,
3536,
691,
5731,
434,
279,
864,
1203,
2346,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
2629,
5206,
67,
15132,
12,
2890,
16,
756,
16,
4234,
4672,
3536,
691,
5731,
434,
279,
864,
1203,
2346,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.donebutton.set_label(GnomeConfig.MARK_DONE) self.donebutton.set_tooltip_text(GnomeConfig.MARK_DONE_TOOLTIP) | def on_taskdone_cursor_changed(self, selection=None): """Called when selection changes in closed task view. | 72a0cd5450cd082638989b98a3b928fda7cc6cf2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/72a0cd5450cd082638989b98a3b928fda7cc6cf2/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
4146,
8734,
67,
9216,
67,
6703,
12,
2890,
16,
4421,
33,
7036,
4672,
3536,
8185,
1347,
4421,
3478,
316,
4375,
1562,
1476,
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,
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,
603,
67,
4146,
8734,
67,
9216,
67,
6703,
12,
2890,
16,
4421,
33,
7036,
4672,
3536,
8185,
1347,
4421,
3478,
316,
4375,
1562,
1476,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
return None | hack_time = mx.DateTime.utc().strftime("%I%M %p GMT %a %b %d %Y") tokens = re.findall(time_re, hack_time.upper(), re.M) | def findIssueTime(self): dRE = "^[A-Z0-9]{6} [A-Z]{4} ([0-3][0-9])([0-2][0-9])([0-5][0-9])" tokens = re.findall(dRE , self.raw, re.M) iDay = int(tokens[0][0]) iHour = int(tokens[0][1]) iMinute = int(tokens[0][2]) | 82125c5c7579e17ccdd34a3e3a3b11735c048303 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11186/82125c5c7579e17ccdd34a3e3a3b11735c048303/TextProduct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
12956,
950,
12,
2890,
4672,
302,
862,
273,
15017,
63,
37,
17,
62,
20,
17,
29,
7073,
26,
97,
306,
37,
17,
62,
7073,
24,
97,
23265,
20,
17,
23,
6362,
20,
17,
29,
5717,
3816,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12956,
950,
12,
2890,
4672,
302,
862,
273,
15017,
63,
37,
17,
62,
20,
17,
29,
7073,
26,
97,
306,
37,
17,
62,
7073,
24,
97,
23265,
20,
17,
23,
6362,
20,
17,
29,
5717,
3816,
... |
if show_hydrogens: | if show_hydrogen: | def get_kin_lots(chain, bond_hash, i_seq_name_hash, pdbID=None, index=0, show_hydrogen=True): mc_atoms = ["N", "CA", "C", "O", "OXT", "P", "OP1", "OP2", "OP3", "O5'", "C5'", "C4'", "O4'", "C1'", "C3'", "O3'", "C2'", "O2'"] mc_veclist = "" sc_veclist = "" mc_h_veclist = "" sc_h_veclist = "" ca_trace = "" virtual_bb = ""... | d61407e2e52deb0a2c6f9f4e8c4ae9d86f58565d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/d61407e2e52deb0a2c6f9f4e8c4ae9d86f58565d/validation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15984,
67,
80,
6968,
12,
5639,
16,
8427,
67,
2816,
16,
277,
67,
5436,
67,
529,
67,
2816,
16,
10892,
734,
33,
7036,
16,
770,
33,
20,
16,
2405,
67,
18112,
24096,
33,
5510,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15984,
67,
80,
6968,
12,
5639,
16,
8427,
67,
2816,
16,
277,
67,
5436,
67,
529,
67,
2816,
16,
10892,
734,
33,
7036,
16,
770,
33,
20,
16,
2405,
67,
18112,
24096,
33,
5510,
4... |
print " setting options:" for (option, (source, value)) in options.items(): print " %s = %s (from %s)" % (option, value, source) if not hasattr(cmd_obj, option): raise DistutilsOptionError, \ ("%s: command '%s' has no such option '%s'") % \ (source, command, option) setattr(cmd_obj, option, value) | self._set_command_options(cmd_obj, options) | def get_command_obj (self, command, create=1): """Return the command object for 'command'. Normally this object is cached on a previous call to 'get_command_obj()'; if no comand object for 'command' is in the cache, then we either create and return it (if 'create' is true) or return None. """ cmd_obj = self.command_ob... | 8dc9ac7f6aab0a6a23efa1afc0c406f12dd20abd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8dc9ac7f6aab0a6a23efa1afc0c406f12dd20abd/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3076,
67,
2603,
261,
2890,
16,
1296,
16,
752,
33,
21,
4672,
3536,
990,
326,
1296,
733,
364,
296,
3076,
10332,
225,
24773,
1230,
333,
733,
353,
3472,
603,
279,
2416,
745,
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,
336,
67,
3076,
67,
2603,
261,
2890,
16,
1296,
16,
752,
33,
21,
4672,
3536,
990,
326,
1296,
733,
364,
296,
3076,
10332,
225,
24773,
1230,
333,
733,
353,
3472,
603,
279,
2416,
745,
358,
... |
elif o1_type == 'orphaned' or o1_type == 'ajaxorphaned': | elif o1_type == 'orphaned': manager.loadMyOrphanedImages() elif o1_type == 'ajaxorphaned': | def manage_my_data(request, o1_type=None, o1_id=None, o2_type=None, o2_id=None, o3_type=None, o3_id=None, action=None, **kwargs): request.session['nav']['menu'] = 'mydata' request.session['nav']['whos'] = 'mydata' try: url = kwargs["url"] except: logger.error(traceback.format_exc()) try: request.session['nav']['view'... | 2036449251668eb4c0368b26bf12a9f5f2f749b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/2036449251668eb4c0368b26bf12a9f5f2f749b0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
4811,
67,
892,
12,
2293,
16,
320,
21,
67,
723,
33,
7036,
16,
320,
21,
67,
350,
33,
7036,
16,
320,
22,
67,
723,
33,
7036,
16,
320,
22,
67,
350,
33,
7036,
16,
320,
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,
10680,
67,
4811,
67,
892,
12,
2293,
16,
320,
21,
67,
723,
33,
7036,
16,
320,
21,
67,
350,
33,
7036,
16,
320,
22,
67,
723,
33,
7036,
16,
320,
22,
67,
350,
33,
7036,
16,
320,
23,
... |
rowCount = er - sr | rowCount = er - sr + 1 | def _drawBkgrnd(self): nrows = self._nrows ncols = self._ncols for cmd, (sc, sr), (ec, er), arg in self._bkgrndcmds: if sc < 0: sc = sc + ncols if ec < 0: ec = ec + ncols if sr < 0: sr = sr + nrows if er < 0: er = er + nrows x0 = self._colpositions[sc] y0 = self._rowpositions[sr] x1 = self._colpositions[min(ec+1,ncols)... | 27e5291923a8a6f676a1948e2126f3b2337cb16a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/27e5291923a8a6f676a1948e2126f3b2337cb16a/tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
38,
79,
3197,
4880,
12,
2890,
4672,
18871,
273,
365,
6315,
82,
3870,
21330,
273,
365,
6315,
82,
6842,
364,
1797,
16,
261,
1017,
16,
9133,
3631,
261,
557,
16,
6445,
3631,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9446,
38,
79,
3197,
4880,
12,
2890,
4672,
18871,
273,
365,
6315,
82,
3870,
21330,
273,
365,
6315,
82,
6842,
364,
1797,
16,
261,
1017,
16,
9133,
3631,
261,
557,
16,
6445,
3631,
150... |
from supybot.questions import expect, something, yn | from supybot.questions import expect, something, yn, output | def configure(advanced): from supybot.questions import expect, something, yn def anything(prompt, default=None): """Because supybot is pure fail""" from supybot.questions import expect return expect(prompt, [], default=default) conf.registerPlugin('Bugtracker', True) | 8ed7cb21ba12c9da92961a4879df66f4d67b7067 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3104/8ed7cb21ba12c9da92961a4879df66f4d67b7067/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
27080,
4672,
628,
1169,
93,
4819,
18,
9758,
1930,
4489,
16,
5943,
16,
677,
82,
16,
876,
225,
1652,
6967,
12,
13325,
16,
805,
33,
7036,
4672,
3536,
38,
11884,
1169,
93,
4819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
12,
27080,
4672,
628,
1169,
93,
4819,
18,
9758,
1930,
4489,
16,
5943,
16,
677,
82,
16,
876,
225,
1652,
6967,
12,
13325,
16,
805,
33,
7036,
4672,
3536,
38,
11884,
1169,
93,
4819,
... |
STARTTIME=time.time() | def MakeDirectory(path): if os.path.isdir(path): return 0 os.mkdir(path) | a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
2853,
12,
803,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
374,
1140,
18,
26686,
12,
803,
13,
225,
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,
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,
4344,
2853,
12,
803,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
374,
1140,
18,
26686,
12,
803,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
self.variable.set(default) | self.set(default) | def __init__(self, master=None, label="Flag", default=False, help=''): """Create a Flag widget with the given label and default value. | ac756e9bfa740df0ff497bc9bb0b414d357eefc4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4675/ac756e9bfa740df0ff497bc9bb0b414d357eefc4/meta.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
1433,
1546,
4678,
3113,
805,
33,
8381,
16,
2809,
2218,
11,
4672,
3536,
1684,
279,
9960,
3604,
598,
326,
864,
1433,
471,
805,
460,
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,
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,
4171,
33,
7036,
16,
1433,
1546,
4678,
3113,
805,
33,
8381,
16,
2809,
2218,
11,
4672,
3536,
1684,
279,
9960,
3604,
598,
326,
864,
1433,
471,
805,
460,
18,... |
self.err.append( sys.exc_info()[1] ) | self.err.append( sys.exc_info() ) | def _initAudio( self, params ): try: # Reset audio stream self._resetAudio() # Initializing audio codec self.ac= acodec.Decoder( params ) except: self.err.append( sys.exc_info()[1] ) | 506e9172460401ded500869a56c03da6aec7db18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2107/506e9172460401ded500869a56c03da6aec7db18/player.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12719,
12,
365,
16,
859,
262,
30,
775,
30,
468,
7151,
7447,
1407,
365,
6315,
6208,
12719,
1435,
468,
10188,
6894,
7447,
9196,
365,
18,
1077,
33,
279,
21059,
18,
7975,
12,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
12719,
12,
365,
16,
859,
262,
30,
775,
30,
468,
7151,
7447,
1407,
365,
6315,
6208,
12719,
1435,
468,
10188,
6894,
7447,
9196,
365,
18,
1077,
33,
279,
21059,
18,
7975,
12,
85... |
self.s_center00.set_value(parent.center[0][0]) self.s_center01.set_value(parent.center[0][1]) self.s_center10.set_value(parent.center[1][0]) self.s_center11.set_value(parent.center[1][1]) self.s_zoom.set_value(parent.current_zoom_level) | self.s_center00.set_value(parent.drawing_area.center[0][0]) self.s_center01.set_value(parent.drawing_area.center[0][1]) self.s_center10.set_value(parent.drawing_area.center[1][0]) self.s_center11.set_value(parent.drawing_area.center[1][1]) self.s_zoom.set_value(parent.get_zoom()) | def btn_use_current(button, parent): self.s_center00.set_value(parent.center[0][0]) self.s_center01.set_value(parent.center[0][1]) self.s_center10.set_value(parent.center[1][0]) self.s_center11.set_value(parent.center[1][1]) self.s_zoom.set_value(parent.current_zoom_level) dsize = parent.window.get_size() self.s_width.... | e33d09e13561737c32cdeb8c41a51ecd75ba2e28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5373/e33d09e13561737c32cdeb8c41a51ecd75ba2e28/widMySettings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10638,
67,
1202,
67,
2972,
12,
5391,
16,
982,
4672,
365,
18,
87,
67,
5693,
713,
18,
542,
67,
1132,
12,
2938,
18,
9446,
310,
67,
5036,
18,
5693,
63,
20,
6362,
20,
5717,
365,
18,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10638,
67,
1202,
67,
2972,
12,
5391,
16,
982,
4672,
365,
18,
87,
67,
5693,
713,
18,
542,
67,
1132,
12,
2938,
18,
9446,
310,
67,
5036,
18,
5693,
63,
20,
6362,
20,
5717,
365,
18,
87,... |
elif (os.access(self.fichierXSLT, os.R_OK) == True): | elif (os.access(self.repertoireTravail + fichierXSLT, os.R_OK) == True): | def proceder(self): #on teste tout d'abord si le fichier existe demandé vraiement et est lisible if (os.access(self.fichierDemande + ".html", os.R_OK) == True): #Fichier existe... il faut le retourner directement self.resultat = self.retournerContenuFichierExistant(self.fichierDemande) self.typeMime = "text/html" self... | fe613382747cf5158f6a58add2edc7e276e149b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2604/fe613382747cf5158f6a58add2edc7e276e149b8/ttransformation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
311,
765,
12,
2890,
4672,
225,
468,
265,
1842,
73,
358,
322,
302,
11,
378,
517,
7533,
884,
284,
1354,
2453,
1005,
73,
23653,
132,
107,
331,
354,
77,
820,
3393,
4387,
328,
18932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
311,
765,
12,
2890,
4672,
225,
468,
265,
1842,
73,
358,
322,
302,
11,
378,
517,
7533,
884,
284,
1354,
2453,
1005,
73,
23653,
132,
107,
331,
354,
77,
820,
3393,
4387,
328,
18932,
... |
"Hyper-Star Graph: A New Interconnection Network Improving the Network Cost of the Hypercube." In Proceedings of the First EurAsian Conference on Information and Communication Technology, 858-865. Springer-Verlag, 2002. | "Hyper-Star Graph: A New Interconnection Network Improving the Network Cost of the Hypercube." In Proceedings of the First EurAsian Conference on Information and Communication Technology, 858-865. Springer-Verlag, 2002. | def HyperStarGraph(self,n,k): r''' Returns the hyper-star graph HS(n,k). | 964210a5192f4b56729c7c92c3aa648c59e61bea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/964210a5192f4b56729c7c92c3aa648c59e61bea/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18274,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
9512,
17,
10983,
2667,
670,
55,
12,
82,
16,
79,
2934,
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,
18274,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
9512,
17,
10983,
2667,
670,
55,
12,
82,
16,
79,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if numberGlideins = totalGlideins: | if numberGlideins = requestedGlideins: | def run(config): import glideKeeper gktid=glideKeeper.glideKeeperThread(config.webUrl,self.descriptName,config.descriptSignature, config.runId, config.gfactoryClassadID, [config.gfactoryNode],config.gFactoryConstraint, config.proxyFile) gktid.start() try: # most of the code goes here # first load the file, so we check... | d2c946461258f53f688b9fda43499bcf847ef650 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/224/d2c946461258f53f688b9fda43499bcf847ef650/glideTester.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
4672,
1930,
314,
8130,
17891,
314,
8629,
350,
33,
75,
8130,
17891,
18,
75,
8130,
17891,
3830,
12,
1425,
18,
4875,
1489,
16,
2890,
18,
72,
2086,
461,
16,
1425,
18,
72,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
1425,
4672,
1930,
314,
8130,
17891,
314,
8629,
350,
33,
75,
8130,
17891,
18,
75,
8130,
17891,
3830,
12,
1425,
18,
4875,
1489,
16,
2890,
18,
72,
2086,
461,
16,
1425,
18,
72,
... |
self.CallJavascriptFunc('requestPermission', [], windex, tab_index) | self.CallJavascriptFunc('requestPermission', [], tab_index, windex) | def _RequestPermission(self, tab_index=0, windex=0): """Requests permission to create notifications. | f5051be746f756b72cbc47a2e9bdbdac889af3a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/f5051be746f756b72cbc47a2e9bdbdac889af3a1/notifications.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
691,
5041,
12,
2890,
16,
3246,
67,
1615,
33,
20,
16,
341,
1615,
33,
20,
4672,
3536,
6421,
4132,
358,
752,
9208,
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,
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,
389,
691,
5041,
12,
2890,
16,
3246,
67,
1615,
33,
20,
16,
341,
1615,
33,
20,
4672,
3536,
6421,
4132,
358,
752,
9208,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __iter__(self): return 'a' | def keys(self): return 1 | def __iter__(self): return 'a' # XXX Not quite faithful to the SF bug... | f06d4c7b6be284b134751ffe8b50bf4abe445966 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/f06d4c7b6be284b134751ffe8b50bf4abe445966/test_builtin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1311,
12,
2890,
4672,
327,
404,
225,
468,
11329,
2288,
25102,
11087,
483,
2706,
358,
326,
21318,
7934,
2777,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1311,
12,
2890,
4672,
327,
404,
225,
468,
11329,
2288,
25102,
11087,
483,
2706,
358,
326,
21318,
7934,
2777,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print "!!! doebuild() aborting." | print "!!! aborting." print | def doebuild(myebuild,mydo,checkdeps=1,debug=0): global settings if not os.path.exists(myebuild): print "!!!",myebuild,"not found." return 1 if myebuild[-7:]!=".ebuild": print "!!!",myebuild,"does not appear to be an ebuild file." return 1 settings.reset() settings["PORTAGE_DEBUG"]=str(debug) settings["ROOT"]=root sett... | c5361df3e3b6632c5657dbc9f2528d68d38bacc1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/c5361df3e3b6632c5657dbc9f2528d68d38bacc1/portage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
73,
3510,
12,
4811,
73,
3510,
16,
4811,
2896,
16,
1893,
14877,
33,
21,
16,
4148,
33,
20,
4672,
2552,
1947,
309,
486,
1140,
18,
803,
18,
1808,
12,
4811,
73,
3510,
4672,
1172,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
73,
3510,
12,
4811,
73,
3510,
16,
4811,
2896,
16,
1893,
14877,
33,
21,
16,
4148,
33,
20,
4672,
2552,
1947,
309,
486,
1140,
18,
803,
18,
1808,
12,
4811,
73,
3510,
4672,
1172,
315... |
r""" Quarter-squares: floor(n/2)*ceiling(n/2). Equivalently, $\lfloor n^2/4 \rfloor$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A002620;a Quarter-squares: floor(n/2)*ceiling(n/2). Equivalently, floor(n^2/4). sage: a(0) 0 sage: a(1) 0 sage: a(2) 1 sage: a(10) 25 sag... | def __init__(self): r""" Quarter-squares: floor(n/2)*ceiling(n/2). Equivalently, $\lfloor n^2/4 \rfloor$. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A002620;a Quarter-squares: floor(n/2)*ceiling(n/2). Equivalently, floor(n^2/4). sage: a(0) 0 sage: a(1) 0 sage: a(2) ... | def _eval(self, n): return Integer(n*(n+1)) | 69a199217d612e1c590af73e16003812c85b93ec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/69a199217d612e1c590af73e16003812c85b93ec/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2144,
12,
82,
21556,
82,
15,
21,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2144,
12,
82,
21556,
82,
15,
21,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
try: h = http_class(host) if req.has_data(): data = req.get_data() h.putrequest('POST', req.get_selector()) if not 'Content-type' in req.headers: h.putheader('Content-type', 'application/x-www-form-urlencoded') if not 'Content-length' in req.headers: h.putheader('Content-length', '%d' % len(data)) else: h.putrequest('G... | h = http_class(host) if req.has_data(): data = req.get_data() h.putrequest('POST', req.get_selector()) if not 'Content-type' in req.headers: h.putheader('Content-type', 'application/x-www-form-urlencoded') if not 'Content-length' in req.headers: h.putheader('Content-length', '%d' % len(data)) else: h.putrequest('GET', ... | def do_open(self, http_class, req): host = req.get_host() if not host: raise URLError('no host given') | ac6817c3c65ca5ef8a6c7c75fe2b53cf5f35344a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ac6817c3c65ca5ef8a6c7c75fe2b53cf5f35344a/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3190,
12,
2890,
16,
1062,
67,
1106,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
309,
486,
1479,
30,
1002,
1976,
668,
2668,
2135,
1479,
864,
6134,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3190,
12,
2890,
16,
1062,
67,
1106,
16,
1111,
4672,
1479,
273,
1111,
18,
588,
67,
2564,
1435,
309,
486,
1479,
30,
1002,
1976,
668,
2668,
2135,
1479,
864,
6134,
2,
-100,
-100,
... |
if len(pre) > 0: pre += ", " if rel.pre[p] == 2: pre += "*" | if len(pre) > 2: pre += ", " if rel.pre[p] == 2: pre += "*" | def genRelations(self, rpms, operation): """ Generate relations from RpmList """ relations = _Relations() | 414faff391ffbd99e79a9ee467af8926e1100ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/414faff391ffbd99e79a9ee467af8926e1100ea8/orderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
10666,
12,
2890,
16,
8715,
959,
16,
1674,
4672,
3536,
6654,
7467,
628,
534,
7755,
682,
3536,
7467,
273,
389,
10666,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
10666,
12,
2890,
16,
8715,
959,
16,
1674,
4672,
3536,
6654,
7467,
628,
534,
7755,
682,
3536,
7467,
273,
389,
10666,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
resp.content_type = 'image/png' | eq_(resp.content_type, 'image/png') | def test_get_map_png(self): resp = self.app.get(self.common_map_req) resp.content_type = 'image/png' data = StringIO(resp.body) assert is_png(data) assert Image.open(data).mode == 'RGB' | 3be7b2c342952952c389ace60c678d42073b4715 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11249/3be7b2c342952952c389ace60c678d42073b4715/test_wms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
67,
1458,
67,
6446,
12,
2890,
4672,
1718,
273,
365,
18,
2910,
18,
588,
12,
2890,
18,
6054,
67,
1458,
67,
3658,
13,
7555,
67,
12,
12243,
18,
1745,
67,
723,
16,
296,
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,
1842,
67,
588,
67,
1458,
67,
6446,
12,
2890,
4672,
1718,
273,
365,
18,
2910,
18,
588,
12,
2890,
18,
6054,
67,
1458,
67,
3658,
13,
7555,
67,
12,
12243,
18,
1745,
67,
723,
16,
296,
2... |
for key in (("sgsymbol", "P1"), | for key in (("sgsymbol", ""), | def GetFormData(): form = cgi.FieldStorage() inp = Empty() for key in (("sgsymbol", "P1"), ("convention", "")): if (form.has_key(key[0])): inp.__dict__[key[0]] = string.strip(form[key[0]].value) else: inp.__dict__[key[0]] = key[1] inp.symxyz = [] if (form.has_key("symxyz")): lines = string.split(form["symxyz"].value, "... | e8b1c774adc17c29c38ad78300baec2300632fa5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/e8b1c774adc17c29c38ad78300baec2300632fa5/explore_symmetry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
30079,
13332,
646,
273,
276,
10052,
18,
974,
3245,
1435,
12789,
273,
8953,
1435,
364,
498,
316,
261,
2932,
87,
564,
3284,
3113,
1408,
3631,
7566,
591,
11111,
3113,
1408,
3719,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
30079,
13332,
646,
273,
276,
10052,
18,
974,
3245,
1435,
12789,
273,
8953,
1435,
364,
498,
316,
261,
2932,
87,
564,
3284,
3113,
1408,
3631,
7566,
591,
11111,
3113,
1408,
3719,
30,
3... |
""" SMTP 'verify' command. Checks for address validity. """ | """SMTP 'verify' command. Checks for address validity.""" | def expn(self, address): """ SMTP 'verify' command. Checks for address validity. """ self.putcmd("expn", quoteaddr(address)) return self.getreply() | dfd1c12c67bea1eda4e609be530e5ca4b71d8eb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dfd1c12c67bea1eda4e609be530e5ca4b71d8eb4/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1329,
82,
12,
2890,
16,
1758,
4672,
3536,
55,
14636,
296,
8705,
11,
1296,
18,
13074,
364,
1758,
13800,
12123,
365,
18,
458,
4172,
2932,
2749,
82,
3113,
4914,
684,
3069,
12,
2867,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1329,
82,
12,
2890,
16,
1758,
4672,
3536,
55,
14636,
296,
8705,
11,
1296,
18,
13074,
364,
1758,
13800,
12123,
365,
18,
458,
4172,
2932,
2749,
82,
3113,
4914,
684,
3069,
12,
2867,
3719,
... |
print function, type(function) | def setup(self, parent, locals, docstring = "", function = None): print function, type(function) if function is not None: name = function else: name = self.name self.window = wx.Dialog(parent, -1, name, style=wx.CAPTION|wx.RESIZE_BORDER) self.window.SetAutoLayout(1) if self.wizard: bigbox = wx.BoxSizer(wx.HORIZONTAL) f... | 4e906fc14c5fb513ad47c699fda8d9f13ebbf12f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9927/4e906fc14c5fb513ad47c699fda8d9f13ebbf12f/args_gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
16,
982,
16,
8985,
16,
14525,
273,
23453,
445,
273,
599,
4672,
309,
445,
353,
486,
599,
30,
508,
273,
445,
469,
30,
508,
273,
365,
18,
529,
365,
18,
5668,
273,
7075,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
16,
982,
16,
8985,
16,
14525,
273,
23453,
445,
273,
599,
4672,
309,
445,
353,
486,
599,
30,
508,
273,
445,
469,
30,
508,
273,
365,
18,
529,
365,
18,
5668,
273,
7075,
... | |
arguments2.append('typename detail::enable_if_container<%s, %s>::type* = 0' % (template_parameter, p.type(False))) parameters1.append('convert<%s>(%s)' % (p.type(), p.name())) | arguments2.append('typename detail::enable_if_container<%s, %s>::type* = 0' % (template_parameter, p.type(False)[:-5])) parameters1.append('convert<%s>(%s)' % (re.sub('&', '', p.type()), p.name())) | def constructor_definitions(self, namespace, add_constructor_overloads = False): add_string_overload_constructor = add_constructor_overloads, add_container_overload_constructor = add_constructor_overloads classname = self.classname() arguments = self.constructor.argument_text() superclass = self.superclass() aterm = se... | 763b0bae44ee8dae7cf499be63ec04def73aec89 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1522/763b0bae44ee8dae7cf499be63ec04def73aec89/mcrl2_classes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3885,
67,
13314,
12,
2890,
16,
1981,
16,
527,
67,
12316,
67,
1643,
17135,
273,
1083,
4672,
527,
67,
1080,
67,
1643,
945,
67,
12316,
273,
527,
67,
12316,
67,
1643,
17135,
16,
527,
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,
3885,
67,
13314,
12,
2890,
16,
1981,
16,
527,
67,
12316,
67,
1643,
17135,
273,
1083,
4672,
527,
67,
1080,
67,
1643,
945,
67,
12316,
273,
527,
67,
12316,
67,
1643,
17135,
16,
527,
67,
... |
if args and (len(args) == 1) and args[0] and (type(args[0]) == types.DictType): | if args and len(args) == 1 and ( type(args[0]) == types.DictType ) and args[0]: | def __init__(self, name, level, pathname, lineno, msg, args, exc_info, func=None): """ Initialize a logging record with interesting information. """ ct = time.time() self.name = name self.msg = msg # # The following statement allows passing of a dictionary as a sole # argument, so that you can do something like # logg... | e0df53941b43d1eb8742f4d201e2daefd4a97a0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/e0df53941b43d1eb8742f4d201e2daefd4a97a0a/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1801,
16,
9806,
16,
7586,
16,
1234,
16,
833,
16,
3533,
67,
1376,
16,
1326,
33,
7036,
4672,
3536,
9190,
279,
2907,
1409,
598,
26122,
1779,
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,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1801,
16,
9806,
16,
7586,
16,
1234,
16,
833,
16,
3533,
67,
1376,
16,
1326,
33,
7036,
4672,
3536,
9190,
279,
2907,
1409,
598,
26122,
1779,
18,
... |
d = ifp.read() ofp.write(d) | while 1: d = ifp.read(128000) if not d: break ofp.write(d) | def binhex(inp, out): """(infilename, outfilename) - Create binhex-encoded copy of a file""" finfo = getfileinfo(inp) ofp = BinHex(finfo, out) ifp = open(inp, 'rb') # XXXX Do textfile translation on non-mac systems d = ifp.read() ofp.write(d) ofp.close_data() ifp.close() ifp = openrsrc(inp, 'rb') d = ifp.read() ofp.w... | d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
7118,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
1788,
4158,
7118,
17,
10787,
1610,
434,
279,
585,
8395,
15190,
273,
336,
768,
1376,
12,
31647,
13,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
7118,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
1788,
4158,
7118,
17,
10787,
1610,
434,
279,
585,
8395,
15190,
273,
336,
768,
1376,
12,
31647,
13,
43... |
raise Exception ('Expected Response, got %s' % (type (response))) | raise Exception ('Expected Response, got %s' % (type (result))) | def app (environ, start_response): '''Route the request to an appropriate view function.''' routing_args = environ['wsgiorg.routing_args'][1] try: controller = routing_args.pop ('controller') except KeyError: raise HTTPNotFound () try: view = globals ()[controller] except KeyError: raise Exception ('Could not find con... | d731961c07163e6b32cdf4320ef8590361d1e8a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7252/d731961c07163e6b32cdf4320ef8590361d1e8a6/web.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
595,
261,
28684,
16,
787,
67,
2740,
4672,
9163,
3255,
326,
590,
358,
392,
5505,
1476,
445,
1093,
6309,
7502,
67,
1968,
273,
5473,
3292,
28539,
3341,
18,
16529,
67,
1968,
3546,
63,
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,
595,
261,
28684,
16,
787,
67,
2740,
4672,
9163,
3255,
326,
590,
358,
392,
5505,
1476,
445,
1093,
6309,
7502,
67,
1968,
273,
5473,
3292,
28539,
3341,
18,
16529,
67,
1968,
3546,
63,
21,
... |
[(5, 'a'), (1, 2), (-3, 7)] | [(1, 2), (-3, 7), (5, 1000)] | def __getitem__(self, n): """ EXAMPLES:: | de385fa597d4eb00a76b423dcfb5c8c6ebf59257 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/de385fa597d4eb00a76b423dcfb5c8c6ebf59257/formal_sum.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
290,
4672,
3536,
5675,
8900,
11386,
2866,
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,
1001,
31571,
972,
12,
2890,
16,
290,
4672,
3536,
5675,
8900,
11386,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"""please ignore the following warnings, we're testing class-level warning suppression""" | def testSuppressClass(self): """please ignore the following warnings, we're testing class-level warning suppression""" self.suite.run(self.loader.loadMethod( suppression.TestSuppression.testSuppressClass)) assertSubstring(suppression.METHOD_WARNING_MSG, self.getIO()) assertNotSubstring(suppression.CLASS_WARNING_MSG, se... | e9ca215c92f5792d6a1fe1c71650a26522d30412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e9ca215c92f5792d6a1fe1c71650a26522d30412/test_trial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
29282,
797,
12,
2890,
4672,
365,
18,
30676,
18,
2681,
12,
2890,
18,
6714,
18,
945,
1305,
12,
1169,
1337,
18,
4709,
3088,
1337,
18,
3813,
29282,
797,
3719,
1815,
1676,
1080,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
29282,
797,
12,
2890,
4672,
365,
18,
30676,
18,
2681,
12,
2890,
18,
6714,
18,
945,
1305,
12,
1169,
1337,
18,
4709,
3088,
1337,
18,
3813,
29282,
797,
3719,
1815,
1676,
1080,
12,
2... | |
return self.newblock.operations[index] | return self.bareblock.operations[index] | def __getitem__(self, index): return self.newblock.operations[index] | ee1bfba29ca35dde40d0a7726251ef109de4d4b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ee1bfba29ca35dde40d0a7726251ef109de4d4b4/test_rlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
770,
4672,
327,
365,
18,
2704,
2629,
18,
17542,
63,
1615,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
770,
4672,
327,
365,
18,
2704,
2629,
18,
17542,
63,
1615,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
dict = {} | 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... |
"""The weight lattice. EXAMPLES: WeylCharacterRing(['E',8]).lattice() Ambient lattice of the root system of type ['E', 8] | """ Returns the weight lattice associated to self. . EXAMPLES: sage: E8 = WeylCharacterRing(['E',8]) sage: e8 = WeightRing(E8) sage: e8.lattice() Ambient lattice of the root system of type ['E', 8] | def lattice(self): """The weight lattice. EXAMPLES: WeylCharacterRing(['E',8]).lattice() Ambient lattice of the root system of type ['E', 8] """ return self._lattice | 0a30ee9b10542e4dc66149f6ffe87504cb679b84 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0a30ee9b10542e4dc66149f6ffe87504cb679b84/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16690,
12,
2890,
4672,
3536,
2860,
326,
3119,
16690,
3627,
358,
365,
18,
263,
5675,
8900,
11386,
30,
272,
410,
30,
512,
28,
273,
678,
402,
80,
7069,
10369,
12,
3292,
41,
2187,
28,
5717... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16690,
12,
2890,
4672,
3536,
2860,
326,
3119,
16690,
3627,
358,
365,
18,
263,
5675,
8900,
11386,
30,
272,
410,
30,
512,
28,
273,
678,
402,
80,
7069,
10369,
12,
3292,
41,
2187,
28,
5717... |
return cloudMade.get_url(self.mt_counter, coord, cloudMade_styleID) | return cloudMade.get_url(self.mt_counter, coord, conf.cloudMade_styleID) | def get_url_from_coord(self, coord, layer, conf): self.mt_counter += 1 self.mt_counter = self.mt_counter % NR_MTS print try: if not conf.oneDirPerMap: if conf.map_service == MAP_SERVERS[VIRTUAL_EARTH] and (layer != LAYER_TERRAIN): return virtualEarth.get_url(self.mt_counter, coord, layer) elif conf.map_service == MAP_S... | 947562a0e71fa053cf9a9780369fb567a8a20ecd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5373/947562a0e71fa053cf9a9780369fb567a8a20ecd/mapServices.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
718,
67,
2080,
67,
5732,
12,
2890,
16,
2745,
16,
3018,
16,
2195,
4672,
365,
18,
1010,
67,
7476,
1011,
404,
365,
18,
1010,
67,
7476,
273,
365,
18,
1010,
67,
7476,
738,
423,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
718,
67,
2080,
67,
5732,
12,
2890,
16,
2745,
16,
3018,
16,
2195,
4672,
365,
18,
1010,
67,
7476,
1011,
404,
365,
18,
1010,
67,
7476,
273,
365,
18,
1010,
67,
7476,
738,
423,
... |
from Components.config import configfile from Tools.Directories import InitFallbackFiles, resolveFilename, SCOPE_PLUGINS | from Tools.Directories import InitFallbackFiles, resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE from Components.config import configfile, configElement, configText, ConfigSubsection, config, configSequence, configsequencearg | def setEPGLanguage(): print "language set to", language.getLanguage() eServiceEvent.setEPGLanguage(language.getLanguage()) | 03379b6e86edfcce851da2d11c3189d1b7843afb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/03379b6e86edfcce851da2d11c3189d1b7843afb/mytest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
10541,
43,
3779,
13332,
1172,
315,
4923,
444,
358,
3113,
2653,
18,
588,
3779,
1435,
425,
1179,
1133,
18,
542,
10541,
43,
3779,
12,
4923,
18,
588,
3779,
10756,
225,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
10541,
43,
3779,
13332,
1172,
315,
4923,
444,
358,
3113,
2653,
18,
588,
3779,
1435,
425,
1179,
1133,
18,
542,
10541,
43,
3779,
12,
4923,
18,
588,
3779,
10756,
225,
2,
-100,
-100,
... |
self.__speed=(forward and self.ship.acceleration) or \ (reverse and -self.ship.reverseAcceleration) avatarSlideSpeed=self.ship.acceleration * 0.5 * straightSailBonus | self.__speed = self.ship.acceleration avatarSlideSpeed = self.ship.acceleration * 0.5 * straightSailBonus | def handleAvatarControls(self, task): """ Check on the arrow keys and update the "avatar" (ship). """ if __debug__: if self.wantDebugIndicator: onScreenDebug.append("localAvatar pos = %s\n"%( base.localAvatar.getPos().pPrintValues(),)) onScreenDebug.append("localAvatar hpr = %s\n"%( base.localAvatar.getHpr().pPrintValu... | 391e901acef6c39a51bba3e7c5286791d18c7780 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/391e901acef6c39a51bba3e7c5286791d18c7780/ShipPilot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
315,
19660,
6,
261,
3261,
2934,
3536,
309,
1001,
4148,
972,
30,
309,
365,
18,
17369,
2829... |
results = [r for r in q] text = "// REMARK From database\n" | results = q.fetch(1000) | def get_structure(pdb_id): q = Structure.all() q.filter("id =", pdb_id) results = [r for r in q] text = "// REMARK From database\n" if len(results) == 0: return None elif len(results) == 1: text += results[0].text else: pairs = [(r.i_text_block, r) for r in results] pairs.sort() for i, s in pairs: text += s.text return... | 1b4ecec45436e95ef51f9fbd0955fe94568d1830 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9482/1b4ecec45436e95ef51f9fbd0955fe94568d1830/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7627,
12,
17414,
67,
350,
4672,
1043,
273,
13348,
18,
454,
1435,
1043,
18,
2188,
2932,
350,
273,
3113,
10892,
67,
350,
13,
1686,
273,
1043,
18,
5754,
12,
18088,
13,
309,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7627,
12,
17414,
67,
350,
4672,
1043,
273,
13348,
18,
454,
1435,
1043,
18,
2188,
2932,
350,
273,
3113,
10892,
67,
350,
13,
1686,
273,
1043,
18,
5754,
12,
18088,
13,
309,
562,
... |
obj._abc_registry = abcs.get(obj, {}).copy() | obj._abc_registry = abcs.get(obj, WeakSet()).copy() | def dash_R_cleanup(fs, ps, pic, abcs): import gc, copy_reg import _strptime, linecache, dircache import urlparse, urllib, urllib2, mimetypes, doctest import struct, filecmp, _abcoll from abc import _Abstract from distutils.dir_util import _path_created # Restore some original values. warnings.filters[:] = fs copy_reg.... | 7ab977540b2d952d6418b527be809d6320675511 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7ab977540b2d952d6418b527be809d6320675511/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12558,
67,
54,
67,
16732,
12,
2556,
16,
4250,
16,
19189,
16,
1223,
2143,
4672,
1930,
8859,
16,
1610,
67,
1574,
1930,
389,
701,
10650,
16,
4739,
557,
807,
16,
1577,
2493,
1930,
15185,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12558,
67,
54,
67,
16732,
12,
2556,
16,
4250,
16,
19189,
16,
1223,
2143,
4672,
1930,
8859,
16,
1610,
67,
1574,
1930,
389,
701,
10650,
16,
4739,
557,
807,
16,
1577,
2493,
1930,
15185,
1... |
"type":self.type, "description":self.details, "milestone":self.milestore, "component":self.component, "version":self.version, "keywords":self.keywords, "owner":self.assigned_to, | "field_type":self.type, "field_description":self.details, "field_milestone":self.milestore, "field_component":self.component, "field_version":self.version, "field_keywords":self.keywords, | def report(self): f = urllib2.urlopen(trac_new_ticket) | 1d5058b3c32fd1c0b63b38ad086556fee4e3cb4a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11468/1d5058b3c32fd1c0b63b38ad086556fee4e3cb4a/BugRegister.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2890,
4672,
284,
273,
11527,
22,
18,
295,
18589,
12,
313,
1077,
67,
2704,
67,
16282,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2605,
12,
2890,
4672,
284,
273,
11527,
22,
18,
295,
18589,
12,
313,
1077,
67,
2704,
67,
16282,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
points in the fine grid are the values | points in the fine grid are the values and (2) (for debugging purposes) returns a list of points in the fine grid that didn't make it NB: *** should work alright if the resolution isn't too coarse (because it uses the infinitesimal form of the metric); 5 is at the upper end of ok *** there is a fudge factor (epsilon) i... | def map_grids(coarsegrid,finegrid,coarseres=4.0): """ takes the two grids (lists of lat/lon tuples) and returns a dictionary where the points in the coarse grid are the keys and lists of tuples of points in the fine grid are the values """ fgtemp = finegrid[:] coarsedict = {} ds = coarseres*pi/180.0 for cpt in coarsegr... | f92b8a09994e6eca850ba21adf1061202a15b274 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/f92b8a09994e6eca850ba21adf1061202a15b274/skylocutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
5222,
87,
12,
2894,
24378,
5222,
16,
74,
558,
5222,
16,
2894,
297,
550,
281,
33,
24,
18,
20,
4672,
3536,
5530,
326,
2795,
3068,
87,
261,
9772,
434,
2516,
19,
9379,
10384,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
5222,
87,
12,
2894,
24378,
5222,
16,
74,
558,
5222,
16,
2894,
297,
550,
281,
33,
24,
18,
20,
4672,
3536,
5530,
326,
2795,
3068,
87,
261,
9772,
434,
2516,
19,
9379,
10384,
13... |
pp.journal_id, date_trunc('day',pp.create_date), ps.user_id, ps.invoice_id | pp.journal_id, date_create, ps.user_id, ps.invoice_id | def init(self, cr): tools.drop_view_if_exists(cr, 'report_transaction_pos') cr.execute(""" create or replace view report_transaction_pos as ( select min(pp.id) as id, count(pp.id) as no_trans, sum(amount) as amount, pp.journal_id, date_trunc('day',pp.create_date)::text as date_create, ps.user_id, ps.invoice_id from pos... | 6f5f7dd1c1a87112a4006fc3b5919071ed409066 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6f5f7dd1c1a87112a4006fc3b5919071ed409066/pos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
6006,
67,
7958,
67,
917,
6134,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
2605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
4422,
4672,
8513,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
6006,
67,
7958,
67,
917,
6134,
4422,
18,
8837,
2932,
3660,
752,
578,
1453,
1476,
2605,
... |
EFFECT_NAME = [ "Appregio", "Porta up", "Porta down", "Tone porta", "Vibrato", "Tone porta+Volume slide", "Vibrato+Volume slide", "Tremolo", "Set panning", "Sample offset", "Volume slide", "Position jump", "Set volume", "Pattern break", None, "Set tempo/BPM", "Set global volume", "Global volume slide", "Unused", "Unuse... | EFFECT_NAME = ( "Appregio", "Porta up", "Porta down", "Tone porta", "Vibrato", "Tone porta+Volume slide", "Vibrato+Volume slide", "Tremolo", "Set panning", "Sample offset", "Volume slide", "Position jump", "Set volume", "Pattern break", None, "Set tempo/BPM", "Set global volume", "Global volume slide", "Unused", "Unuse... | def createValue(self): return self._parent.stream.readBits(self.absolute_address, 1, BIG_ENDIAN) | c99931bfecc0c1d1ea8ca2bff60774c9102dc066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c99931bfecc0c1d1ea8ca2bff60774c9102dc066/xm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
620,
12,
2890,
4672,
327,
365,
6315,
2938,
18,
3256,
18,
896,
6495,
12,
2890,
18,
12547,
67,
2867,
16,
404,
16,
18855,
67,
30597,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
620,
12,
2890,
4672,
327,
365,
6315,
2938,
18,
3256,
18,
896,
6495,
12,
2890,
18,
12547,
67,
2867,
16,
404,
16,
18855,
67,
30597,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
res = xcap_client.put('pres-rules', prules.toxml(pretty_print=True), etag=prules_etag) | res = xcap_client.put('pres-rules', prules.toxml(pretty_print=True), etag=prules_etag, headers={'Content-Type': 'application/auth-policy+xml'}) | def block_watcher(watcher): global prules, prules_etag, block_rule, block_rule_identities for i in xrange(3): if prules is None: get_prules() if prules is not None: if block_rule is None: block_rule_identities = Identity() block_rule = Rule('pres_blacklist', conditions=Conditions([block_rule_identities]), actions=Actio... | ceb111f682d1a9b03ff397fe244ca517760afbb2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/ceb111f682d1a9b03ff397fe244ca517760afbb2/xcap_pres_rules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
23894,
12,
23894,
4672,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1203,
67,
5345,
16,
1203,
67,
5345,
67,
6392,
1961,
364,
277,
316,
12314,
12,
23,
4672,
309,
846,
1513,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1203,
67,
23894,
12,
23894,
4672,
2552,
846,
1513,
16,
846,
1513,
67,
20788,
16,
1203,
67,
5345,
16,
1203,
67,
5345,
67,
6392,
1961,
364,
277,
316,
12314,
12,
23,
4672,
309,
846,
1513,... |
cmd.append('--pixel-tests') | logging.warn("This port does not yet support pixel tests.") self._port._options.no_pixel_tests = True | def __init__(self, port, image_path, driver_options): self._port = port self._driver_options = driver_options self._target = port._options.target self._image_path = image_path self._stdout_fd = None self._cmd = None self._env = None self._proc = None self._read_buffer = '' | 860b31dd01ddb427bd215edf2a6eecd7a09ee8e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/860b31dd01ddb427bd215edf2a6eecd7a09ee8e3/mac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1756,
16,
1316,
67,
803,
16,
3419,
67,
2116,
4672,
365,
6315,
655,
273,
1756,
365,
6315,
7407,
67,
2116,
273,
3419,
67,
2116,
365,
6315,
3299,
273,
1756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1756,
16,
1316,
67,
803,
16,
3419,
67,
2116,
4672,
365,
6315,
655,
273,
1756,
365,
6315,
7407,
67,
2116,
273,
3419,
67,
2116,
365,
6315,
3299,
273,
1756,... |
if time.mktime(date_tuple) > time.mktime(time.gmtime()): | if time.mktime(date_tuple) > time.time(): | def fix_date(date_tuple): if not date_tuple: return date_tuple if time.mktime(date_tuple) > time.mktime(time.gmtime()): # feedparser's parsed date tuple has no DST indication, we need to force it # because there is no UTC equivalent of mktime() date_tuple = date_tuple[:-1] + (-1,) date_tuple = time.localtime(time.mktim... | 689407481ae6b6fd7ee845a5dc8c8546527adf60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/689407481ae6b6fd7ee845a5dc8c8546527adf60/normalize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
712,
12,
712,
67,
8052,
4672,
309,
486,
1509,
67,
8052,
30,
327,
1509,
67,
8052,
309,
813,
18,
24816,
957,
12,
712,
67,
8052,
13,
405,
813,
18,
957,
13332,
468,
4746,
4288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
712,
12,
712,
67,
8052,
4672,
309,
486,
1509,
67,
8052,
30,
327,
1509,
67,
8052,
309,
813,
18,
24816,
957,
12,
712,
67,
8052,
13,
405,
813,
18,
957,
13332,
468,
4746,
4288,... |
EVT_CHECKBOX(self.fixedWidthChk, wxID_STCSTYLEEDITDLGFIXEDWIDTHCHK, self.OnFixedwidthchkCheckbox) self.faceCb = wxComboBox(choices=[], id=wxID_STCSTYLEEDITDLGFACECB, name='faceCb', parent=self.panel1, pos=wxPoint(17, 18), size=wxSize(105, 21), style=0, validator=wxDefaultValidator, value='') self.staticText7 = wxStat... | self.fixedWidthChk.Bind(wx.EVT_CHECKBOX, self.OnFixedwidthchkCheckbox, id=wxID_STCSTYLEEDITDLGFIXEDWIDTHCHK) self.faceCb = wx.ComboBox(choices=[], id=wxID_STCSTYLEEDITDLGFACECB, name='faceCb', parent=self.panel1, pos=wx.Point(17, 18), size=wx.Size(101, 21), style=0, value='') self.staticText7 = wx.StaticText(id=wxID_... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776... |
If an atom was double-clicked, select all the atoms reachable through any sequence of bonds to that atom. If the Control modkey is pressed, unselect all the atoms. | def leftDouble(self, event): # mark 060126. '''Double click event handler for the left mouse button. If an atom was double-clicked, select all the atoms reachable through any sequence of bonds to that atom. If the Control modkey is pressed, unselect all the atoms. ''' if self.cursor_over_when_LMB_pressed == 'Empty Spa... | 98813d5e2b0250845b502aae142e4986b1d892e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/98813d5e2b0250845b502aae142e4986b1d892e8/depositMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
5265,
12,
2890,
16,
871,
4672,
468,
2267,
13026,
1611,
5558,
18,
9163,
5265,
4682,
871,
1838,
364,
326,
2002,
7644,
3568,
18,
9163,
225,
309,
365,
18,
9216,
67,
1643,
67,
13723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2002,
5265,
12,
2890,
16,
871,
4672,
468,
2267,
13026,
1611,
5558,
18,
9163,
5265,
4682,
871,
1838,
364,
326,
2002,
7644,
3568,
18,
9163,
225,
309,
365,
18,
9216,
67,
1643,
67,
13723,
... | |
if hasattr(triangle, "isOutside"): | if triangle.flag(OUTER_FACE): | def catMap(delaunayMap, includeTerminalPositions = False, joinMiddleThreshold = 1.61): """Extract a CAT (chordal axis transform) from a GeoMap object containing a Delaunay Triangulation. Assumes that all edges have only two points and that all finite regions are triangles (such a GeoMap is returned by delaunayMap()).""... | 9780fdb920d074c0946e5e96a8fed5fb752733ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/9780fdb920d074c0946e5e96a8fed5fb752733ff/delaunay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
863,
12,
3771,
69,
318,
528,
863,
16,
2341,
11336,
11024,
273,
1083,
16,
1233,
21924,
7614,
273,
404,
18,
9498,
4672,
3536,
4976,
279,
30210,
261,
343,
517,
287,
2654,
2510,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
863,
12,
3771,
69,
318,
528,
863,
16,
2341,
11336,
11024,
273,
1083,
16,
1233,
21924,
7614,
273,
404,
18,
9498,
4672,
3536,
4976,
279,
30210,
261,
343,
517,
287,
2654,
2510,
13,
... |
print 'OmniPR2Teleop: control ENABLED.' | rospy.loginfo('control ENABLED.') | def set_state(self, s): self.enabled = s if self.enabled: print 'OmniPR2Teleop: control ENABLED.' self.left_controller.set_control(True) self.left_feedback.set_enable(True) #self.right_controller.set_control(True) else: print 'OmniPR2Teleop: control disabled. Follow potential well to pose of arm.' self.left_controller... | a97795db2a7504a32023be50b99ee4d9082372c0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/a97795db2a7504a32023be50b99ee4d9082372c0/omni_teleop.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2019,
12,
2890,
16,
272,
4672,
365,
18,
5745,
273,
272,
309,
365,
18,
5745,
30,
721,
30884,
18,
1330,
1376,
2668,
7098,
29848,
1093,
13,
365,
18,
4482,
67,
5723,
18,
542,
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,
444,
67,
2019,
12,
2890,
16,
272,
4672,
365,
18,
5745,
273,
272,
309,
365,
18,
5745,
30,
721,
30884,
18,
1330,
1376,
2668,
7098,
29848,
1093,
13,
365,
18,
4482,
67,
5723,
18,
542,
67... |
list.append(getConfigListEntry(_("Port A"), config.Nims[nim.slotid].diseqcA)) | list.append(getConfigListEntry(_("Port A"), self.nimConfig.diseqcA)) | def createSimpleSetup(self, nim, list, mode): if mode == 0: #single Sat list.append(getConfigListEntry(_("Satellite"), config.Nims[nim.slotid].diseqcA)) else: # > 1 Sats list.append(getConfigListEntry(_("Port A"), config.Nims[nim.slotid].diseqcA)) | 02c49e642a6bcc65d1cdc443510d9cfefdcfbe93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/02c49e642a6bcc65d1cdc443510d9cfefdcfbe93/Satconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
5784,
7365,
12,
2890,
16,
290,
381,
16,
666,
16,
1965,
4672,
309,
1965,
422,
374,
30,
1082,
202,
7,
7526,
25793,
666,
18,
6923,
12,
588,
809,
27899,
24899,
2932,
15163,
19345,
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,
752,
5784,
7365,
12,
2890,
16,
290,
381,
16,
666,
16,
1965,
4672,
309,
1965,
422,
374,
30,
1082,
202,
7,
7526,
25793,
666,
18,
6923,
12,
588,
809,
27899,
24899,
2932,
15163,
19345,
6,
... |
print "onSnapshotTaken: %s %s" %(mach, id) | logging.debug("onSnapshotTaken: %s %s" %(mach, id)) | def onSnapshotTaken(self, mach, id): print "onSnapshotTaken: %s %s" %(mach, id) | d9e80712040f977a65437d98198220eeff4f916b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1208/d9e80712040f977a65437d98198220eeff4f916b/ufovboxapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
4568,
27486,
12,
2890,
16,
25046,
16,
612,
4672,
1172,
315,
265,
4568,
27486,
30,
738,
87,
738,
87,
6,
8975,
81,
497,
16,
612,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
4568,
27486,
12,
2890,
16,
25046,
16,
612,
4672,
1172,
315,
265,
4568,
27486,
30,
738,
87,
738,
87,
6,
8975,
81,
497,
16,
612,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.