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 |
|---|---|---|---|---|---|---|
return datetime.datetime(yyyy,mo,dd,hh,mn,ss,cs*100,tzinfo=utc) | return datetime.datetime(yyyy,mo,dd,hh,mn,ss,cs*10000,tzinfo=utc) | def toDateTime(self): """Return the DateTime obj representing the FstDate | 17a09153447b58f67bbac52edd65343131cc36bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1808/17a09153447b58f67bbac52edd65343131cc36bc/rpnstd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
5096,
12,
2890,
4672,
3536,
990,
326,
3716,
1081,
5123,
326,
478,
334,
1626,
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,
358,
5096,
12,
2890,
4672,
3536,
990,
326,
3716,
1081,
5123,
326,
478,
334,
1626,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
while not complete: for system in systems: if system['skip']: continue if not system['complete']: if options.debug: print timestamp(), "DEBUG: Checking system:", system['name'] script_result = client.system.get_script_results(key, system['action_id']) if (options.debug) and (not script_result == []): print timestamp()... | warned_short = False warned_long = False try: while not complete: for system in systems: if system['skip']: continue if not system['complete']: if options.debug: print timestamp(), "DEBUG: Checking system:", system['name'] script_result = client.system.get_script_results(key, system['action_id']) if (options.debug) an... | def get_action_results(key, systems): '''Gets action results that have been scheduled''' complete = False waits = 0 print timestamp(), " waiting for results ", while not complete: for system in systems: if system['skip']: continue if not system['complete']: if options.debug: print timestamp(), "DEB... | 47bf7c5912da2993d3407be03ab7a0b52c21819b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/47bf7c5912da2993d3407be03ab7a0b52c21819b/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1128,
67,
4717,
12,
856,
16,
14908,
4672,
9163,
3002,
1301,
1686,
716,
1240,
2118,
9755,
26418,
3912,
273,
1083,
16248,
273,
374,
1172,
2858,
9334,
315,
6647,
7336,
364,
1686,
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,
336,
67,
1128,
67,
4717,
12,
856,
16,
14908,
4672,
9163,
3002,
1301,
1686,
716,
1240,
2118,
9755,
26418,
3912,
273,
1083,
16248,
273,
374,
1172,
2858,
9334,
315,
6647,
7336,
364,
1686,
6... |
if value: | if value is not None: | def sysctl_kernel(key, value=None): """(Very) partial implementation of sysctl, for kernel params""" if value: # write utils.write_one_line('/proc/sys/kernel/%s' % key, str(value)) else: # read out = utils.read_one_line('/proc/sys/kernel/%s' % key) return int(re.search(r'\d+', out).group(0)) | b6e1368864ca7881daba561a101d3cb676236eb0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/b6e1368864ca7881daba561a101d3cb676236eb0/base_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2589,
12930,
67,
8111,
12,
856,
16,
460,
33,
7036,
4672,
3536,
12,
58,
627,
13,
4702,
4471,
434,
2589,
12930,
16,
364,
5536,
859,
8395,
309,
460,
353,
486,
599,
30,
468,
1045,
2990,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2589,
12930,
67,
8111,
12,
856,
16,
460,
33,
7036,
4672,
3536,
12,
58,
627,
13,
4702,
4471,
434,
2589,
12930,
16,
364,
5536,
859,
8395,
309,
460,
353,
486,
599,
30,
468,
1045,
2990,
... |
options_url = self.GetScriptURL('options') | def FormatUsers(self, digest, lang=None): if lang is None: lang = self.preferred_language conceal_sub = mm_cfg.ConcealSubscription people = [] if digest: digestmembers = self.GetDigestMembers() for dm in digestmembers: if not self.GetUserOption(dm, conceal_sub): people.append(dm) num_concealed = len(digestmembers) - le... | 9bb2cca69e08380ad0d8fb90342622f33bae264d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/9bb2cca69e08380ad0d8fb90342622f33bae264d/HTMLFormatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4077,
6588,
12,
2890,
16,
5403,
16,
3303,
33,
7036,
4672,
309,
3303,
353,
599,
30,
3303,
273,
365,
18,
23616,
67,
4923,
356,
311,
287,
67,
1717,
273,
9740,
67,
7066,
18,
442,
311,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4077,
6588,
12,
2890,
16,
5403,
16,
3303,
33,
7036,
4672,
309,
3303,
353,
599,
30,
3303,
273,
365,
18,
23616,
67,
4923,
356,
311,
287,
67,
1717,
273,
9740,
67,
7066,
18,
442,
311,
28... | |
log.Log("Cannot change permissions on target directory.", 2) | Log("Cannot change permissions on target directory.", 2) | def backup_set_rbdir(rpin, rpout): """Initialize data dir and logging""" global incdir incdir = Globals.rbdir.append_path("increments") assert rpout.lstat(), (rpout.path, rpout.lstat()) if rpout.isdir() and not rpout.listdir(): # rpout is empty dir try: rpout.chmod(0700) # just make sure permissions aren't too lax exc... | f35cccac28eb87931e98ac4a7dd152bb257087b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6202/f35cccac28eb87931e98ac4a7dd152bb257087b1/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5114,
67,
542,
67,
6731,
1214,
12,
86,
13097,
16,
8715,
659,
4672,
3536,
7520,
501,
1577,
471,
2907,
8395,
2552,
7290,
1214,
7290,
1214,
273,
18901,
1031,
18,
6731,
1214,
18,
6923,
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,
5114,
67,
542,
67,
6731,
1214,
12,
86,
13097,
16,
8715,
659,
4672,
3536,
7520,
501,
1577,
471,
2907,
8395,
2552,
7290,
1214,
7290,
1214,
273,
18901,
1031,
18,
6731,
1214,
18,
6923,
67,
... |
else: | elif location != '-0': | def seek(self, location): """ @param location: simple number = time to seek to, in seconds +nL = relative seek forward n seconds -nL = relative seek backwards n seconds """ _,state,_ = self.player.get_state() if state != gst.STATE_PAUSED: self.player.set_state(gst.STATE_PAUSED) l = long(location)*1000000000 p = sel... | e3c79d4d5e164a9aea8ac1f0cc5631766e9dd86d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/e3c79d4d5e164a9aea8ac1f0cc5631766e9dd86d/gstreamer_audio_player.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
2117,
4672,
3536,
632,
891,
2117,
30,
565,
4143,
1300,
273,
813,
358,
6520,
358,
16,
316,
3974,
397,
82,
48,
273,
3632,
6520,
5104,
290,
3974,
300,
82,
48,
273,
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,
6520,
12,
2890,
16,
2117,
4672,
3536,
632,
891,
2117,
30,
565,
4143,
1300,
273,
813,
358,
6520,
358,
16,
316,
3974,
397,
82,
48,
273,
3632,
6520,
5104,
290,
3974,
300,
82,
48,
273,
3... |
def cset(preset=None, fg='black', bg='white', **attr): | def cset(preset=None, fg='default', bg='default', **attr): | def cset(preset=None, fg='black', bg='white', **attr): """Set current colour code. If a preset colour code is provided other arguments will be ignored. """ global current_code, DEFAULT_CODE if preset is not None: if preset in preset_codes: current_code = preset_codes[preset] else: print "Unrecognized preset color code!... | ab2207c57be39ff74d27979015a4c9bfdf955e76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3485/ab2207c57be39ff74d27979015a4c9bfdf955e76/colour.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
542,
12,
27524,
33,
7036,
16,
10186,
2218,
1886,
2187,
7611,
2218,
1886,
2187,
2826,
1747,
4672,
3536,
694,
783,
15046,
981,
18,
971,
279,
12313,
15046,
981,
353,
2112,
1308,
1775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
542,
12,
27524,
33,
7036,
16,
10186,
2218,
1886,
2187,
7611,
2218,
1886,
2187,
2826,
1747,
4672,
3536,
694,
783,
15046,
981,
18,
971,
279,
12313,
15046,
981,
353,
2112,
1308,
1775,
... |
replace_list = lambda self, args: args | replace_scalar = replace_list = lambda self, args: args | def test_embedded_args_handler_has_all_needed_attributes(self): normal = UserHandler(HandlerDataMock('My name'), None) embedded = EmbeddedArgs('My name', EAT('My ${name}')) for attr in dir(normal): assert_true(hasattr(embedded, attr), "'%s' missing" % attr) | fa8d5db4a0781f0795105893dee58130bb3b094e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/fa8d5db4a0781f0795105893dee58130bb3b094e/test_userhandlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20722,
67,
1968,
67,
4176,
67,
5332,
67,
454,
67,
17471,
67,
4350,
12,
2890,
4672,
2212,
273,
2177,
1503,
12,
1503,
751,
9865,
2668,
12062,
508,
19899,
599,
13,
7488,
273,
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,
1842,
67,
20722,
67,
1968,
67,
4176,
67,
5332,
67,
454,
67,
17471,
67,
4350,
12,
2890,
4672,
2212,
273,
2177,
1503,
12,
1503,
751,
9865,
2668,
12062,
508,
19899,
599,
13,
7488,
273,
21... |
os.system("/usr/lib/enigma2/python/Plugins/PLi/AutoBackup/settings-backup.sh %s" % destination) | os.system("%s %s" % (BACKUP_SCRIPT, destination)) | def runBackup(): destination = config.plugins.autobackup.mode.value if destination and (destination != "off"): try: print "[AutoBackup] **************** begin **************** destination:", destination os.system("/usr/lib/enigma2/python/Plugins/PLi/AutoBackup/settings-backup.sh %s" % destination) except Exception, e: ... | 72f1ac0f79f9b6705d800f9cca3b297951460066 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10199/72f1ac0f79f9b6705d800f9cca3b297951460066/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
6248,
13332,
2929,
273,
642,
18,
8057,
18,
6079,
9572,
18,
3188,
18,
1132,
309,
2929,
471,
261,
10590,
480,
315,
3674,
6,
4672,
775,
30,
1172,
5158,
4965,
6248,
65,
380,
1644,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6248,
13332,
2929,
273,
642,
18,
8057,
18,
6079,
9572,
18,
3188,
18,
1132,
309,
2929,
471,
261,
10590,
480,
315,
3674,
6,
4672,
775,
30,
1172,
5158,
4965,
6248,
65,
380,
1644,
27... |
if Tag.find('[') > 0: | LBPos = Tag.find('[') RBPos = Tag.find(']') ParamToLBContent = Tag[len('@param'):LBPos].strip() if LBPos > 0 and len(ParamToLBContent)==0 and RBPos > LBPos: | def CheckFunctionHeaderConsistentWithDoxygenComment(FuncModifier, FuncHeader, FuncStartLine, CommentStr, CommentStartLine, ErrorMsgList, CommentId = -1, TableName = ''): ParamList = GetParamList(FuncHeader) CheckGeneralDoxygenCommentLayout(CommentStr, CommentStartLine, ErrorMsgList, CommentId, TableName) DescriptionSt... | 9591a215e8a202fd841b1b05c3b4a92043243cb1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/914/9591a215e8a202fd841b1b05c3b4a92043243cb1/c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2083,
1864,
17579,
319,
1190,
3244,
1698,
4507,
4469,
12,
2622,
9829,
16,
6165,
1864,
16,
6165,
1685,
1670,
16,
9821,
1585,
16,
9821,
1685,
1670,
16,
1068,
3332,
682,
16,
9821,
548... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2083,
1864,
17579,
319,
1190,
3244,
1698,
4507,
4469,
12,
2622,
9829,
16,
6165,
1864,
16,
6165,
1685,
1670,
16,
9821,
1585,
16,
9821,
1685,
1670,
16,
1068,
3332,
682,
16,
9821,
548... |
def configuration(parent_package='',top_path=None): | def configuration(parent_package='io',top_path=None): | def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('matlab', parent_package, top_path) config.add_data_dir('tests') return config | 37ddf8b41ee770a27c4eb59d27fc74fea60faaee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/37ddf8b41ee770a27c4eb59d27fc74fea60faaee/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
1594,
2187,
3669,
67,
803,
33,
7036,
4672,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
642,
273,
4659,
2668,
7373,
7411,
2187,
982,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
1594,
2187,
3669,
67,
803,
33,
7036,
4672,
628,
3972,
18,
4413,
5471,
18,
23667,
67,
1367,
1930,
4659,
642,
273,
4659,
2668,
7373,
7411,
2187,
982,
67,
... |
self._members.remove(confsource) | if len(self._members) and confsource in self._members: self._members.remove(confsource) | def removeMember(self, confsource): self._members.remove(confsource) if not len(self._members): self.shutdown() | df888c2bcc1eba4d7a46e8c2e8092107f6819ac6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/df888c2bcc1eba4d7a46e8c2e8092107f6819ac6/conferencing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
4419,
12,
2890,
16,
2195,
3168,
4672,
309,
562,
12,
2890,
6315,
7640,
13,
471,
2195,
3168,
316,
365,
6315,
7640,
30,
365,
6315,
7640,
18,
4479,
12,
591,
2556,
552,
13,
309,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
4419,
12,
2890,
16,
2195,
3168,
4672,
309,
562,
12,
2890,
6315,
7640,
13,
471,
2195,
3168,
316,
365,
6315,
7640,
30,
365,
6315,
7640,
18,
4479,
12,
591,
2556,
552,
13,
309,
486,
... |
class WriterPublishTestCase(CustomTestCase): | class WriterPublishTestCase(CustomTestCase, docutils.SettingsSpec): | def generateTests(self, dict, dictname='totest', testmethod='test_parser'): """ Stock the suite with test cases generated from a test data dictionary. | 4a6c3a0877bc3e7284c742bf52b06d1b00f0ac40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/4a6c3a0877bc3e7284c742bf52b06d1b00f0ac40/DocutilsTestSupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
14650,
12,
2890,
16,
2065,
16,
2065,
529,
2218,
3307,
395,
2187,
1842,
2039,
2218,
3813,
67,
4288,
11,
4672,
3536,
20296,
363,
326,
11371,
598,
1842,
6088,
4374,
628,
279,
1842,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
14650,
12,
2890,
16,
2065,
16,
2065,
529,
2218,
3307,
395,
2187,
1842,
2039,
2218,
3813,
67,
4288,
11,
4672,
3536,
20296,
363,
326,
11371,
598,
1842,
6088,
4374,
628,
279,
1842,
50... |
allsrv.remove(svc.get('name')) for svc in csrv if svc.get('status') == 'on' and svc.get('name') in allsrv] | [allsrv.remove(svc.get('name')) for svc in csrv if svc.get('status') == 'on' and svc.get('name') in allsrv] | def Inventory(self): '''Do standard inventory plus debian extra service check''' Toolset.Inventory(self) allsrv = [ x.strip() for x in popen("/usr/bin/svcs -a -H -o SVC").readlines() ] csrv = self.cfg.findall(".//Service") | a40cf5763752f7bb259cbc6b689d57691e2be00f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/a40cf5763752f7bb259cbc6b689d57691e2be00f/Solaris.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24835,
12,
2890,
4672,
9163,
3244,
4529,
13086,
8737,
18202,
2779,
2870,
1156,
866,
26418,
13288,
542,
18,
15059,
12,
2890,
13,
777,
20818,
273,
306,
619,
18,
6406,
1435,
364,
619,
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,
24835,
12,
2890,
4672,
9163,
3244,
4529,
13086,
8737,
18202,
2779,
2870,
1156,
866,
26418,
13288,
542,
18,
15059,
12,
2890,
13,
777,
20818,
273,
306,
619,
18,
6406,
1435,
364,
619,
316,
... |
def __select (self, iwtd, owtd, ewtd, timeout=-1) """ timeout may be 0 to poll (never wait). timeout may be None to never timeout. timeout may be -1 to use the default instance timeout. """ if timeout == -1: timeout = self.timeout if timeout != None: end_time = time.time() + timeout while True: try: r,w,e = select.sele... | def __select (self, iwtd, owtd, ewtd, timeout=-1) """ timeout may be 0 to poll (never wait). timeout may be None to never timeout. timeout may be -1 to use the default instance timeout. """ if timeout == -1: timeout = self.timeout if timeout != None: end_time = time.time() + timeout while True: try: r,w,e = select.sele... | 3c3d87f023cdd3e4bbc6b0385f645f7ca35079c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/3c3d87f023cdd3e4bbc6b0385f645f7ca35079c1/pexpect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4025,
261,
2890,
16,
25522,
4465,
16,
2523,
4465,
16,
22722,
4465,
16,
2021,
29711,
21,
13,
3536,
2021,
2026,
506,
374,
358,
7672,
261,
4644,
502,
2529,
2934,
2021,
2026,
506,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4025,
261,
2890,
16,
25522,
4465,
16,
2523,
4465,
16,
22722,
4465,
16,
2021,
29711,
21,
13,
3536,
2021,
2026,
506,
374,
358,
7672,
261,
4644,
502,
2529,
2934,
2021,
2026,
506,
599,... | |
e = self.e | def key_schedule(self, kj, i): """ Return $k_i$ for a given $i$ and $k_j$ with $j = i-1$. | 26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
10676,
12,
2890,
16,
417,
78,
16,
277,
4672,
3536,
2000,
271,
79,
67,
77,
8,
364,
279,
864,
271,
77,
8,
471,
271,
79,
67,
78,
8,
598,
271,
78,
273,
277,
17,
21,
8,
18,... | |
course.append(targetcheck(target[-1])) if course[-1] == None: | tcourse.append(targetcheck(target[-1])) if tcourse[-1] == None: | def torps(): "Launch photon torpedo salvo." course = [] game.ididit = False if damaged(DPHOTON): prout(_("Photon tubes damaged.")) scanner.chew() return if game.torps == 0: prout(_("No torpedoes left.")) scanner.chew() return # First, get torpedo count while True: scanner.next() if scanner.token == "IHALPHA": huh() ret... | eafdd35f1af1e4e93d3609a0adbe768b562907e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/eafdd35f1af1e4e93d3609a0adbe768b562907e0/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1121,
13332,
315,
9569,
24542,
265,
8934,
1845,
83,
12814,
12307,
1199,
4362,
273,
5378,
7920,
18,
350,
350,
305,
273,
1083,
309,
302,
301,
11349,
12,
8640,
44,
1974,
673,
4672,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1121,
13332,
315,
9569,
24542,
265,
8934,
1845,
83,
12814,
12307,
1199,
4362,
273,
5378,
7920,
18,
350,
350,
305,
273,
1083,
309,
302,
301,
11349,
12,
8640,
44,
1974,
673,
4672,
45... |
def shared_library_filename (libname): | def shared_library_filename (self, libname): | def shared_library_filename (libname): """Return the shared library filename corresponding to the specified library name.""" pass | 6dd8aee3c3a2a111fec98320a3655f5e0c44dc7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6dd8aee3c3a2a111fec98320a3655f5e0c44dc7f/ccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5116,
67,
12083,
67,
3459,
261,
2890,
16,
2561,
529,
4672,
3536,
990,
326,
5116,
5313,
1544,
4656,
358,
326,
1269,
5313,
508,
12123,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5116,
67,
12083,
67,
3459,
261,
2890,
16,
2561,
529,
4672,
3536,
990,
326,
5116,
5313,
1544,
4656,
358,
326,
1269,
5313,
508,
12123,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
requiredClass.getDependencies() def __resolveDependencies(self, className, available, result=None): | self.__resolveDependencies(requiredClass, available, result) print("List contains %i classes" % len(result)) print(result) def __resolveDependencies(self, classObj, available, result=None): | def getClassList(self): projects = self.session.getProjects() available = [] for project in projects: available.extend(project.getClasses()) | ce6ddc5dd5613bc0ee91ffee09cb076c12f6397b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/ce6ddc5dd5613bc0ee91ffee09cb076c12f6397b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2900,
682,
12,
2890,
4672,
10137,
273,
365,
18,
3184,
18,
588,
15298,
1435,
2319,
273,
5378,
364,
1984,
316,
10137,
30,
2319,
18,
14313,
12,
4406,
18,
588,
4818,
10756,
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,
2900,
682,
12,
2890,
4672,
10137,
273,
365,
18,
3184,
18,
588,
15298,
1435,
2319,
273,
5378,
364,
1984,
316,
10137,
30,
2319,
18,
14313,
12,
4406,
18,
588,
4818,
10756,
2,
-100,
-100,
... |
request.prepath[-1] = self.indexName | if os.path.exists(os.path.join(self.path,self.indexName)): request.prepath[-1] = self.indexName else: return DirectoryListing(self.path) | def getChild(self, path, request): """ Move 'zig'. For great justice. """ if path == '..': return error.NoResource() if path == '.idx': if os.path.exists(os.path.join(self.path,self.indexName)): return error.NoResource() else: return DirectoryListing(self.path) if path == '': path = self.indexName # This next step is s... | e419d4581d33aee4ae2286e8dac97739a0d0ac11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/e419d4581d33aee4ae2286e8dac97739a0d0ac11/static.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8154,
12,
2890,
16,
589,
16,
590,
4672,
3536,
9933,
296,
94,
360,
10332,
2457,
18825,
2537,
1812,
18,
3536,
309,
589,
422,
11597,
4278,
327,
555,
18,
2279,
1420,
1435,
309,
589,
422,
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,
8154,
12,
2890,
16,
589,
16,
590,
4672,
3536,
9933,
296,
94,
360,
10332,
2457,
18825,
2537,
1812,
18,
3536,
309,
589,
422,
11597,
4278,
327,
555,
18,
2279,
1420,
1435,
309,
589,
422,
2... |
if dlg.ShowModal() == wx.ID_OK: print "TODO: Send Signal - New mask" | try: op = dlg.ShowModal() == wx.ID_OK except(wx._core.PyAssertionError): print "win64 - wx._core.PyAssertionError" op = True print "TODO: Send Signal - New mask" if (op): | def OnLinkNewMask(self, evt=None): dlg = wx.TextEntryDialog(self, _('Name of new mask:'), _('InVesalius 3 - New mask')) dlg.CenterOnScreen() default_mask_name = const.MASK_NAME_PATTERN %(mask.Mask.general_index+2) dlg.SetValue(default_mask_name) | 6d8a0c4eb8daac0be9d91789622b6d46c4b011ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/6d8a0c4eb8daac0be9d91789622b6d46c4b011ca/task_slice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2098,
1908,
5796,
12,
2890,
16,
6324,
33,
7036,
4672,
25840,
273,
7075,
18,
1528,
1622,
6353,
12,
2890,
16,
389,
2668,
461,
434,
394,
3066,
2497,
3631,
389,
2668,
382,
58,
281,
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,
2755,
2098,
1908,
5796,
12,
2890,
16,
6324,
33,
7036,
4672,
25840,
273,
7075,
18,
1528,
1622,
6353,
12,
2890,
16,
389,
2668,
461,
434,
394,
3066,
2497,
3631,
389,
2668,
382,
58,
281,
2... |
self.valueOf_ or | def hasContent_(self): if ( self.node or self.rootedge is not None or self.edge or self.set or self.valueOf_ or super(AbstractTree, self).hasContent_() ): return True else: return False | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
1350,
67,
12,
2890,
4672,
309,
261,
365,
18,
2159,
578,
365,
18,
3085,
7126,
353,
486,
599,
578,
365,
18,
7126,
578,
365,
18,
542,
578,
2240,
12,
7469,
2471,
16,
365,
2934,
5332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
1350,
67,
12,
2890,
4672,
309,
261,
365,
18,
2159,
578,
365,
18,
3085,
7126,
353,
486,
599,
578,
365,
18,
7126,
578,
365,
18,
542,
578,
2240,
12,
7469,
2471,
16,
365,
2934,
5332... | |
return "You must define folders to watch for new messages" | return "You must define folders to watch for new messages. " \ "Select the 'Filtering' tab to define these folders." | def GetDisabledReason(self): # Gets the reason why the plugin can not be enabled. # If return is None, then it can be enabled (and indeed may be!) # Otherwise return is the string reason config = self.config.filter ok_to_enable = operator.truth(config.watch_folder_ids) if not ok_to_enable: return "You must define folde... | d8129683952df47de08ccff5860dd391f651ba83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/d8129683952df47de08ccff5860dd391f651ba83/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
8853,
8385,
12,
2890,
4672,
468,
11881,
326,
3971,
11598,
326,
1909,
848,
486,
506,
3696,
18,
468,
971,
327,
353,
599,
16,
1508,
518,
848,
506,
3696,
261,
464,
316,
323,
329,
2026... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8853,
8385,
12,
2890,
4672,
468,
11881,
326,
3971,
11598,
326,
1909,
848,
486,
506,
3696,
18,
468,
971,
327,
353,
599,
16,
1508,
518,
848,
506,
3696,
261,
464,
316,
323,
329,
2026... |
@param id: structure type ID | @param sid: structure type ID | def SetMemberComment(id, member_offset, comment, repeatable): """ Change structure member comment @param id: structure type ID @param member_offset: offset of the member @param comment: new comment of the structure member @param repeatable: 1: change repeatable comment 0: change regular comment @return: != 0 - ok """... | 76aa24fecdace41c9fc827e500b95cfdf5053272 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4773/76aa24fecdace41c9fc827e500b95cfdf5053272/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4419,
4469,
12,
350,
16,
3140,
67,
3348,
16,
2879,
16,
7666,
429,
4672,
3536,
7576,
3695,
3140,
2879,
225,
632,
891,
7348,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4419,
4469,
12,
350,
16,
3140,
67,
3348,
16,
2879,
16,
7666,
429,
4672,
3536,
7576,
3695,
3140,
2879,
225,
632,
891,
7348,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384... |
clusters=self.clusters.all() | clusters=self.clusters.filter(parent=None) | def last_cluster_number(self): clusters=self.clusters.all() if clusters: clustermax=cluster.aggregate(Max('number')) return clusters['number__max'] else: return self.number-1000 | 6ca32f12480b7493fcede1a5e9bc528d0dfe471e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11540/6ca32f12480b7493fcede1a5e9bc528d0dfe471e/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1142,
67,
7967,
67,
2696,
12,
2890,
4672,
9566,
33,
2890,
18,
16806,
18,
2188,
12,
2938,
33,
7036,
13,
309,
9566,
30,
927,
641,
1035,
651,
33,
7967,
18,
18573,
12,
2747,
2668,
2696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1142,
67,
7967,
67,
2696,
12,
2890,
4672,
9566,
33,
2890,
18,
16806,
18,
2188,
12,
2938,
33,
7036,
13,
309,
9566,
30,
927,
641,
1035,
651,
33,
7967,
18,
18573,
12,
2747,
2668,
2696,
... |
over18 = validators.Bool() | over18 = validators.Int(min=0, max=1, not_empty=True) | def validate_python(self, value, state): if not value['i_agree']: raise Invalid("You must read and accept the terms and conditions before you can register.", value, state) | 598d399654d829af60fe23d39fd647ca36ecd9a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12856/598d399654d829af60fe23d39fd647ca36ecd9a7/registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
8103,
12,
2890,
16,
460,
16,
919,
4672,
309,
486,
460,
3292,
77,
67,
346,
992,
3546,
30,
1002,
1962,
2932,
6225,
1297,
855,
471,
2791,
326,
6548,
471,
4636,
1865,
1846,
848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
67,
8103,
12,
2890,
16,
460,
16,
919,
4672,
309,
486,
460,
3292,
77,
67,
346,
992,
3546,
30,
1002,
1962,
2932,
6225,
1297,
855,
471,
2791,
326,
6548,
471,
4636,
1865,
1846,
848,
... |
numofchapters = lengthofvideo / segment; chapters = "" | numofchapters = lengthofvideo / segment + 1; chapters = "00:00:00" | def createVideoChaptersFixedLength(itemnum, segment, lengthofvideo): """Returns chapter marks at cut list ends, or evenly spaced chapters 'segment' seconds through the file""" if addCutlistChapters == True: # we've been asked to use the cut list as chapter marks # so if there is a cut list available, use it infoDOM ... | 2d252728ebade4ca3460c0da9fd006ea3d01530a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/2d252728ebade4ca3460c0da9fd006ea3d01530a/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10083,
782,
1657,
414,
7505,
1782,
12,
1726,
2107,
16,
3267,
16,
769,
792,
9115,
4672,
3536,
1356,
23580,
13999,
622,
6391,
666,
3930,
16,
578,
5456,
715,
3476,
72,
462,
1657,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10083,
782,
1657,
414,
7505,
1782,
12,
1726,
2107,
16,
3267,
16,
769,
792,
9115,
4672,
3536,
1356,
23580,
13999,
622,
6391,
666,
3930,
16,
578,
5456,
715,
3476,
72,
462,
1657,
414,
... |
SIGNTOOL='$VC80_DIR/common7/tools/bin/signtool.exe', | SIGNTOOL='"$VC80_DIR/common7/tools/bin/signtool.exe"', | def generate(env): # NOTE: SCons requires the use of this name, which fails gpylint. """SCons entry point for this tool.""" try: SCons.Script.AddOption('--certificate-name', dest='certificate_name', help='select which certificate to use') SCons.Script.Help( ' --certificate-name <NAME> select which signing certifica... | bcc7dccf722ec97f503c5f0d5cb9271be77a7496 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13254/bcc7dccf722ec97f503c5f0d5cb9271be77a7496/code_signing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
3074,
4672,
468,
5219,
30,
20487,
4991,
326,
999,
434,
333,
508,
16,
1492,
6684,
314,
2074,
5671,
18,
3536,
55,
9054,
1241,
1634,
364,
333,
5226,
12123,
225,
775,
30,
20487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
12,
3074,
4672,
468,
5219,
30,
20487,
4991,
326,
999,
434,
333,
508,
16,
1492,
6684,
314,
2074,
5671,
18,
3536,
55,
9054,
1241,
1634,
364,
333,
5226,
12123,
225,
775,
30,
20487,
... |
def __call__(self, minpoint, maxpoint, **kwds): | def __call__(self, tailpoint, headpoint, **kwds): | def __call__(self, minpoint, maxpoint, **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v xmin = float(minpoint[0]) ymin = float(minpoint[1]) xmax = float(maxpoint[0]) ymax = float(maxpoint[1]) | b63c5b1110662e1cc7e6c3ff8bb47654323d0054 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b63c5b1110662e1cc7e6c3ff8bb47654323d0054/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5798,
1153,
16,
910,
1153,
16,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
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,
1001,
1991,
972,
12,
2890,
16,
5798,
1153,
16,
910,
1153,
16,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
63,
... |
self.buffer.insert_with_tags(self.buffer.get_end_iter(), "Availability: ", self._bold) self.buffer.insert(self.buffer.get_end_iter(), template.presence.value_nick) self.buffer.insert(self.buffer.get_end_iter(), "\n") self.buffer.insert_with_tags(self.buffer.get_end_iter(), "Capabilities:", self._bold) for structure in ... | for template in template_list: if template.direction == gst.PAD_SINK: template_dir = "SINK template: " else: template_dir = "SRC template: " self.buffer.insert_with_tags(self.buffer.get_end_iter(), template_dir, self._bold) self.buffer.insert(self.buffer.get_end_iter(), template.name_template) self.buffer.insert(self.b... | def _on_selection_changed(self, selection): self.buffer.delete(self.buffer.get_start_iter(), self.buffer.get_end_iter()) if len(selection.selected_elements) == 1: element = selection.selected_elements[0] factory = element.get_factory() self.buffer.insert_with_tags(self.buffer.get_end_iter(), factory.get_longname(), sel... | 0805187d78eeeaff401c974ec578f759c1c45df9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9548/0805187d78eeeaff401c974ec578f759c1c45df9/ElementDetailsController.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
265,
67,
10705,
67,
6703,
12,
2890,
16,
4421,
4672,
365,
18,
4106,
18,
3733,
12,
2890,
18,
4106,
18,
588,
67,
1937,
67,
2165,
9334,
365,
18,
4106,
18,
588,
67,
409,
67,
2165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
265,
67,
10705,
67,
6703,
12,
2890,
16,
4421,
4672,
365,
18,
4106,
18,
3733,
12,
2890,
18,
4106,
18,
588,
67,
1937,
67,
2165,
9334,
365,
18,
4106,
18,
588,
67,
409,
67,
2165,
... |
if type(ob)==types.ClassType: | if type(ob) in (types.ClassType, types.TypeType): | def get_arg_text(ob): """Get a string describing the arguments for the given object""" argText = "" if ob is not None: argOffset = 0 if type(ob)==types.ClassType: # Look for the highest __init__ in the class chain. fob = _find_constructor(ob) if fob is None: fob = lambda: None else: argOffset = 1 elif type(ob)==types.M... | ce37efbe8c4e53dbf080827a7b9c3e5b1f997f70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/ce37efbe8c4e53dbf080827a7b9c3e5b1f997f70/CallTips.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3175,
67,
955,
12,
947,
4672,
3536,
967,
279,
533,
16868,
326,
1775,
364,
326,
864,
733,
8395,
1501,
1528,
273,
1408,
309,
3768,
353,
486,
599,
30,
1501,
2335,
273,
374,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3175,
67,
955,
12,
947,
4672,
3536,
967,
279,
533,
16868,
326,
1775,
364,
326,
864,
733,
8395,
1501,
1528,
273,
1408,
309,
3768,
353,
486,
599,
30,
1501,
2335,
273,
374,
309,
... |
rf = longname.update_rf(self.get_rf(index), mir_rorp, | rf = longname.update_rf(self.get_rf(index, mir_rorp), mir_rorp, | def get_fp(self, index, mir_rorp): """Return the file object (for reading) of given index""" rf = longname.update_rf(self.get_rf(index), mir_rorp, self.root_rf.mirror_rp) if not rf: log.Log("Error: Unable to retrieve data for file %s!\nThe " "cause is probably data loss from the backup repository." % (index and "/".joi... | 436aec66e6fdd1266fc463d51093160023e5b352 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/436aec66e6fdd1266fc463d51093160023e5b352/restore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7944,
12,
2890,
16,
770,
16,
312,
481,
67,
86,
280,
84,
4672,
3536,
990,
326,
585,
733,
261,
1884,
6453,
13,
434,
864,
770,
8395,
9075,
273,
1525,
529,
18,
2725,
67,
5809,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7944,
12,
2890,
16,
770,
16,
312,
481,
67,
86,
280,
84,
4672,
3536,
990,
326,
585,
733,
261,
1884,
6453,
13,
434,
864,
770,
8395,
9075,
273,
1525,
529,
18,
2725,
67,
5809,
... |
directory already exists, return silently. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' is true, print a one-line summary of each mkdir to stdout.""" | directory already exists (or if 'name' is the empty string, which means the current directory, which of course exists), then do nothing. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' is true, print a one-line s... | def mkpath (name, mode=0777, verbose=0, dry_run=0): """Create a directory and any missing ancestor directories. If the directory already exists, return silently. Raise DistutilsFileError if unable to create some directory along the way (eg. some sub-path exists, but is a file rather than a directory). If 'verbose' i... | 2c5318988e1300a9eb44840166396c57af0fb283 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2c5318988e1300a9eb44840166396c57af0fb283/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
803,
261,
529,
16,
1965,
33,
20,
14509,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
1867,
471,
1281,
3315,
9731,
6402,
18,
225,
971,
326,
1867,
1818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
803,
261,
529,
16,
1965,
33,
20,
14509,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
1867,
471,
1281,
3315,
9731,
6402,
18,
225,
971,
326,
1867,
1818,
... |
inc_dir = base else: inc_dir = os.path.join(base, "Include") if not os.path.exists(inc_dir): inc_dir = os.path.join(os.path.dirname(base), "Include") return inc_dir | return base else: incdir = os.path.join(get_config_var('srcdir'), 'Include') return os.path.normpath(incdir) | def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pycon... | a55efe903cc399058aed711fe9217a3d2b575b8e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/a55efe903cc399058aed711fe9217a3d2b575b8e/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
9523,
12,
412,
270,
67,
12524,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
5876,
6600,
1446,
1390,
18,
225,
971,
296,
412,
270,
67,
12524,
11,
35... |
parser.add_option("--assert-exit-level", dest='assert_exit_level', type="choice", choices=loglevels.keys(), help="specify the level at which a failed assertion will stop the server. Accepted values: %s" % (loglevels.keys(),)) | parser.add_option("--assert-exit-level", dest='assert_exit_level', type="choice", choices=self._LOGLEVELS.keys(), help="specify the level at which a failed assertion will stop the server. Accepted values: %s" % (self._LOGLEVELS.keys(),)) | def __init__(self, fname=None): self.options = { 'email_from':False, 'interface': '', # this will bind the server to all interfaces 'port': 8069, 'netinterface': '', 'netport': 8070, 'db_host': False, 'db_port': False, 'db_name': False, 'db_user': False, 'db_password': False, 'db_maxconn': 64, 'reportgz': False, 'ne... | 5a398a2ceed86991d804f5f5d006e1d3a26ca4b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/5a398a2ceed86991d804f5f5d006e1d3a26ca4b7/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326,
1438,
358,
777... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326,
1438,
358,
777... |
paths: a list of files and/or directories to be checked. is_python: a function that takes a file name and checks whether it is a Python source file exclude_dirs: a list of directory base names that should be excluded in the search """ if exclude_dirs is None: exclude_dirs=[] for path in paths: print_debug("testing: %s... | try: opts, args = getopt.getopt(sys.argv[1:], 'cd') except getopt.error, msg: print >>sys.stderr, msg print >>sys.stderr, usage sys.exit(1) is_python = pysource.looks_like_python debug = False for o, a in opts: if o == '-c': is_python = pysource.can_be_compiled elif o == '-d': debug = True if not args: print >>sys.s... | def walk_python_files(paths, is_python=looks_like_python, exclude_dirs=None): """\ Recursively yield all Python source files below the given paths. paths: a list of files and/or directories to be checked. is_python: a function that takes a file name and checks whether it is a Python source file exclude_dirs: a list of... | 568973181aa523bbcf7f827b3a2eb2affd96ea67 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/568973181aa523bbcf7f827b3a2eb2affd96ea67/findnocoding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
67,
8103,
67,
2354,
12,
4481,
16,
353,
67,
8103,
33,
7330,
87,
67,
5625,
67,
8103,
16,
4433,
67,
8291,
33,
7036,
4672,
3536,
64,
31362,
2824,
777,
6600,
1084,
1390,
5712,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
67,
8103,
67,
2354,
12,
4481,
16,
353,
67,
8103,
33,
7330,
87,
67,
5625,
67,
8103,
16,
4433,
67,
8291,
33,
7036,
4672,
3536,
64,
31362,
2824,
777,
6600,
1084,
1390,
5712,
326,
... |
def xml(self,parent): | def as_xml(self,parent): | def xml(self,parent): """Create vcard-tmp XML representation of the field. | ca0c8dbc3ecd0b409f98dffb6e90f2f51152b2c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/ca0c8dbc3ecd0b409f98dffb6e90f2f51152b2c7/vcard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2902,
12,
2890,
16,
2938,
4672,
3536,
1684,
29760,
17,
5645,
3167,
4335,
434,
326,
652,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
2902,
12,
2890,
16,
2938,
4672,
3536,
1684,
29760,
17,
5645,
3167,
4335,
434,
326,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
jdl += 'Executable = "%s";\n' % job[ 'executable' ] | jdl += 'AllowZippedISB = true;\n' jdl += 'ZippedISB = "%s";\n' % self.zippedISB jdl += 'Executable = "%s";\n' \ % os.path.basename( job[ 'executable' ] ) | def singleApiJdl( self, job, requirements='' ) : """ build a job jdl easy to be handled by the wmproxy API interface and gives back the list of input files for a better handling """ | 3f4c6ad52af7afc82a2e433ae9b384372238274a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/3f4c6ad52af7afc82a2e433ae9b384372238274a/SchedulerGLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
3064,
46,
5761,
12,
365,
16,
1719,
16,
8433,
2218,
11,
262,
294,
3536,
1361,
279,
1719,
525,
5761,
12779,
358,
506,
7681,
635,
326,
18200,
5656,
1491,
1560,
471,
14758,
1473,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
3064,
46,
5761,
12,
365,
16,
1719,
16,
8433,
2218,
11,
262,
294,
3536,
1361,
279,
1719,
525,
5761,
12779,
358,
506,
7681,
635,
326,
18200,
5656,
1491,
1560,
471,
14758,
1473,
326,
... |
while url[-1] in ");:,.?": | while url[-1] in ");:,.?'\"": | def translate(self, text): | 1dcc24404bd0414d44ae6e0d216f003d7b6c7af5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1dcc24404bd0414d44ae6e0d216f003d7b6c7af5/faqmain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
12,
2890,
16,
977,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4204,
12,
2890,
16,
977,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
name = data[pos:pos+name_length].decode("utf-16").strip("\x00") | name = data[pos:pos+name_length].decode("utf-16-le").strip("\x00") | def parse(self, asf, data, fileobj, size): super(MetadataLibraryObject, self).parse(asf, data, fileobj, size) asf.metadata_library_obj = self num_attributes, = struct.unpack("<H", data[0:2]) pos = 2 for i in range(num_attributes): (language, stream, name_length, value_type, value_length) = struct.unpack("<HHHHI", data[... | bf0c28e3dfc3ca6f8ee446ee956429077bc8bf4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/bf0c28e3dfc3ca6f8ee446ee956429077bc8bf4f/asf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
487,
74,
16,
501,
16,
17041,
16,
963,
4672,
2240,
12,
2277,
9313,
921,
16,
365,
2934,
2670,
12,
345,
74,
16,
501,
16,
17041,
16,
963,
13,
487,
74,
18,
4165,
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,
1109,
12,
2890,
16,
487,
74,
16,
501,
16,
17041,
16,
963,
4672,
2240,
12,
2277,
9313,
921,
16,
365,
2934,
2670,
12,
345,
74,
16,
501,
16,
17041,
16,
963,
13,
487,
74,
18,
4165,
67,... |
x0 -- (0) default starting guess | x0 -- (0) default starting guess (overwritten with final value) | def cgs(A, b, x0=None, tol=1e-5, maxiter=None, xtype=None, callback=None): """Use Conjugate Gradient Squared iteration to solve A x = b Inputs: A -- An array or an object with a matvec(x) method to represent A * x. May also have a psolve(b) methods for representing solution to the preconditioning equation M * x = ... | 813b4e6e6d06aca25d02aaa8a246c6d0200f0096 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/813b4e6e6d06aca25d02aaa8a246c6d0200f0096/iterative.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
564,
12,
37,
16,
324,
16,
619,
20,
33,
7036,
16,
6085,
33,
21,
73,
17,
25,
16,
25743,
33,
7036,
16,
619,
723,
33,
7036,
16,
1348,
33,
7036,
4672,
3536,
3727,
735,
78,
31529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
564,
12,
37,
16,
324,
16,
619,
20,
33,
7036,
16,
6085,
33,
21,
73,
17,
25,
16,
25743,
33,
7036,
16,
619,
723,
33,
7036,
16,
1348,
33,
7036,
4672,
3536,
3727,
735,
78,
31529,
... |
try: if (now-self.blockTimes[0][0]) != 0: rate=(self.blockTimes[-1][1]-self.blockTimes[0][1])/(now-self.blockTimes[0][0]) | haltedSince = now for time, size in reversed(self.blockTimes): if size == self.currentSize: haltedSince = time | def getRate(self): now = clock() if self.endTime != self.startTime: rate = self.currentSize/(self.endTime-self.startTime) else: try: if (now-self.blockTimes[0][0]) != 0: rate=(self.blockTimes[-1][1]-self.blockTimes[0][1])/(now-self.blockTimes[0][0]) else: rate = 0 except IndexError: rate = 0 return rate | b4a40ffd0c80903294d330ba38f0ce0c351918bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/b4a40ffd0c80903294d330ba38f0ce0c351918bf/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4170,
340,
12,
2890,
4672,
2037,
273,
7268,
1435,
309,
365,
18,
409,
950,
480,
365,
18,
1937,
950,
30,
4993,
273,
365,
18,
2972,
1225,
19,
12,
2890,
18,
409,
950,
17,
2890,
18,
1937,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4170,
340,
12,
2890,
4672,
2037,
273,
7268,
1435,
309,
365,
18,
409,
950,
480,
365,
18,
1937,
950,
30,
4993,
273,
365,
18,
2972,
1225,
19,
12,
2890,
18,
409,
950,
17,
2890,
18,
1937,... |
print cli_bracket ('error code %d getting tag %s' % (status, | print cli_bracket('error code %d getting tag %s' % (status, | def execute_show_command (objs, db, tags, options): actions = { 'id': db.get_tag_value_by_id, 'about': db.get_tag_value_by_about, } for obj in objs: description = describe_by_mode (obj.specifier, obj.mode) print 'Object %s:' % description for tag in tags: fulltag = db.abs_tag_path (tag) if tag == '/id': if obj.mode ==... | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
4500,
67,
3076,
261,
18093,
16,
1319,
16,
2342,
16,
702,
4672,
4209,
273,
288,
296,
350,
4278,
1319,
18,
588,
67,
2692,
67,
1132,
67,
1637,
67,
350,
16,
296,
21071,
4278,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
4500,
67,
3076,
261,
18093,
16,
1319,
16,
2342,
16,
702,
4672,
4209,
273,
288,
296,
350,
4278,
1319,
18,
588,
67,
2692,
67,
1132,
67,
1637,
67,
350,
16,
296,
21071,
4278,
1... |
hide = not all(str(string) in item for string in strings) | hide = not all(str(string) in item for string in strings) | def SearchUpdate(self, searchString=None): strings = unicode(self.lineEditFilter.text()).split() #self.searchString.split() if searchString is None else unicode(searchString).split() tags = set() for item in self.updateItems: hide = not all(str(string) in item for string in strings) item.setHidden(hide) if not hide: ta... | 3c3803d841fbfc8a4daed28c254af2ff442e6165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/3c3803d841fbfc8a4daed28c254af2ff442e6165/OWDatabasesUpdate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5167,
1891,
12,
2890,
16,
1623,
780,
33,
7036,
4672,
2064,
273,
5252,
12,
2890,
18,
1369,
4666,
1586,
18,
955,
1435,
2934,
4939,
1435,
468,
2890,
18,
3072,
780,
18,
4939,
1435,
309,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5167,
1891,
12,
2890,
16,
1623,
780,
33,
7036,
4672,
2064,
273,
5252,
12,
2890,
18,
1369,
4666,
1586,
18,
955,
1435,
2934,
4939,
1435,
468,
2890,
18,
3072,
780,
18,
4939,
1435,
309,
16... |
try: | def reset(self): for stack in [self.opendeck] + self.suits + self.rows: | def deal(self): | a9b383de5cc662464dfbac36854b1d4ca07c0a0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a9b383de5cc662464dfbac36854b1d4ca07c0a0c/solitaire.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10490,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10490,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.songlist = FileCtrl(self.mode, self) self.songlist.SetFont(self.font) self.sizer.Add(self.songlist, 1, wx.EXPAND) | def __init__(self, mode, parent): wx.Panel.__init__(self, parent) self.mode = mode self.mpd = mode.mpd | 0ef70c5a19c75ffab56ceb6e4d6bab1286152640 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/0ef70c5a19c75ffab56ceb6e4d6bab1286152640/mpd_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1965,
16,
982,
4672,
7075,
18,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
3188,
273,
1965,
365,
18,
1291,
72,
273,
1965,
18,
1291,
72,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1965,
16,
982,
4672,
7075,
18,
5537,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
3188,
273,
1965,
365,
18,
1291,
72,
273,
1965,
18,
1291,
72,
2,
... | |
self._parent._contextlevel += 1 | self._parent._contextlevel = self._parent._contextlevel + 1 | def _precomment(self) : """Outputs comments before the method call.""" if self._action == "showPage" : self._parent._PyWrite("\n # Ends page %i" % self._parent._pagenumber) elif self._action == "saveState" : state = {} d = self._parent._object.__dict__ for name in self._parent._object.STATE_ATTRIBUTES: state[name] =... | bcfae691c5cbf62be20964eeadceaeb637e4c354 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/bcfae691c5cbf62be20964eeadceaeb637e4c354/pycanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1484,
3469,
12,
2890,
13,
294,
3536,
13856,
5678,
1865,
326,
707,
745,
12123,
309,
365,
6315,
1128,
422,
315,
4500,
1964,
6,
294,
365,
6315,
2938,
6315,
9413,
3067,
31458,
82,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1484,
3469,
12,
2890,
13,
294,
3536,
13856,
5678,
1865,
326,
707,
745,
12123,
309,
365,
6315,
1128,
422,
315,
4500,
1964,
6,
294,
365,
6315,
2938,
6315,
9413,
3067,
31458,
82,
565,
... |
'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)} | 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)}) return props | def properties(self): return {'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)} | 085140381ced7cf019e2654a4186cdc56dafd88d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/085140381ced7cf019e2654a4186cdc56dafd88d/ListCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1790,
12,
2890,
4672,
327,
13666,
15470,
4278,
7707,
12418,
3255,
2187,
7075,
6313,
5263,
18,
2520,
15470,
16,
7075,
6313,
5263,
18,
8317,
28029,
3631,
296,
6313,
5763,
1526,
4278,
7707,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1790,
12,
2890,
4672,
327,
13666,
15470,
4278,
7707,
12418,
3255,
2187,
7075,
6313,
5263,
18,
2520,
15470,
16,
7075,
6313,
5263,
18,
8317,
28029,
3631,
296,
6313,
5763,
1526,
4278,
7707,
1... |
- ``d`` - values for vector(default:None) | - ``d`` - values for vector(default:``None``) | def vector(self, d=None): """ Constructs a vector suitable for the algebraic representation of SR. | 361ee6a2b2c797fdc77944b615cb058df81aca2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/361ee6a2b2c797fdc77944b615cb058df81aca2e/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
14291,
87,
279,
3806,
10631,
364,
326,
524,
29087,
335,
4335,
434,
19145,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3806,
12,
2890,
16,
302,
33,
7036,
4672,
3536,
14291,
87,
279,
3806,
10631,
364,
326,
524,
29087,
335,
4335,
434,
19145,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def check_clicked(obj, it, *args, **kwargs): | def check_clicked(obj, it): | def check_clicked(obj, it, *args, **kwargs): win = elementary.Window("check", elementary.ELM_WIN_BASIC) win.title_set("Check test") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() bx = elementary.Box(win) b... | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1893,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
1564,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
1893,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
1564,
1... |
this = apply(_quickfix.new_OrderQty2, args) | this = _quickfix.new_OrderQty2(*args) | def __init__(self, *args): this = apply(_quickfix.new_OrderQty2, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2448,
53,
4098,
22,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
2448,
53,
4098,
22,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30... |
if 'badrevids' pageobjs['query']: | if 'badrevids' in pageobjs['query']: | def revid_exist(revid): for pageobjs in query_results_revids: if 'badrevids' pageobjs['query']: for id in pageobjs['query']['badrevids']: if id == int(revid): # print rv wikipedia.output('* ' + revid) return False return True | cf9377fac74c8a1a9e9298acbc5d1f7b7791f5c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/cf9377fac74c8a1a9e9298acbc5d1f7b7791f5c4/copyright_clean.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
1246,
67,
7398,
12,
266,
1246,
4672,
364,
1363,
18093,
316,
843,
67,
4717,
67,
266,
1246,
87,
30,
309,
296,
8759,
266,
1246,
87,
11,
316,
1363,
18093,
3292,
2271,
3546,
30,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
1246,
67,
7398,
12,
266,
1246,
4672,
364,
1363,
18093,
316,
843,
67,
4717,
67,
266,
1246,
87,
30,
309,
296,
8759,
266,
1246,
87,
11,
316,
1363,
18093,
3292,
2271,
3546,
30,
364,
... |
self.file=file self.path=path | self.file = file self.path = path | def __init__(self, file, path): | 7d1e18f431d98b1bf5b4e8796fd72d91be28c662 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7d1e18f431d98b1bf5b4e8796fd72d91be28c662/tempfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
16,
589,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
16,
589,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.attributes[att_name] = att_value | if att_name != "name" : self.attributes[att_name] = att_value self.save() elif self.name == att_value : self.attributes[att_name] = att_value | def set_attribute(self,att_name,att_value) : #FIXME : we have to be careful when changing the name #if att_name == "name" : self.attributes[att_name] = att_value | fd303c52e11b8582987a860b0e6def4d88137231 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/fd303c52e11b8582987a860b0e6def4d88137231/tagstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4589,
12,
2890,
16,
4558,
67,
529,
16,
4558,
67,
1132,
13,
294,
468,
25810,
294,
732,
1240,
358,
506,
26850,
1347,
12770,
326,
508,
468,
430,
2403,
67,
529,
422,
315,
529,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4589,
12,
2890,
16,
4558,
67,
529,
16,
4558,
67,
1132,
13,
294,
468,
25810,
294,
732,
1240,
358,
506,
26850,
1347,
12770,
326,
508,
468,
430,
2403,
67,
529,
422,
315,
529,
6... |
return | return def remove_task (self): if (MotionTrail.task_added): try: total_motion_trails = len (MotionTrail.motion_trail_list) except: print "ERROR: len ( ) exception 0" total_motion_trails = 0 if (total_motion_trails > 0): pass MotionTrail.motion_trail_list = [ ] taskMgr.remove (MotionTrail.motion_trail_task_name) Mot... | def __init__ (self,name,parent_node_path): | 877b7833fc9e79adec5d18287dc678a5d39e1be9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/877b7833fc9e79adec5d18287dc678a5d39e1be9/MotionTrail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
529,
16,
2938,
67,
2159,
67,
803,
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,... | [
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,
1001,
2738,
972,
261,
2890,
16,
529,
16,
2938,
67,
2159,
67,
803,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
class Global(JSClass): version = 1.0 | class Global(JSClass): version = 1.0 | def testThis(self): class Global(JSClass): version = 1.0 with JSContext(Global()) as ctxt: self.assertEquals("[object Global]", str(ctxt.eval("this"))) self.assertEquals(1.0, float(ctxt.eval("this.version"))) | 39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2503,
12,
2890,
4672,
667,
8510,
12,
6479,
797,
4672,
1177,
273,
404,
18,
20,
225,
598,
6756,
1042,
12,
5160,
10756,
487,
14286,
30,
365,
18,
11231,
8867,
2932,
63,
1612,
8510,
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,
1842,
2503,
12,
2890,
4672,
667,
8510,
12,
6479,
797,
4672,
1177,
273,
404,
18,
20,
225,
598,
6756,
1042,
12,
5160,
10756,
487,
14286,
30,
365,
18,
11231,
8867,
2932,
63,
1612,
8510,
6... |
print "Affected chunks: ", [x[0] for x in self._intersectIter] | def _evaluateHints(self, hints, pmap): """Modify self.fullSky and self.partitionCoverage according to spatial hints""" self._isFullSky = True self._intersectIter = pmap self._dbContext = "LSST" ## FIXME. should be configurable if hints: regions = self._parseRegions(hints) self._dbContext = hints.get("db", "") ids = hin... | b811c5644f86b2de12ff9d73b8328b616b8f609b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6510/b811c5644f86b2de12ff9d73b8328b616b8f609b/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21024,
13368,
12,
2890,
16,
13442,
16,
293,
1458,
4672,
3536,
11047,
365,
18,
2854,
5925,
93,
471,
365,
18,
10534,
9739,
4888,
358,
15010,
13442,
8395,
365,
6315,
291,
5080,
5925,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21024,
13368,
12,
2890,
16,
13442,
16,
293,
1458,
4672,
3536,
11047,
365,
18,
2854,
5925,
93,
471,
365,
18,
10534,
9739,
4888,
358,
15010,
13442,
8395,
365,
6315,
291,
5080,
5925,
9... | |
def _reduce_using_macaulay2(self, f): I = self._macaulay2_() M2 = I.parent() R = self.ring() g = M2(R(f)) try: k = M2('%s %% %s'%(g.name(), I.name())) except TypeError: return f return R(k) | def _reduce_using_macaulay2(self, f): I = self._macaulay2_() M2 = I.parent() R = self.ring() g = M2(R(f)) try: k = M2('%s %% %s'%(g.name(), I.name())) except TypeError: # This is OK, since f is in the right ring -- type error # just means it's in base ring (e.g., a constant) return f return R(k) | d9b89cde10f33aa64137b02a14d486a44b79244a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/d9b89cde10f33aa64137b02a14d486a44b79244a/multi_polynomial_ideal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12498,
67,
9940,
67,
5821,
69,
332,
528,
22,
12,
2890,
16,
284,
4672,
467,
273,
365,
6315,
5821,
69,
332,
528,
22,
67,
1435,
490,
22,
273,
467,
18,
2938,
1435,
534,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12498,
67,
9940,
67,
5821,
69,
332,
528,
22,
12,
2890,
16,
284,
4672,
467,
273,
365,
6315,
5821,
69,
332,
528,
22,
67,
1435,
490,
22,
273,
467,
18,
2938,
1435,
534,
273,
365,
... | |
for item in self: if item.nodeType == Node.TEXT_NODE: output.append(item) elif getattr(item, 'unicode', None) is not None: output.append(item.unicode) else: output.append(item.textContent) | if getattr(self, 'unicode', None) is not None: output.append(self.unicode) else: for item in self: if item.nodeType == Node.TEXT_NODE: output.append(item) elif getattr(item, 'unicode', None) is not None: output.append(item.unicode) else: output.append(item.textContent) | def textContent(self): """ Get the text content of the current node """ output = [] for item in self: if item.nodeType == Node.TEXT_NODE: output.append(item) elif getattr(item, 'unicode', None) is not None: output.append(item.unicode) else: output.append(item.textContent) if self.ownerDocument is not None: return self.... | 9fb1a90e6fa5d6f5d556dea0307318f30da542c6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/9fb1a90e6fa5d6f5d556dea0307318f30da542c6/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16655,
12,
2890,
4672,
3536,
968,
326,
977,
913,
434,
326,
783,
756,
3536,
876,
273,
5378,
309,
3869,
12,
2890,
16,
296,
9124,
2187,
599,
13,
353,
486,
599,
30,
876,
18,
6923,
12,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16655,
12,
2890,
4672,
3536,
968,
326,
977,
913,
434,
326,
783,
756,
3536,
876,
273,
5378,
309,
3869,
12,
2890,
16,
296,
9124,
2187,
599,
13,
353,
486,
599,
30,
876,
18,
6923,
12,
28... |
self.it = d.values() | self.it = iter(d.values()) | def setUp(self): d = dict.fromkeys(xrange(n)) self.it = d.values() self.mutate = d.popitem | a7b055414000208a24e5250130f58d1786dcbd23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/a7b055414000208a24e5250130f58d1786dcbd23/test_iterlen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
302,
273,
2065,
18,
2080,
2452,
12,
92,
3676,
12,
82,
3719,
365,
18,
305,
273,
1400,
12,
72,
18,
2372,
10756,
365,
18,
10735,
340,
273,
302,
18,
5120,
1726,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
302,
273,
2065,
18,
2080,
2452,
12,
92,
3676,
12,
82,
3719,
365,
18,
305,
273,
1400,
12,
72,
18,
2372,
10756,
365,
18,
10735,
340,
273,
302,
18,
5120,
1726,
2,... |
L.append(self.serverPort.stopListening()) | L.append(defer.maybeDeferred(self.serverPort.stopListening)) | def tearDown(self): L = [] for conn in self.cli, self.svr: if conn.transport is not None: # depend on amp's function connection-dropping behavior ccl = conn.connectionLost d = defer.Deferred().addBoth(ccl) conn.connectionLost = d.callback conn.transport.loseConnection() L.append(d) if self.serverPort is not None: L.app... | 07cccc7ccff4206e949cb668b89cf9edc620f7a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/07cccc7ccff4206e949cb668b89cf9edc620f7a5/test_amp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
2091,
4164,
12,
2890,
4672,
511,
273,
5378,
364,
1487,
316,
365,
18,
4857,
16,
365,
18,
5751,
86,
30,
309,
1487,
18,
13049,
353,
486,
599,
30,
468,
2447,
603,
16946,
1807,
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,
268,
2091,
4164,
12,
2890,
4672,
511,
273,
5378,
364,
1487,
316,
365,
18,
4857,
16,
365,
18,
5751,
86,
30,
309,
1487,
18,
13049,
353,
486,
599,
30,
468,
2447,
603,
16946,
1807,
445,
... |
def _post(self, builder, env, envname): for d in self.depends: d._post(builder, env, envname) | def _post(self, builder, env, envname, blacklist): for d in self.depends: if d not in blacklist: d._post(builder, env, envname, blacklist) | def _post(self, builder, env, envname): for d in self.depends: d._post(builder, env, envname) options = coptions() task = self.gentask(builder, env, envname, 'cprogram', options, coptions()) task.subsystem = 'console' task.do_install = 0 task.features.append("unittest") | bb9405bd0d9f5558082aacf11e1b5e9479adec61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7302/bb9405bd0d9f5558082aacf11e1b5e9479adec61/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2767,
12,
2890,
16,
2089,
16,
1550,
16,
1550,
529,
16,
11709,
4672,
364,
302,
316,
365,
18,
27360,
30,
309,
302,
486,
316,
11709,
30,
302,
6315,
2767,
12,
9574,
16,
1550,
16,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2767,
12,
2890,
16,
2089,
16,
1550,
16,
1550,
529,
16,
11709,
4672,
364,
302,
316,
365,
18,
27360,
30,
309,
302,
486,
316,
11709,
30,
302,
6315,
2767,
12,
9574,
16,
1550,
16,
15... |
'cmap':"""The colormap, one of (autumn, bone, cool, copper, gray, hot, hsv, jet, pink, prism, spring, summer, winter)""", | 'cmap':"A colormap (type cmap_help() for more information).", | def _allowed_options(self): """ TESTS: sage: isinstance(density_plot(x, (-2,3), (1,10))[0]._allowed_options(), dict) True """ return {'plot_points':'How many points to use for plotting precision', 'cmap':"""The colormap, one of (autumn, bone, cool, copper, gray, hot, hsv, jet, pink, prism, spring, summer, winter)""", '... | ca0cc0328ad7b2a71634812b30e5e2ae32c80aae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/ca0cc0328ad7b2a71634812b30e5e2ae32c80aae/density_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8151,
67,
2116,
12,
2890,
4672,
3536,
22130,
55,
30,
272,
410,
30,
1549,
12,
18781,
67,
4032,
12,
92,
16,
24927,
22,
16,
23,
3631,
261,
21,
16,
2163,
3719,
63,
20,
65,
6315,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8151,
67,
2116,
12,
2890,
4672,
3536,
22130,
55,
30,
272,
410,
30,
1549,
12,
18781,
67,
4032,
12,
92,
16,
24927,
22,
16,
23,
3631,
261,
21,
16,
2163,
3719,
63,
20,
65,
6315,
8... |
self.queryset = kwargs.pop('queryset') | try: self.queryset = kwargs.pop('queryset') except KeyError: self.queryset = kwargs.pop('model').objects.all() | def __init__(self, *args, **kwargs): self.queryset = kwargs.pop('queryset') self.label_field = kwargs.pop('label_field') | c02ce50f4c6755b9fda2a4627103369912a2135c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/c02ce50f4c6755b9fda2a4627103369912a2135c/multilingual_forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
365,
18,
21729,
273,
1205,
18,
5120,
2668,
21729,
6134,
1335,
4999,
30,
365,
18,
21729,
273,
1205,
18,
5120,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
775,
30,
365,
18,
21729,
273,
1205,
18,
5120,
2668,
21729,
6134,
1335,
4999,
30,
365,
18,
21729,
273,
1205,
18,
5120,
26... |
sage: E6 = WeylCharacterRing("E6", style="coroots") | sage: E6 = WeylCharacterRing("E6", style="coroots") | def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will... | 6242c71e9458efbf328be967e795e57a7ca2740b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6242c71e9458efbf328be967e795e57a7ca2740b/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... |
self.res.error_result_count += 1 | if req.find("/suggest?") == 0: self.res.error_suggest_result_count += 1 if req.find("/cluster?") == 0: self.res.error_cluster_result_count += 1 else: self.res.error_search_result_count += 1 | def FetchContent(self, host, port, q, parameters): start_time = time.ctime(time.time()) test_requests = [] #For each queries we get from the queue, making one suggest query and one clustering req: if q.find("/search?") == 0 and q.find("coutput=json") != 0: test_requests.append(q) else: test_requests.append("/search?q=%... | 786420d3e794bd6ec1356ae7b9b796ca05e967d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6393/786420d3e794bd6ec1356ae7b9b796ca05e967d6/load.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8065,
1350,
12,
2890,
16,
1479,
16,
1756,
16,
1043,
16,
1472,
4672,
787,
67,
957,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
1842,
67,
11420,
273,
5378,
468,
1290,
1517,
6218,
732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8065,
1350,
12,
2890,
16,
1479,
16,
1756,
16,
1043,
16,
1472,
4672,
787,
67,
957,
273,
813,
18,
21261,
12,
957,
18,
957,
10756,
1842,
67,
11420,
273,
5378,
468,
1290,
1517,
6218,
732,
... |
cmd = cmd + '-sOutputFile=%s ' % (self.outfile,) | cmd = cmd + '-sOutputFile=\'%s\' ' % (self.outfile,) | def process(self): bandsize = 30000000 if (self.band): bandsize = 10000 cmd = self.command cmd = cmd + ' -dQUIET -dNOPAUSE -dBATCH -K1000000 ' if self.dpi: cmd = cmd + '-r%d ' % (self.dpi,) cmd = cmd + '-dMaxBitmap=%d ' % (bandsize,) cmd = cmd + '-sDEVICE=%s ' % (self.device,) cmd = cmd + '-sOutputFile=%s ' % (self.ou... | c75ea7a3daf60e4945708eb1720722912cc0fb8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1296/c75ea7a3daf60e4945708eb1720722912cc0fb8a/gstestgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
8937,
1467,
273,
890,
17877,
309,
261,
2890,
18,
12752,
4672,
8937,
1467,
273,
12619,
225,
1797,
273,
365,
18,
3076,
1797,
273,
1797,
397,
296,
300,
72,
8627,
1584,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
8937,
1467,
273,
890,
17877,
309,
261,
2890,
18,
12752,
4672,
8937,
1467,
273,
12619,
225,
1797,
273,
365,
18,
3076,
1797,
273,
1797,
397,
296,
300,
72,
8627,
1584,... |
self.output_file_name = job.outputPath + sngl.ifo + "-INSPIRAL_" + self.__ifotag + "_" + self.__usertag + "-" + self.__start + "-" + str(int(self.__end)-int(self.__start)) + extension self.outputCache = sngl.ifo + ' ' + 'INSPIRAL' + ' ' + str(self.__start) + ' ' + str(int(self.__end)-int(self.__start)) + ' ' + self.out... | self.output_file_name = job.outputPath + sngl.ifo + "-INSPIRAL_" + self.__ifotag + "_" + self.__usertag + "-" + self.__start + "-" + str(int(self.__end)-int(self.__start)) + extension self.outputCache = sngl.ifo + ' ' + 'INSPIRAL' + ' ' + str(self.__start) + ' ' + str(int(self.__end)-int(self.__start)) + ' ' + self.out... | def __init__(self, dag, job, cp, opts, sngl, frame_cache, tag, p_nodes=[]): | a2bbfd42c8ab7fadc011df769e183127e596cd3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/a2bbfd42c8ab7fadc011df769e183127e596cd3e/stfu_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
272,
3368,
80,
16,
2623,
67,
2493,
16,
1047,
16,
293,
67,
4690,
33,
8526,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
22940,
16,
1719,
16,
3283,
16,
1500,
16,
272,
3368,
80,
16,
2623,
67,
2493,
16,
1047,
16,
293,
67,
4690,
33,
8526,
4672,
2,
-100,
-100,
-100,
-100,
-10... |
self.body.append(self.context.pop()) | pass | def depart_target(self, node): self.body.append(self.context.pop()) | f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/f1c936c7b824a9c68698c2d6eb95c28f15eb4fbe/python_latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
3299,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
2472,
18,
5120,
10756,
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,
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,
26000,
67,
3299,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
2472,
18,
5120,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.gvoice_backend.set_dnd(False) | self.session.backend.set_dnd(False) | def SetPresence(self, status, message): if message: raise telepathy.errors.InvalidArgument("Messages aren't supported") | 921437b90fb31fa0080ac3a706624ef66ccea7ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13096/921437b90fb31fa0080ac3a706624ef66ccea7ae/simple_presence.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
22590,
12,
2890,
16,
1267,
16,
883,
4672,
309,
883,
30,
1002,
268,
6516,
803,
93,
18,
4324,
18,
1941,
1379,
2932,
5058,
11526,
1404,
3260,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
22590,
12,
2890,
16,
1267,
16,
883,
4672,
309,
883,
30,
1002,
268,
6516,
803,
93,
18,
4324,
18,
1941,
1379,
2932,
5058,
11526,
1404,
3260,
7923,
2,
-100,
-100,
-100,
-100,
-100,
... |
if (tokenType == VAR || tokenType == CONST) { | if (tokenType == VAR or tokenType == CONST) { | def Statement(tokenizer, compilerContext) { var i, label, node, childNode, ss, tokenType = tokenizer.get(True) var builder = compilerContext.builder | 58afad4d3cade0a037f53f0a04cb23589df417b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/58afad4d3cade0a037f53f0a04cb23589df417b1/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8056,
12,
2316,
1824,
16,
5274,
1042,
13,
288,
569,
277,
16,
1433,
16,
756,
16,
9465,
16,
5202,
16,
22302,
273,
10123,
18,
588,
12,
5510,
13,
569,
2089,
273,
5274,
1042,
18,
9574,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8056,
12,
2316,
1824,
16,
5274,
1042,
13,
288,
569,
277,
16,
1433,
16,
756,
16,
9465,
16,
5202,
16,
22302,
273,
10123,
18,
588,
12,
5510,
13,
569,
2089,
273,
5274,
1042,
18,
9574,
2,... |
if m.t == 0: | if m.t == False: | def CalculateStats(self): self.Reset() for msg in msginfoDB.db.keys(): self.total += 1 m = self.__empty_msg() m.id = msg msginfoDB._getState(m) if m.c == 's': self.cls_spam += 1 if m.t == 0: self.fp += 1 elif m.c == 'h': self.cls_ham += 1 if m.t == 1: self.fn += 1 elif m.c == 'u': self.cls_unsure += 1 if m.t == 0: self... | ee88fef1c19f439d1e5a902d82f249855d24a552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ee88fef1c19f439d1e5a902d82f249855d24a552/Stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
4195,
12,
2890,
4672,
365,
18,
7013,
1435,
364,
1234,
316,
1234,
1376,
2290,
18,
1966,
18,
2452,
13332,
365,
18,
4963,
1011,
404,
312,
273,
365,
16186,
5531,
67,
3576,
1435,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
4195,
12,
2890,
4672,
365,
18,
7013,
1435,
364,
1234,
316,
1234,
1376,
2290,
18,
1966,
18,
2452,
13332,
365,
18,
4963,
1011,
404,
312,
273,
365,
16186,
5531,
67,
3576,
1435,
312,
... |
tss_supported = 1 try: thread.stack_size(4096) except ValueError: print 'caught expected ValueError setting stack_size(4096)' except thread.error: tss_supported = 0 print 'platform does not support changing thread stack size' | def test_main(): test_support.run_unittest(ThreadRunningTests, BarrierTest) | def task2(ident): global running for i in range(numtrips): if ident == 0: # give it a good chance to enter the next # barrier before the others are all out # of the current one delay = 0.001 else: rmutex.acquire() delay = random.random() * numtasks rmutex.release() if verbose: print 'task', ident, 'will run for', round... | 12c238c50046dc378380207f15830cf4af619e32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/12c238c50046dc378380207f15830cf4af619e32/test_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
22,
12,
6392,
4672,
2552,
3549,
364,
277,
316,
1048,
12,
2107,
313,
7146,
4672,
309,
3390,
422,
374,
30,
468,
8492,
518,
279,
7494,
17920,
358,
6103,
326,
1024,
468,
24651,
1865,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1562,
22,
12,
6392,
4672,
2552,
3549,
364,
277,
316,
1048,
12,
2107,
313,
7146,
4672,
309,
3390,
422,
374,
30,
468,
8492,
518,
279,
7494,
17920,
358,
6103,
326,
1024,
468,
24651,
1865,
... |
self._icon_cache[(icon_name,add_bullet,add_padlock,icon_size)] = icon | self._icon_cache[cache_id] = icon | def _get_tree_icon(self, icon_name, add_bullet=False, \ add_padlock=False, add_missing=False, icon_size=32): """ Loads an icon from the current icon theme at the specified size, suitable for display in a gtk.TreeView. Additional emblems can be added on top of the icon. """ | 0d27b2d3628e90f119c1b3beec8ca8b67f3c737a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/0d27b2d3628e90f119c1b3beec8ca8b67f3c737a/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3413,
67,
3950,
12,
2890,
16,
4126,
67,
529,
16,
527,
67,
70,
19994,
33,
8381,
16,
521,
527,
67,
6982,
739,
33,
8381,
16,
527,
67,
7337,
33,
8381,
16,
4126,
67,
1467,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
3413,
67,
3950,
12,
2890,
16,
4126,
67,
529,
16,
527,
67,
70,
19994,
33,
8381,
16,
521,
527,
67,
6982,
739,
33,
8381,
16,
527,
67,
7337,
33,
8381,
16,
4126,
67,
1467,... |
to_update = self.product_id_change_unit_price_inv(cr, uid, tax_id, price_unit, qty, address_invoice_id, product, partner_id, context=context) | to_update = self.product_id_change_unit_price_inv(cr, uid, tax_id, price_unit or res.standard_price, qty, address_invoice_id, product, partner_id, context=context) | def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, context=None): if context is None: context = {} if not partner_id: raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partn... | f14e638fa6cb7fc8fdb65419b757b4d1f1ef69d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f14e638fa6cb7fc8fdb65419b757b4d1f1ef69d4/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
16,
582,
362,
16,
26667,
33,
20,
16,
508,
2218,
2187,
618,
2218,
659,
67,
16119,
2187,
19170,
67,
350,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3017,
67,
350,
67,
3427,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
16,
582,
362,
16,
26667,
33,
20,
16,
508,
2218,
2187,
618,
2218,
659,
67,
16119,
2187,
19170,
67,
350,
33,
... |
if ret > 0: | if ret > 0: | def _update(self, pkg): key = pkg["name"] | d7906f54f6373f535e1c3d6164c3cf9977435487 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/d7906f54f6373f535e1c3d6164c3cf9977435487/rpmlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
2890,
16,
3475,
4672,
498,
273,
3475,
9614,
529,
11929,
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,
389,
2725,
12,
2890,
16,
3475,
4672,
498,
273,
3475,
9614,
529,
11929,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
to_char(create_date, 'MM'), create_uid | to_char(create_date, 'MM') | def init(self, cr): tools.sql.drop_view_if_exists(cr, 'purchase_order_qty_amount') cr.execute(""" create or replace view purchase_order_qty_amount as ( select min(id) as id, to_char(create_date, 'MM') as month, sum(product_qty) as total_qty, create_uid as user_id, sum(price_unit*product_qty) as total_amount from purcha... | 9da45d3b15595e5a0b0fa6b9a76f8c8f7c0b8e1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9da45d3b15595e5a0b0fa6b9a76f8c8f7c0b8e1f/purchase_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
8513,
18,
4669,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
12688,
12104,
67,
1019,
67,
85,
4098,
67,
8949,
6134,
4422,
18,
8837,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4669,
18,
7285,
67,
1945,
67,
430,
67,
1808,
12,
3353,
16,
296,
12688,
12104,
67,
1019,
67,
85,
4098,
67,
8949,
6134,
4422,
18,
8837,
2932,
... |
def texte(self, idpt, xt, yt): | def text(self, idpt, xt, yt): | def texte(self, idpt, xt, yt): """Setting text beside the point number idpt locate as xt, yt""" labell = self.ROOT.add(gnomecanvas.CanvasText, x=xt, y=yt, fill_color="black", size_points=14, text=str(idpt)) # ,font=gcompris.FONT_TITLE) return labell | add6014f0f76d3198c034d78c36e9c527439f16d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11306/add6014f0f76d3198c034d78c36e9c527439f16d/drawnumber.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
12,
2890,
16,
612,
337,
16,
26508,
16,
677,
88,
4672,
3536,
5568,
977,
324,
281,
831,
326,
1634,
1300,
612,
337,
10627,
487,
26508,
16,
677,
88,
8395,
1433,
80,
273,
365,
18,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
12,
2890,
16,
612,
337,
16,
26508,
16,
677,
88,
4672,
3536,
5568,
977,
324,
281,
831,
326,
1634,
1300,
612,
337,
10627,
487,
26508,
16,
677,
88,
8395,
1433,
80,
273,
365,
18,
91... |
familly = socket.AF_INET6 | try: socket.getaddrinfo(self.host, int(self.port), socket.AF_INET6) familly = socket.AF_INET6 except: pass | def reconnect(self): if self.host and self.port: self.disconnect() familly = socket.AF_INET if socket.has_ipv6: familly = socket.AF_INET6 self.sock = socket.socket( familly, socket.SOCK_STREAM) self.sock.settimeout(120) self.sock.connect((self.host, int(self.port))) | bf076926acb430795817326b10f769565e821d61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/bf076926acb430795817326b10f769565e821d61/pysocket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11812,
12,
2890,
4672,
309,
365,
18,
2564,
471,
365,
18,
655,
30,
365,
18,
20177,
1435,
284,
11580,
715,
273,
2987,
18,
6799,
67,
18819,
309,
2987,
18,
5332,
67,
10834,
26,
30,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11812,
12,
2890,
4672,
309,
365,
18,
2564,
471,
365,
18,
655,
30,
365,
18,
20177,
1435,
284,
11580,
715,
273,
2987,
18,
6799,
67,
18819,
309,
2987,
18,
5332,
67,
10834,
26,
30,
775,
... |
result = result + '<p>%s\n' % self.small(doc) | result = result + '<p>%s</p>\n' % self.small(doc) | def docmodule(self, object, name=None): """Produce HTML documentation for a module object.""" name = object.__name__ # ignore the passed-in name parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), parts[i])) l... | d277191d2615210017a38a1b35f2b78e2ea29698 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d277191d2615210017a38a1b35f2b78e2ea29698/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
16,
508,
33,
7036,
4672,
3536,
25884,
3982,
7323,
364,
279,
1605,
733,
12123,
508,
273,
733,
16186,
529,
972,
468,
2305,
326,
2275,
17,
267,
508,
2140,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
16,
508,
33,
7036,
4672,
3536,
25884,
3982,
7323,
364,
279,
1605,
733,
12123,
508,
273,
733,
16186,
529,
972,
468,
2305,
326,
2275,
17,
267,
508,
2140,
27... |
def get_number_of_bands(self): return self.nbands | def get_dipole_moment(self, atoms): """Returns total dipole moment of the system.""" self.update(atoms) return self.dipole | b4c5368a4f2b6898adfb3c7e8f73b4fc76ef21ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/b4c5368a4f2b6898adfb3c7e8f73b4fc76ef21ac/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24953,
790,
67,
22027,
12,
2890,
16,
9006,
4672,
3536,
1356,
2078,
24408,
790,
10382,
434,
326,
2619,
12123,
365,
18,
2725,
12,
14937,
13,
327,
365,
18,
24953,
790,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24953,
790,
67,
22027,
12,
2890,
16,
9006,
4672,
3536,
1356,
2078,
24408,
790,
10382,
434,
326,
2619,
12123,
365,
18,
2725,
12,
14937,
13,
327,
365,
18,
24953,
790,
2,
-100,
-... | |
str += I+'<TH CLASS="navbar"> '+\ '<A CLASS="navbar" HREF="'+`pkg`+'.html">'+\ 'Package</A> </TH>\n' | str += I+'<th class="navbar"> ' str += '<a class="navbar" href="'+`pkg`+'.html">' str += 'Package</a> </th>\n' | def _navbar(self, where, uid=None): """ @param where: What page the navbar is being displayed on.. """ str = self._start_of('Navbar') str += '<TABLE CLASS="navbar" BORDER="0" WIDTH="100%"' str += ' CELLPADDING="0" BGCOLOR="#a0c0ff" CELLSPACING="0">\n' str += ' <TR>\n' str += ' <TD WIDTH="100%">\n' str += ' <TA... | 89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/89bd16eaf8c7e556babe42c6a92621dbc9b8a7e9/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
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,
389,
11589,
3215,
12,
2890,
16,
1625,
16,
4555,
33,
7036,
4672,
3536,
632,
891,
1625,
30,
18734,
1363,
326,
8775,
3215,
353,
3832,
10453,
603,
838,
3536,
609,
273,
365,
6315,
1937,
67,
... |
changeset_children = 'None' | changeset_children = [] | def view_changeset(request, slug, repo_name, changeset='tip'): repo = Repo.objects.get(name_short__exact=repo_name) project = Project.objects.get(name_short__exact=slug) try: changeset_children = repo.get_next_changeset(changeset) except: changeset_children = 'None' try: changeset_parents = repo.get_previous_changese... | e8ca99a0778d33e1af49412d7f81a6e76963f1c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14843/e8ca99a0778d33e1af49412d7f81a6e76963f1c0/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
6329,
278,
12,
2293,
16,
4959,
16,
3538,
67,
529,
16,
22463,
2218,
14587,
11,
4672,
3538,
273,
15118,
18,
6911,
18,
588,
12,
529,
67,
6620,
972,
17165,
33,
7422,
67,
529,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1476,
67,
6329,
278,
12,
2293,
16,
4959,
16,
3538,
67,
529,
16,
22463,
2218,
14587,
11,
4672,
3538,
273,
15118,
18,
6911,
18,
588,
12,
529,
67,
6620,
972,
17165,
33,
7422,
67,
529,
1... |
msg = fix_plurals(msg) | msg = fix_plurals(msg) | def attach_to( self, singlet, autobond = True, autobond_msg = True): # in AtomTypeDepositionTool # [bruce 050831 added autobond option; 050901 added autobond_msg] """[public method] Deposit a new atom of self.atomtype onto the given singlet, and (if autobond is true) make other bonds (to other near-enough atoms with si... | edf6b2782303055231d7e5a4feaf2db93a9bb6a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/edf6b2782303055231d7e5a4feaf2db93a9bb6a0/build_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3306,
67,
869,
12,
365,
16,
4864,
1810,
16,
2059,
947,
1434,
273,
1053,
16,
2059,
947,
1434,
67,
3576,
273,
1053,
4672,
468,
316,
7149,
559,
758,
3276,
6364,
468,
306,
2848,
3965,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3306,
67,
869,
12,
365,
16,
4864,
1810,
16,
2059,
947,
1434,
273,
1053,
16,
2059,
947,
1434,
67,
3576,
273,
1053,
4672,
468,
316,
7149,
559,
758,
3276,
6364,
468,
306,
2848,
3965,
374,... |
def create_patch_command(self): return "git diff HEAD" | def create_patch(self): return self.run_command("git diff HEAD") | def create_patch_command(self): return "git diff HEAD" | 8752a0b9d6a2d51fd0f2e295c0f7cab5fd04df7d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/8752a0b9d6a2d51fd0f2e295c0f7cab5fd04df7d/scm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
2272,
67,
3076,
12,
2890,
4672,
327,
315,
6845,
3122,
14792,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
752,
67,
2272,
67,
3076,
12,
2890,
4672,
327,
315,
6845,
3122,
14792,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
tmp = numpy.fromiter((g[1] for g in group), int_) | tmp = numpy.array([g[1] for g in group], int_) | def flatnotmasked_contiguous(a): """Find contiguous unmasked data in a flattened masked array. Return a sorted sequence of slices (start index, end index). """ m = getmask(a) if m is nomask: return (a.size, [0,-1]) unmasked = numeric.flatnonzero(~m) if len(unmasked) == 0: return None result = [] for k, group in group... | d1eeb416dc067c0dda65a2904c8942ee2a20b381 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/d1eeb416dc067c0dda65a2904c8942ee2a20b381/extras.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3569,
902,
23455,
67,
30611,
12,
69,
4672,
3536,
3125,
26928,
640,
23455,
501,
316,
279,
14171,
13196,
526,
18,
225,
2000,
279,
3115,
3102,
434,
12390,
261,
1937,
770,
16,
679,
770,
2934... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3569,
902,
23455,
67,
30611,
12,
69,
4672,
3536,
3125,
26928,
640,
23455,
501,
316,
279,
14171,
13196,
526,
18,
225,
2000,
279,
3115,
3102,
434,
12390,
261,
1937,
770,
16,
679,
770,
2934... |
assert len(m) == 512, "len(m) is %d, but expecting 512" % (len(m),) try: m.seek(513,0) except ValueError: pass else: assert 0, 'Could seek beyond the new size' | assert len(m) == 512, "len(m) is %d, but expecting 512" % (len(m),) try: m.seek(513,0) except ValueError: pass else: assert 0, 'Could seek beyond the new size' | def test_both(): "Test mmap module on Unix systems and Windows" # Create an mmap'ed file f = open('foo', 'w+') # Write 2 pages worth of data to the file f.write('\0'* PAGESIZE) f.write('foo') f.write('\0'* (PAGESIZE-3) ) m = mmap.mmap(f.fileno(), 2 * PAGESIZE) f.close() # Simple sanity checks print ' Position of f... | 8be66a222d1ac8ac8663acbec91e891d85044467 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8be66a222d1ac8ac8663acbec91e891d85044467/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18237,
13332,
315,
4709,
30749,
1605,
603,
9480,
14908,
471,
8202,
6,
225,
468,
1788,
392,
30749,
11,
329,
585,
284,
273,
1696,
2668,
11351,
2187,
296,
91,
15,
6134,
225,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18237,
13332,
315,
4709,
30749,
1605,
603,
9480,
14908,
471,
8202,
6,
225,
468,
1788,
392,
30749,
11,
329,
585,
284,
273,
1696,
2668,
11351,
2187,
296,
91,
15,
6134,
225,
468,
... |
self.uriDictMap[name] = itemId | wxWindow.uriDictMap[name] = itemId | def __UpdateURLTree(self, sideBarURLTree, appURLTree, parent, wasEmpty): """ Synchronizes the sidebar's URLTree with the application's URLTree. The sidebar only stores a dict mapping visible items in the sidebar to their instances in the application. """ wxWindow = app.association[id(self)] for item in appURLTree: ins... | b7ad789081f8cbbd91fe44c53bc1d1f2fbd86294 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b7ad789081f8cbbd91fe44c53bc1d1f2fbd86294/SideBar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1891,
1785,
2471,
12,
2890,
16,
4889,
5190,
1785,
2471,
16,
595,
1785,
2471,
16,
982,
16,
1703,
1921,
4672,
3536,
26535,
3128,
326,
23364,
1807,
1976,
2471,
598,
326,
2521,
1807,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1891,
1785,
2471,
12,
2890,
16,
4889,
5190,
1785,
2471,
16,
595,
1785,
2471,
16,
982,
16,
1703,
1921,
4672,
3536,
26535,
3128,
326,
23364,
1807,
1976,
2471,
598,
326,
2521,
1807,
1... |
path = path + tail | path += tail | def expandvars(path): """Expand shell variables of form $var and ${var}. Unknown variables are left unchanged.""" global _varprog if '$' not in path: return path if not _varprog: import re _varprog = re.compile(r'\$(\w+|\{[^}]*\})') i = 0 while True: m = _varprog.search(path, i) if not m: break i, j = m.span(0) name =... | c95a55943ea1c83ad71e85b7a460d2a68ebd2eee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c95a55943ea1c83ad71e85b7a460d2a68ebd2eee/posixpath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
4699,
12,
803,
4672,
3536,
12271,
5972,
3152,
434,
646,
271,
1401,
471,
3531,
1401,
5496,
225,
9077,
3152,
854,
2002,
14827,
12123,
2552,
389,
1401,
14654,
309,
11874,
486,
316,
589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
4699,
12,
803,
4672,
3536,
12271,
5972,
3152,
434,
646,
271,
1401,
471,
3531,
1401,
5496,
225,
9077,
3152,
854,
2002,
14827,
12123,
2552,
389,
1401,
14654,
309,
11874,
486,
316,
589,... |
def open_folder(*e): | def open_folder(e=None): | def open_folder(*e): global folder, mhf sel = folderbox.curselection() if len(sel) != 1: if len(sel) > 1: msg = "Please open one folder at a time" else: msg = "Please select a folder to open" dialog(root, "Can't Open Folder", msg, "", 0, "OK") return i = sel[0] folder = folderbox.get(i) mhf = mh.openfolder(folder) resc... | 78b0c82535af09fde940d1b040f9da72c20f7c70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/78b0c82535af09fde940d1b040f9da72c20f7c70/mbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
5609,
12,
73,
33,
7036,
4672,
2552,
3009,
16,
17819,
74,
357,
273,
3009,
2147,
18,
1397,
10705,
1435,
309,
562,
12,
1786,
13,
480,
404,
30,
309,
562,
12,
1786,
13,
405,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
5609,
12,
73,
33,
7036,
4672,
2552,
3009,
16,
17819,
74,
357,
273,
3009,
2147,
18,
1397,
10705,
1435,
309,
562,
12,
1786,
13,
480,
404,
30,
309,
562,
12,
1786,
13,
405,
404... |
r = threading.Thread(target=reader) r.setDaemon(1) r.start() | def usage(): print >>sys.stderr, """USAGE: %s [options] Simple Terminal Programm for the serial port. options: -p, --port=PORT: serial port, a number, defualt = 0 or a device name -b, --baud=BAUD: baudrate, default 9600 -r, --rtscts: enable RTS/CTS flow control (default off) -x, --xonxoff: enable software flow co... | d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10955/d1bc025a5ffd45b7cb45bdc2b2b0210119acfd93/tcp_serial_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1671,
9499,
18,
11241,
16,
3536,
29550,
30,
738,
87,
306,
2116,
65,
4477,
18778,
13586,
81,
364,
326,
2734,
1756,
18,
225,
702,
30,
300,
84,
16,
1493,
655,
33,
6354,... | |
sage: print genus(T1, T2) | sage: genus(T1, T2) | def genus(T1, T2): """ Returns the genus of hypermap embedding associated with the bitrade (T1, T2). Informally, we compute the [tau_1, tau_2, tau_3] permutation representation of the bitrade. Each cycle of tau_1, tau_2, and tau_3 gives a rotation scheme for a black, white, and star vertex (respectively). The genus the... | 79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
407,
12,
56,
21,
16,
399,
22,
4672,
3536,
2860,
326,
3157,
407,
434,
9512,
1458,
15853,
3627,
598,
326,
2831,
354,
323,
261,
56,
21,
16,
399,
22,
2934,
657,
687,
1230,
16,
732,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
407,
12,
56,
21,
16,
399,
22,
4672,
3536,
2860,
326,
3157,
407,
434,
9512,
1458,
15853,
3627,
598,
326,
2831,
354,
323,
261,
56,
21,
16,
399,
22,
2934,
657,
687,
1230,
16,
732,... |
return apply(func, args) | return apply(func, args, kw) | def runcall(self, func, *args): self.set_cmd(`func`) sys.setprofile(self.dispatcher) try: return apply(func, args) finally: sys.setprofile(None) | bc75e8f6af740f0d3b26d6eeaa9a4428ce268142 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bc75e8f6af740f0d3b26d6eeaa9a4428ce268142/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
551,
454,
12,
2890,
16,
1326,
16,
380,
1968,
4672,
365,
18,
542,
67,
4172,
12,
68,
644,
24065,
2589,
18,
542,
5040,
12,
2890,
18,
18495,
13,
775,
30,
327,
2230,
12,
644,
16,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
551,
454,
12,
2890,
16,
1326,
16,
380,
1968,
4672,
365,
18,
542,
67,
4172,
12,
68,
644,
24065,
2589,
18,
542,
5040,
12,
2890,
18,
18495,
13,
775,
30,
327,
2230,
12,
644,
16,
8... |
VONameNodes[0].firstChild.data = vo_info['VONAme'] | VONameNodes[0].firstChild.data = vo_info['VOName'] | def CheckAndExtendUserIdentity(xmlDoc, userIdentityNode, namespace, prefix): "Check the contents of the UserIdentity block and extend if necessary" # LocalUserId LocalUserIdNodes = userIdentityNode.getElementsByTagNameNS(namespace, 'LocalUserId') if len(LocalUserIdNodes) != 1 or not \ (LocalUserIdNodes[0].firstChild a... | dec27a700804e899217a6e621f0e3aa12d8e1798 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/dec27a700804e899217a6e621f0e3aa12d8e1798/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
1876,
16675,
1299,
4334,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
1564,
326,
2939,
434,
326,
2177,
4334,
1203,
471,
2133,
309,
4573,
6,
225,
468,
3566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
1876,
16675,
1299,
4334,
12,
2902,
1759,
16,
729,
4334,
907,
16,
1981,
16,
1633,
4672,
315,
1564,
326,
2939,
434,
326,
2177,
4334,
1203,
471,
2133,
309,
4573,
6,
225,
468,
3566,
... |
return [('name',) + clause] | return [('name',) + clause[1:]] | def search_rec_name(self, cursor, user, name, clause, context=None): ids = self.search(cursor, user, [('code',) + clause[1:]], order=[], context=context) if ids: ids += self.search(cursor, user, [('name',) + clause[1:]], order=[], context=context) return [('id', 'in', ids)] return [('name',) + clause] | f33b50353d301944f1726604f5c87684a860cc6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/533/f33b50353d301944f1726604f5c87684a860cc6b/product.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
3927,
67,
529,
12,
2890,
16,
3347,
16,
729,
16,
508,
16,
6591,
16,
819,
33,
7036,
4672,
3258,
273,
365,
18,
3072,
12,
9216,
16,
729,
16,
306,
2668,
710,
2187,
13,
397,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
3927,
67,
529,
12,
2890,
16,
3347,
16,
729,
16,
508,
16,
6591,
16,
819,
33,
7036,
4672,
3258,
273,
365,
18,
3072,
12,
9216,
16,
729,
16,
306,
2668,
710,
2187,
13,
397,
65... |
o = object() name = str(id(o)) | global __parameter_count name = str(__parameter_count) __parameter_count+=1 | def parameter(default=None): o = object() name = str(id(o)) def setter(self, value): self._dirty = True setattr(self, "_"+name, value) def getter(self): return getattr(self, "_"+name, default) return property(getter, setter) | 6e94758919df952442a2ca4fe4126b60b9d08ffe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/6e94758919df952442a2ca4fe4126b60b9d08ffe/draw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1569,
12,
1886,
33,
7036,
4672,
2552,
1001,
6775,
67,
1883,
508,
273,
609,
12,
972,
6775,
67,
1883,
13,
1001,
6775,
67,
1883,
15,
33,
21,
225,
1652,
7794,
12,
2890,
16,
460,
4672,
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,
1569,
12,
1886,
33,
7036,
4672,
2552,
1001,
6775,
67,
1883,
508,
273,
609,
12,
972,
6775,
67,
1883,
13,
1001,
6775,
67,
1883,
15,
33,
21,
225,
1652,
7794,
12,
2890,
16,
460,
4672,
36... |
oncekey = (message, category) | oncekey = (text, category) | def warn_explicit(message, category, filename, lineno, module=None, registry=None): if module is None: module = filename if module[-3:].lower() == ".py": module = module[:-3] # XXX What about leading pathname? if registry is None: registry = {} key = (message, category, lineno) # Quick test for common case if registry.... | 1e62b568eeba2239b694c960e3bade6055ff7b9c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1e62b568eeba2239b694c960e3bade6055ff7b9c/warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
67,
16511,
12,
2150,
16,
3150,
16,
1544,
16,
7586,
16,
1605,
33,
7036,
16,
4023,
33,
7036,
4672,
309,
1605,
353,
599,
30,
1605,
273,
1544,
309,
1605,
18919,
23,
30,
8009,
8167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1894,
67,
16511,
12,
2150,
16,
3150,
16,
1544,
16,
7586,
16,
1605,
33,
7036,
16,
4023,
33,
7036,
4672,
309,
1605,
353,
599,
30,
1605,
273,
1544,
309,
1605,
18919,
23,
30,
8009,
8167,
... |
% ",".join(frozenset(selected). difference(all_fields))) | % ",".join(delta)) | def _CheckOutputFields(static, dynamic, selected): """Checks whether all selected fields are valid. Args: static: Static fields dynamic: Dynamic fields """ static_fields = frozenset(static) dynamic_fields = frozenset(dynamic) all_fields = static_fields | dynamic_fields if not all_fields.issuperset(selected): raise ... | 31bf511f14e07b7abfcd8b432d0e0fcd65221f2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/31bf511f14e07b7abfcd8b432d0e0fcd65221f2f/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1564,
1447,
2314,
12,
3845,
16,
5976,
16,
3170,
4672,
3536,
4081,
2856,
777,
3170,
1466,
854,
923,
18,
225,
6634,
30,
760,
30,
10901,
1466,
5976,
30,
12208,
1466,
225,
3536,
760,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1564,
1447,
2314,
12,
3845,
16,
5976,
16,
3170,
4672,
3536,
4081,
2856,
777,
3170,
1466,
854,
923,
18,
225,
6634,
30,
760,
30,
10901,
1466,
5976,
30,
12208,
1466,
225,
3536,
760,
... |
i and in j. | i and in j. New in Python 2.5, it's also guaranteed that if (i, j, n) and (i', j', n') are adjacent triples in the list, and the second is not the last triple in the list, then i+n != i' or j+n != j'. IOW, adjacent triples never describe adjacent equal blocks. | def get_matching_blocks(self): """Return list of triples describing matching subsequences. | d57a82e425c5a1c74964bc986f4891c398abc093 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d57a82e425c5a1c74964bc986f4891c398abc093/difflib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16271,
67,
7996,
12,
2890,
4672,
3536,
990,
666,
434,
22388,
16868,
3607,
720,
17190,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
16271,
67,
7996,
12,
2890,
4672,
3536,
990,
666,
434,
22388,
16868,
3607,
720,
17190,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
maxloc = min( maxloc, len(instring) ) | maxloc = min( maxloc, instrlen ) | def parseImpl( self, instring, loc, doActions=True ): if not(instring[ loc ] in self.initChars): #~ raise ParseException, ( instring, loc, self.errmsg ) exc = self.myException exc.loc = loc exc.pstr = instring raise exc start = loc loc += 1 bodychars = self.bodyChars maxloc = start + self.maxLen maxloc = min( maxloc, l... | f2bedb2a8f4b236ee898577615fa6c0f852c09b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/f2bedb2a8f4b236ee898577615fa6c0f852c09b2/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
309,
486,
12,
267,
1080,
63,
1515,
308,
316,
365,
18,
2738,
7803,
4672,
468,
98,
1002,
10616,
16,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
309,
486,
12,
267,
1080,
63,
1515,
308,
316,
365,
18,
2738,
7803,
4672,
468,
98,
1002,
10616,
16,
261,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.