rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
content_type = SUPPORTED_FILETYPES[extension] except KeyError: pass if not content_type: | extension = filename.split('.')[1] except IndexError: default_ext = 'txt' print 'No extension on filename! Treating as ' + default_ext extension = default_ext try: content_type = SUPPORTED_FILETYPES[extension.upper()] except KeyError: print 'No supported filetype found for extension ' + extension | def upload_docs(self, paths, title=None, folder=None): """Upload a document. Keyword arguments: paths: Paths of files to upload. title: Title to give the files once uploaded. (Default None for the names of the files). folder: Folder to upload into. (Default None for no folder). | 61a4b8d4493db218ea9e22fefe2e7474032ac77c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/61a4b8d4493db218ea9e22fefe2e7474032ac77c/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
8532,
12,
2890,
16,
2953,
16,
2077,
33,
7036,
16,
3009,
33,
7036,
4672,
3536,
4777,
279,
1668,
18,
225,
18317,
1775,
30,
2953,
30,
16643,
434,
1390,
358,
3617,
18,
2077,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
8532,
12,
2890,
16,
2953,
16,
2077,
33,
7036,
16,
3009,
33,
7036,
4672,
3536,
4777,
279,
1668,
18,
225,
18317,
1775,
30,
2953,
30,
16643,
434,
1390,
358,
3617,
18,
2077,
30,
... |
proxies[protocol] = '%s://%s' % (protocol, address) | type, address = splittype(address) if not type: address = '%s://%s' % (protocol, address) proxies[protocol] = address | def getproxies_registry(): """Return a dictionary of scheme -> proxy server URL mappings. | 3aa5f600f173541f6c08459b5629bb066cc3454a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3aa5f600f173541f6c08459b5629bb066cc3454a/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20314,
606,
67,
9893,
13332,
3536,
990,
279,
3880,
434,
4355,
317,
2889,
1438,
1976,
7990,
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,
20314,
606,
67,
9893,
13332,
3536,
990,
279,
3880,
434,
4355,
317,
2889,
1438,
1976,
7990,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
httpServer = UserInterfaceServer(state.uiPort) serverUI = ServerUserInterface(state, _recreateState) httpServer.register(serverUI) return app | def setup(): # Setup state, app, boxes, trainers and account state.createWorkers() proxyListeners = [] app = Application("SpambayesIMAPServer") spam_box = SpambayesMailbox("Spam", 0, options["Storage", "spam_cache"]) unsure_box = SpambayesMailbox("Unsure", 1, options["Storage", "unknown_cache"]) ham_train_box = Spamba... | c4d7670dff445a1db6fa6542323dae6b3cdc7cdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/c4d7670dff445a1db6fa6542323dae6b3cdc7cdc/sb_pop3dnd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13332,
468,
10939,
919,
16,
595,
16,
14356,
16,
4691,
414,
471,
2236,
919,
18,
2640,
15252,
1435,
2889,
5583,
273,
5378,
595,
273,
4257,
2932,
3389,
2536,
528,
281,
3445,
2203,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13332,
468,
10939,
919,
16,
595,
16,
14356,
16,
4691,
414,
471,
2236,
919,
18,
2640,
15252,
1435,
2889,
5583,
273,
5378,
595,
273,
4257,
2932,
3389,
2536,
528,
281,
3445,
2203,
208... | |
self.rip_thread = main_backup_thread(device=device, rip_format=type) | self.rip_thread = main_backup_thread(device=device, rip_format=type) | def cd_backup(self, arg, menuw=None): device, type = arg self.rip_thread = main_backup_thread(device=device, rip_format=type) self.rip_thread.start() AlertBox(text=_( 'Ripping started' ) ).show() menuw.delete_menu() menuw.back_one_menu() | 2dea6659ea7caf6d2ece3ed17231f52f1963d82e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2dea6659ea7caf6d2ece3ed17231f52f1963d82e/cdbackup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
67,
9572,
12,
2890,
16,
1501,
16,
225,
3824,
91,
33,
7036,
4672,
2346,
16,
618,
273,
1501,
365,
18,
21335,
67,
5930,
273,
2774,
67,
9572,
67,
5930,
12,
5964,
33,
5964,
16,
436,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
67,
9572,
12,
2890,
16,
1501,
16,
225,
3824,
91,
33,
7036,
4672,
2346,
16,
618,
273,
1501,
365,
18,
21335,
67,
5930,
273,
2774,
67,
9572,
67,
5930,
12,
5964,
33,
5964,
16,
436,... |
elif re.match(r'__init__.py\w?', os.path.split(filename)[1]): | if module_doc.is_package: | def _find(self, name, package_doc=None): """ Return the API documentaiton for the object whose name is C{name}. C{package_doc}, if specified, is the API documentation for the package containing the named object. """ # If we're inside a package, then find the package's path. if package_doc is None: path = None else: tr... | 1e9df856ab08a6a6e45f4010cb192a8827495dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/1e9df856ab08a6a6e45f4010cb192a8827495dd7/docparser_quick.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
12,
2890,
16,
508,
16,
2181,
67,
2434,
33,
7036,
4672,
3536,
2000,
326,
1491,
1668,
1540,
265,
364,
326,
733,
8272,
508,
353,
385,
95,
529,
5496,
225,
385,
95,
5610,
67,
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,
389,
4720,
12,
2890,
16,
508,
16,
2181,
67,
2434,
33,
7036,
4672,
3536,
2000,
326,
1491,
1668,
1540,
265,
364,
326,
733,
8272,
508,
353,
385,
95,
529,
5496,
225,
385,
95,
5610,
67,
2... |
for trove in troves: totals[trove[0].upper()] += 1 | for trv in troves: totals[trv[0].upper()] += 1 | def browse(self, auth, char): defaultPage = False if not char: char = 'A' defaultPage = True # since the repository is multihomed and we're not doing any # label filtering, a single call will return all the available # troves. We use the first repository name here because we have to # pick one,,, troves = self.repos.tr... | c5a8de451fccc795e38df460d36b2c068f05d595 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/c5a8de451fccc795e38df460d36b2c068f05d595/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2890,
16,
1357,
16,
1149,
4672,
805,
1964,
273,
1083,
309,
486,
1149,
30,
1149,
273,
296,
37,
11,
805,
1964,
273,
1053,
468,
3241,
326,
3352,
353,
3309,
17125,
329,
471,
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,
21670,
12,
2890,
16,
1357,
16,
1149,
4672,
805,
1964,
273,
1083,
309,
486,
1149,
30,
1149,
273,
296,
37,
11,
805,
1964,
273,
1053,
468,
3241,
326,
3352,
353,
3309,
17125,
329,
471,
732... |
def checkForRedirects(group, repos, troveCache): | def checkForRedirects(group, repos, troveCache, buildFlavor): | def checkForRedirects(group, repos, troveCache): redirectTups = [] for troveTup in group.iterTroveList(strongRefs=True, weakRefs=False): if troveCache.isRedirect(troveTup): redirectTups.append(troveTup) if not redirectTups: return redirectTroves = repos.getTroves(redirectTups) missingTargets = {} for trv in redirectT... | 75845b191cb51b722037a5bdd4c54c024c494415 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/75845b191cb51b722037a5bdd4c54c024c494415/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13855,
21978,
12,
1655,
16,
13686,
16,
23432,
537,
1649,
16,
1361,
2340,
9444,
4672,
3136,
56,
18294,
273,
5378,
364,
23432,
537,
56,
416,
316,
1041,
18,
2165,
56,
303,
537,
682,
12,
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,
13855,
21978,
12,
1655,
16,
13686,
16,
23432,
537,
1649,
16,
1361,
2340,
9444,
4672,
3136,
56,
18294,
273,
5378,
364,
23432,
537,
56,
416,
316,
1041,
18,
2165,
56,
303,
537,
682,
12,
9... |
coincparamsdistributions += get_coincparamsdistributions(xmldoc) | coincparamsdistributions += get_coincparamsdistributions(xmldoc, seglists = seglists) | def load_likelihood_data(filenames, verbose = False): coincparamsdistributions = None for n, filename in enumerate(filenames): if verbose: print >>sys.stderr, "%d/%d:" % (n + 1, len(filenames)), xmldoc = utils.load_filename(filename, gz = (filename or "stdin").endswith(".gz"), verbose = verbose) if coincparamsdistribut... | 5b944d01768f3990f77f10fb98e03bbb8e6edf8e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/5b944d01768f3990f77f10fb98e03bbb8e6edf8e/stringutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
18269,
67,
892,
12,
19875,
16,
3988,
273,
1083,
4672,
13170,
71,
2010,
2251,
15326,
273,
599,
364,
290,
16,
1544,
316,
4241,
12,
19875,
4672,
309,
3988,
30,
1172,
1671,
9499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
18269,
67,
892,
12,
19875,
16,
3988,
273,
1083,
4672,
13170,
71,
2010,
2251,
15326,
273,
599,
364,
290,
16,
1544,
316,
4241,
12,
19875,
4672,
309,
3988,
30,
1172,
1671,
9499,
... |
ie = str(i).replace("\\","\\\\").replace("\"","\\\"").replace("'","\\'") | ie = repr(i).replace("\\","\\\\").replace("\"","\\\"").replace("'","\\'") | def values_js(self): """ Returns Javascript array representation of values or null if display_value is False | e47ac43bb971037e5e77927ac52cbd09d7c631ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e47ac43bb971037e5e77927ac52cbd09d7c631ae/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
924,
67,
2924,
12,
2890,
4672,
3536,
2860,
22326,
526,
4335,
434,
924,
578,
446,
309,
2562,
67,
1132,
353,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
924,
67,
2924,
12,
2890,
4672,
3536,
2860,
22326,
526,
4335,
434,
924,
578,
446,
309,
2562,
67,
1132,
353,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
o Version is 1.1 or 2.2 (1.1.0 or 2.2.0 generate warnings) | o Version is 1.1.0 or 2.2.0 (1.1 or 2.2 generate warnings) | def testGipOutput(self): """ | b989f0c9ce06e60618154c8d86034f57c093dae8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12088/b989f0c9ce06e60618154c8d86034f57c093dae8/gip_validate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
43,
625,
1447,
12,
2890,
4672,
3536,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
43,
625,
1447,
12,
2890,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
-0.000000000000749927402801814311120646143662663009137292462589621789352092802261939388897590086687280282 | -0.000000000000749927402801814311120646143662663009137292462589621789352095066181709095575681963967103004 | def nintegral(self, x, a, b, desired_relative_error='1e-8', maximum_num_subintervals=200): r""" Return a floating point machine precision numerical approximation to the integral of self from a to b, computed using floating point arithmetic and the GSL scientific library. | 1b87be93340e5497e5b70fe9149625e3449ab01d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1b87be93340e5497e5b70fe9149625e3449ab01d/calculus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
14970,
23811,
12,
2890,
16,
619,
16,
279,
16,
324,
16,
6049,
67,
11626,
67,
1636,
2218,
21,
73,
17,
28,
2187,
4207,
67,
2107,
67,
1717,
19812,
33,
6976,
4672,
436,
8395,
2000,
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,
290,
14970,
23811,
12,
2890,
16,
619,
16,
279,
16,
324,
16,
6049,
67,
11626,
67,
1636,
2218,
21,
73,
17,
28,
2187,
4207,
67,
2107,
67,
1717,
19812,
33,
6976,
4672,
436,
8395,
2000,
2... |
comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 12, 'handicap' : 6, 'komi' : 7.5, 'matchups' : [ Matchup_config('t1', 't2'), ], } | comp = playoffs.Playoff('testcomp') config = default_config() config['board_size'] = 12 config['handicap'] = 6 | def test_global_handicap_validation(tc): comp = playoffs.Playoff('test') config = { 'players' : { 't1' : Player_config("test"), 't2' : Player_config("test"), }, 'board_size' : 12, 'handicap' : 6, 'komi' : 7.5, 'matchups' : [ Matchup_config('t1', 't2'), ], } with tc.assertRaises(ControlFileError) as ar: comp.initialise... | 83af52a9949a36d3c03a96d81382ba6e299c8cdb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6121/83af52a9949a36d3c03a96d81382ba6e299c8cdb/playoff_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6347,
67,
2349,
335,
438,
67,
8685,
12,
5111,
4672,
1161,
273,
6599,
26600,
18,
11765,
3674,
2668,
3813,
2919,
6134,
642,
273,
805,
67,
1425,
1435,
642,
3292,
3752,
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,
1842,
67,
6347,
67,
2349,
335,
438,
67,
8685,
12,
5111,
4672,
1161,
273,
6599,
26600,
18,
11765,
3674,
2668,
3813,
2919,
6134,
642,
273,
805,
67,
1425,
1435,
642,
3292,
3752,
67,
1467,
... |
[ 7 8 9 -1] [10 11 -1 12] | [ 7 -1 8 9] [10 11 12 -1] | def cells_map_as_square(cells_map, n): """ Returns a LatinSquare with cells numbered from {1, 2, ... } to given the dictionary cells_map. NOTE: The value n should be the maximum of the number of rows and columns of the original partial latin square EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: (a, ... | 0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5983,
67,
1458,
67,
345,
67,
19719,
12,
14741,
67,
1458,
16,
290,
4672,
3536,
2860,
279,
11134,
267,
22255,
598,
5983,
1300,
329,
628,
288,
21,
16,
576,
16,
1372,
289,
358,
864,
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,
5983,
67,
1458,
67,
345,
67,
19719,
12,
14741,
67,
1458,
16,
290,
4672,
3536,
2860,
279,
11134,
267,
22255,
598,
5983,
1300,
329,
628,
288,
21,
16,
576,
16,
1372,
289,
358,
864,
326,
... |
self.protect(r"""\s+(\/[^\/\n\r\*][^\/\n\r]*\/g?i?)""") self.protect(r"""([^\w\$\/'"*)\?:]\/[^\/\n\r\*][^\/\n\r]*\/g?i?)""") | self.protect(r"""\s+(\/[^\/\n\r\*](?:\\/|[^\n\r])*\/g?i?)""") self.protect(r"""([^\w\$\/'"*)\?:]\/[^\/\n\r\*](?:\\/|[^\n\r])*\/g?i?)""") | def __init__(self, level='safe'): Packer.__init__(self) # protect strings # these sometimes catch to much, but in safe mode this doesn't hurt # the parts: # match a single quote # match anything but the single quote, a backslash and a newline "[^'\\\n]" # or match a null escape (\0 not followed by another digit) "\\0(... | f57e92965319e9e9d3953f75da6f3458d31bc758 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12274/f57e92965319e9e9d3953f75da6f3458d31bc758/packer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1801,
2218,
4626,
11,
4672,
7930,
264,
16186,
2738,
972,
12,
2890,
13,
468,
17151,
2064,
468,
4259,
16594,
1044,
358,
9816,
16,
1496,
316,
4183,
1965,
333,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1801,
2218,
4626,
11,
4672,
7930,
264,
16186,
2738,
972,
12,
2890,
13,
468,
17151,
2064,
468,
4259,
16594,
1044,
358,
9816,
16,
1496,
316,
4183,
1965,
333,... |
self.out = [] | self.push_output_collector([]) | def visit_header(self, node): self.out = [] self.out.append(r'\newcommand{\DUheader}{') | 975a7baefa62e45824db20fa2fef3b13aef67e9c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8194/975a7baefa62e45824db20fa2fef3b13aef67e9c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3374,
12,
2890,
16,
756,
4672,
365,
18,
6206,
67,
2844,
67,
21356,
3816,
5717,
365,
18,
659,
18,
6923,
12,
86,
8314,
2704,
3076,
23241,
16214,
3374,
8637,
6134,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
3374,
12,
2890,
16,
756,
4672,
365,
18,
6206,
67,
2844,
67,
21356,
3816,
5717,
365,
18,
659,
18,
6923,
12,
86,
8314,
2704,
3076,
23241,
16214,
3374,
8637,
6134,
2,
-100,
-100... |
if base!=os.curdir: | if base==os.curdir or base.startswith(os.curdir+os.sep): base = base[2:] if base: | def findall(dir = os.curdir): """Find all files under 'dir' and return the list of full filenames (relative to 'dir'). """ all_files = [] for base, dirs, files in os.walk(dir): if base!=os.curdir: files = [os.path.join(base, f) for f in files] all_files.extend(filter(os.path.isfile, files)) return all_files | ab69c26ccc5d8c178f3f6d7d1c7e52ab7a47d179 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/495/ab69c26ccc5d8c178f3f6d7d1c7e52ab7a47d179/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
1214,
273,
1140,
18,
1397,
1214,
4672,
3536,
3125,
777,
1390,
3613,
296,
1214,
11,
471,
327,
326,
666,
434,
1983,
9066,
261,
11626,
358,
296,
1214,
16063,
3536,
777,
67,
2354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11842,
12,
1214,
273,
1140,
18,
1397,
1214,
4672,
3536,
3125,
777,
1390,
3613,
296,
1214,
11,
471,
327,
326,
666,
434,
1983,
9066,
261,
11626,
358,
296,
1214,
16063,
3536,
777,
67,
2354,... |
self.cal_sel[date] = (font_color, backgrd) | self.cal_sel[date] = (self.GetColor(COLOR_WEEKEND_FONT), self.GetColor(COLOR_WEEKEND_BACKGROUND)) | def SetWeekEnd(self, font_color='BLACK', backgrd = 'LIGHT GREY'): date = 6 - int(self.dow) # start day of first saturday | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
6630,
1638,
12,
2890,
16,
3512,
67,
3266,
2218,
14618,
3649,
2187,
1473,
3197,
72,
273,
296,
23516,
611,
862,
61,
11,
4672,
1509,
273,
1666,
300,
509,
12,
2890,
18,
72,
543,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
6630,
1638,
12,
2890,
16,
3512,
67,
3266,
2218,
14618,
3649,
2187,
1473,
3197,
72,
273,
296,
23516,
611,
862,
61,
11,
4672,
1509,
273,
1666,
300,
509,
12,
2890,
18,
72,
543,
13,
... |
self.assert_(['group_create_vm','group.create_vm'] in clusters) | self.assert_([4,'group.create_vm'] in clusters) | def test_view_cluster_choices(self): """ Test retrieving list of clusters a user or usergroup has access to """ url = '/vm/add/choices/' Cluster.objects.all().delete() cluster0 = Cluster(hostname='user.create_vm', slug='user_create_vm') cluster0.save() cluster1 = Cluster(hostname='user.admin', slug='user_admin') cluste... | 1fa6802707494a8b5d7f215d89ccaa6f674fb007 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/1fa6802707494a8b5d7f215d89ccaa6f674fb007/virtual_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1945,
67,
7967,
67,
11937,
12,
2890,
4672,
3536,
7766,
17146,
666,
434,
9566,
279,
729,
578,
729,
1655,
711,
2006,
358,
3536,
880,
273,
1173,
3489,
19,
1289,
19,
11937,
2473,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1945,
67,
7967,
67,
11937,
12,
2890,
4672,
3536,
7766,
17146,
666,
434,
9566,
279,
729,
578,
729,
1655,
711,
2006,
358,
3536,
880,
273,
1173,
3489,
19,
1289,
19,
11937,
2473,
... |
raise Http404(_('No %(object_type)s found matching "%(name)s".', {'object_type':object_type,'name':name})) | raise Http404(_('No %(object_type)s found matching "%(name)s".' % {'object_type':object_type,'name':name})) | def object_by_name(request, object_type): name = request.GET.get('q','') name = name.replace('%20',' ') results = object_finders[object_type](name) if (request.is_ajax())or(request.GET.has_key('xhr')): try: for r in results: r['url'] = reverse('%s-detail' % object_type,args=[r['id']]) return HttpResponse(json.dumps({'p... | a727b408f36423ea2a691146c11a8c5cd7c42edc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1866/a727b408f36423ea2a691146c11a8c5cd7c42edc/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
733,
67,
1637,
67,
529,
12,
2293,
16,
733,
67,
723,
4672,
508,
273,
590,
18,
3264,
18,
588,
2668,
85,
17023,
6134,
508,
273,
508,
18,
2079,
29909,
3462,
17023,
8624,
1686,
273,
733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
733,
67,
1637,
67,
529,
12,
2293,
16,
733,
67,
723,
4672,
508,
273,
590,
18,
3264,
18,
588,
2668,
85,
17023,
6134,
508,
273,
508,
18,
2079,
29909,
3462,
17023,
8624,
1686,
273,
733,
... |
for dir in here, os.path.join(here, os.pardir), os.curdir: for file in "LICENSE.txt", "LICENSE": lic = make_license(os.path.join(dir, file)) if lic: break if lic: __builtin__.license = lic break else: __builtin__.license = _Printer('See http://hdl.handle.net/1895.22/1012') | __builtin__.license = _Printer( "license", "See http://www.pythonlabs.com/products/python2.0/license.html", ["LICENSE.txt", "LICENSE"], [here, os.path.join(here, os.pardir), os.curdir]) | def make_license(filename): try: return _Printer(open(filename).read()) except IOError: return None | f19a7ac220178bbe6bfdf88561dea355392aec24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f19a7ac220178bbe6bfdf88561dea355392aec24/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
12687,
12,
3459,
4672,
775,
30,
327,
389,
12149,
12,
3190,
12,
3459,
2934,
896,
10756,
1335,
8340,
30,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
12687,
12,
3459,
4672,
775,
30,
327,
389,
12149,
12,
3190,
12,
3459,
2934,
896,
10756,
1335,
8340,
30,
327,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'product_qty': -bom_id.product_qty, | 'product_qty': bom_id.product_qty, | def do_reverse(self, cr, uid, ids, context={}): """ To check the product type @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param ids: the ID or list of IDs if we want more than one @param context: A standard dictionary @return: """ bom_obj = self.pool.get... | ea473178165c8f3aad52d08daabaccfc070b72da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/ea473178165c8f3aad52d08daabaccfc070b72da/mrp_bom_reverted.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
9845,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3536,
2974,
866,
326,
3017,
618,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
2063,
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,
741,
67,
9845,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3536,
2974,
866,
326,
3017,
618,
632,
891,
365,
30,
1021,
733,
4407,
18,
632,
891,
4422,
30,
432,
2063,
3... |
button.connect("clicked",self.quit) | button.connect("clicked", self.quit) | def main(self,oldbox=None): if self.currentlang!=self.param.val('lang'): #Change localization... self.currentlang = self.param.val('lang') self.i18n.setlang(self.param.val('lang')) global str str = self.i18n.str | 64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
16,
1673,
2147,
33,
7036,
4672,
309,
365,
18,
2972,
4936,
5,
33,
2890,
18,
891,
18,
1125,
2668,
4936,
11,
4672,
468,
3043,
17981,
2777,
365,
18,
2972,
4936,
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,
2774,
12,
2890,
16,
1673,
2147,
33,
7036,
4672,
309,
365,
18,
2972,
4936,
5,
33,
2890,
18,
891,
18,
1125,
2668,
4936,
11,
4672,
468,
3043,
17981,
2777,
365,
18,
2972,
4936,
273,
365,
... |
CopyFile(PREFIX+"/tmp/maxImportRes.obj", "pandatool/src/maxprogs/maxImportRes.obj") | CopyFile("built/tmp/maxImportRes.obj", "pandatool/src/maxprogs/maxImportRes.obj") | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if ref_node.attributes.get('name'): del ref_node.attributes['name'] for ref_node in ref_nodes: if not ref_node.children and ref_node.parent: ref_node.parent.removeChild(ref_node) | moved_ref[ref_name] = True if ref_node.children and moved_ref.get(ref_name): for child in ref_node.children: ref_node.removeChild(child) | def fixReferenceNodes(self, node): ref_nodes = node.getChildNodesByClass(Reference) name2children = {} | c831fc8b189107e4c1fe155370bb0e2377072a91 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/c831fc8b189107e4c1fe155370bb0e2377072a91/treecleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
2404,
3205,
12,
2890,
16,
756,
4672,
225,
1278,
67,
4690,
273,
756,
18,
588,
22460,
30032,
12,
2404,
13,
225,
508,
22,
5906,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
2404,
3205,
12,
2890,
16,
756,
4672,
225,
1278,
67,
4690,
273,
756,
18,
588,
22460,
30032,
12,
2404,
13,
225,
508,
22,
5906,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
dirty = self._item.RDIRTY else: dirty = self._item.VDIRTY | dirty = CItem.RDIRTY else: dirty = CItem.VDIRTY | def _removeRef(self, name, other): | 4856b392f8545919cc4e366eadb2c498a6524750 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/4856b392f8545919cc4e366eadb2c498a6524750/Values.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
1957,
12,
2890,
16,
508,
16,
1308,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
1957,
12,
2890,
16,
508,
16,
1308,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else: try: pad.move(y + 1, 0) except: pass | try: pad.move(y + 1, 0) except: pass | def theme_print(pad, uni, mwidth, pre = "", post = ""): prel = theme_len(pre) postl = theme_len(post) y = pad.getyx()[0] theme_print_one(pad, pre, prel) width = (mwidth - prel) - postl if width <= 0: raise Exception("theme_print: NO ROOM!") r = theme_print_one(pad, uni, width) pad.clrtoeol() if post: pad.move(pad.... | 694c0d6bda128f116d4139214949391c1599eb48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12358/694c0d6bda128f116d4139214949391c1599eb48/theme.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5006,
67,
1188,
12,
6982,
16,
7738,
16,
312,
2819,
16,
675,
273,
23453,
1603,
273,
1408,
4672,
675,
80,
273,
5006,
67,
1897,
12,
1484,
13,
1603,
80,
273,
5006,
67,
1897,
12,
2767,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5006,
67,
1188,
12,
6982,
16,
7738,
16,
312,
2819,
16,
675,
273,
23453,
1603,
273,
1408,
4672,
675,
80,
273,
5006,
67,
1897,
12,
1484,
13,
1603,
80,
273,
5006,
67,
1897,
12,
2767,
13... |
self._formatted_date = self.localtime.strftime(" [%a, %d %b %H:%M]") | self._formatted_date = strftime(" [%a, %d %b %H:%M]", t=self.localtime.timetuple()) | def fget(self): if self._formatted_date is None: self._formatted_date = self.localtime.strftime(" [%a, %d %b %H:%M]") return self._formatted_date | b935eb5e466c2a2dc0433bbb1497201f87cdd5f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/b935eb5e466c2a2dc0433bbb1497201f87cdd5f3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
588,
12,
2890,
4672,
309,
365,
6315,
14897,
67,
712,
353,
599,
30,
365,
6315,
14897,
67,
712,
273,
10405,
2932,
9799,
69,
16,
738,
72,
738,
70,
738,
44,
5319,
49,
65,
3113,
268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
588,
12,
2890,
4672,
309,
365,
6315,
14897,
67,
712,
353,
599,
30,
365,
6315,
14897,
67,
712,
273,
10405,
2932,
9799,
69,
16,
738,
72,
738,
70,
738,
44,
5319,
49,
65,
3113,
268,... |
raise error, "bogus escape" | raise error, "bogus escape (end of line)" | def __next(self): if self.index >= len(self.string): self.next = None return char = self.string[self.index] if char[0] == "\\": try: c = self.string[self.index + 1] except IndexError: raise error, "bogus escape" char = char + c self.index = self.index + len(char) self.next = char | c4614ffdc989b757b96c09893bc632c2c25fc360 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c4614ffdc989b757b96c09893bc632c2c25fc360/sre_parse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4285,
12,
2890,
4672,
309,
365,
18,
1615,
1545,
562,
12,
2890,
18,
1080,
4672,
365,
18,
4285,
273,
599,
327,
1149,
273,
365,
18,
1080,
63,
2890,
18,
1615,
65,
309,
1149,
63,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4285,
12,
2890,
4672,
309,
365,
18,
1615,
1545,
562,
12,
2890,
18,
1080,
4672,
365,
18,
4285,
273,
599,
327,
1149,
273,
365,
18,
1080,
63,
2890,
18,
1615,
65,
309,
1149,
63,
20... |
self.skillwindow.AddText('No skills') | self.skillwindow.AddText('No skills.') | def Refresh(self, curchar): self.portraitwindow.Refresh(curchar) self.statwindow.Refresh(curchar) self.equipwindow.Refresh(curchar) self.skillwindow.Refresh(curchar) | 1a342e5bb1728d96c959b235649281cb7a1c55c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3728/1a342e5bb1728d96c959b235649281cb7a1c55c4/statusmenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
12,
2890,
16,
662,
3001,
4672,
365,
18,
3831,
22513,
5668,
18,
8323,
12,
1397,
3001,
13,
365,
18,
5642,
5668,
18,
8323,
12,
1397,
3001,
13,
365,
18,
14298,
625,
5668,
18,
8323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14179,
12,
2890,
16,
662,
3001,
4672,
365,
18,
3831,
22513,
5668,
18,
8323,
12,
1397,
3001,
13,
365,
18,
5642,
5668,
18,
8323,
12,
1397,
3001,
13,
365,
18,
14298,
625,
5668,
18,
8323,
... |
<separator name="FM2"/> | <separator name="FM1"/> | def __init__(self): gtk.gdk.threads_init() | c6361bf94b503d86e18e8f4d0b6f2c532f433a53 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2291/c6361bf94b503d86e18e8f4d0b6f2c532f433a53/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
22718,
18,
75,
2883,
18,
12495,
67,
2738,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
22718,
18,
75,
2883,
18,
12495,
67,
2738,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
onScreenDebug.add("highMark", "% 10.4f"%( self.highMark,)) | if __debug__: onScreenDebug.add("highMark", "% 10.4f"%( self.highMark,)) | def handleAvatarControls(self, task): """ Check on the arrow keys and update the avatar. """ if self.wantAvatarPhysicsIndicator: onScreenDebug.append("localToon pos = %s\n"%(toonbase.localToon.getPos().pPrintValues(),)) onScreenDebug.append("localToon h = % 10.4f\n"%(toonbase.localToon.getH(),)) onScreenDebug.append("l... | 4d92e63fdd59070a3d2b21f20eb98c01489610bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4d92e63fdd59070a3d2b21f20eb98c01489610bc/PhysicsWalker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
16910,
18,
3536,
309,
365,
18,
17369,
23999,
3731,
1900,
2102,
13140,
30,
603,
7956,
2829,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
23999,
16795,
12,
2890,
16,
1562,
4672,
3536,
2073,
603,
326,
12274,
1311,
471,
1089,
326,
16910,
18,
3536,
309,
365,
18,
17369,
23999,
3731,
1900,
2102,
13140,
30,
603,
7956,
2829,
... |
self.duplicates = duplicates def run(self): count = 1 for mi, cover, formats in self.duplicates: formats = [f for f in formats if not f.lower().endswith('.opf')] id = self.db.create_book_entry(mi, cover=cover, add_duplicates=True) self.db_adder.add_formats(id, formats) self.db_adder.number_of_books_added += 1 self.em... | self.duplicates = list(duplicates) self.count = 0 single_shot(self.add_one) def add_one(self): if not self.duplicates: self.adding_done.emit() return mi, cover, formats = self.duplicates.pop() formats = [f for f in formats if not f.lower().endswith('.opf')] id = self.db.create_book_entry(mi, cover=cover, add_duplicat... | def __init__(self, parent, db, duplicates, db_adder): QThread.__init__(self, parent) self.db, self.db_adder = db, db_adder self.duplicates = duplicates | 6e43796c9d041552a0b1e2191ab6d3a34876d2d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/6e43796c9d041552a0b1e2191ab6d3a34876d2d4/add.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1319,
16,
11211,
16,
1319,
67,
361,
765,
4672,
2238,
3830,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
1966,
16,
365,
18,
1966,
67,
361,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
1319,
16,
11211,
16,
1319,
67,
361,
765,
4672,
2238,
3830,
16186,
2738,
972,
12,
2890,
16,
982,
13,
365,
18,
1966,
16,
365,
18,
1966,
67,
361,... |
session = self.get_current_session('Cannot send message %r' % message) try: if session.send_message(message): return True except ConnectionClosed, ex: proc.spawn(self.remove_session, session) raise UserCommandError(str(ex)) | return self.get_current_session().send_message(message) | def send_message(self, message): session = self.get_current_session('Cannot send message %r' % message) try: if session.send_message(message): #print 'sent %s %s' % (session, message) return True # indicate that the message was send and echoed except ConnectionClosed, ex: proc.spawn(self.remove_session, session) raise ... | 757218aa36e3d9194fabf2b88e4254a122dc47e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3449/757218aa36e3d9194fabf2b88e4254a122dc47e9/sip_session2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2150,
12,
2890,
16,
883,
4672,
1339,
273,
365,
18,
588,
67,
2972,
67,
3184,
2668,
4515,
1366,
883,
738,
86,
11,
738,
883,
13,
775,
30,
309,
1339,
18,
4661,
67,
2150,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2150,
12,
2890,
16,
883,
4672,
1339,
273,
365,
18,
588,
67,
2972,
67,
3184,
2668,
4515,
1366,
883,
738,
86,
11,
738,
883,
13,
775,
30,
309,
1339,
18,
4661,
67,
2150,
12,
... |
if (notate_opt is not None) and (opt in notate_opt) and \ | if opt in notate_opt and msg[header] is not None and \ | def takeMessage(self, key, fromcorpus, fromCache=False): '''Move a Message from another corpus to this corpus''' msg = fromcorpus[key] msg.load() # ensure that the substance has been loaded | d37d59bd6b03e87db34d579b7343ca017a6e9d9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/d37d59bd6b03e87db34d579b7343ca017a6e9d9d/Corpus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4862,
1079,
12,
2890,
16,
498,
16,
628,
3850,
9861,
16,
628,
1649,
33,
8381,
4672,
9163,
7607,
279,
2350,
628,
4042,
13825,
358,
333,
13825,
26418,
1234,
273,
628,
3850,
9861,
63,
856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4862,
1079,
12,
2890,
16,
498,
16,
628,
3850,
9861,
16,
628,
1649,
33,
8381,
4672,
9163,
7607,
279,
2350,
628,
4042,
13825,
358,
333,
13825,
26418,
1234,
273,
628,
3850,
9861,
63,
856,
... |
ic.launcurl(url) | ic.launchurl(url) | def open(self, url, new=0): ic.launcurl(url) | c0673590de24990b8d0bed0d4e20724780768eac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c0673590de24990b8d0bed0d4e20724780768eac/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
4672,
13579,
18,
11821,
551,
718,
12,
718,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
880,
16,
394,
33,
20,
4672,
13579,
18,
11821,
551,
718,
12,
718,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print "High Level Event:", self.printevent(event) | if DEBUG: print "High Level Event:", self.printevent(event) | def do_kHighLevelEvent(self, event): (what, message, when, where, modifiers) = event print "High Level Event:", self.printevent(event) try: AEProcessAppleEvent(event) except: print "AEProcessAppleEvent error:" traceback.print_exc() | a67a39b61261e14a924785aee0199e094d466e35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a67a39b61261e14a924785aee0199e094d466e35/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
79,
8573,
2355,
1133,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
309,
6369,
30,
1172,
315,
8573,
4557,
2587,
2773,
16,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
79,
8573,
2355,
1133,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
309,
6369,
30,
1172,
315,
8573,
4557,
2587,
2773,
16,
365,
1... |
except ImportError: | termios.tcgetattr, termios.tcsetattr except (ImportError, AttributeError): | def getuser(): """Get the username from the environment or password database. First try various environment variables, then the password database. This works on Windows as long as USERNAME is set. """ import os for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'): user = os.environ.get(name) if user: return user ... | 5b4308fd7d9ada404cf094ede3c5ba738481b3fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5b4308fd7d9ada404cf094ede3c5ba738481b3fc/getpass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1355,
13332,
3536,
967,
326,
2718,
628,
326,
3330,
578,
2201,
2063,
18,
225,
5783,
775,
11191,
3330,
3152,
16,
1508,
326,
2201,
2063,
18,
225,
1220,
6330,
603,
8202,
487,
1525,
487,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
13332,
3536,
967,
326,
2718,
628,
326,
3330,
578,
2201,
2063,
18,
225,
5783,
775,
11191,
3330,
3152,
16,
1508,
326,
2201,
2063,
18,
225,
1220,
6330,
603,
8202,
487,
1525,
487,... |
self.assertEqual(ast, None) | self.assertSimilar(restricted, Block(())) | def try_join(x): if not isinstance(x, basestring): return '\n'.join(x) else: return x | b61c1b54a708910ae1a52b2430eb107e8cf6d114 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13168/b61c1b54a708910ae1a52b2430eb107e8cf6d114/block_test_case.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
5701,
12,
92,
4672,
309,
486,
1549,
12,
92,
16,
10699,
4672,
327,
2337,
82,
10332,
5701,
12,
92,
13,
469,
30,
327,
619,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
67,
5701,
12,
92,
4672,
309,
486,
1549,
12,
92,
16,
10699,
4672,
327,
2337,
82,
10332,
5701,
12,
92,
13,
469,
30,
327,
619,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if self(u) < self(v): relations.append([u,v]) | if self.is_less_than(u,v): relations.append([u,v]) | def subposet(self, elements): """ Returns the poset containing elements with partial order induced by that of self. | a8bb6ed214e67342d404cea47d97a07b89c24f6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a8bb6ed214e67342d404cea47d97a07b89c24f6a/posets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
917,
278,
12,
2890,
16,
2186,
4672,
3536,
2860,
326,
949,
278,
4191,
2186,
598,
4702,
1353,
1547,
26372,
635,
716,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
917,
278,
12,
2890,
16,
2186,
4672,
3536,
2860,
326,
949,
278,
4191,
2186,
598,
4702,
1353,
1547,
26372,
635,
716,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if type(options.valid_input(sect, opt)) == type((0,1)): | if isinstance(valid_input, types.TupleType): | def verifyInput(self, parms, pmap): '''Check that the given input is valid.''' # Most of the work here is done by the options class, but # we may have a few extra checks that are beyond its capabilities errmsg = '' | c0d21a223da01838b4341d0869a09b22a94321fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/c0d21a223da01838b4341d0869a09b22a94321fa/UserInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
1210,
12,
2890,
16,
17902,
16,
293,
1458,
4672,
9163,
1564,
716,
326,
864,
810,
353,
923,
1093,
6309,
468,
22099,
434,
326,
1440,
2674,
353,
2731,
635,
326,
702,
667,
16,
1496,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
1210,
12,
2890,
16,
17902,
16,
293,
1458,
4672,
9163,
1564,
716,
326,
864,
810,
353,
923,
1093,
6309,
468,
22099,
434,
326,
1440,
2674,
353,
2731,
635,
326,
702,
667,
16,
1496,
4... |
mouse_pos = (0,0) | mouse_pos = (0,0) | def main_loop(self): clock = pygame.time.Clock() | 8b2c58cf6050eaac6f14ba60e16c583e2f848f33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6287/8b2c58cf6050eaac6f14ba60e16c583e2f848f33/guaduelo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
6498,
12,
2890,
4672,
7268,
273,
2395,
13957,
18,
957,
18,
14027,
1435,
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,
2774,
67,
6498,
12,
2890,
4672,
7268,
273,
2395,
13957,
18,
957,
18,
14027,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
event.startTime = startTime | if startTime: event.startTime = startTime | def CreateEmptyEvent(self, startTime, allDay, anyTime): """ shared routine to create an event, using the current view also forces consumers to specify important fields """ view = self.parent.blockItem.itsView event = Calendar.CalendarEvent(view=view) event.InitOutgoingAttributes() event.startTime = startTime event.allD... | 6a61c87d57775efb2157a06798d23bcd3d1d90f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6a61c87d57775efb2157a06798d23bcd3d1d90f1/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1921,
1133,
12,
2890,
16,
8657,
16,
777,
4245,
16,
1281,
950,
4672,
3536,
5116,
12245,
358,
752,
392,
871,
16,
1450,
326,
783,
1476,
2546,
26376,
18350,
358,
4800,
10802,
1466,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
1921,
1133,
12,
2890,
16,
8657,
16,
777,
4245,
16,
1281,
950,
4672,
3536,
5116,
12245,
358,
752,
392,
871,
16,
1450,
326,
783,
1476,
2546,
26376,
18350,
358,
4800,
10802,
1466,
353... |
sage: C = HammingCode(2,GF(3)); C Linear code of length 4, dimension 2 over Finite Field of size 3 sage: V = VectorSpace(GF(3), 4) sage: v = V([0, 2, 0, 1]) sage: syndrome(C, v) [(2, 0, 0, 0), (0, 2, 0, 1), (0, 0, 2, 2), (0, 1, 1, 0), (1, 2, 2, 0), (1, 0, 1, 1), (1, 1, 0, 2), (2, 2, 1, 2), (2, 1, 2, 1)] | sage: C = HammingCode(2,GF(3)); C Linear code of length 4, dimension 2 over Finite Field of size 3 sage: V = VectorSpace(GF(3), 4) sage: v = V([0, 2, 0, 1]) sage: from sage.coding.decoder import syndrome sage: syndrome(C, v) [(2, 0, 0, 0), (0, 2, 0, 1), (0, 0, 2, 2), (0, 1, 1, 0), (1, 2, 2, 0), (1, 0, 1, 1), (1, 1, 0, ... | def syndrome(C, v): """ The vector v represents a received word, so should be in the same ambient space V as C. Returns the elements in V (including v) which belong to the syndrome of v (ie, the coset v+C, sorted by weight). EXAMPLES: sage: C = HammingCode(2,GF(3)); C Linear code of length 4, dimension 2 over Finite F... | 09f33dc47efb256ae5a5a69a7b86b71d4bd72def /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/09f33dc47efb256ae5a5a69a7b86b71d4bd72def/decoder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6194,
72,
10896,
12,
39,
16,
331,
4672,
3536,
1021,
3806,
331,
8686,
279,
5079,
2076,
16,
1427,
1410,
506,
316,
326,
1967,
13232,
1979,
3476,
776,
487,
385,
18,
2860,
326,
2186,
316,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6194,
72,
10896,
12,
39,
16,
331,
4672,
3536,
1021,
3806,
331,
8686,
279,
5079,
2076,
16,
1427,
1410,
506,
316,
326,
1967,
13232,
1979,
3476,
776,
487,
385,
18,
2860,
326,
2186,
316,
7... |
run = config.get(prefs.WARN_IF_DOWNLOADING_ON_QUIT) | def awakeFromNib(self): run = config.get(prefs.RUN_DTV_AT_STARTUP) run = config.get(prefs.WARN_IF_DOWNLOADING_ON_QUIT) self.runAtStartupCheckBox.setState_(run and NSOnState or NSOffState) self.warnIfDownloadingCheckBox.setState_(run and NSOnState or NSOffState) | 00e0a87677ec9004217c4c162ec713a786d31f4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/00e0a87677ec9004217c4c162ec713a786d31f4b/Preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1690,
911,
1265,
50,
495,
12,
2890,
4672,
1086,
273,
642,
18,
588,
12,
1484,
2556,
18,
15238,
67,
9081,
58,
67,
789,
67,
7570,
3079,
13,
365,
18,
2681,
861,
22178,
19174,
18,
542,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1690,
911,
1265,
50,
495,
12,
2890,
4672,
1086,
273,
642,
18,
588,
12,
1484,
2556,
18,
15238,
67,
9081,
58,
67,
789,
67,
7570,
3079,
13,
365,
18,
2681,
861,
22178,
19174,
18,
542,
11... | |
"""A class for scrobbling tracks to Last.fm""" session_id = None nowplaying_url = None submissions_url = None def __init__(self, network, client_id, client_version): self.client_id = client_id self.client_version = client_version self.username = network.username self.password = network.password_hash self.network = ne... | """A class for scrobbling tracks to Last.fm""" session_id = None nowplaying_url = None submissions_url = None def __init__(self, network, client_id, client_version): self.client_id = client_id self.client_version = client_version self.username = network.username self.password = network.password_hash self.network = ne... | def _check_response_for_errors(self, response): """When passed a string response it checks for erros, raising any exceptions as necessary.""" lines = response.split("\n") status_line = lines[0] if status_line == "OK": return elif status_line == "BANNED": raise BannedClientError() elif status_line == "BADAUTH": raise ... | 312230e30b9a32836e57d3014b7461a466a3dbed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/312230e30b9a32836e57d3014b7461a466a3dbed/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
2740,
67,
1884,
67,
4324,
12,
2890,
16,
766,
4672,
3536,
9434,
2275,
279,
533,
766,
518,
4271,
364,
6445,
6973,
16,
28014,
1281,
4798,
487,
4573,
12123,
225,
2362,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
2740,
67,
1884,
67,
4324,
12,
2890,
16,
766,
4672,
3536,
9434,
2275,
279,
533,
766,
518,
4271,
364,
6445,
6973,
16,
28014,
1281,
4798,
487,
4573,
12123,
225,
2362,
273,
... |
raise AclNotAllowed( '%s must be in one of %s to hold the %s acl' % | raise AclNotAllowedError( '%s must be in one of these groups: %s to hold the %s acl' % | def _acl_can_be_held_by_user(self, acl, user=None): '''Return true if the user is allowed to hold the specified acl. | ee8f9e78ffdc5ae33aafae136107de7b235b201b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/ee8f9e78ffdc5ae33aafae136107de7b235b201b/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10150,
67,
4169,
67,
2196,
67,
76,
488,
67,
1637,
67,
1355,
12,
2890,
16,
7895,
16,
729,
33,
7036,
4672,
9163,
990,
638,
309,
326,
729,
353,
2935,
358,
6887,
326,
1269,
7895,
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,
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,
10150,
67,
4169,
67,
2196,
67,
76,
488,
67,
1637,
67,
1355,
12,
2890,
16,
7895,
16,
729,
33,
7036,
4672,
9163,
990,
638,
309,
326,
729,
353,
2935,
358,
6887,
326,
1269,
7895,
18... |
else: parallel_donations = donations[:num_threads] donations = donations[num_threads:] try: phandle = parallelize_initfunction(parallel_donations, handle_donation, num_threads) except ParallelizeException: print time.ctime(), "parallelize_initfunction raised ParallelizeException" break while not parallelize_isfunct... | resultdict = parallelize_getresults(phandle) for donation, exception_str in resultdict['exception']: print time.ctime(), "handle_donation(%s) raised Exception: %s"%(donation, exception_str) | def handle_donations_parallel(donations): """ <Purpose> Parallelizes the execution of handle_node (above) on a list of donation records. <Arguments> donations : a list of Donation model objects to process <Exceptions> None. <Side Effects> Spawn some number of threads that call handle_donation() <Returns> None """ #... | fc1a47783971380bd3097fdff69be78baa91d195 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/fc1a47783971380bd3097fdff69be78baa91d195/dbnode_checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
19752,
1012,
67,
18054,
12,
19752,
1012,
4672,
3536,
411,
10262,
4150,
34,
20203,
3128,
326,
4588,
434,
1640,
67,
2159,
261,
25998,
13,
603,
279,
666,
434,
2727,
367,
3853,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
19752,
1012,
67,
18054,
12,
19752,
1012,
4672,
3536,
411,
10262,
4150,
34,
20203,
3128,
326,
4588,
434,
1640,
67,
2159,
261,
25998,
13,
603,
279,
666,
434,
2727,
367,
3853,
18,... |
except: print i18n('Translate-Toolkit not found. Please install this package for the feature to work.') | except: print '%s' % i18n('Translate-Toolkit not found. Please install this package for the feature to work.') | def mouseDoubleClickEvent(self, event): self.emit(SIGNAL("doubleClicked()")) | dfbbea7d4005f1b657ce8fa885ae03326222742f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1688/dfbbea7d4005f1b657ce8fa885ae03326222742f/newprojectwizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
5265,
6563,
1133,
12,
2890,
16,
871,
4672,
365,
18,
18356,
12,
11260,
1013,
2932,
9056,
27633,
10031,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7644,
5265,
6563,
1133,
12,
2890,
16,
871,
4672,
365,
18,
18356,
12,
11260,
1013,
2932,
9056,
27633,
10031,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if 'variables' in the_dict: del the_dict['variables'] | def ProcessVariablesAndConditionsInDict(the_dict, is_late, variables): """Handle all variable expansion and conditional evaluation. This function is the public entry point for all variable expansions and conditional evaluations. """ # Save a copy of the variables dict before loading automatics or the # variables dict... | 2714baa0e5e914697a52658f5379d08f72dfbd76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/2714baa0e5e914697a52658f5379d08f72dfbd76/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
6158,
1876,
8545,
382,
5014,
12,
5787,
67,
1576,
16,
353,
67,
20293,
16,
3152,
4672,
3536,
3259,
777,
2190,
17965,
471,
11139,
9873,
18,
225,
1220,
445,
353,
326,
1071,
1241,
1634,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4389,
6158,
1876,
8545,
382,
5014,
12,
5787,
67,
1576,
16,
353,
67,
20293,
16,
3152,
4672,
3536,
3259,
777,
2190,
17965,
471,
11139,
9873,
18,
225,
1220,
445,
353,
326,
1071,
1241,
1634,... | |
"on_Activate" : self.Execute | "on_Activate" : self.Execute, "on_entryCommand_key_press_event" : self.OnKeyPressCommand | def OnMenuItemClick(self, menuItem): """ Called when the user clicks on this extension's menu item. Parameters: menuItem -- reserved for GTK callbacks. Don't use it explicitly. """ xmlString = pkg_resources.resource_string(__name__,"APIConsole.glade") wTree = gtk.glade.xml_new_from_buffer(xmlString, len(xmlString),"AP... | cf7cb1ccd89c0d0d2567f342401d30f193650c37 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10033/cf7cb1ccd89c0d0d2567f342401d30f193650c37/APIConsole.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
12958,
6563,
12,
2890,
16,
19711,
4672,
3536,
11782,
1347,
326,
729,
27659,
603,
333,
2710,
1807,
3824,
761,
18,
225,
7012,
30,
19711,
1493,
8735,
364,
19688,
47,
6689,
18,
7615,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12958,
6563,
12,
2890,
16,
19711,
4672,
3536,
11782,
1347,
326,
729,
27659,
603,
333,
2710,
1807,
3824,
761,
18,
225,
7012,
30,
19711,
1493,
8735,
364,
19688,
47,
6689,
18,
7615,
1... |
this = apply(_quickfix.new_FieldNotFound, args) | this = _quickfix.new_FieldNotFound(*args) | def __init__(self, *args): this = apply(_quickfix.new_FieldNotFound, 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,
974,
2768,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
974,
2768,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18... |
if leakdebug: | if findleaks: | def main(tests=None, testdir=None, verbose=0, quiet=0, generate=0, exclude=0, single=0, randomize=0, leakdebug=0, use_large_resources=0): """Execute a test suite. This also parses command-line options and modifies its behavior accordingly. tests -- a list of strings containing test names (optional) testdir -- the dir... | dd7a83ed02cacbb1387f4c8bd49f0a9ad98c6cc4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/dd7a83ed02cacbb1387f4c8bd49f0a9ad98c6cc4/regrtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
20,
16,
2103,
33,
20,
16,
4433,
33,
20,
16,
2202,
33,
20,
16,
2744,
554,
33,
20,
16,
20891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
16341,
33,
7036,
16,
1842,
1214,
33,
7036,
16,
3988,
33,
20,
16,
10902,
33,
20,
16,
2103,
33,
20,
16,
4433,
33,
20,
16,
2202,
33,
20,
16,
2744,
554,
33,
20,
16,
20891,
... |
Abelian variety factor of dimension 1 of J0(42), Abelian variety factor of dimension 2 of J0(42), Abelian variety factor of dimension 2 of J0(42) | Simple abelian subvariety 21a(2,42) of dimension 1 of J0(42), Simple abelian subvariety 14a(1,42) of dimension 1 of J0(42), Simple abelian subvariety 14a(3,42) of dimension 1 of J0(42), Simple abelian subvariety 42a(1,42) of dimension 1 of J0(42), Simple abelian subvariety 21a(1,42) of dimension 1 of J0(42) | def __add__(self, other): """ Add two modular abelian variety factors. EXAMPLES: sage: A = J0(42); D = A.decomposition(); D [ Abelian variety factor of dimension 1 of J0(42), Abelian variety factor of dimension 2 of J0(42), Abelian variety factor of dimension 2 of J0(42) ] sage: D[0] + D[1] Abelian variety factor of d... | 62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
972,
12,
2890,
16,
1308,
4672,
3536,
1436,
2795,
681,
2490,
1223,
292,
2779,
1394,
14369,
14490,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
432,
273,
804,
20,
12,
9452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
972,
12,
2890,
16,
1308,
4672,
3536,
1436,
2795,
681,
2490,
1223,
292,
2779,
1394,
14369,
14490,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
432,
273,
804,
20,
12,
9452,
... |
try: | try: | def cd_backup_threaded(self, device, rip_format='mp3'): rip_format = rip_format album = 'default_album' artist = 'default_artist' genre = 'default_genre' dir_audio_default = "dir_audio_default" path_head = '' for media in config.REMOVABLE_MEDIA: if media.devicename == device: media.type = 'cdrip' # Get the artist, alb... | 2dea6659ea7caf6d2ece3ed17231f52f1963d82e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/2dea6659ea7caf6d2ece3ed17231f52f1963d82e/cdbackup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
67,
9572,
67,
451,
20528,
12,
2890,
16,
2346,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
436,
625,
67,
2139,
273,
436,
625,
67,
2139,
14844,
273,
296,
1886,
67,
25090,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
67,
9572,
67,
451,
20528,
12,
2890,
16,
2346,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
436,
625,
67,
2139,
273,
436,
625,
67,
2139,
14844,
273,
296,
1886,
67,
25090,
1... |
searchwords =searchwords.replace('&','').replace('_','') | searchwords = searchwords.replace('&','').replace('_','') | def default(self, searchwords='', language='en_US'): '''Return a list of all packages in the database. | e17d5398c08465318ce1c52abf1a99615409c651 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9953/e17d5398c08465318ce1c52abf1a99615409c651/letter_paginator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
12,
2890,
16,
1623,
3753,
2218,
2187,
2653,
2218,
275,
67,
3378,
11,
4672,
9163,
990,
279,
666,
434,
777,
5907,
316,
326,
2063,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
12,
2890,
16,
1623,
3753,
2218,
2187,
2653,
2218,
275,
67,
3378,
11,
4672,
9163,
990,
279,
666,
434,
777,
5907,
316,
326,
2063,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def on_focus (self, direction): | def on_focus (self, direction, data=None): | def on_focus (self, direction): self.window.queue_draw () | 23549a1fd6e3b7d4202d1dad1ae5144cbbc16746 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1032/23549a1fd6e3b7d4202d1dad1ae5144cbbc16746/terminator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
13923,
261,
2890,
16,
4068,
16,
501,
33,
7036,
4672,
365,
18,
5668,
18,
4000,
67,
9446,
1832,
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,
603,
67,
13923,
261,
2890,
16,
4068,
16,
501,
33,
7036,
4672,
365,
18,
5668,
18,
4000,
67,
9446,
1832,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sprite.handle() | result = sprite.handle() | def moveOk(self, newx, newy): # Also need to check for out of range if not self._map[newy][newx] in self.passable: return False else: #New area is not passible, need to find out what to do result = None for sprite in self._sprites: if sprite.getXY() == (newx, newy): #This means we are bumping into something #print 'spr... | 7477df1b6776b8e72264a93acf78b0767356cf82 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11641/7477df1b6776b8e72264a93acf78b0767356cf82/tileengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
8809,
12,
2890,
16,
394,
92,
16,
394,
93,
4672,
468,
8080,
1608,
358,
866,
364,
596,
434,
1048,
309,
486,
365,
6315,
1458,
63,
2704,
93,
6362,
2704,
92,
65,
316,
365,
18,
5466,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
8809,
12,
2890,
16,
394,
92,
16,
394,
93,
4672,
468,
8080,
1608,
358,
866,
364,
596,
434,
1048,
309,
486,
365,
6315,
1458,
63,
2704,
93,
6362,
2704,
92,
65,
316,
365,
18,
5466,... |
while not self.finish_event.isSet(): | while not self.finish_event.isSet() or self.response_event.isSet(): | def _callback_thread_run(self, callback, errback): responses = [] while not self.finish_event.isSet(): self.response_event.wait() with self.mutex: responses = self.responses self.responses = [] | 6013bb1247d197fb6af4971b1bce5a6ef119ff2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/6013bb1247d197fb6af4971b1bce5a6ef119ff2c/bcall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3394,
67,
5930,
67,
2681,
12,
2890,
16,
1348,
16,
29642,
4672,
7220,
273,
5378,
1323,
486,
365,
18,
13749,
67,
2575,
18,
291,
694,
1435,
578,
365,
18,
2740,
67,
2575,
18,
291,
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,
389,
3394,
67,
5930,
67,
2681,
12,
2890,
16,
1348,
16,
29642,
4672,
7220,
273,
5378,
1323,
486,
365,
18,
13749,
67,
2575,
18,
291,
694,
1435,
578,
365,
18,
2740,
67,
2575,
18,
291,
6... |
check = getattr(self, 'postConnectionCheck', Connection.clientPostConnectionCheck) | check = getattr(self, 'postConnectionCheck', self.clientPostConnectionCheck) | def connect(self, addr): self.socket.connect(addr) self.addr = addr self.setup_ssl() self.set_connect_state() ret = self.connect_ssl() check = getattr(self, 'postConnectionCheck', Connection.clientPostConnectionCheck) if check is not None: if not check(self.get_peer_cert(), self.addr[0]): raise Checker.SSLVerificationE... | 75111ed10e800e65313063dd8aeca065d31943a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/75111ed10e800e65313063dd8aeca065d31943a9/Connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
3091,
4672,
365,
18,
7814,
18,
3612,
12,
4793,
13,
365,
18,
4793,
273,
3091,
365,
18,
8401,
67,
8157,
1435,
365,
18,
542,
67,
3612,
67,
2019,
1435,
325,
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,
3077,
12,
2890,
16,
3091,
4672,
365,
18,
7814,
18,
3612,
12,
4793,
13,
365,
18,
4793,
273,
3091,
365,
18,
8401,
67,
8157,
1435,
365,
18,
542,
67,
3612,
67,
2019,
1435,
325,
273,
365,... |
"""fetch maxGID | """ fetch maxGID | def maxGID(self): """fetch maxGID | e0a79ca981be51162ad7ec79462cf3f8c83a78f8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5988/e0a79ca981be51162ad7ec79462cf3f8c83a78f8/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
28258,
12,
2890,
4672,
3536,
5754,
943,
28258,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
943,
28258,
12,
2890,
4672,
3536,
5754,
943,
28258,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def ping(self): self.bot.write("pong") def help(self): self.bot.write("I'm a bot that shows information from the \x02Warzone 2100\x02 lobby server. I was created by %s. For information about commands you can try: \"commands\"" % (__author__)) def info(self): return self.help() def commands(self): self.bot.write("pin... | def ping(self, nick, channel): self.bot.write("%s: pong" % (nick), [channel]) def help(self, nick, channel): self.bot.write("%s: I'm a bot that shows information from the \x02Warzone 2100\x02 lobby server. I was created by %s. For information about commands you can try: \"commands\"" % (nick, __author__), [channel]) ... | def ping(self): self.bot.write("pong") | c6c43fc22cddaf89dc6f1baff5e8c0504474ee3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13981/c6c43fc22cddaf89dc6f1baff5e8c0504474ee3d/ircbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10087,
12,
2890,
4672,
365,
18,
4819,
18,
2626,
2932,
500,
75,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10087,
12,
2890,
4672,
365,
18,
4819,
18,
2626,
2932,
500,
75,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print ''+chroot+file+' exists, specify --force to overwrite' | print ''+chroot+file+' already exists, will not touch it' | def copy_binaries_and_libs(chroot, binarieslist, force_overwrite=0, be_verbose=0, check_libs=1, try_hardlink=1, handledfiles=[]): """copies a list of executables and their libraries to the chroot""" if (chroot[-1] == '/'): chroot = chroot[:-1] for file in binarieslist: if (file in handledfiles): | 636d9e30baf44056b0cb125195cc5ee344aa2100 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6201/636d9e30baf44056b0cb125195cc5ee344aa2100/jk_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
4757,
5646,
67,
464,
67,
21571,
12,
343,
3085,
16,
4158,
5646,
1098,
16,
2944,
67,
19274,
33,
20,
16,
506,
67,
11369,
33,
20,
16,
866,
67,
21571,
33,
21,
16,
775,
67,
203... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
4757,
5646,
67,
464,
67,
21571,
12,
343,
3085,
16,
4158,
5646,
1098,
16,
2944,
67,
19274,
33,
20,
16,
506,
67,
11369,
33,
20,
16,
866,
67,
21571,
33,
21,
16,
775,
67,
203... |
feed_name = DataPath('missing_row_cells') loader = transitfeed.Loader( feed_name, problems = ExceptionProblemReporterNoExpiration(), extra_validation = True) try: loader.Load() self.fail('OtherProblem exception expected') except transitfeed.OtherProblem: pass | self.Load('missing_row_cells') e = self.problems.PopException("OtherProblem") self.assertEquals("routes.txt", e.file_name) self.assertEquals(4, e.row_num) self.problems.AssertNoMoreExceptions() | def runTest(self): feed_name = DataPath('missing_row_cells') loader = transitfeed.Loader( feed_name, problems = ExceptionProblemReporterNoExpiration(), extra_validation = True) try: loader.Load() self.fail('OtherProblem exception expected') except transitfeed.OtherProblem: pass | c0875c71366a096d1af9711a40b2bd0594054fa5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6302/c0875c71366a096d1af9711a40b2bd0594054fa5/testtransitfeed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
4709,
12,
2890,
4672,
4746,
67,
529,
273,
1910,
743,
2668,
7337,
67,
492,
67,
14741,
6134,
4088,
273,
22755,
7848,
18,
2886,
12,
4746,
67,
529,
16,
9688,
273,
1185,
13719,
13289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4709,
12,
2890,
4672,
4746,
67,
529,
273,
1910,
743,
2668,
7337,
67,
492,
67,
14741,
6134,
4088,
273,
22755,
7848,
18,
2886,
12,
4746,
67,
529,
16,
9688,
273,
1185,
13719,
13289,
... |
if win_cross_compiling: | if win_compiling: | def get_exe_bytes (self): if win_cross_compiling: # wininst.exe is in the same directory as bdist_wininst # XXX for python2.4, use wininst-X.Y.exe directory = os.path.dirname(distutils.command.__file__) filename = os.path.join(directory, "wininst.exe") return open(filename, "rb").read() return super(MyBdistWininst, sel... | 44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/44ccc6339c9b7b06a9beaa414a5ef9dd982bdb33/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
309,
5657,
67,
2919,
4973,
30,
468,
5657,
8591,
18,
14880,
353,
316,
326,
1967,
1867,
487,
324,
4413,
67,
8082,
8591,
468,
11329,
364,
5790,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14880,
67,
3890,
261,
2890,
4672,
309,
5657,
67,
2919,
4973,
30,
468,
5657,
8591,
18,
14880,
353,
316,
326,
1967,
1867,
487,
324,
4413,
67,
8082,
8591,
468,
11329,
364,
5790,
... |
if not (hdlr in self.handlers): self.handlers.append(hdlr) | _acquireLock() try: if not (hdlr in self.handlers): self.handlers.append(hdlr) finally: _releaseLock() | def addHandler(self, hdlr): """ Add the specified handler to this logger. """ if not (hdlr in self.handlers): self.handlers.append(hdlr) | 058db50864ba668294db735c7439e6b07a89c9ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/058db50864ba668294db735c7439e6b07a89c9ba/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18430,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
1436,
326,
1269,
1838,
358,
333,
1194,
18,
3536,
309,
486,
261,
76,
5761,
86,
316,
365,
18,
11046,
4672,
365,
18,
11046,
18,
6923,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18430,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
1436,
326,
1269,
1838,
358,
333,
1194,
18,
3536,
309,
486,
261,
76,
5761,
86,
316,
365,
18,
11046,
4672,
365,
18,
11046,
18,
6923,
12,
... |
'<li><a href="/packages/%d">%s</a></li>' % \ (req.id,req.pkgname)) | '<li><a href="/packages/%d/">%s</a></li>' % \ (req.pkg.id,req.pkg.pkgname)) | def required_by_urlize(self): urls = [] requiredby = PackageDepends.objects.filter(depname=self.pkgname) for req in requiredby.package_set.all(): urls.append( '<li><a href="/packages/%d">%s</a></li>' % \ (req.id,req.pkgname)) return ''.join(urls) | 37361f664f5092d5f4cc7bb2a20e1e86cbbf558d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11256/37361f664f5092d5f4cc7bb2a20e1e86cbbf558d/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1931,
67,
1637,
67,
718,
554,
12,
2890,
4672,
6903,
273,
5378,
1931,
1637,
273,
7508,
4584,
87,
18,
6911,
18,
2188,
12,
15037,
529,
33,
2890,
18,
10657,
529,
13,
364,
1111,
316,
1931,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1931,
67,
1637,
67,
718,
554,
12,
2890,
4672,
6903,
273,
5378,
1931,
1637,
273,
7508,
4584,
87,
18,
6911,
18,
2188,
12,
15037,
529,
33,
2890,
18,
10657,
529,
13,
364,
1111,
316,
1931,
... |
timestamp = self.ReadPESHeader(c+offset, buffer[c+offset:], tsid)[1] | timestamp = self.ReadPESHeader(c+offset, buffer[c+offset:], tsid)[1] if timestamp is None: log.error('bad TS') return None | def _find_timer_TS_(self, buffer): c = 0 | 42acd927733011cf8240a16b5447261ed338ea48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/42acd927733011cf8240a16b5447261ed338ea48/mpeginfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
12542,
67,
8047,
67,
12,
2890,
16,
1613,
4672,
276,
273,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
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,
389,
4720,
67,
12542,
67,
8047,
67,
12,
2890,
16,
1613,
4672,
276,
273,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
(indent(depth), entry.DesktopEntry.getName().encode("utf8"), cmd) | (indent(depth), name, cmd) | def parseMenu(menu, wm, use_icons, theme, depth = 1): if use_icons: print "%s[submenu] (%s) <%s>" % ( indent(depth), menu.getName().encode('utf8'), findIcon(menu.getIcon(), theme) ) else: print "%s[submenu] (%s)" % (indent(depth), menu.getName().encode('utf8')) depth += 1 for entry in menu.getEntries(): if isinstance... | 83804cfff9c84d313cca936743135c78af7355f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7603/83804cfff9c84d313cca936743135c78af7355f7/fluxbox-xdg-menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4599,
12,
5414,
16,
18200,
16,
999,
67,
14516,
16,
5006,
16,
3598,
273,
404,
4672,
309,
999,
67,
14516,
30,
1172,
2213,
87,
63,
1717,
5414,
65,
6142,
87,
13,
23930,
87,
2984,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4599,
12,
5414,
16,
18200,
16,
999,
67,
14516,
16,
5006,
16,
3598,
273,
404,
4672,
309,
999,
67,
14516,
30,
1172,
2213,
87,
63,
1717,
5414,
65,
6142,
87,
13,
23930,
87,
2984,
7... |
requestPath = '%s/%s' % (statusDir,requestName) subRequests.append(requestPath) gLogger.info("RequestDBFile.__locateRequest: Successfully located %s." % requestName) return S_OK(subRequests) | requestPath = '%s/%s' % ( statusDir, requestName ) subRequests.append( requestPath ) gLogger.info( "RequestDBFile.__locateRequest: Successfully located %s." % requestName ) return S_OK( subRequests ) | def __locateRequest(self,requestName,assigned=False): """ Locate the sub requests associated with a requestName """ gLogger.info("RequestDBFile.__locateRequest: Attempting to locate %s." % requestName) requestTypes = os.listdir(self.root) subRequests = [] try: for requestType in requestTypes: reqDir = "%s/%s" % (self.r... | 457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
25450,
691,
12,
2890,
16,
2293,
461,
16,
15938,
33,
8381,
4672,
3536,
2851,
340,
326,
720,
3285,
3627,
598,
279,
590,
461,
3536,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
16186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
25450,
691,
12,
2890,
16,
2293,
461,
16,
15938,
33,
8381,
4672,
3536,
2851,
340,
326,
720,
3285,
3627,
598,
279,
590,
461,
3536,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
16186,
... |
pylab.hist(dt, bins=100, range=(-1, 1), histtype='step', label="Shift %+g s" % shift) | try: pylab.hist(dt, bins=100, range=(-1, 1), histtype='step', label="Shift %+g s" % shift) except NameError: pass | def do_timeshifts(hevents, kevents, shifts, dtlimit=None, limit=None, h=None, k=None): """Search for coincidences using multiple time shifts This function enables you to search for coincidences multiple times, using a list of time shifts. Given a data file, the events are read into arrays and passed on to the search_c... | ec68934b5913447993c94741388633368faa272f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11538/ec68934b5913447993c94741388633368faa272f/kascade_coincidences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8293,
76,
2136,
87,
12,
580,
616,
87,
16,
417,
5989,
16,
27552,
16,
3681,
3595,
33,
7036,
16,
1800,
33,
7036,
16,
366,
33,
7036,
16,
417,
33,
7036,
4672,
3536,
2979,
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,
741,
67,
8293,
76,
2136,
87,
12,
580,
616,
87,
16,
417,
5989,
16,
27552,
16,
3681,
3595,
33,
7036,
16,
1800,
33,
7036,
16,
366,
33,
7036,
16,
417,
33,
7036,
4672,
3536,
2979,
364,
... |
provenanceCmd = " | remoterepos = os.path.join(self.dirs.get("work"),self.pipeline) provenanceCmd = " | def createLaunchScript(self): # write out the script we use to kick things off user = self.provenanceDict["user"] runid = self.provenanceDict["runid"] dbrun = self.provenanceDict["dbrun"] dbglobal = self.provenanceDict["dbglobal"] repos = self.provenanceDict["repos"] | 1fb3f7fa866723cfb3d990406bd820081e110527 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6549/1fb3f7fa866723cfb3d990406bd820081e110527/DagmanPipelineConfigurator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
9569,
3651,
12,
2890,
4672,
468,
1045,
596,
326,
2728,
732,
999,
358,
23228,
9198,
3397,
225,
729,
273,
365,
18,
25630,
5014,
9614,
1355,
11929,
1086,
350,
273,
365,
18,
25630,
5014... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9569,
3651,
12,
2890,
4672,
468,
1045,
596,
326,
2728,
732,
999,
358,
23228,
9198,
3397,
225,
729,
273,
365,
18,
25630,
5014,
9614,
1355,
11929,
1086,
350,
273,
365,
18,
25630,
5014... |
A->A B->B C->F D->G E->E F->F G->G H->H I->I J->J K->K L->A M->M | A->A B->B C->F D->G E->E F->F G->G H->H I->I J->J K->K L->A M->M | ... def __str__(self): | 944a38a57407e7641b7c63f5341e83cbe0da7480 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/944a38a57407e7641b7c63f5341e83cbe0da7480/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
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... |
diracVersion = gConfig.getValue( "/Operations/%s/%s/Versions/PilotVersion" % (vo,setup), "unknown" ) | diracVersion = gConfig.getValue( "/Operations/%s/%s/Versions/PilotVersion" % ( vo, setup ), "unknown" ) | def __getPilotOptions(self,queue,pilotsToSubmit): """ Prepare pilot options """ queueDict = self.queueDict[queue]['ParametersDict'] vo = gConfig.getValue( "/DIRAC/VirtualOrganization", "unknown" ) if vo == 'unknown': self.log.error('Virtual Organization is not defined in the configuration') return None pilotOptions =... | fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
52,
22797,
1320,
12,
2890,
16,
4000,
16,
84,
330,
6968,
774,
11620,
4672,
3536,
7730,
293,
22797,
702,
3536,
225,
2389,
5014,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
2402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
52,
22797,
1320,
12,
2890,
16,
4000,
16,
84,
330,
6968,
774,
11620,
4672,
3536,
7730,
293,
22797,
702,
3536,
225,
2389,
5014,
273,
365,
18,
4000,
5014,
63,
4000,
23962,
2402,
... |
elif str(config[c]).lower() in ("false", "f", "0"): | elif str(config[c]).lower() in ("false", "f"): | def readLocalConfig(self): global config try: with open(CONFIG_FILE, 'r') as f: newConfig = json.load(f) self.cbLog("debug", "Read local config") config.update(newConfig) except Exception as ex: self.cbLog("warning", "Local config does not exist or file is corrupt. Exception: " + str(type(ex)) + str(ex.args)) for c in ... | 6972ea151cd3088587fbb948f94fba96c6ea44f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2094/6972ea151cd3088587fbb948f94fba96c6ea44f8/medicine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2042,
809,
12,
2890,
4672,
2552,
642,
775,
30,
598,
1696,
12,
7203,
67,
3776,
16,
296,
86,
6134,
487,
284,
30,
21032,
273,
1163,
18,
945,
12,
74,
13,
365,
18,
7358,
1343,
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,
855,
2042,
809,
12,
2890,
4672,
2552,
642,
775,
30,
598,
1696,
12,
7203,
67,
3776,
16,
296,
86,
6134,
487,
284,
30,
21032,
273,
1163,
18,
945,
12,
74,
13,
365,
18,
7358,
1343,
2932,
... |
fn = dlg.get_filename() if fn: self.app.start_reader(fn) | if response_id == gtk.RESPONSE_ACCEPT: fn = dlg.get_filename() if fn: self.app.start_reader(fn) | def response(dlg, response_id): fn = dlg.get_filename() if fn: self.app.start_reader(fn) dlg.destroy() | 0303fc8beffe8497b1ab21adbd97113219046476 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14744/0303fc8beffe8497b1ab21adbd97113219046476/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
5761,
75,
16,
766,
67,
350,
4672,
309,
766,
67,
350,
422,
22718,
18,
14508,
67,
21417,
30,
2295,
273,
25840,
18,
588,
67,
3459,
1435,
309,
2295,
30,
365,
18,
2910,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
766,
12,
5761,
75,
16,
766,
67,
350,
4672,
309,
766,
67,
350,
422,
22718,
18,
14508,
67,
21417,
30,
2295,
273,
25840,
18,
588,
67,
3459,
1435,
309,
2295,
30,
365,
18,
2910,
18,
1937,... |
if responseString != "": DebugPrint(0, responseString) | if (currentFailedCount == 0): responseString = "OK" elif (currentSuccessCount != 0): responseString = "Warning" else: responseString = "Error" responseString += " - Reprocessing "+str(currentSuccessCount)+" record(s) uploaded, "+str(currentBundledCount)+" bundled, "+str(currentFailedCount)+" failed" DebugPrint(0,"Repr... | def Reprocess(): global successfulReprocessCount global failedReprocessCount responseString = "" # Loop through and try to send any outstanding records for failedRecord in OutstandingRecord.keys(): if __connectionError: # Fail record without attempting to send. failedReprocessCount += 1 continue xmlData = None #if o... | afa5b9e606e09a707c71dbf4e8fb865d25aa5dd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/637/afa5b9e606e09a707c71dbf4e8fb865d25aa5dd9/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
2567,
13332,
2552,
6873,
426,
2567,
1380,
2552,
2535,
426,
2567,
1380,
225,
766,
780,
273,
1408,
225,
468,
9720,
3059,
471,
775,
358,
1366,
1281,
20974,
3853,
364,
2535,
2115,
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,
868,
2567,
13332,
2552,
6873,
426,
2567,
1380,
2552,
2535,
426,
2567,
1380,
225,
766,
780,
273,
1408,
225,
468,
9720,
3059,
471,
775,
358,
1366,
1281,
20974,
3853,
364,
2535,
2115,
316,
... |
library_dir = sysconfig.get_config_var('srcdir') cmd.library_dirs = [('.' if library_dir is None else library_dir)] | runshared = sysconfig.get_config_var('RUNSHARED') if runshared is None: cmd.library_dirs = ['.'] else: name, equals, value = runshared.partition('=') cmd.library_dirs = value.split(os.pathsep) | def _fixup_command(self, cmd): # When Python was build with --enable-shared, -L. is not good enough # to find the libpython<blah>.so. This is because regrtest runs it # under a tempdir, not in the top level where the .so lives. By the # time we've gotten here, Python's already been chdir'd to the # tempdir. # # To fu... | f084376f23ee20a972a1fb28f9fd5366f8fd2439 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/f084376f23ee20a972a1fb28f9fd5366f8fd2439/test_build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
416,
67,
3076,
12,
2890,
16,
1797,
4672,
468,
5203,
6600,
1703,
1361,
598,
1493,
7589,
17,
11574,
16,
300,
48,
18,
353,
486,
7494,
7304,
468,
358,
1104,
326,
2561,
8103,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
416,
67,
3076,
12,
2890,
16,
1797,
4672,
468,
5203,
6600,
1703,
1361,
598,
1493,
7589,
17,
11574,
16,
300,
48,
18,
353,
486,
7494,
7304,
468,
358,
1104,
326,
2561,
8103,
32,
... |
if first != second: | if not first == second: | def failUnlessEqual(self, first, second, msg=None): """Fail if the two objects are unequal as determined by the '!=' operator. """ if first != second: raise self.failureException, \ (msg or '%s != %s' % (`first`, `second`)) | c377cbfdaf9feb02bc5bea347cbe4c587ef33a10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c377cbfdaf9feb02bc5bea347cbe4c587ef33a10/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
984,
2656,
5812,
12,
2890,
16,
1122,
16,
2205,
16,
1234,
33,
7036,
4672,
3536,
3754,
309,
326,
2795,
2184,
854,
640,
9729,
487,
11383,
635,
326,
30311,
3726,
18,
3536,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
984,
2656,
5812,
12,
2890,
16,
1122,
16,
2205,
16,
1234,
33,
7036,
4672,
3536,
3754,
309,
326,
2795,
2184,
854,
640,
9729,
487,
11383,
635,
326,
30311,
3726,
18,
3536,
309,
486,
... |
dot.append('\trankdir=LR;') | if self.drawLandscape: dot.append('\trankdir=TB;') else: dot.append('\trankdir=LR;') | def createDotGraph(self, handler, styleMap): dot = [] dot.append('digraph rocks {') dot.append('\tsize="%s";' % self.drawSize) dot.append('\trankdir=LR;') | 133d4e24009e0c6aca10f6f27e15e645373d2b2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7066/133d4e24009e0c6aca10f6f27e15e645373d2b2f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10412,
4137,
12,
2890,
16,
1838,
16,
2154,
863,
4672,
3928,
273,
5378,
3928,
18,
6923,
2668,
5606,
1483,
23486,
87,
288,
6134,
3928,
18,
6923,
2668,
64,
88,
1467,
11613,
87,
6,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
10412,
4137,
12,
2890,
16,
1838,
16,
2154,
863,
4672,
3928,
273,
5378,
3928,
18,
6923,
2668,
5606,
1483,
23486,
87,
288,
6134,
3928,
18,
6923,
2668,
64,
88,
1467,
11613,
87,
6,
43... |
x = complex(x, 0) | x = _to_complex(x) | def tan(x): """tan(x) Return the tangent of x.""" x = complex(x, 0) sr = math.sin(x.real) cr = math.cos(x.real) shi = math.sinh(x.imag) chi = math.cosh(x.imag) rs = sr * chi is_ = cr * shi rc = cr * chi ic = -sr * shi d = rc*rc + ic * ic real = (rs*rc + is_*ic) / d imag = (is_*rc - rs*ic) / d return complex(real, ima... | d265b40c2f1e228c0cbd532ea68ae4f9079e1876 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/d265b40c2f1e228c0cbd532ea68ae4f9079e1876/cmath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17126,
12,
92,
4672,
3536,
88,
304,
12,
92,
13,
225,
2000,
326,
268,
24255,
434,
619,
12123,
225,
619,
273,
389,
869,
67,
14259,
12,
92,
13,
9133,
273,
4233,
18,
21861,
12,
92,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17126,
12,
92,
4672,
3536,
88,
304,
12,
92,
13,
225,
2000,
326,
268,
24255,
434,
619,
12123,
225,
619,
273,
389,
869,
67,
14259,
12,
92,
13,
9133,
273,
4233,
18,
21861,
12,
92,
18,
... |
lines.append(u'<h3>%s</h3>' % title) | def makeMoreInfoTable(self, title, moreInfoData): lines = [] lines.append(u'<h3>%s</h3>' % title) lines.append(u'<table cellpadding="0" cellspacing="0">') for label, text in moreInfoData: lines.append(u'<tr><td class="label">%s</td>' u'<td class="value">%s</td></tr>' % (label, text)) lines.append(u'</table>') return u'... | 4b90b4f8fcab394d7fe9391794e4e9e4ba0e57e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/4b90b4f8fcab394d7fe9391794e4e9e4ba0e57e1/item.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
7417,
966,
1388,
12,
2890,
16,
2077,
16,
1898,
966,
751,
4672,
2362,
273,
5378,
225,
2362,
18,
6923,
12,
89,
11,
32,
2121,
2484,
9598,
1546,
20,
6,
2484,
14080,
1546,
20,
7918,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
7417,
966,
1388,
12,
2890,
16,
2077,
16,
1898,
966,
751,
4672,
2362,
273,
5378,
225,
2362,
18,
6923,
12,
89,
11,
32,
2121,
2484,
9598,
1546,
20,
6,
2484,
14080,
1546,
20,
7918,
... | |
value = 0.0 amt = 0.0 | def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids... | be8d1f3f08714c0f37c3c42fbc3beeb2f650951d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/be8d1f3f08714c0f37c3c42fbc3beeb2f650951d/hr_payroll.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
8118,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
801,
84,
67,
6011,
273,
365,
18,
6011,
18,
588,
2668,
7256,
18,
351,
2817,
1340,
6134,
272,
3169,
67,
60... | |
vcard = model[path][2] vcard.filename = None self.saveButton_clicked() | vcard = load_contact(model[path][2]) if vcard is None: continue print vcard try: if not has_child(vcard, "prodid"): vcard.add("prodid").value = "Arkadas 1.0" if not has_child(vcard, "uid"): vcard.add("uid").value = uuid() filename = os.path.join(self.contact_dir, vcard.uid.value) save_contact(vcard, filename) except: ... | def importButton_clicked(self, widget): (model, paths) = self.contactSelection.get_selected_rows() for path in paths: vcard = model[path][2] vcard.filename = None self.saveButton_clicked() | d146007907c6581d8d80f2f60d1a7f1efdee1728 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/d146007907c6581d8d80f2f60d1a7f1efdee1728/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
3616,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
261,
2284,
16,
2953,
13,
273,
365,
18,
8994,
6233,
18,
588,
67,
8109,
67,
3870,
1435,
364,
589,
316,
2953,
30,
29760,
273,
938,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
3616,
67,
7475,
329,
12,
2890,
16,
3604,
4672,
261,
2284,
16,
2953,
13,
273,
365,
18,
8994,
6233,
18,
588,
67,
8109,
67,
3870,
1435,
364,
589,
316,
2953,
30,
29760,
273,
938,
6... |
result += ' <span class="py-line">' if css_class: result += '<span class="%s">' % css_class | result += ' <tt class="py-line">' if css_class: result += '<tt class="%s">' % css_class | def add_line_numbers(self, s, css_class): result = '' start = 0 end = s.find('\n')+1 while end: result += s[start:end-1] if css_class: result += '</span>' result += ' </span>' # py-line result += '\n' if self.ADD_LINE_NUMBERS: result += self.lineno_to_html() result += ' <span class="py-line">' if css_class: result += ... | cd4d6e5fbca5f698866ebe3598f5c2ca592983e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd4d6e5fbca5f698866ebe3598f5c2ca592983e0/html_colorize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1369,
67,
13851,
12,
2890,
16,
272,
16,
3747,
67,
1106,
4672,
563,
273,
875,
787,
273,
374,
679,
273,
272,
18,
4720,
2668,
64,
82,
6134,
15,
21,
1323,
679,
30,
563,
1011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
1369,
67,
13851,
12,
2890,
16,
272,
16,
3747,
67,
1106,
4672,
563,
273,
875,
787,
273,
374,
679,
273,
272,
18,
4720,
2668,
64,
82,
6134,
15,
21,
1323,
679,
30,
563,
1011,
... |
while classstack and \ classstack[-1][1] >= thisindent: del classstack[-1] | def readmodule_ex(module, path=[], inpackage=None): '''Read a module file and return a dictionary of classes. Search for MODULE in PATH and sys.path, read and parse the module and return a dictionary with one entry for each class found in the module. If INPACKAGE is true, it must be the dotted name of the package in ... | 0a6f954766cd091b117a1c5b16bdb0d2a837c2a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0a6f954766cd091b117a1c5b16bdb0d2a837c2a8/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
67,
338,
12,
2978,
16,
589,
22850,
6487,
316,
5610,
33,
7036,
4672,
9163,
1994,
279,
1605,
585,
471,
327,
279,
3880,
434,
3318,
18,
225,
5167,
364,
14057,
316,
7767,
471,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2978,
67,
338,
12,
2978,
16,
589,
22850,
6487,
316,
5610,
33,
7036,
4672,
9163,
1994,
279,
1605,
585,
471,
327,
279,
3880,
434,
3318,
18,
225,
5167,
364,
14057,
316,
7767,
471,
25... | |
left join cci_missions_site as s \ on s.id=e.site_id where (e.create_date BETWEEN '%s' AND '%s' ) \ group by s.name" % (d1, d2)) | left join cci_missions_site as s on s.id=e.site_id \ where (e.embassy_date BETWEEN '%s' AND '%s' ) group by s.name;" % (d1, d2)) | def _get_missions_states(self, d1, d2): self.cr.execute("select t.section, count(t.id) as no_certi, sum(goods_value) as no_goods, \ sum(sub_total) as total_sub, type_id, t.name \ from cci_missions_dossier as d,cci_missions_dossier_type as t \ where d.type_id=t.id and ( t.create_date BETWEEN '%s' AND '%s' )\ group b... | 9f092a99a526fdd09f626e0c2a44007c857cb559 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/9f092a99a526fdd09f626e0c2a44007c857cb559/stats_mission_type.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7300,
67,
7992,
12,
2890,
16,
302,
21,
16,
302,
22,
4672,
365,
18,
3353,
18,
8837,
2932,
4025,
268,
18,
3464,
16,
1056,
12,
88,
18,
350,
13,
487,
1158,
67,
7593,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7300,
67,
7992,
12,
2890,
16,
302,
21,
16,
302,
22,
4672,
365,
18,
3353,
18,
8837,
2932,
4025,
268,
18,
3464,
16,
1056,
12,
88,
18,
350,
13,
487,
1158,
67,
7593,
77,
... |
env.history.message(orangemsg( " Zoom To Selection: No visible chunks or movable jigs selected"\ " [Acceptable Jigs: Motors, Grid Plane and ESP Image]")) """ selectedChunksAndJigs = self.assy.getSelectedChunksAndJigs() numSelectedObjects = len(selectedChunksAndJigs) if numSelectedObjects and not self.assy.selatoms_... | if not self.assy.selatoms_list(): env.history.message(orangemsg( " Zoom To Selection: No visible atoms , chunks or movable jigs selected"\ " [Acceptable Jigs: Motors, Grid Plane and ESP Image]")) return center = comCenter pov = V(-center[0], -center[1], -center[2]) if fast: self.snapToView(self.quat, self.scale, pov, ... | def setViewZoomToSelection(self, fast = False): '''Change the view so that only selected chunks and Jigs fit in the GLPane. (i.e. Zoom to the selection) If <fast> is True, then snap to the view ''' #ninad060903: # I am not using bounding box object as used in fit to selection. I am using only self.scale #Not sure if th... | aeda9d74b684594c1b992d46125a6972106e90e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/aeda9d74b684594c1b992d46125a6972106e90e3/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19923,
11497,
774,
6233,
12,
2890,
16,
4797,
273,
1083,
4672,
9163,
3043,
326,
1476,
1427,
716,
1338,
3170,
6055,
471,
804,
360,
87,
4845,
316,
326,
10252,
8485,
18,
261,
77,
18,
73,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19923,
11497,
774,
6233,
12,
2890,
16,
4797,
273,
1083,
4672,
9163,
3043,
326,
1476,
1427,
716,
1338,
3170,
6055,
471,
804,
360,
87,
4845,
316,
326,
10252,
8485,
18,
261,
77,
18,
73,
1... |
return TestDataDirectory(path) return TestCaseFile(path) | return TestDataDirectory(source=path) return TestCaseFile(source=path) | def _get_directory_or_file_suite(path, suite_names): if os.path.isdir(path): return TestDataDirectory(path) #FIXME: filter suites: , suite_names) return TestCaseFile(path) | 1197844b161cb87f977ac685990521cc80ac8253 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/1197844b161cb87f977ac685990521cc80ac8253/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5149,
67,
280,
67,
768,
67,
30676,
12,
803,
16,
11371,
67,
1973,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
7766,
751,
2853,
12,
803,
13,
468,
25810,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
588,
67,
5149,
67,
280,
67,
768,
67,
30676,
12,
803,
16,
11371,
67,
1973,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
7766,
751,
2853,
12,
803,
13,
468,
25810,
... |
cty.c_int, [cty.POINTER(FL_OBJECT)], | cty.c_int, [cty.POINTER(FL_OBJECT)], | def fl_set_formbrowser_yoffset(ob, offset): """ fl_set_formbrowser_yoffset(ob, offset) -> num. """ retval = _fl_set_formbrowser_yoffset(ob, offset) return retval | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
687,
11213,
67,
93,
3348,
12,
947,
16,
1384,
4672,
3536,
1183,
67,
542,
67,
687,
11213,
67,
93,
3348,
12,
947,
16,
1384,
13,
317,
818,
18,
3536,
225,
5221,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
687,
11213,
67,
93,
3348,
12,
947,
16,
1384,
4672,
3536,
1183,
67,
542,
67,
687,
11213,
67,
93,
3348,
12,
947,
16,
1384,
13,
317,
818,
18,
3536,
225,
5221,
273,
... |
ts = Taskset([task]) self.do_taskset(ts) | taskset = Taskset([task]) self.do_taskset(taskset) | def dispatch_background_task(self, func, arg, uniq=None, high_priority=False): """Submit a background task and return its handle.""" task = Task(func, arg, uniq, background=True, high_priority=high_priority) ts = Taskset([task]) self.do_taskset(ts) return task.handle | ef788929fd8c1fa49c7e88bc29d0499db80ea6ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14772/ef788929fd8c1fa49c7e88bc29d0499db80ea6ab/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
67,
9342,
67,
4146,
12,
2890,
16,
1326,
16,
1501,
16,
10748,
33,
7036,
16,
3551,
67,
8457,
33,
8381,
4672,
3536,
11620,
279,
5412,
1562,
471,
327,
2097,
1640,
12123,
1562,
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,
3435,
67,
9342,
67,
4146,
12,
2890,
16,
1326,
16,
1501,
16,
10748,
33,
7036,
16,
3551,
67,
8457,
33,
8381,
4672,
3536,
11620,
279,
5412,
1562,
471,
327,
2097,
1640,
12123,
1562,
273,
3... |
ad = Ad().setTextIPPort(addr) reactor.connectTCP( '127.0.0.1', ad.port, AbortTransfer_Factory(nick)) | if port: reactor.connectTCP( '127.0.0.1', port, AbortTransfer_Factory(nick)) | def fail_cb(detail): if err_visible: self.pushStatus( "*** Connection to <%s> failed: %s" % (nick, detail)) | 4549728bd6ac5f8fa0f47227eecc0c6289325773 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/4549728bd6ac5f8fa0f47227eecc0c6289325773/dtella_dc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
67,
7358,
12,
8992,
4672,
309,
393,
67,
8613,
30,
365,
18,
6206,
1482,
12,
315,
14465,
4050,
358,
23930,
87,
34,
2535,
30,
738,
87,
6,
738,
261,
17091,
16,
7664,
3719,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
67,
7358,
12,
8992,
4672,
309,
393,
67,
8613,
30,
365,
18,
6206,
1482,
12,
315,
14465,
4050,
358,
23930,
87,
34,
2535,
30,
738,
87,
6,
738,
261,
17091,
16,
7664,
3719,
2,
-100,... |
def __contains__(self, k): | def has_key(self, k): | def __contains__(self, k): '''Return True if the given key exists in the database.''' return self.get(k, None) is not None | 1cfa479cebab07755ee6e8eb098c8a371d4742ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7738/1cfa479cebab07755ee6e8eb098c8a371d4742ca/cdblib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
856,
12,
2890,
16,
417,
4672,
9163,
990,
1053,
309,
326,
864,
498,
1704,
316,
326,
2063,
1093,
6309,
327,
365,
18,
588,
12,
79,
16,
599,
13,
353,
486,
599,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
856,
12,
2890,
16,
417,
4672,
9163,
990,
1053,
309,
326,
864,
498,
1704,
316,
326,
2063,
1093,
6309,
327,
365,
18,
588,
12,
79,
16,
599,
13,
353,
486,
599,
2,
-100,
-100,
... |
assert address1.select().execute().fetchall() == [(u1.user_id, a1.user_id, 'a1@foo.com')] assert address2.select().execute().fetchall() == [(u2.user_id, a2.user_id, 'a2@foo.com')] | assert address1.select().execute().fetchall() == [(a1.address_id, u1.user_id, 'a1@foo.com')] assert address2.select().execute().fetchall() == [(a1.address_id, u2.user_id, 'a2@foo.com')] | def testbasic(self): """tests a pair of one-to-many mapper structures, establishing that both parent and child objects honor the "entity_name" attribute attached to the object instances.""" class User(object):pass class Address(object):pass a1mapper = mapper(Address, address1, entity_name='address1', extension=ctx.map... | 9db4d1f8f547ac436991e2be40e00c5feee0ac20 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/9db4d1f8f547ac436991e2be40e00c5feee0ac20/entity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13240,
12,
2890,
4672,
3536,
16341,
279,
3082,
434,
1245,
17,
869,
17,
9353,
5815,
12597,
16,
18312,
310,
716,
3937,
982,
471,
1151,
2184,
24338,
280,
326,
315,
1096,
67,
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,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13240,
12,
2890,
4672,
3536,
16341,
279,
3082,
434,
1245,
17,
869,
17,
9353,
5815,
12597,
16,
18312,
310,
716,
3937,
982,
471,
1151,
2184,
24338,
280,
326,
315,
1096,
67,
529,
6,
... |
sage: math = Mathematica(server="remote_for_sage") | math = Mathematica(server="remote_for_sage") | def _install_hints_ssh_through_gate(self): r""" Hints for installing passwordless authentication through a gate """ # Written by Paul-Olivier Dehaye 2007/08/23 return """ | 1ade8a7cc121479673e792fc989e867022dd2021 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1ade8a7cc121479673e792fc989e867022dd2021/expect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
24598,
67,
10975,
67,
10064,
67,
10115,
12,
2890,
4672,
436,
8395,
670,
28142,
364,
3799,
310,
2201,
2656,
5107,
3059,
279,
12611,
3536,
468,
10423,
2253,
635,
21800,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
24598,
67,
10975,
67,
10064,
67,
10115,
12,
2890,
4672,
436,
8395,
670,
28142,
364,
3799,
310,
2201,
2656,
5107,
3059,
279,
12611,
3536,
468,
10423,
2253,
635,
21800,
332,
... |
user='vtserver', passwd='', | user=db_read_user, passwd=db_read_pass, | def get_wf_modules(self, host, port, db_name, vt_id, version): """get_wf_modules(host:str, port:int, db_name:str, vt_id:int, version:int) -> list of dict Returns a list of information about the modules used in a workflow in a list of dictionaries. The dictionary has the following keys: name, package, documentation. """... | 3ebd431b3e88347283e0d6f951c8fac25465a30e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/3ebd431b3e88347283e0d6f951c8fac25465a30e/application_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15581,
67,
6400,
12,
2890,
16,
1479,
16,
1756,
16,
1319,
67,
529,
16,
7966,
67,
350,
16,
1177,
4672,
3536,
588,
67,
15581,
67,
6400,
12,
2564,
30,
701,
16,
1756,
30,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15581,
67,
6400,
12,
2890,
16,
1479,
16,
1756,
16,
1319,
67,
529,
16,
7966,
67,
350,
16,
1177,
4672,
3536,
588,
67,
15581,
67,
6400,
12,
2564,
30,
701,
16,
1756,
30,
474,
... |
if current_stock < min_quantity: return current_date, current_stock | if current_qty < min_quantity: if not res_date: res_date = current_date if (not res_qty) or (current_qty < res_qty): res_qty = current_qty | def get_shortage(self, cursor, user, location_id, product_id, min_date, max_date, min_date_qty, order_point=None,context=None): """ Compute stock quantities between the two given dates. If given the order point, one date will be lacking in products this date is returned alongside the stock level at this date. | e31a8863ae53e3bfb18086ef454ee17abfb3acb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12480/e31a8863ae53e3bfb18086ef454ee17abfb3acb2/purchase_request.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6620,
410,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
350,
16,
3017,
67,
350,
16,
1131,
67,
712,
16,
943,
67,
712,
16,
1131,
67,
712,
67,
85,
4098,
16,
1353,
67,
1153,
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,
336,
67,
6620,
410,
12,
2890,
16,
3347,
16,
729,
16,
2117,
67,
350,
16,
3017,
67,
350,
16,
1131,
67,
712,
16,
943,
67,
712,
16,
1131,
67,
712,
67,
85,
4098,
16,
1353,
67,
1153,
3... |
""" Helper for getFilesForName(). """ | """Helper for getFilesForName().""" | def _visit_pyfiles(list, dirname, names): """ Helper for getFilesForName(). """ # get extension for python source files if not globals().has_key('_py_ext'): import imp global _py_ext _py_ext = [triple[0] for triple in imp.get_suffixes() if triple[2] == imp.PY_SOURCE][0] # don't recurse into CVS directories if 'CVS' in... | 9aeccb6a889c8d4e7617228595da08f4f31a3666 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9aeccb6a889c8d4e7617228595da08f4f31a3666/pygettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11658,
67,
2074,
2354,
12,
1098,
16,
4283,
16,
1257,
4672,
3536,
2276,
364,
18262,
1290,
461,
1435,
12123,
468,
336,
2710,
364,
5790,
1084,
1390,
309,
486,
10941,
7675,
5332,
67,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11658,
67,
2074,
2354,
12,
1098,
16,
4283,
16,
1257,
4672,
3536,
2276,
364,
18262,
1290,
461,
1435,
12123,
468,
336,
2710,
364,
5790,
1084,
1390,
309,
486,
10941,
7675,
5332,
67,
85... |
if result[0] == '%': | if not result or result[0] == '%': | def strftest(now): if verbose: print "strftime test for", time.ctime(now) nowsecs = str(long(now))[:-1] gmt = time.gmtime(now) now = time.localtime(now) if now[3] < 12: ampm='AM' else: ampm='PM' jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6)) try: if now[8]: tz = time.tzname[1] else: tz = time.tzname[0] ... | f247c41fe3a91b30f78fa6d5efbeffe69af10694 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f247c41fe3a91b30f78fa6d5efbeffe69af10694/test_strftime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
1222,
395,
12,
3338,
4672,
309,
3988,
30,
1172,
315,
701,
9982,
1842,
364,
3113,
813,
18,
21261,
12,
3338,
13,
2037,
21317,
273,
609,
12,
5748,
12,
3338,
3719,
10531,
17,
21,
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,
609,
1222,
395,
12,
3338,
4672,
309,
3988,
30,
1172,
315,
701,
9982,
1842,
364,
3113,
813,
18,
21261,
12,
3338,
13,
2037,
21317,
273,
609,
12,
5748,
12,
3338,
3719,
10531,
17,
21,
65,
... |
for (inPageTemplate, param) in templatesWithParams: if inPageTemplate == template[0] \ and template[1] in param[0]: return True return False def updateInterwiki (wikipediaPage = None, commonsPage = None): ''' Update the interwiki's at commons from a wikipedia page. The bot just replaces the interwiki links at the comm... | commonscatLink = self.findCommonscatLink(page) if (commonscatLink!=u''): self.changeCommonscat (page, currentCommonscatTemplate, currentCommonscatTarget, primaryCommonscat, commonscatLink) elif self.skipPage(page): pywikibot.output("Found a template in the skip list. Skipping %s" % page.title()); else: commonscatLi... | def skipPage(page): ''' Do we want to skip this page? ''' if page.site().language() in ignoreTemplates: templatesInThePage = page.templates() templatesWithParams = page.templatesWithParams() for template in ignoreTemplates[page.site().language()]: if type(template) != tuple: if template in templatesInThePage: return Tr... | 603b10c02e6826471def31d0bcd64a60e30a48bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/603b10c02e6826471def31d0bcd64a60e30a48bb/commonscat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
1964,
12,
2433,
4672,
9163,
2256,
732,
2545,
358,
2488,
333,
1363,
35,
9163,
309,
1363,
18,
4256,
7675,
4923,
1435,
316,
2305,
8218,
30,
5539,
382,
1986,
1964,
273,
1363,
18,
8502,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2488,
1964,
12,
2433,
4672,
9163,
2256,
732,
2545,
358,
2488,
333,
1363,
35,
9163,
309,
1363,
18,
4256,
7675,
4923,
1435,
316,
2305,
8218,
30,
5539,
382,
1986,
1964,
273,
1363,
18,
8502,... |
if not self.literal_block: | if self.literal_block or self.literal: pass else: | def encode(self, text): """ Encode special characters in `text` & return. # $ % & ~ _ ^ \ { } Escaping with a backslash does not help with backslashes, ~ and ^. | 2e40c571d3b4487ef92a2cf6415d91697e158e17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/2e40c571d3b4487ef92a2cf6415d91697e158e17/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
977,
4672,
3536,
6240,
4582,
3949,
316,
1375,
955,
68,
473,
327,
18,
468,
271,
738,
473,
4871,
389,
3602,
521,
288,
289,
512,
1017,
24447,
598,
279,
23253,
1552,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
977,
4672,
3536,
6240,
4582,
3949,
316,
1375,
955,
68,
473,
327,
18,
468,
271,
738,
473,
4871,
389,
3602,
521,
288,
289,
512,
1017,
24447,
598,
279,
23253,
1552,
48... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.