rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
''' Print up an index of the available instances | ''' Print up an index of the available trackers | def index(self): ''' Print up an index of the available instances ''' self.send_response(200) self.send_header('Content-Type', 'text/html') self.end_headers() w = self.wfile.write w(_('<html><head><title>Roundup instances index</title></head>\n')) w(_('<body><h1>Roundup instances index</h1><ol>\n')) for instance in sel... | e18361038688011601501a65fdc81b5cb7e88e34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/e18361038688011601501a65fdc81b5cb7e88e34/roundup_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
4672,
9163,
3038,
731,
392,
770,
434,
326,
2319,
3298,
414,
9163,
365,
18,
4661,
67,
2740,
12,
6976,
13,
365,
18,
4661,
67,
3374,
2668,
1350,
17,
559,
2187,
296,
955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
770,
12,
2890,
4672,
9163,
3038,
731,
392,
770,
434,
326,
2319,
3298,
414,
9163,
365,
18,
4661,
67,
2740,
12,
6976,
13,
365,
18,
4661,
67,
3374,
2668,
1350,
17,
559,
2187,
296,
955,
... |
self.assertRaises(OverflowError, '%c'.__mod__, 0x1234) | self.assertRaises(OverflowError, '%c'.__mod__, 0x12341234) | def test_formatting(self): string_tests.MixinStrUnicodeUserStringTest.test_formatting(self) self.assertRaises(OverflowError, '%c'.__mod__, 0x1234) | bfc13eccd79b8651edd9f291c1520ceccdbde215 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/bfc13eccd79b8651edd9f291c1520ceccdbde215/test_str.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
533,
67,
16341,
18,
14439,
1585,
16532,
1299,
780,
4709,
18,
3813,
67,
2139,
1787,
12,
2890,
13,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2139,
1787,
12,
2890,
4672,
533,
67,
16341,
18,
14439,
1585,
16532,
1299,
780,
4709,
18,
3813,
67,
2139,
1787,
12,
2890,
13,
365,
18,
11231,
12649,
6141,
12,
15526,
668,
16,
... |
sage: K.hilbert_class_polynomial() | sage: K.hilbert_class_field_defining_polynomial() | def hilbert_class_polynomial(self): r""" Returns a polynomial over $\QQ$ whose roots generate the Hilbert class field of this quadratic field. | 2a259e3659e2fbb631c618303984449cc23e8057 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2a259e3659e2fbb631c618303984449cc23e8057/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
330,
25925,
67,
1106,
67,
3915,
13602,
12,
2890,
4672,
436,
8395,
2860,
279,
16991,
1879,
271,
64,
53,
53,
8,
8272,
12876,
2103,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
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,
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,
366,
330,
25925,
67,
1106,
67,
3915,
13602,
12,
2890,
4672,
436,
8395,
2860,
279,
16991,
1879,
271,
64,
53,
53,
8,
8272,
12876,
2103,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
6... |
for prop in \ self.propertyNames: | for prop in self.propertyNames: | def __str__(self): l = [] for prop in \ self.propertyNames: | 8fe460093ad5673927f98753e514878f4b1cf006 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/578/8fe460093ad5673927f98753e514878f4b1cf006/Atom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
328,
273,
5378,
364,
2270,
316,
521,
365,
18,
4468,
1557,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
328,
273,
5378,
364,
2270,
316,
521,
365,
18,
4468,
1557,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
shutil.rmtree(os.path.join(self.workdir, 'os-unified'), ignore_errors=True) shutil.move('%s-disc1' % self.topdir, os.path.join(self.workdir, 'os-unified')) | if not self.config.get('default', 'arch') == 'source': shutil.rmtree(os.path.join(self.workdir, 'os-unified'), ignore_errors=True) shutil.move('%s-disc1' % self.topdir, os.path.join(self.workdir, 'os-unified')) | def doCreateIsos(self, split=True): """Create isos of the tree, optionally splitting the tree for split media.""" | aa358c15177650addd547369b409d82d719f19ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8489/aa358c15177650addd547369b409d82d719f19ea/pungi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1684,
2520,
538,
12,
2890,
16,
1416,
33,
5510,
4672,
3536,
1684,
353,
538,
434,
326,
2151,
16,
8771,
20347,
326,
2151,
364,
1416,
3539,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1684,
2520,
538,
12,
2890,
16,
1416,
33,
5510,
4672,
3536,
1684,
353,
538,
434,
326,
2151,
16,
8771,
20347,
326,
2151,
364,
1416,
3539,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
global _task_params _task_params["task_name"] = os.path.basename(sys.argv[0]) | def main(): """Main function that analyzes command line input and calls whatever is appropriate. """ ## parse command line: # set user-defined options: global _task_params # Small trick to let bibtask.authenticate framework to work for non tasks. _task_params["task_name"] = os.path.basename(sys.argv[0]) options = {'... | 3ca17b519f4fe7da5456b5836f7a90a2f2c16e2f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/3ca17b519f4fe7da5456b5836f7a90a2f2c16e2f/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
716,
392,
4647,
281,
1296,
980,
810,
471,
4097,
15098,
353,
5505,
18,
3536,
225,
7541,
1109,
1296,
980,
30,
468,
444,
729,
17,
2178,
702,
30,
2552,
389,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
716,
392,
4647,
281,
1296,
980,
810,
471,
4097,
15098,
353,
5505,
18,
3536,
225,
7541,
1109,
1296,
980,
30,
468,
444,
729,
17,
2178,
702,
30,
2552,
389,
4... | |
print('usage: %s order.html input_file_1 input_file_2 ... ' | print('usage: %s order.html input_source_dir_1 input_source_dir_2 ... ' | def main(argv): if len(argv) < 3: print('usage: %s order.html input_file_1 input_file_2 ... ' 'output_file' % argv[0]) return 1 output_file_name = argv.pop() full_paths = {} for full_path in argv[2:]: file_name = os.path.basename(full_path) if file_name.endswith('.js'): full_paths[file_name] = full_path extractor =... | 0e20df92d79799ae285040cb0cf1d5fb898e9db2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/0e20df92d79799ae285040cb0cf1d5fb898e9db2/concatenate_js_files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
225,
309,
562,
12,
19485,
13,
411,
890,
30,
1172,
2668,
9167,
30,
738,
87,
1353,
18,
2620,
810,
67,
3168,
67,
1214,
67,
21,
810,
67,
3168,
67,
1214,
67,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19485,
4672,
225,
309,
562,
12,
19485,
13,
411,
890,
30,
1172,
2668,
9167,
30,
738,
87,
1353,
18,
2620,
810,
67,
3168,
67,
1214,
67,
21,
810,
67,
3168,
67,
1214,
67,
22,
... |
files.append(('.', [('bin/import_xml.rng')])) | files.append(('.', [(opj('bin', 'import_xml.rng'))])) | def data_files(): '''Build list of data files to be installed''' files = [] if os.name == 'nt': os.chdir('bin') for (dp,dn,names) in os.walk('addons'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) for (dp,dn,names) in os.walk('i18n'): files.append((dp, map(lambda x: opj('bin', dp, x), names))) os.chdir('... | 114a2bfad8f7bffe707350dbdb33d347f9acb87b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/114a2bfad8f7bffe707350dbdb33d347f9acb87b/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
2354,
13332,
9163,
3116,
666,
434,
501,
1390,
358,
506,
5876,
26418,
1390,
273,
5378,
309,
1140,
18,
529,
422,
296,
496,
4278,
1140,
18,
343,
1214,
2668,
4757,
6134,
364,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
67,
2354,
13332,
9163,
3116,
666,
434,
501,
1390,
358,
506,
5876,
26418,
1390,
273,
5378,
309,
1140,
18,
529,
422,
296,
496,
4278,
1140,
18,
343,
1214,
2668,
4757,
6134,
364,
261,
... |
"""__exitCurrent(self) Exit the current state""" | """ Exit the current state """ | def __exitCurrent(self, argList): """__exitCurrent(self) Exit the current state""" assert(self.__internalStateInFlux) assert(ClassicFSM.notify.debug("[%s]: exiting %s" % (self.__name, self.__currentState.getName()))) self.__currentState.exit(argList) # Only send the state change event if we are inspecting it # If this ... | 32374b1b273c5130841307c0da81e0e6e1ce336c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/32374b1b273c5130841307c0da81e0e6e1ce336c/ClassicFSM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8593,
3935,
12,
2890,
16,
1501,
682,
4672,
3536,
9500,
326,
783,
919,
3536,
1815,
12,
2890,
16186,
7236,
1119,
382,
2340,
2616,
13,
1815,
12,
797,
335,
4931,
49,
18,
12336,
18,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8593,
3935,
12,
2890,
16,
1501,
682,
4672,
3536,
9500,
326,
783,
919,
3536,
1815,
12,
2890,
16186,
7236,
1119,
382,
2340,
2616,
13,
1815,
12,
797,
335,
4931,
49,
18,
12336,
18,
4... |
return self._c_arch_flags() | return [] | def get_flags_arch(self): return self._c_arch_flags() | 435c7262592e94c8519f4288a19035de054758fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/435c7262592e94c8519f4288a19035de054758fd/gnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7133,
67,
991,
12,
2890,
4672,
327,
365,
6315,
71,
67,
991,
67,
7133,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7133,
67,
991,
12,
2890,
4672,
327,
365,
6315,
71,
67,
991,
67,
7133,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
"\\\")'") | "\\\")\"") | def byte_compile(): os.system(options['emacs'] + " --batch" + " --eval \"(byte-compile-file \\\"" + options['dest'] + "\\\")'") | 7ee3296d567a56ea61f09552fa7c755538c1345f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12942/7ee3296d567a56ea61f09552fa7c755538c1345f/compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1160,
67,
11100,
13332,
1140,
18,
4299,
12,
2116,
3292,
351,
28965,
3546,
397,
315,
1493,
5303,
6,
397,
315,
1493,
8622,
1239,
12,
7229,
17,
11100,
17,
768,
521,
1695,
3660,
397,
702,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1160,
67,
11100,
13332,
1140,
18,
4299,
12,
2116,
3292,
351,
28965,
3546,
397,
315,
1493,
5303,
6,
397,
315,
1493,
8622,
1239,
12,
7229,
17,
11100,
17,
768,
521,
1695,
3660,
397,
702,
... |
'.', 'HDF5 files (*.h5 *.hdf5)', f+'.h5' | './'+f+'.h5', 'HDF5 files (*.h5 *.hdf5)' | def importSpecFile(self, force=False): f = '%s'% QtGui.QFileDialog.getOpenFileName(self, 'Open File', '.', "Spec datafiles (*.dat *.mca);;All files (*)") if f: h5_filename = str( QtGui.QFileDialog.getSaveFileName( self, 'Save HDF5 File', '.', 'HDF5 files (*.h5 *.hdf5)', f+'.h5' ) ) if h5_filename: self.statusBar.showMe... | d906b02b09dd98f7f7567d705d18bcdd5d8602b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14949/d906b02b09dd98f7f7567d705d18bcdd5d8602b3/mainwindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
1990,
812,
12,
2890,
16,
2944,
33,
8381,
4672,
284,
273,
1995,
87,
11,
9,
23425,
18,
53,
812,
6353,
18,
588,
3678,
4771,
12,
2890,
16,
296,
3678,
1387,
2187,
2611,
16,
315,
199... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
1990,
812,
12,
2890,
16,
2944,
33,
8381,
4672,
284,
273,
1995,
87,
11,
9,
23425,
18,
53,
812,
6353,
18,
588,
3678,
4771,
12,
2890,
16,
296,
3678,
1387,
2187,
2611,
16,
315,
199... |
_confifgure_galaxy_env() | _configure_galaxy_env() | def _configure_environment(): _configure_ec2_autorun() _clean_rabbitmq_env() _configure_sge() _confifgure_galaxy_env() _configure_nfs() _configure_bash() | cc8ad7b01125bbdbb9c0d09835e97fe06920ac73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11876/cc8ad7b01125bbdbb9c0d09835e97fe06920ac73/mi_fabfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
67,
10274,
13332,
389,
14895,
67,
557,
22,
67,
69,
3408,
318,
1435,
389,
6200,
67,
20727,
3682,
11636,
67,
3074,
1435,
389,
14895,
67,
87,
908,
1435,
389,
14895,
67,
25030,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14895,
67,
10274,
13332,
389,
14895,
67,
557,
22,
67,
69,
3408,
318,
1435,
389,
6200,
67,
20727,
3682,
11636,
67,
3074,
1435,
389,
14895,
67,
87,
908,
1435,
389,
14895,
67,
25030,
... |
self.check_sizeof(1, size(h + 'l')) self.check_sizeof(abs, size(h + '3P')) | check(1, size(h + 'l')) check(100, size(h + 'l')) check(iter('abc'), size(h + 'lP')) import re check(re.finditer('',''), size(h + '2P')) samples = [[], [1,2,3], ['1', '2', '3']] for sample in samples: check(sample, size(vh + 'PP') + len(sample)*self.P) check(iter([]), size(h + 'lP')) check(reversed([]), size(h... | def get_gen(): yield 1 | 2a9c012d274c588c51bc5660baff9bd0676bd399 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2a9c012d274c588c51bc5660baff9bd0676bd399/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4507,
13332,
2824,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4507,
13332,
2824,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
close() | def plot_systematics(filelist,cp,dir,epoch,dag,opts): flist = [] for file in filelist: if os.path.split(file)[-1][:8] == "out-bin-": flist.append(file) freq = [] freqfile = cp.get('noisecomp','freq-file') for line in open(freqfile,'r').readlines(): freq.append(float(line.strip())) hfr1 = {} hfi1 = {} htr1 = {} hti1 = ... | da21469de3d5dc0444d38910fa554bbd3b46754d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/da21469de3d5dc0444d38910fa554bbd3b46754d/strain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
67,
4299,
270,
2102,
12,
7540,
5449,
16,
4057,
16,
1214,
16,
12015,
16,
30204,
16,
4952,
4672,
284,
1098,
273,
5378,
364,
585,
316,
26204,
30,
309,
1140,
18,
803,
18,
4939,
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,
3207,
67,
4299,
270,
2102,
12,
7540,
5449,
16,
4057,
16,
1214,
16,
12015,
16,
30204,
16,
4952,
4672,
284,
1098,
273,
5378,
364,
585,
316,
26204,
30,
309,
1140,
18,
803,
18,
4939,
12,
... | |
subprocess.check_call(['mw-zip', | err = subprocess.call(['mw-zip', | def setup_class(cls): cls.tmpdir = tempfile.mkdtemp() cls.zipfn = os.path.join(cls.tmpdir, 'test.zip') cls.nuwikidir = cls.zipfn + '.nuwiki' subprocess.check_call(['mw-zip', '-o', cls.zipfn, '-c', ':de', '--keep-tmpfiles', '--print-template-pattern', '$1/Druck', '--template-exclusion-category', 'Vom Druck ausschließen'... | 78daa60c55968f00eaf442dee8e6b3b20ea35d31 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/78daa60c55968f00eaf442dee8e6b3b20ea35d31/test_nuwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
1106,
12,
6429,
4672,
2028,
18,
5645,
1214,
273,
13275,
18,
24816,
72,
5814,
1435,
2028,
18,
4450,
4293,
273,
1140,
18,
803,
18,
5701,
12,
6429,
18,
5645,
1214,
16,
296,
3813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
1106,
12,
6429,
4672,
2028,
18,
5645,
1214,
273,
13275,
18,
24816,
72,
5814,
1435,
2028,
18,
4450,
4293,
273,
1140,
18,
803,
18,
5701,
12,
6429,
18,
5645,
1214,
16,
296,
3813... |
self.non_cash_benefits_sub_2010_map() | def createMappings(self): self.export_map() self.source_map() self.source_export_link_2010_map() self.region_2010_map() self.agency_2010_map() self.agency_child_2010_map() self.service_group_2010_map() self.license_accreditation_2010_map() self.agency_service_2010_map() self.service_2010_map() self.site_2010_map() self... | 88818f8d8f7a51ab2308fbf722a2c8b9101e678b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9116/88818f8d8f7a51ab2308fbf722a2c8b9101e678b/DBObjects.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
7742,
12,
2890,
4672,
365,
18,
6530,
67,
1458,
1435,
365,
18,
3168,
67,
1458,
1435,
365,
18,
3168,
67,
6530,
67,
1232,
67,
6734,
20,
67,
1458,
1435,
365,
18,
6858,
67,
6734,
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,
752,
7742,
12,
2890,
4672,
365,
18,
6530,
67,
1458,
1435,
365,
18,
3168,
67,
1458,
1435,
365,
18,
3168,
67,
6530,
67,
1232,
67,
6734,
20,
67,
1458,
1435,
365,
18,
6858,
67,
6734,
20,... | |
for entry in dependencies: if entry == className or entry in result: | dependencies = classObj.getDependencies() for depClassName in dependencies: if depClassName == className or depClassName in result: | def __resolveDependencies(self, className, available, result=None): if result == None: result = set() | ce6ddc5dd5613bc0ee91ffee09cb076c12f6397b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/ce6ddc5dd5613bc0ee91ffee09cb076c12f6397b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10828,
8053,
12,
2890,
16,
2658,
16,
2319,
16,
563,
33,
7036,
4672,
309,
563,
422,
599,
30,
563,
273,
444,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
10828,
8053,
12,
2890,
16,
2658,
16,
2319,
16,
563,
33,
7036,
4672,
309,
563,
422,
599,
30,
563,
273,
444,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.bIsRunning = 0 | self.m_bIsRunning = 0 | def __init__(self, sConfigFileName): """Constructor.""" | 54ffec807df4acdcdd8fab12b225a27dbe06e238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/54ffec807df4acdcdd8fab12b225a27dbe06e238/pManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
809,
4771,
4672,
3536,
6293,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
809,
4771,
4672,
3536,
6293,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
site_root = self.site_root() | site_root = self.site_root() | def set_password(self, newPassword): """Sets the user's password to 'newPassword'. | c1e472f185662eb960cbdc2abb51cbf242ccd17d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6270/c1e472f185662eb960cbdc2abb51cbf242ccd17d/CustomUser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3664,
12,
2890,
16,
394,
3913,
4672,
3536,
2785,
326,
729,
1807,
2201,
358,
296,
2704,
3913,
10332,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3664,
12,
2890,
16,
394,
3913,
4672,
3536,
2785,
326,
729,
1807,
2201,
358,
296,
2704,
3913,
10332,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
jobDict[attrList[i]] = str(attrValues[i]) | jobDict[attr_tmp_list[i]] = str(attrValues[i]) | def getAttributesForJobList(self,jobIDList,attrList=[]): """ Get attributes for the jobs in the the jobIDList. Returns an S_OK structure with a dictionary of dictionaries as its Value: ValueDict[jobID][attribute_name] = attribute_value """ | 2cdc052871bad4a94040dc59b4de126b09c4e209 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/2cdc052871bad4a94040dc59b4de126b09c4e209/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10183,
1290,
2278,
682,
12,
2890,
16,
4688,
24583,
16,
1747,
682,
33,
8526,
4672,
3536,
968,
1677,
364,
326,
6550,
316,
326,
326,
1719,
24583,
18,
2860,
392,
348,
67,
3141,
3695,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10183,
1290,
2278,
682,
12,
2890,
16,
4688,
24583,
16,
1747,
682,
33,
8526,
4672,
3536,
968,
1677,
364,
326,
6550,
316,
326,
326,
1719,
24583,
18,
2860,
392,
348,
67,
3141,
3695,
598,
... |
print self.nohelp % (arg,) | self.stdout.write("%s\n"%str(self.nohelp % (arg,))) | def do_help(self, arg): if arg: # XXX check arg syntax try: func = getattr(self, 'help_' + arg) except AttributeError: try: doc=getattr(self, 'do_' + arg).__doc__ if doc: print doc return except AttributeError: pass print self.nohelp % (arg,) return func() else: names = self.get_names() cmds_doc = [] cmds_undoc = [] he... | 156c8cacd5b24e96aca73a09979e4d4cc9691d70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/156c8cacd5b24e96aca73a09979e4d4cc9691d70/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5201,
12,
2890,
16,
1501,
4672,
309,
1501,
30,
468,
11329,
866,
1501,
6279,
775,
30,
1326,
273,
3869,
12,
2890,
16,
296,
5201,
4623,
397,
1501,
13,
1335,
6394,
30,
775,
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,
741,
67,
5201,
12,
2890,
16,
1501,
4672,
309,
1501,
30,
468,
11329,
866,
1501,
6279,
775,
30,
1326,
273,
3869,
12,
2890,
16,
296,
5201,
4623,
397,
1501,
13,
1335,
6394,
30,
775,
30,
... |
return read_image(d, size) | try: return read_image(d, size) except IOError: raise web.notfound() | def redirect(id): size_part = size and ("-" + size) or "" url = "/%s/id/%s%s.jpg" % (category, id, size_part) query = web.ctx.env.get('QUERY_STRING') if query: url += '?' + query raise web.found(url) | e2814666e312228b22d490e0604b0dc48beca092 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/e2814666e312228b22d490e0604b0dc48beca092/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
350,
4672,
963,
67,
2680,
273,
963,
471,
7566,
10951,
397,
963,
13,
578,
1408,
880,
273,
2206,
9,
87,
19,
350,
5258,
87,
9,
87,
18,
14362,
6,
738,
261,
4743,
16,
612,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
12,
350,
4672,
963,
67,
2680,
273,
963,
471,
7566,
10951,
397,
963,
13,
578,
1408,
880,
273,
2206,
9,
87,
19,
350,
5258,
87,
9,
87,
18,
14362,
6,
738,
261,
4743,
16,
612,
16,... |
self.gridEnv = gConfig.getValue( mySection+'/GridEnv ' , self.gridEnv ) | self.gridEnv = gConfig.getValue( mySection+'/GridEnv' , self.gridEnv ) | def configureFromSection( self, mySection ): | 98f1b9943c2ca121fafc9f4c67ebd8030aa7cbee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/98f1b9943c2ca121fafc9f4c67ebd8030aa7cbee/Director.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
1265,
5285,
12,
365,
16,
3399,
5285,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5068,
1265,
5285,
12,
365,
16,
3399,
5285,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
match = re.search(regex, text, re.IGNORECASE) | match = re.search(regex, text, flags=re.IGNORECASE) | def processImage(self, page): ''' Work on a single image ''' if page.exists() and (page.namespace() == 6) and \ (not page.isRedirectPage()): imagepage = pywikibot.ImagePage(page.site(), page.title()) | ada806f6ba140022c0ebdd89945e2b51ab46aa82 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/ada806f6ba140022c0ebdd89945e2b51ab46aa82/imagecopy_self.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2040,
12,
2890,
16,
1363,
4672,
9163,
4147,
603,
279,
2202,
1316,
9163,
309,
1363,
18,
1808,
1435,
471,
261,
2433,
18,
4937,
1435,
422,
1666,
13,
471,
521,
261,
902,
1363,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
2040,
12,
2890,
16,
1363,
4672,
9163,
4147,
603,
279,
2202,
1316,
9163,
309,
1363,
18,
1808,
1435,
471,
261,
2433,
18,
4937,
1435,
422,
1666,
13,
471,
521,
261,
902,
1363,
18,
29... |
kernel32 = ctypes.windll.kernel32 buf = ctypes.create_string_buffer("", 100) if kernel32.GetVolumeInformationA(root, None, 0, None, None, None, buf, len(buf)): | from ctypes.wintypes import LPCWSTR, LPWSTR, DWORD LPDWORD = ctypes.POINTER(DWORD) f = ctypes.windll.kernel32.GetVolumeInformationW f.argtypes = (LPCWSTR, LPWSTR, DWORD, LPDWORD, LPDWORD, LPDWORD, LPWSTR, DWORD) buf = ctypes.create_unicode_buffer("", 100) if f(root, None, 0, None, None, None, buf, len(buf)): | def get_file_system(path): import os root = os.path.splitdrive(os.path.realpath("."))[0] + '\\' import ctypes kernel32 = ctypes.windll.kernel32 buf = ctypes.create_string_buffer("", 100) if kernel32.GetVolumeInformationA(root, None, 0, None, None, None, buf, len(buf)): return buf.value | 534c6e6e622faa08acf3381b5bbf71a9b19b030e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/534c6e6e622faa08acf3381b5bbf71a9b19b030e/test_os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
4299,
12,
803,
4672,
1930,
1140,
1365,
273,
1140,
18,
803,
18,
4939,
25431,
12,
538,
18,
803,
18,
7688,
803,
2932,
1199,
3719,
63,
20,
65,
397,
5282,
1930,
6983,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
67,
4299,
12,
803,
4672,
1930,
1140,
1365,
273,
1140,
18,
803,
18,
4939,
25431,
12,
538,
18,
803,
18,
7688,
803,
2932,
1199,
3719,
63,
20,
65,
397,
5282,
1930,
6983,
62... |
dbg = None | action = None | def trace (message): if classname == trace_type and peer_object_id in trace_ids: message_verbose('TRACE>>'+message) | be959d0158ffaff6d50158269f03ba7f2c1da56f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7598/be959d0158ffaff6d50158269f03ba7f2c1da56f/RefreshPeer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
13,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2606,
261,
2150,
4672,
309,
7479,
422,
2606,
67,
723,
471,
4261,
67,
1612,
67,
350,
316,
2606,
67,
2232,
30,
883,
67,
11369,
2668,
23827,
34,
1870,
15,
2150,
13,
2,
-100,
-100,
-100,
... |
None. | Returns True if commhandle was successfully closed, False if the handle cannot be closed (i.e. it was already closed). | def stopcomm(commhandle): """ <Purpose> Stop handling events for a commhandle. This works for both message and connection based event handlers. <Arguments> commhandle: A commhandle as returned by recvmess or waitforconn. <Exceptions> None. <Side Effects> This has an undefined effect on a socket-like object if it i... | 0dbab99960c75805243ad4ca128a6b56bbb7638d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/0dbab99960c75805243ad4ca128a6b56bbb7638d/emulcomm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
5702,
12,
5702,
4110,
4672,
3536,
411,
10262,
4150,
34,
5131,
5057,
2641,
364,
279,
1543,
4110,
18,
282,
1220,
6330,
364,
3937,
883,
471,
1459,
2511,
871,
4919,
18,
225,
411,
4628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
5702,
12,
5702,
4110,
4672,
3536,
411,
10262,
4150,
34,
5131,
5057,
2641,
364,
279,
1543,
4110,
18,
282,
1220,
6330,
364,
3937,
883,
471,
1459,
2511,
871,
4919,
18,
225,
411,
4628,... |
cur_data_node.children.append(new_node) new_node.parent = cur_data_node | if cur_loop_node.type != 'loop': raise errors.EngineError, 'cur_loop_node must be a loop "%s", "%s"' \ % (cur_loop_node.type, cur_loop_node.id) cur_loop_node.children.append(new_node) new_node.parent = cur_loop_node | def _add_loop_node(self, x12_loop_node, cur_data_node): #, seg_x12_node): """ Add a loop data node the the current tree location @param x12_loop_node: X12 Loop node @type x12_loop_node: L{node<map_if.loop_if>} @param cur_data_node: Current X12 Data Node @type cur_data_node: L{node<x12context.X12DataNode>} @param seg_x1... | 09c30cfc6be6d90b67e07b06b85dacd6663fba93 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11528/09c30cfc6be6d90b67e07b06b85dacd6663fba93/x12context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
67,
6498,
67,
2159,
12,
2890,
16,
619,
2138,
67,
6498,
67,
2159,
16,
662,
67,
892,
67,
2159,
4672,
468,
16,
2291,
67,
92,
2138,
67,
2159,
4672,
3536,
1436,
279,
2798,
501,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
67,
6498,
67,
2159,
12,
2890,
16,
619,
2138,
67,
6498,
67,
2159,
16,
662,
67,
892,
67,
2159,
4672,
468,
16,
2291,
67,
92,
2138,
67,
2159,
4672,
3536,
1436,
279,
2798,
501,... |
self.thr_async = 1 | self.thr_async = True | def check_mgr_async(self): if not self.thr_async and self.mgr.thr_async: assert self.mgr.trigger is not None, \ "manager (%s) has no trigger" % self.mgr self.thr_async = 1 self.trigger = self.mgr.trigger return 1 return 0 | c8dc49bdef9be96c2639ee661f583dd6f7ce2243 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/c8dc49bdef9be96c2639ee661f583dd6f7ce2243/connection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13552,
67,
3810,
12,
2890,
4672,
309,
486,
365,
18,
451,
86,
67,
3810,
471,
365,
18,
13552,
18,
451,
86,
67,
3810,
30,
1815,
365,
18,
13552,
18,
10668,
353,
486,
599,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
13552,
67,
3810,
12,
2890,
4672,
309,
486,
365,
18,
451,
86,
67,
3810,
471,
365,
18,
13552,
18,
451,
86,
67,
3810,
30,
1815,
365,
18,
13552,
18,
10668,
353,
486,
599,
16,
... |
full_module_name = module.__name__+'.'+short_module_name test_dir = os.path.join(d,'tests') fn = self.get_testfile(short_module_name) test_file = os.path.join(test_dir,fn) local_test_dir = os.path.join(os.getcwd(),'tests') local_test_file = os.path.join(local_test_dir, fn) if os.path.basename(os.path.dirname(local_te... | test_file = self.get_testfile(module, verbosity) if test_file is None: return [] | def _get_module_tests(self,module,level,verbosity): mstr = self._module_str d,f = os.path.split(module.__file__) | 7adb2e2d0abc93ca9572ff451ff3ca1acdfce4cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/7adb2e2d0abc93ca9572ff451ff3ca1acdfce4cb/numpytest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
2978,
67,
16341,
12,
2890,
16,
2978,
16,
2815,
16,
16629,
8807,
4672,
312,
701,
273,
365,
6315,
2978,
67,
701,
302,
16,
74,
273,
1140,
18,
803,
18,
4939,
12,
2978,
1618... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
588,
67,
2978,
67,
16341,
12,
2890,
16,
2978,
16,
2815,
16,
16629,
8807,
4672,
312,
701,
273,
365,
6315,
2978,
67,
701,
302,
16,
74,
273,
1140,
18,
803,
18,
4939,
12,
2978,
1618... |
filePath = unicode(os.path.join(os.path.dirname(siblingPath), fileName)) | filePath = unicode(os.path.join(os.path.dirname(siblingPath), fileName), sys.getfilesystemencoding()) | def set_file(self, fileName, siblingPath): fileName = fileName.encode(sys.getfilesystemencoding()) filePath = unicode(os.path.join(os.path.dirname(siblingPath), fileName)) self.bodyString = self.file_contents(filePath) self.filePath = filePath | 22e4f5de6d47af39b8062ace33c8910ffd5a019b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/22e4f5de6d47af39b8062ace33c8910ffd5a019b/scripting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
768,
12,
2890,
16,
3968,
16,
10841,
743,
4672,
3968,
273,
3968,
18,
3015,
12,
9499,
18,
588,
17846,
5999,
10756,
225,
4612,
273,
5252,
12,
538,
18,
803,
18,
5701,
12,
538,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
768,
12,
2890,
16,
3968,
16,
10841,
743,
4672,
3968,
273,
3968,
18,
3015,
12,
9499,
18,
588,
17846,
5999,
10756,
225,
4612,
273,
5252,
12,
538,
18,
803,
18,
5701,
12,
538,
1... |
logger.info('PlonePAS: Wrapping method at %s.%s', (klass.__name__, name)) | logger.info('PlonePAS: Wrapping method at %s.%s', klass.__name__, name) | def wrap_method(klass, name, method, pattern=PATTERN): old_method = getattr(klass, name) if isWrapperMethod(old_method): logger.info('PlonePAS: *NOT* wrapping already wrapped method at %s.%s', (klass.__name__, name)) return else: logger.info('PlonePAS: Wrapping method at %s.%s', (klass.__name__, name)) new_name = patte... | e68ac78ad1ea75f7978bc16766ed98a14102e6b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12230/e68ac78ad1ea75f7978bc16766ed98a14102e6b8/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
2039,
12,
22626,
16,
508,
16,
707,
16,
1936,
33,
10831,
4672,
1592,
67,
2039,
273,
3869,
12,
22626,
16,
508,
13,
309,
353,
3611,
1305,
12,
1673,
67,
2039,
4672,
1194,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
2039,
12,
22626,
16,
508,
16,
707,
16,
1936,
33,
10831,
4672,
1592,
67,
2039,
273,
3869,
12,
22626,
16,
508,
13,
309,
353,
3611,
1305,
12,
1673,
67,
2039,
4672,
1194,
18,
1... |
if self.scriptSite: raise Exception(scode=winerror.E_UNEXPECTED) | def SetScriptSite(self, site): if self.scriptSite: raise Exception(scode=winerror.E_UNEXPECTED) self.scriptSite = site import traceback try: import debug self.debugManager = debug.DebugManager(self) except pythoncom.com_error: # COM errors will occur if the debugger interface has never been # seen on the target system ... | 832080d7cc4afd6a307e24ca214107c81368fe8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/832080d7cc4afd6a307e24ca214107c81368fe8f/framework.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3651,
4956,
12,
2890,
16,
2834,
4672,
225,
365,
18,
4263,
4956,
273,
2834,
1930,
10820,
775,
30,
1930,
1198,
365,
18,
4148,
1318,
273,
1198,
18,
2829,
1318,
12,
2890,
13,
1335,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3651,
4956,
12,
2890,
16,
2834,
4672,
225,
365,
18,
4263,
4956,
273,
2834,
1930,
10820,
775,
30,
1930,
1198,
365,
18,
4148,
1318,
273,
1198,
18,
2829,
1318,
12,
2890,
13,
1335,
5... | |
command = [lambda:app.htmlapp.newDownload(url), "Open HTTP Audio"] | messages.DownloadURL(url).send_to_backend() | def openURL_withReplyEvent_(self, event, replyEvent): keyDirectObject = struct.unpack(">i", "----")[0] url = event.paramDescriptorForKeyword_(keyDirectObject).stringValue().decode('utf8') | 018bbc7d1624aa1bbb3fadb11711c555376ee49b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/018bbc7d1624aa1bbb3fadb11711c555376ee49b/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
1785,
67,
1918,
7817,
1133,
67,
12,
2890,
16,
871,
16,
4332,
1133,
4672,
498,
5368,
921,
273,
1958,
18,
17309,
2932,
34,
77,
3113,
315,
553,
7923,
63,
20,
65,
880,
273,
871,
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,
1696,
1785,
67,
1918,
7817,
1133,
67,
12,
2890,
16,
871,
16,
4332,
1133,
4672,
498,
5368,
921,
273,
1958,
18,
17309,
2932,
34,
77,
3113,
315,
553,
7923,
63,
20,
65,
880,
273,
871,
18... |
sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] | sage: [E6(fw).branch(F4,rule="symmetric") for fw in E6.fundamental_weights()] | def branch_weyl_character(chi, R, S, rule="default"): r""" A Branching rule describes the restriction of representations from a Lie group or algebra G to a smaller one. See for example, R. C. King, Branching rules for classical Lie groups using tensor and spinor methods. J. Phys. A 8 (1975), 429-449, Howe, Tan and Will... | 68056760eb3ea24c9f38e98e013d2a603dceb54d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/68056760eb3ea24c9f38e98e013d2a603dceb54d/weyl_characters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3803,
67,
91,
402,
80,
67,
11560,
12,
24010,
16,
534,
16,
348,
16,
1720,
1546,
1886,
6,
4672,
436,
8395,
432,
15449,
310,
1720,
19605,
326,
9318,
434,
27851,
628,
279,
511,
1385,
1041,... |
lrecs = list(recs) | combined_recs = GuiRecommendations() default_recs = load_defaults('%s_input' % d.input_format) specific_recs = load_specifics(db, book_id) for key in default_recs: combined_recs[key] = default_recs[key] for key in specific_recs: combined_recs[key] = specific_recs[key] for item in user_recs: combined_recs[item[0]] = ite... | def convert_bulk_ebook(parent, db, book_ids, out_format=None): changed = False jobs = [] bad = [] total = len(book_ids) if total == 0: return None, None, None parent.status_bar.showMessage(_('Starting conversion of %d books') % total, 2000) d = BulkConfig(parent, db, out_format) if d.exec_() != QDialog.Accepted: retu... | 812fae59edbc2245f37125c748d20b892910bd6b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/812fae59edbc2245f37125c748d20b892910bd6b/tools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
14597,
67,
73,
3618,
12,
2938,
16,
1319,
16,
6978,
67,
2232,
16,
596,
67,
2139,
33,
7036,
4672,
3550,
273,
1083,
6550,
273,
5378,
5570,
273,
5378,
225,
2078,
273,
562,
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,
1765,
67,
14597,
67,
73,
3618,
12,
2938,
16,
1319,
16,
6978,
67,
2232,
16,
596,
67,
2139,
33,
7036,
4672,
3550,
273,
1083,
6550,
273,
5378,
5570,
273,
5378,
225,
2078,
273,
562,
12,
... |
print >> sys.stderr, 'OptCheck PASS' | def f(): for x in no_recycling: x[0] = None try: equiv_vals = {} problematic = set() r_vals = {} assert len(thunks) == len(order) | 824f5fa7b84eb253df9a3f639549ef01ca9e7834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/824f5fa7b84eb253df9a3f639549ef01ca9e7834/debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
13332,
364,
619,
316,
1158,
67,
266,
2431,
830,
310,
30,
619,
63,
20,
65,
273,
599,
775,
30,
1298,
427,
67,
4524,
273,
2618,
6199,
2126,
273,
444,
1435,
436,
67,
4524,
273,
2618... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
13332,
364,
619,
316,
1158,
67,
266,
2431,
830,
310,
30,
619,
63,
20,
65,
273,
599,
775,
30,
1298,
427,
67,
4524,
273,
2618,
6199,
2126,
273,
444,
1435,
436,
67,
4524,
273,
2618... | |
response = conn.request("POST", urlparse.urlunparse(protocol, host, path, p, "", f), parameters) | conn.request("POST", urlparse.urlunparse((protocol, host, path, p, "", f)), parameters) response = conn.getresponse() | def _result(self, req, p_sibling_result=None, child_results=[]): """ Attempts to retrieve XML from the URI and return an ElementTree representation of it. """ | 0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2030/0a6059570d63ff4a3e8d34dd17e0705b9c3aa7aa/http_generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2088,
12,
2890,
16,
1111,
16,
293,
67,
22734,
67,
2088,
33,
7036,
16,
1151,
67,
4717,
33,
8526,
4672,
3536,
6020,
9585,
358,
4614,
3167,
628,
326,
3699,
471,
327,
392,
22566,
4335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2088,
12,
2890,
16,
1111,
16,
293,
67,
22734,
67,
2088,
33,
7036,
16,
1151,
67,
4717,
33,
8526,
4672,
3536,
6020,
9585,
358,
4614,
3167,
628,
326,
3699,
471,
327,
392,
22566,
4335... |
if info.has_key('title'): if type(info['title']) not in (UnicodeType, ): info['title'] = udecode(info['title']).encode(enc) if info.has_key('description'): if type(info['description']) not in (UnicodeType, ): info['description'] = udecode(info['description']).encode(enc) | encoding = parsed_data.get('encoding', 'ascii') for key in ('description', 'tagline', 'title'): if isinstance(info[key], basestring) and not isinstance(info[key], unicode): info[key] = udecode(info[key], encoding) | def encode(self, parsed_data): # Get site encoding | e11c9872c13a4a486365851f6e035af4bce3aecc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5227/e11c9872c13a4a486365851f6e035af4bce3aecc/SinTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
2707,
67,
892,
4672,
468,
968,
2834,
2688,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
2890,
16,
2707,
67,
892,
4672,
468,
968,
2834,
2688,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._old_visible = self.visible self.visible = False | if self._old_visible is None: self._old_visible = self.visible self.visible = False | def normal_mouse_leave(self, event): self._old_visible = self.visible self.visible = False | 8f876c9f4dc6bc568bb1a3d1526a747d56682545 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/8f876c9f4dc6bc568bb1a3d1526a747d56682545/image_inspector_tool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2212,
67,
11697,
67,
19574,
12,
2890,
16,
871,
4672,
365,
6315,
1673,
67,
8613,
273,
365,
18,
8613,
365,
18,
8613,
273,
1083,
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,
2212,
67,
11697,
67,
19574,
12,
2890,
16,
871,
4672,
365,
6315,
1673,
67,
8613,
273,
365,
18,
8613,
365,
18,
8613,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
value.decode(join(self._data, "")) | value.decode(data) | def end_dateTime(self, join=string.join): value = DateTime() value.decode(join(self._data, "")) self.append(value) | cd906440fbd0694e165a09262268a608df82deeb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/cd906440fbd0694e165a09262268a608df82deeb/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
712,
950,
12,
2890,
16,
1233,
33,
1080,
18,
5701,
4672,
460,
273,
3716,
1435,
460,
18,
3922,
12,
892,
13,
365,
18,
6923,
12,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
712,
950,
12,
2890,
16,
1233,
33,
1080,
18,
5701,
4672,
460,
273,
3716,
1435,
460,
18,
3922,
12,
892,
13,
365,
18,
6923,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
if amount < 0: | if amount <= 0: | def send_post(self, data, testing=False, amount=NOTSET): """Execute the post to Authorize Net. Params: - data: dictionary as returned by get_standard_charge_data - testing: if true, then don't record the payment Returns: - ProcessorResult """ self.log.info("About to send a request to authorize.net: %(connection)s\n%(... | cf8d548e42abb0d06c513df96f11c24ab2bc5436 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/cf8d548e42abb0d06c513df96f11c24ab2bc5436/processor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2767,
12,
2890,
16,
501,
16,
7769,
33,
8381,
16,
3844,
33,
4400,
4043,
4672,
3536,
5289,
326,
1603,
358,
23859,
8503,
18,
225,
8861,
30,
300,
501,
30,
3880,
487,
2106,
635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2767,
12,
2890,
16,
501,
16,
7769,
33,
8381,
16,
3844,
33,
4400,
4043,
4672,
3536,
5289,
326,
1603,
358,
23859,
8503,
18,
225,
8861,
30,
300,
501,
30,
3880,
487,
2106,
635,
... |
cur_field_name = rev_field_name new_field_name = self.field_name if cur_field_name: | cur_column_id = rev_column_id new_column_id = self.id if cur_column_id: | def get_header(self): """ Displays a sortable column header. | 88e532ecfb9f3e56993bd98da84bb2c03beb5954 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6757/88e532ecfb9f3e56993bd98da84bb2c03beb5954/grids.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3374,
12,
2890,
4672,
3536,
9311,
87,
279,
18092,
1057,
1446,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3374,
12,
2890,
4672,
3536,
9311,
87,
279,
18092,
1057,
1446,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
super(StudentInfoForm, self).__init__(user=user, *args, **kwargs) | super(StudentInfoForm, self).__init__(*args, **kwargs) | def __init__(self, user = None, *args, **kwargs): from esp.users.models import ESPUser if user is None or not (hasattr(user, 'other_user') and user.other_user): makeRequired = True else: makeRequired = False | 8017ee2dce98074784d46c6e4d0bb3a35a009b75 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/8017ee2dce98074784d46c6e4d0bb3a35a009b75/user_profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
729,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
628,
5001,
84,
18,
5577,
18,
7665,
1930,
512,
3118,
1299,
309,
729,
353,
599,
578,
486,
261,
5332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
729,
273,
599,
16,
380,
1968,
16,
2826,
4333,
4672,
628,
5001,
84,
18,
5577,
18,
7665,
1930,
512,
3118,
1299,
309,
729,
353,
599,
578,
486,
261,
5332,
... |
return matrix(N.divide(other, self.arr)) | return asmatrix(N.divide(other, self.arr)) | def __rdiv__(self, other): try: if other.ndim == 0: return matrix(N.divide(other, self.arr)) else: raise NotImplementedError, "matrix division not yet implemented" except AttributeError: return matrix(N.divide(other, self.arr)) | 9f57eaeaee4fa542932b99f4bea5dc7e44538184 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/9f57eaeaee4fa542932b99f4bea5dc7e44538184/matrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
86,
2892,
972,
12,
2890,
16,
1308,
4672,
775,
30,
309,
1308,
18,
82,
3509,
422,
374,
30,
327,
487,
5667,
12,
50,
18,
2892,
831,
12,
3011,
16,
365,
18,
5399,
3719,
469,
30,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
86,
2892,
972,
12,
2890,
16,
1308,
4672,
775,
30,
309,
1308,
18,
82,
3509,
422,
374,
30,
327,
487,
5667,
12,
50,
18,
2892,
831,
12,
3011,
16,
365,
18,
5399,
3719,
469,
30,
10... |
all_filters, all_columns, show_display_form, show_customization) | all_filters, all_columns, show_customization) | def render(self, filterspec={}, filter=[], columns=[], sort=[], group=[], show_display_form=1, nodeids=None, show_customization=1): self.filterspec = filterspec | 9c1add44636f634b2798063c55aebb0854afb265 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/9c1add44636f634b2798063c55aebb0854afb265/htmltemplate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1034,
2793,
28793,
1034,
22850,
6487,
2168,
22850,
6487,
1524,
22850,
6487,
1041,
22850,
6487,
2405,
67,
5417,
67,
687,
33,
21,
16,
756,
2232,
33,
7036,
16,
2405,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1034,
2793,
28793,
1034,
22850,
6487,
2168,
22850,
6487,
1524,
22850,
6487,
1041,
22850,
6487,
2405,
67,
5417,
67,
687,
33,
21,
16,
756,
2232,
33,
7036,
16,
2405,
67,... |
return [],[] else: | phantom=False if not phantom: | def _bom_explode(self, cr, uid, bom, factor, properties, addthis=False, level=10): factor = factor / (bom.product_efficiency or 1.0) factor = rounding(factor, bom.product_rounding) if factor<bom.product_rounding: factor = bom.product_rounding result = [] result2 = [] if bom.type=='phantom' and not bom.bom_lines: newbom... | 3a240624d0c25871cae5749fc2d923109528a0a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/3a240624d0c25871cae5749fc2d923109528a0a0/mrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
70,
362,
67,
2749,
2034,
12,
2890,
16,
4422,
16,
4555,
16,
28626,
16,
5578,
16,
1790,
16,
527,
2211,
33,
8381,
16,
1801,
33,
2163,
4672,
5578,
273,
5578,
342,
261,
70,
362,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
70,
362,
67,
2749,
2034,
12,
2890,
16,
4422,
16,
4555,
16,
28626,
16,
5578,
16,
1790,
16,
527,
2211,
33,
8381,
16,
1801,
33,
2163,
4672,
5578,
273,
5578,
342,
261,
70,
362,
18,
... |
def dprint(str=''): | def writeToLog(logfh, text): | def dprint(str=''): if TRACING: _traceoff() caller=inspect.stack()[1] try: namespace=caller[0].f_locals if 'self' in namespace: cls=namespace['self'].__class__.__name__+'.' else: cls='' if isinstance(str, unicode): str = str.encode("utf-8") dlogfh.write("%s:%d %s%s: %s%s" % (os.path.basename(caller[1]),caller[2],cls,ca... | 8f5b7f0ca129204ff5878e55f9ec1fee212ec24d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/8f5b7f0ca129204ff5878e55f9ec1fee212ec24d/debug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12870,
1343,
12,
1330,
19260,
16,
977,
4672,
309,
4235,
2226,
1360,
30,
389,
5129,
3674,
1435,
4894,
33,
12009,
18,
3772,
1435,
63,
21,
65,
775,
30,
1981,
33,
16140,
63,
20,
8009,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12870,
1343,
12,
1330,
19260,
16,
977,
4672,
309,
4235,
2226,
1360,
30,
389,
5129,
3674,
1435,
4894,
33,
12009,
18,
3772,
1435,
63,
21,
65,
775,
30,
1981,
33,
16140,
63,
20,
8009,
74,
... |
self.on_hotplug.append(self.createConfig) | def __init__(self): self.last_modes_preferred = [ ] self.on_hotplug = CList() | c797d4040a1dfac3873b481111a84a5c557432f3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/c797d4040a1dfac3873b481111a84a5c557432f3/VideoHardware.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2722,
67,
19282,
67,
23616,
273,
225,
306,
308,
365,
18,
265,
67,
15224,
22045,
273,
385,
682,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2722,
67,
19282,
67,
23616,
273,
225,
306,
308,
365,
18,
265,
67,
15224,
22045,
273,
385,
682,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
def on_link_click(self, type): | def on_link_click(self, linktype): | def on_link_click(self, type): browser_not_loaded = False if type == 'artist': browser_not_loaded = not misc.browser_load("http://www.wikipedia.org/wiki/Special:Search/" + urllib.quote(mpdh.get(self.songinfo, 'artist')), self.config.url_browser, self.window) elif type == 'album': browser_not_loaded = not misc.browser_l... | a611157e0fc7d242d58df67886095dce4cc46388 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/a611157e0fc7d242d58df67886095dce4cc46388/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1232,
67,
7475,
12,
2890,
16,
1692,
723,
4672,
4748,
67,
902,
67,
4230,
273,
1083,
309,
618,
422,
296,
25737,
4278,
4748,
67,
902,
67,
4230,
273,
486,
20448,
18,
11213,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1232,
67,
7475,
12,
2890,
16,
1692,
723,
4672,
4748,
67,
902,
67,
4230,
273,
1083,
309,
618,
422,
296,
25737,
4278,
4748,
67,
902,
67,
4230,
273,
486,
20448,
18,
11213,
67,
... |
def __init__(self, master=None, cnf={}, **kw): | def __init__(self, master=None, cnf=None, **kw): if cnf is None: cnf = {} | def __init__(self, master=None, cnf={}, **kw): if kw: cnf = _cnfmerge((cnf, kw)) fcnf = {} for k in cnf.keys(): if type(k) == ClassType or k == 'name': fcnf[k] = cnf[k] del cnf[k] self.frame = apply(Frame, (master,), fcnf) self.vbar = Scrollbar(self.frame, name='vbar') self.vbar.pack(side=RIGHT, fill=Y) cnf['name'] = '... | c5a4d6bcfcb31c35941aedab35629e7dd3bcaac5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c5a4d6bcfcb31c35941aedab35629e7dd3bcaac5/ScrolledText.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
309,
23118,
353,
599,
30,
23118,
273,
2618,
309,
5323,
30,
23118,
273,
389,
10305,
74,
2702,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4171,
33,
7036,
16,
23118,
33,
7036,
16,
2826,
9987,
4672,
309,
23118,
353,
599,
30,
23118,
273,
2618,
309,
5323,
30,
23118,
273,
389,
10305,
74,
2702,
1... |
self.message("Updating the Latest table... 3/3") | def migrate(self): self.message("Updating the Latest table... 1/3") self.cu.execute("ALTER TABLE Latest ADD COLUMN " "latestType INTEGER NOT NULL") self.db.dropIndex("Latest", "LatestIdx") self.db.loadSchema() createLatest(self.db) | bbfff219ccf39d00feb8bc71bdaf370b147dfb15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/bbfff219ccf39d00feb8bc71bdaf370b147dfb15/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
365,
18,
2150,
2932,
17858,
326,
29830,
1014,
2777,
404,
19,
23,
7923,
365,
18,
6319,
18,
8837,
2932,
18843,
7567,
29830,
11689,
13473,
315,
315,
13550,
559,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
365,
18,
2150,
2932,
17858,
326,
29830,
1014,
2777,
404,
19,
23,
7923,
365,
18,
6319,
18,
8837,
2932,
18843,
7567,
29830,
11689,
13473,
315,
315,
13550,
559,
1377,
... | |
os.write(handle, contents) | os.write(handle, contents.encode('utf-8')) | def preview_changes(self, req, page): """ Preview suggested changes. """ page_id = self.env.get_real_filename(page) if page_id is None: raise NotFound() author = req.form.get('name') email = req.form.get('email') contents = req.form.get('contents') | 19eade9b10e3b3980bcdd1c9e30202dcf87b9a6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5620/19eade9b10e3b3980bcdd1c9e30202dcf87b9a6b/application.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10143,
67,
6329,
12,
2890,
16,
1111,
16,
1363,
4672,
3536,
22289,
22168,
3478,
18,
3536,
1363,
67,
350,
273,
365,
18,
3074,
18,
588,
67,
7688,
67,
3459,
12,
2433,
13,
309,
1363,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10143,
67,
6329,
12,
2890,
16,
1111,
16,
1363,
4672,
3536,
22289,
22168,
3478,
18,
3536,
1363,
67,
350,
273,
365,
18,
3074,
18,
588,
67,
7688,
67,
3459,
12,
2433,
13,
309,
1363,
67,
... |
if __name__ == "__main__": app = MainWindow() app.main() | def main(self): gtk.main() | 337e2628519817abde9df50dbed69c769add8439 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/337e2628519817abde9df50dbed69c769add8439/arkadas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
22718,
18,
5254,
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,
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,
2774,
12,
2890,
4672,
22718,
18,
5254,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
result = self.jobDB.selectJobs( {'Status':'Failed', 'MinorStatus': minor } ) | result = self.jobDB.selectJobs( {'Status':'Failed', 'MinorStatus': minor, 'AccountedFlag': 'False' } ) | def __failStalledJobs( self, failedTime ): """ Changes the Stalled status to Failed for jobs long in the Stalled status """ | e611f774225fa663926967220039f0f76b231367 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e611f774225fa663926967220039f0f76b231367/StalledJobAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6870,
510,
4502,
7276,
12,
365,
16,
2535,
950,
262,
30,
3536,
17776,
326,
934,
4502,
1267,
358,
11175,
364,
6550,
1525,
316,
326,
934,
4502,
1267,
3536,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6870,
510,
4502,
7276,
12,
365,
16,
2535,
950,
262,
30,
3536,
17776,
326,
934,
4502,
1267,
358,
11175,
364,
6550,
1525,
316,
326,
934,
4502,
1267,
3536,
2,
-100,
-100,
-100,
-100,
... |
for mF in ( 'startime', 'endtime' ): | for mF in ( 'starttime', 'endtime' ): | def convertUTCToLocal( metadata, data ): """ Convert epoch times from utc to local bucketsData must be a list of lists where each list contains - field 0: datetime - field 1: bucketLength - fields 2-n: numericalFields """ for mF in ( 'startime', 'endtime' ): if mF in metadata: metadata[ mF ] = metadata[ mF ] - time.alt... | 137f3ee65ed1005fd43580751a807b9e233e814a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/137f3ee65ed1005fd43580751a807b9e233e814a/Plots.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
11471,
774,
2042,
12,
1982,
16,
501,
262,
30,
3536,
4037,
7632,
4124,
628,
9439,
358,
1191,
9169,
751,
1297,
506,
279,
666,
434,
6035,
1625,
1517,
666,
1914,
300,
652,
374,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
11471,
774,
2042,
12,
1982,
16,
501,
262,
30,
3536,
4037,
7632,
4124,
628,
9439,
358,
1191,
9169,
751,
1297,
506,
279,
666,
434,
6035,
1625,
1517,
666,
1914,
300,
652,
374,
30,
3... |
s1 = os.stat(path) s2 = os.stat(join(path, '..')) | s1 = os.lstat(path) s2 = os.lstat(join(path, '..')) | def ismount(path): """Test whether a path is a mount point""" try: s1 = os.stat(path) s2 = os.stat(join(path, '..')) except os.error: return False # It doesn't exist -- so not a mount point :-) dev1 = s1.st_dev dev2 = s2.st_dev if dev1 != dev2: return True # path/.. on a different device as path ino1 = s1.st_ino in... | 12f03ccece461264acbddea8c9db9a85614483be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/12f03ccece461264acbddea8c9db9a85614483be/posixpath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
4778,
12,
803,
4672,
3536,
4709,
2856,
279,
589,
353,
279,
5344,
1634,
8395,
775,
30,
272,
21,
273,
1140,
18,
80,
5642,
12,
803,
13,
272,
22,
273,
1140,
18,
80,
5642,
12,
5701,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
4778,
12,
803,
4672,
3536,
4709,
2856,
279,
589,
353,
279,
5344,
1634,
8395,
775,
30,
272,
21,
273,
1140,
18,
80,
5642,
12,
803,
13,
272,
22,
273,
1140,
18,
80,
5642,
12,
5701,
... |
termStr = """<span rel="rdfs:subClassOf" href="%s"><a href=" | termStr = """<span rel="rdfs:subClassOf" href="%s"><a href=" | def termlist(self): """Term List for html doc""" queries = '' c_ids, p_ids = self.vocab.azlist() tl = """<div class="termlist">""" tl = """%s<h3>Classes and Properties (full detail)</h3>\n<div class='termdetails'><br />\n\n""" % tl # first classes, then properties eg = """<div class="specterm" id="term_%s" about="%s" t... | 7097fb263011e2b399e0c0f1c08ffe8279110249 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3661/7097fb263011e2b399e0c0f1c08ffe8279110249/libvocab.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19272,
781,
376,
12,
2890,
4672,
3536,
4065,
987,
364,
1729,
997,
8395,
6218,
273,
875,
276,
67,
2232,
16,
293,
67,
2232,
273,
365,
18,
15913,
18,
1561,
1098,
1435,
8332,
273,
3536,
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,
19272,
781,
376,
12,
2890,
4672,
3536,
4065,
987,
364,
1729,
997,
8395,
6218,
273,
875,
276,
67,
2232,
16,
293,
67,
2232,
273,
365,
18,
15913,
18,
1561,
1098,
1435,
8332,
273,
3536,
32... |
- a list containing the projective points of X of height up to B, sorted. | - a list containing the projective points of ``X`` of height up to ``B``, sorted. | def enum_projective_rational_field(X,B): """ Enumerates projective, rational points on scheme X of height up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme. - ``B`` - a positive integer bound OUTPUT: - a list containing the projective points of X of height up to B, sorted. E... | 4968c6606a1d4065f615cfb67c0adf8d6828df4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/4968c6606a1d4065f615cfb67c0adf8d6828df4e/rational_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
4406,
688,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
1984,
688,
16,
436,
8371,
3143,
603,
4355,
1139,
434,
2072,
731,
358,
2489,
605,
18,
225,
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,
2792,
67,
4406,
688,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
1984,
688,
16,
436,
8371,
3143,
603,
4355,
1139,
434,
2072,
731,
358,
2489,
605,
18,
225,
12... |
find(ob.PrincipiaSearchSource(), obj_searchterm) >= 0 | string.find(ob.PrincipiaSearchSource(), obj_searchterm) >= 0 | def ZopeFindAndApply(self, obj, obj_ids=None, obj_metatypes=None, obj_searchterm=None, obj_expr=None, obj_mtime=None, obj_mspec=None, obj_permission=None, obj_roles=None, search_sub=0, REQUEST=None, result=None, pre='', apply_func=None, apply_path=''): """Zope Find interface and apply | 7a7e961113aa82943bda0b80ae0d82c6e931a54d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/7a7e961113aa82943bda0b80ae0d82c6e931a54d/ZCatalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2285,
1306,
3125,
1876,
7001,
12,
2890,
16,
1081,
16,
1081,
67,
2232,
33,
7036,
16,
1081,
67,
10578,
13373,
33,
7036,
16,
1081,
67,
3072,
6408,
33,
7036,
16,
1081,
67,
8638,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2285,
1306,
3125,
1876,
7001,
12,
2890,
16,
1081,
16,
1081,
67,
2232,
33,
7036,
16,
1081,
67,
10578,
13373,
33,
7036,
16,
1081,
67,
3072,
6408,
33,
7036,
16,
1081,
67,
8638,
33,
7036,
... |
occured. Please put there the version of sageq at the time of deprecation. | occurred. Please put there the version of sage at the time of deprecation. | def deprecation(message, version=None): r""" Issue a deprecation warning. INPUT: - ``message`` - an explanation why things are deprecated and by what it should be replaced. - ``version`` - (optional) on which version and when the deprecation occured. Please put there the version of sageq at the time of deprecation. ... | d0f200e83e34bef4894fcde4f074509b55cc1799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d0f200e83e34bef4894fcde4f074509b55cc1799/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20097,
12,
2150,
16,
1177,
33,
7036,
4672,
436,
8395,
11820,
279,
20097,
3436,
18,
225,
12943,
30,
225,
300,
12176,
2150,
10335,
300,
392,
21285,
11598,
9198,
854,
6849,
471,
635,
4121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20097,
12,
2150,
16,
1177,
33,
7036,
4672,
436,
8395,
11820,
279,
20097,
3436,
18,
225,
12943,
30,
225,
300,
12176,
2150,
10335,
300,
392,
21285,
11598,
9198,
854,
6849,
471,
635,
4121,
... |
global _notfound | def _execvpe(file, args, env=None): if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ global _notfound head, tail = path.split(file) if head: apply(func, (file,) + argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath PATH = envpath.spli... | aed51d8121f321e37274171b695cd0e3876465c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/aed51d8121f321e37274171b695cd0e3876465c6/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196... | |
if args and "-w" in args: | if options.no_webbrowser: | def main( args ): change_to_main_dir() cherrypy.config.update( Common.settings ) if args and "-d" in args: from config import Development settings = Development.settings # sys.frozen is from py2exe elif args and "-l" in args or hasattr( sys, "frozen" ): from config import Desktop settings = Desktop.settings else: fro... | 3486ddedbe23834090e40961d0b36e4dcea7dc51 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6754/3486ddedbe23834090e40961d0b36e4dcea7dc51/luminotes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
833,
262,
30,
2549,
67,
869,
67,
5254,
67,
1214,
1435,
225,
462,
370,
28398,
18,
1425,
18,
2725,
12,
5658,
18,
4272,
262,
225,
309,
833,
471,
3701,
72,
6,
316,
833,
30,
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,
2774,
12,
833,
262,
30,
2549,
67,
869,
67,
5254,
67,
1214,
1435,
225,
462,
370,
28398,
18,
1425,
18,
2725,
12,
5658,
18,
4272,
262,
225,
309,
833,
471,
3701,
72,
6,
316,
833,
30,
6... |
if data['result'].has_key("captcha"): captype = data['result']['captcha']['type'] id = data['result']['captcha']['id'] | if data.has_key("captcha"): captype = data['captcha']['type'] id = data['captcha']['id'] | def solveCaptcha(self, data): if type(data) == dict: # API Mode result if data['result'].has_key("captcha"): captype = data['result']['captcha']['type'] id = data['result']['captcha']['id'] if captype in ['simple', 'math', 'question']: answer = input('What is the answer to the captcha "%s" ?' % data['result']['captcha'... | a9c13738b1b5c85b2f392d56a95826baae0cb816 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/a9c13738b1b5c85b2f392d56a95826baae0cb816/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
26837,
12,
2890,
16,
501,
4672,
309,
618,
12,
892,
13,
422,
2065,
30,
468,
1491,
8126,
563,
309,
501,
18,
5332,
67,
856,
2932,
27267,
6,
4672,
9656,
388,
273,
501,
3292,
27267,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12439,
26837,
12,
2890,
16,
501,
4672,
309,
618,
12,
892,
13,
422,
2065,
30,
468,
1491,
8126,
563,
309,
501,
18,
5332,
67,
856,
2932,
27267,
6,
4672,
9656,
388,
273,
501,
3292,
27267,
... |
print >> f, "%_topdir %( echo", RPMBUILD_HOME, ")" print >> f, "%_tmppath %{_topdir}/tmp" | print >> f, "%_topdir %( echo", os.path.join(cwd, RPMBUILD_HOME), ")" print >> f, "%_tmppath %( echo", os.path.join(cwd, RPMBUILD_HOME, "tmp"), ")" | def setup_rpmbuild(): """ Prepare local rpmbuild directory. """ cleanup_rpm() os.mkdir(RPMBUILD_HOME) for d in [ 'BUILD', 'SOURCES', 'SPECS', 'SRPMS', 'tmp', 'RPMS' ]: os.mkdir(os.path.join(RPMBUILD_HOME, d)) cwd = os.getcwd() os.chdir(os.path.join(RPMBUILD_HOME, 'RPMS')) for d in [ 'i386', 'i586', 'i686', 'noarch', 'x... | f92405ae22c50a96730129b94e2496921b919d78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/310/f92405ae22c50a96730129b94e2496921b919d78/make_rpm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
13832,
1627,
680,
13332,
3536,
7730,
1191,
8715,
1627,
680,
1867,
18,
3536,
6686,
67,
86,
7755,
1435,
1140,
18,
26686,
12,
54,
12728,
20215,
67,
14209,
13,
364,
302,
316,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
13832,
1627,
680,
13332,
3536,
7730,
1191,
8715,
1627,
680,
1867,
18,
3536,
6686,
67,
86,
7755,
1435,
1140,
18,
26686,
12,
54,
12728,
20215,
67,
14209,
13,
364,
302,
316,
306,
... |
descr='''Check if privilege list is up to date after group deletion''' ''' (fix | descr='''Check if privilege list is up to date after group deletion ''' '''(fix | def chk_acls_cmds(group, subdir=None): return [ 'getfacl', '-R', '%s/%s/%s%s' % ( configuration.defaults.home_base_path, configuration.groups.names.plural, group, '/%s' % subdir if subdir else '') ] | 38a496a61795ec7fb8b2f6589579ac75d0b90d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/38a496a61795ec7fb8b2f6589579ac75d0b90d9d/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15000,
67,
69,
6429,
67,
24680,
12,
1655,
16,
16921,
33,
7036,
4672,
327,
306,
296,
588,
507,
830,
2187,
2400,
54,
2187,
1995,
87,
5258,
87,
5258,
87,
9,
87,
11,
738,
261,
1664,
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,
15000,
67,
69,
6429,
67,
24680,
12,
1655,
16,
16921,
33,
7036,
4672,
327,
306,
296,
588,
507,
830,
2187,
2400,
54,
2187,
1995,
87,
5258,
87,
5258,
87,
9,
87,
11,
738,
261,
1664,
18,
... |
filename = os.path.realpath(filename) | def recognize_directory(self, filename): """ Determine what to do with a directory. """ basename = os.path.split(filename)[-1] if (self.skip_hidden_dirs and basename.startswith('.') and basename not in ('.', '..')): return 'skip' if self.skip_symlink_dirs and os.path.islink(filename): return 'link' if basename in self.... | 51d932db446e0142e0d3d9d4bedea80519297966 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10903/51d932db446e0142e0d3d9d4bedea80519297966/grin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21431,
67,
5149,
12,
2890,
16,
1544,
4672,
3536,
10229,
4121,
358,
741,
598,
279,
1867,
18,
3536,
4882,
273,
1140,
18,
803,
18,
4939,
12,
3459,
13,
18919,
21,
65,
309,
261,
2890,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21431,
67,
5149,
12,
2890,
16,
1544,
4672,
3536,
10229,
4121,
358,
741,
598,
279,
1867,
18,
3536,
4882,
273,
1140,
18,
803,
18,
4939,
12,
3459,
13,
18919,
21,
65,
309,
261,
2890,
18,
... | |
self._reflect_table() | if 'primaryjoin' not in self.kwargs or \ 'secondaryjoin' not in self.kwargs: self._build_join_clauses() | def create_tables(self): # Warning: if the table was specified manually, the join clauses won't # be computed. We might want to autodetect joins based on fk, as for # autoloaded entities if self.secondary_table: self._reflect_table() return | f17bbe0181fb7042a4b1a289d48201e73ea09dc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11921/f17bbe0181fb7042a4b1a289d48201e73ea09dc2/relationships.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
9373,
12,
2890,
4672,
468,
9728,
30,
309,
326,
1014,
1703,
1269,
10036,
16,
326,
1233,
14093,
8462,
1404,
468,
506,
8470,
18,
1660,
4825,
2545,
358,
2059,
369,
278,
386,
13471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
9373,
12,
2890,
4672,
468,
9728,
30,
309,
326,
1014,
1703,
1269,
10036,
16,
326,
1233,
14093,
8462,
1404,
468,
506,
8470,
18,
1660,
4825,
2545,
358,
2059,
369,
278,
386,
13471,
... |
thrust_pt = (base_pt + self._node.orientation * self.direction) * self._force | thrust_pt = (orientation * -self.direction) * self._force | def _draw_thrust_line(self): base_pt = Ogre.Vector3(0,0,0) thrust_pt = (base_pt + self._node.orientation * self.direction) * self._force self._thrust_line.position(base_pt) self._thrust_line.position(thrust_pt) | 6950bac452fff39fd7c5129833b16fc6d2ffe60f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/6950bac452fff39fd7c5129833b16fc6d2ffe60f/robot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
451,
86,
641,
67,
1369,
12,
2890,
4672,
1026,
67,
337,
273,
531,
11556,
18,
5018,
23,
12,
20,
16,
20,
16,
20,
13,
225,
29142,
641,
67,
337,
273,
261,
19235,
380,
300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9446,
67,
451,
86,
641,
67,
1369,
12,
2890,
4672,
1026,
67,
337,
273,
531,
11556,
18,
5018,
23,
12,
20,
16,
20,
16,
20,
13,
225,
29142,
641,
67,
337,
273,
261,
19235,
380,
300... |
if self._exp == 'n': return 1 elif self._exp == 'N': return 2 | if self._is_special: exp = self._exp if exp == 'n': return 1 elif exp == 'N': return 2 | def _isnan(self): """Returns whether the number is not actually one. | 55342e783760513207a56d5a31fa49e579a96cd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/55342e783760513207a56d5a31fa49e579a96cd3/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
13569,
12,
2890,
4672,
3536,
1356,
2856,
326,
1300,
353,
486,
6013,
1245,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
13569,
12,
2890,
4672,
3536,
1356,
2856,
326,
1300,
353,
486,
6013,
1245,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.editCommand and self.editCommand.struct: | if self.editCommand is not None and self.editCommand.hasValidStructure(): | def _editDnaSegment(self): """ """ if self.editCommand and self.editCommand.struct: selectedSegments = self.editCommand.struct.getSelectedSegments() if len(selectedSegments) == 1: selectedSegments[0].edit() | 3fbac43f0a3fcb545b2eb64da2fd9f24ee8a1079 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/3fbac43f0a3fcb545b2eb64da2fd9f24ee8a1079/BuildDna_PropertyManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4619,
40,
6582,
4131,
12,
2890,
4672,
3536,
3536,
309,
365,
18,
4619,
2189,
353,
486,
599,
471,
365,
18,
4619,
2189,
18,
5332,
1556,
6999,
13332,
3170,
7946,
273,
365,
18,
4619,
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,
4619,
40,
6582,
4131,
12,
2890,
4672,
3536,
3536,
309,
365,
18,
4619,
2189,
353,
486,
599,
471,
365,
18,
4619,
2189,
18,
5332,
1556,
6999,
13332,
3170,
7946,
273,
365,
18,
4619,
2... |
(dom, b, d, f) = self.find_parent() | dev = self.find_parent() if dev is None: return None (dom, b, d, f) = dev | def find_the_uppermost_pci_bridge(self): # Find the uppermost PCI/PCI-X bridge (dom, b, d, f) = self.find_parent() dev = dev_parent = PciDevice(dom, b, d, f) while dev_parent.dev_type != DEV_TYPE_PCIe_BRIDGE: parent = dev_parent.find_parent() if parent is None: break (dom, b, d, f) = parent dev = dev_parent dev_parent ... | 076b0d96e0a66281e8a29a8ff077abc4f304781e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/076b0d96e0a66281e8a29a8ff077abc4f304781e/pci.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
5787,
67,
5797,
10329,
67,
2436,
77,
67,
18337,
12,
2890,
4672,
468,
4163,
326,
3854,
10329,
453,
7266,
19,
3513,
45,
17,
60,
10105,
4461,
273,
365,
18,
4720,
67,
2938,
1435,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
5787,
67,
5797,
10329,
67,
2436,
77,
67,
18337,
12,
2890,
4672,
468,
4163,
326,
3854,
10329,
453,
7266,
19,
3513,
45,
17,
60,
10105,
4461,
273,
365,
18,
4720,
67,
2938,
1435,... |
if inpackage: | if inpackage is not None: | def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].''' # Compute the full module name (prepending inpackage if set) if inpackage: fullmodule = "%s.%s" % (inpackage, module) else: fullmodule = module # Check in the cache if fullmodule in _modules: return _modules[fullmodule] # Initi... | 7d4cac5de777aad61727f6a068b3c392bb76f3e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/7d4cac5de777aad61727f6a068b3c392bb76f3e3/pyclbr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
2978,
12,
2978,
16,
589,
16,
316,
5610,
33,
7036,
4672,
9163,
3244,
326,
7877,
1440,
364,
855,
2978,
63,
67,
338,
65,
1093,
6309,
468,
8155,
326,
1983,
1605,
508,
261,
1484,
... |
return ispythonprog.match(name) >= 0 | return bool(ispythonprog.match(name)) | def ispython(name): return ispythonprog.match(name) >= 0 | 56c54edd697e115b58cc816c27128e8b823290b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/56c54edd697e115b58cc816c27128e8b823290b2/pathfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
8103,
12,
529,
4672,
327,
1426,
12,
291,
8103,
14654,
18,
1916,
12,
529,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
8103,
12,
529,
4672,
327,
1426,
12,
291,
8103,
14654,
18,
1916,
12,
529,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
value = attrs.get('state') if value is not None: already_processed.append('state') self.state = value super(AbstractMapping, self).buildAttributes(node, attrs, already_processed) | super(AbstractSet, self).buildAttributes(node, attrs, already_processed) | def buildAttributes(self, node, attrs, already_processed): value = attrs.get('state') if value is not None: already_processed.append('state') self.state = value super(AbstractMapping, self).buildAttributes(node, attrs, already_processed) | 10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2498,
12,
2890,
16,
756,
16,
3422,
16,
1818,
67,
11005,
4672,
460,
273,
3422,
18,
588,
2668,
2019,
6134,
309,
460,
353,
486,
599,
30,
1818,
67,
11005,
18,
6923,
2668,
2019,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2498,
12,
2890,
16,
756,
16,
3422,
16,
1818,
67,
11005,
4672,
460,
273,
3422,
18,
588,
2668,
2019,
6134,
309,
460,
353,
486,
599,
30,
1818,
67,
11005,
18,
6923,
2668,
2019,
6134,... |
btn.setFixedWidth(62) | btn.setFixedWidth(68) | def _createFlyoutToolBar(self, obj): | 0ffbba9ed1c32b5eb8dee364dac54496887a973f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/0ffbba9ed1c32b5eb8dee364dac54496887a973f/CommandManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
42,
715,
659,
6364,
5190,
12,
2890,
16,
1081,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
42,
715,
659,
6364,
5190,
12,
2890,
16,
1081,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif isinstance(x, str): | elif isinstance(x, (bytes, bytearray)): | def dis(x=None): """Disassemble classes, methods, functions, or code. With no argument, disassemble the last traceback. """ if x is None: distb() return if hasattr(x, '__func__'): x = x.__func__ if hasattr(x, '__code__'): x = x.__code__ if hasattr(x, '__dict__'): items = sorted(x.__dict__.items()) for name, x1 in ite... | 267d41737711a3277869c61bde77009b5fea6315 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/267d41737711a3277869c61bde77009b5fea6315/dis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
12,
92,
33,
7036,
4672,
3536,
1669,
29676,
3318,
16,
2590,
16,
4186,
16,
578,
981,
18,
225,
3423,
1158,
1237,
16,
1015,
29676,
326,
1142,
10820,
18,
225,
3536,
309,
619,
353,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
12,
92,
33,
7036,
4672,
3536,
1669,
29676,
3318,
16,
2590,
16,
4186,
16,
578,
981,
18,
225,
3423,
1158,
1237,
16,
1015,
29676,
326,
1142,
10820,
18,
225,
3536,
309,
619,
353,
599... |
return False except OSError: try: mkdir(current) except OSError: return False | try: os.mkdir(current) except OSError: return False | def InstallConfigFile(self, entry): '''Install ConfigFile Entry''' if entry.text == None: self.CondPrint('verbose', "Incomplete information for ConfigFile %s. Cannot install" % (entry.get('name'))) return False self.CondPrint('verbose', "Installing ConfigFile %s" % (entry.get('name'))) | 6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13705,
12,
2890,
16,
1241,
4672,
9163,
6410,
31988,
3841,
26418,
309,
1241,
18,
955,
422,
599,
30,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
27531,
1779,
364,
31988,
738,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
13705,
12,
2890,
16,
1241,
4672,
9163,
6410,
31988,
3841,
26418,
309,
1241,
18,
955,
422,
599,
30,
365,
18,
12441,
5108,
2668,
11369,
2187,
315,
27531,
1779,
364,
31988,
738,
87,
... |
def _render_one_prefix(self, title, output_prefix, format, | def _render_one_prefix(self, title, output_prefix, file_type, | def _render_one_prefix(self, title, output_prefix, format, paperwidth, paperheight): format = format.lower() frame_width = int(max(paperheight / 20., 30)) | 8b09151b1833450debb3177e948c23c1751f0dbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9326/8b09151b1833450debb3177e948c23c1751f0dbe/street_index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
476,
67,
3239,
12,
2890,
16,
2077,
16,
876,
67,
3239,
16,
585,
67,
723,
16,
15181,
2819,
16,
15181,
4210,
4672,
740,
1377,
273,
740,
18,
8167,
1435,
2623,
67,
2819,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
476,
67,
3239,
12,
2890,
16,
2077,
16,
876,
67,
3239,
16,
585,
67,
723,
16,
15181,
2819,
16,
15181,
4210,
4672,
740,
1377,
273,
740,
18,
8167,
1435,
2623,
67,
2819,
27... |
return self.fp.tell() - self.start | return self.fp.tell() - len(self.readahead) - self.start | def tell(self): if self.level > 0: return self.lastpos return self.fp.tell() - self.start | ab4ae4454020df9de19a9140e63a4e15d2ca3894 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ab4ae4454020df9de19a9140e63a4e15d2ca3894/multifile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9276,
12,
2890,
4672,
309,
365,
18,
2815,
405,
374,
30,
327,
365,
18,
2722,
917,
327,
365,
18,
7944,
18,
88,
1165,
1435,
300,
365,
18,
1937,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9276,
12,
2890,
4672,
309,
365,
18,
2815,
405,
374,
30,
327,
365,
18,
2722,
917,
327,
365,
18,
7944,
18,
88,
1165,
1435,
300,
365,
18,
1937,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
This function uses the algorithm of [Edmonds74] to calculate the | This function uses the algorithm of [Edmonds74]_ to calculate the | def wigner_9j(j_1, j_2, j_3, j_4, j_5, j_6, j_7, j_8, j_9, prec=None): r""" Calculate the Wigner 9j symbol `Wigner9j(j_1,j_2,j_3,j_4,j_5,j_6,j_7,j_8,j_9)`. INPUT: - ``j_1``, ..., ``j_9`` - integer or half integer - ``prec`` - precision, default: None. Providing a precision can drastically speed up the calculation.... | 2aae1a34350173041dcaa920c230128b23fb8288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/2aae1a34350173041dcaa920c230128b23fb8288/wigner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
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,
341,
724,
264,
67,
29,
78,
12,
78,
67,
21,
16,
525,
67,
22,
16,
525,
67,
23,
16,
525,
67,
24,
16,
525,
67,
25,
16,
525,
67,
26,
16,
525,
67,
27,
16,
525,
67,
28,
16,
525,
6... |
def _update( self, cmd, conn=False ): | def _update( self, cmd, conn = False ): | def _update( self, cmd, conn=False ): start = time.time() ret = DB._update( self, cmd, conn ) if DEBUG: print >> debugFile, time.time() - start, cmd.replace('\n','') debugFile.flush() return ret | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
12,
365,
16,
1797,
16,
1487,
273,
1083,
262,
30,
787,
273,
813,
18,
957,
1435,
325,
273,
2383,
6315,
2725,
12,
365,
16,
1797,
16,
1487,
262,
309,
6369,
30,
1172,
1671,
119... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
12,
365,
16,
1797,
16,
1487,
273,
1083,
262,
30,
787,
273,
813,
18,
957,
1435,
325,
273,
2383,
6315,
2725,
12,
365,
16,
1797,
16,
1487,
262,
309,
6369,
30,
1172,
1671,
119... |
raise zc.buildout.UserError("Can't contact egg server at '%s': %s" % (url, exc)) index = PackageIndex(url, search_path=[]) | msg = "Can't contact egg server at '%s': %s" % (url, exc) raise zc.buildout.UserError(msg) index = PackageIndex(url, search_path=search_path) | def install(self): startdir = os.getcwd() if os.path.exists(self.bundledir): self.logger.debug('removing old bundle directory %s' % self.bundledir) shutil.rmtree(self.bundledir) if os.path.exists(self.bundle_cache): shutil.rmtree(self.bundle_cache) os.makedirs(os.path.join(self.bundledir, 'buildout', 'eggs')) os.make... | 8889dc3621b3c44eb4c510e66e4a14e059574175 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12610/8889dc3621b3c44eb4c510e66e4a14e059574175/bundler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
787,
1214,
273,
1140,
18,
588,
11089,
1435,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
9991,
1214,
4672,
365,
18,
4901,
18,
4148,
2668,
2764,
13767,
1592,
3440,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
787,
1214,
273,
1140,
18,
588,
11089,
1435,
309,
1140,
18,
803,
18,
1808,
12,
2890,
18,
9991,
1214,
4672,
365,
18,
4901,
18,
4148,
2668,
2764,
13767,
1592,
3440,
... |
special_cases = {"start": "html", "page": "html", "style": "css", "functions":"js"} | def get_table_structure(self, table): '''Returns a list of tuples (name, type) with the table columns name and type''' | d037e4afe2100713a7968a292954e9e47e6da291 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13558/d037e4afe2100713a7968a292954e9e47e6da291/fusqldb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2121,
67,
7627,
12,
2890,
16,
1014,
4672,
9163,
1356,
279,
666,
434,
10384,
261,
529,
16,
618,
13,
598,
326,
1014,
2168,
508,
471,
618,
26418,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2121,
67,
7627,
12,
2890,
16,
1014,
4672,
9163,
1356,
279,
666,
434,
10384,
261,
529,
16,
618,
13,
598,
326,
1014,
2168,
508,
471,
618,
26418,
2,
-100,
-100,
-100,
-100,
-100,... | |
print "ROI count: %d" % len(rois) | n_roi = len(rois) print "Total ROI count: %d" % n_roi for i in range((len(rois) / 1000) + 1): | def parse_result_files(self): raw_file_store = self.service_factory.createRawFileStore() try: for result_file in result_files: print "Parsing: %s" % result_file.name.val image = self.image_from_original_file(result_file) unloaded_image = ImageI(image.id.val, False) raw_file_store.setFileId(result_file.id.val) data = ra... | 0b62b2420d1a6095ae91c928a3fdb4677392f99e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/0b62b2420d1a6095ae91c928a3fdb4677392f99e/populate_roi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2088,
67,
2354,
12,
2890,
4672,
1831,
67,
768,
67,
2233,
273,
365,
18,
3278,
67,
6848,
18,
2640,
4809,
812,
2257,
1435,
775,
30,
364,
563,
67,
768,
316,
563,
67,
2354,
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,
1109,
67,
2088,
67,
2354,
12,
2890,
4672,
1831,
67,
768,
67,
2233,
273,
365,
18,
3278,
67,
6848,
18,
2640,
4809,
812,
2257,
1435,
775,
30,
364,
563,
67,
768,
316,
563,
67,
2354,
30,
... |
c = self.db.cursor() c.execute("SELECT intid FROM videocast WHERE lower(cast) = %s", (cast_name,)) row = c.fetchone() c.close() if row is not None: return row[0] c = self.db.cursor() c.execute("INSERT INTO videocast(cast) VALUES (%s)", (cast_name,)) c.close() c = self.db.cursor() c.execute("SELECT intid FROM vid... | return self.setFieldId('cast', cast_name) | def getCastId(self, cast_name): """ Find the id of the given cast from MythDB. | 5b53e77a87b7ea5cec0896e51918eaa1c68ff306 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/5b53e77a87b7ea5cec0896e51918eaa1c68ff306/MythVideo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
689,
548,
12,
2890,
16,
4812,
67,
529,
4672,
3536,
4163,
326,
612,
434,
326,
864,
4812,
628,
8005,
451,
2290,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
689,
548,
12,
2890,
16,
4812,
67,
529,
4672,
3536,
4163,
326,
612,
434,
326,
864,
4812,
628,
8005,
451,
2290,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if os.path.exists('/tmp/bmovl'): | if os.path.exists('/tmp/bmovl') and config.MPLAYER_SOFTWARE_SCALER: | def play(self, filename, options, item, mode = None): """ play a videoitem with mplayer """ | 8002a43e128c90f513df889209e2bbe7c99ba648 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/8002a43e128c90f513df889209e2bbe7c99ba648/mplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
2890,
16,
1544,
16,
702,
16,
761,
16,
1965,
273,
599,
4672,
3536,
6599,
279,
6191,
1726,
598,
312,
14872,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
2890,
16,
1544,
16,
702,
16,
761,
16,
1965,
273,
599,
4672,
3536,
6599,
279,
6191,
1726,
598,
312,
14872,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif o in ('--title'): | elif o in ('--title',): | def do_mem(self, argv): | 67b8280e3e3a5fcdde21a536adf595f1d889e4da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/67b8280e3e3a5fcdde21a536adf595f1d889e4da/scons-time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3917,
12,
2890,
16,
5261,
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,
1652,
741,
67,
3917,
12,
2890,
16,
5261,
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,
... |
ans = self._check_nans(other, context) if ans: return ans | if (self._is_special or other and other._is_special): ans = self._check_nans(other, context) if ans: return ans | def compare(self, other, context=None): """Compares one to another. | 1a63da64df2af26e1f050749c19281f1de9084fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1a63da64df2af26e1f050749c19281f1de9084fa/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
19199,
1245,
358,
4042,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
19199,
1245,
358,
4042,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
ImageVolume = N.zeros(imagedesc['layers']*imagedesc['rows']*imagedesc['cols'], dtype=N.uint16).reshape(imagedesc['layers'], imagedesc['rows'], imagedesc['cols']) | ImageVolume = NP.zeros(imagedesc['layers']*imagedesc['rows']*imagedesc['cols'], dtype=NP.uint16).reshape(imagedesc['layers'], imagedesc['rows'], imagedesc['cols']) | def load_volume(imagedesc, imagename=None, threshold=0.999, debug=0): """ image = load_volume(imagedesc, imagename=None, threshold=0.999, debug=0) --- OR --- image, h, ih, index = load_volume(imagedesc, imagename=None, threshold=0.999, debug=0) gets an image descriptor and optional filename and returns a scaled 8 bi... | de681f926e982b0212f2f58bf637917926737f89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/de681f926e982b0212f2f58bf637917926737f89/_registration.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
4672,
225,
3536,
1316,
273,
1262,
67,
9491,
12,
381,
11349,
742,
16,
890... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9491,
12,
381,
11349,
742,
16,
8902,
1069,
33,
7036,
16,
5573,
33,
20,
18,
11984,
16,
1198,
33,
20,
4672,
225,
3536,
1316,
273,
1262,
67,
9491,
12,
381,
11349,
742,
16,
890... |
d1, d2 = self.pool.get('ir.rule').domain_get(cr, user, self._name) | d1, d2, tables = self.pool.get('ir.rule').domain_get(cr, user, self._name) | def _read_flat(self, cr, user, ids, fields, context=None, load='_classic_read'): if not context: context={} if not ids: return [] | c5d41a033c771d541bb8180ab97ee58fb5b17bb5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/c5d41a033c771d541bb8180ab97ee58fb5b17bb5/account_analytic_analysis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
15401,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
1466,
16,
819,
33,
7036,
16,
1262,
2218,
67,
1106,
335,
67,
896,
11,
4672,
309,
486,
819,
30,
819,
12938,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
15401,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
1466,
16,
819,
33,
7036,
16,
1262,
2218,
67,
1106,
335,
67,
896,
11,
4672,
309,
486,
819,
30,
819,
12938,
309,
486,
... |
insert_to = decls | value = None | def override(decldict, overides): for o, v in overides.items(): v = v.upper() has_it = False for k, d in decldict.items(): if d.has_key(o): has_it = True del d[o] if has_it: decldict[v][o] = 1 | f7d9779be336dd165ada7dd3923f3f7d87d4a728 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6171/f7d9779be336dd165ada7dd3923f3f7d87d4a728/vim-syn-gen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3849,
12,
8840,
1576,
16,
1879,
4369,
4672,
364,
320,
16,
331,
316,
1879,
4369,
18,
3319,
13332,
331,
273,
331,
18,
5797,
1435,
711,
67,
305,
273,
1083,
364,
417,
16,
302,
316,
3496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3849,
12,
8840,
1576,
16,
1879,
4369,
4672,
364,
320,
16,
331,
316,
1879,
4369,
18,
3319,
13332,
331,
273,
331,
18,
5797,
1435,
711,
67,
305,
273,
1083,
364,
417,
16,
302,
316,
3496,
... |
webbrowser.open('http://cse.wustl.edu/~ssa1/gorgon/pages/userGuide.php') | self.openPage('http://cse.wustl.edu/~ssa1/gorgon/pages/userGuide.php') | def userGuide(self): webbrowser.open('http://cse.wustl.edu/~ssa1/gorgon/pages/userGuide.php') | e5598ec01f75b827cbd5f56b7682b41a65c017af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4399/e5598ec01f75b827cbd5f56b7682b41a65c017af/about_form.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
17424,
12,
2890,
4672,
365,
18,
3190,
1964,
2668,
2505,
2207,
71,
307,
18,
91,
641,
80,
18,
28049,
19,
98,
1049,
69,
21,
19,
3022,
75,
265,
19,
7267,
19,
1355,
17424,
18,
2684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
17424,
12,
2890,
4672,
365,
18,
3190,
1964,
2668,
2505,
2207,
71,
307,
18,
91,
641,
80,
18,
28049,
19,
98,
1049,
69,
21,
19,
3022,
75,
265,
19,
7267,
19,
1355,
17424,
18,
2684,
... |
chunk.filename()) or \ prompt(_('record change %d/%d to %r?') % (pos, total, chunk.filename())) | chunk.filename()) \ or prompt(_('record change %d/%d to %r?') % (pos, total, chunk.filename())) | def prompt(query): """prompt query, and process base inputs | 06d3117212c0a92a6d479e82454d15a44fd943dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/06d3117212c0a92a6d479e82454d15a44fd943dc/record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2271,
4672,
3536,
13325,
843,
16,
471,
1207,
1026,
4540,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6866,
12,
2271,
4672,
3536,
13325,
843,
16,
471,
1207,
1026,
4540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
fiscalyear = self.pool.get('account.fiscalyear').browse(self.cr, self.uid, form['fiscalyear']) period_query_cond=self.pool.get('account.period').search(self.cr, self.uid, [('fiscalyear_id', '=', form['fiscalyear'])]) | fiscalyear = self.pool.get('account.fiscalyear').browse(self.cr, self.uid, form['fiscalyear_id']) period_ids=self.pool.get('account.period').search(self.cr, self.uid, [('fiscalyear_id', '=', form['fiscalyear_id'])]) | def _load(self, name, form): fiscalyear = self.pool.get('account.fiscalyear').browse(self.cr, self.uid, form['fiscalyear']) period_query_cond=self.pool.get('account.period').search(self.cr, self.uid, [('fiscalyear_id', '=', form['fiscalyear'])]) | 5bebd204b83275adc470cfe0c2a616ca7b2f64fd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5bebd204b83275adc470cfe0c2a616ca7b2f64fd/base_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
16,
508,
16,
646,
4672,
15324,
771,
6874,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
74,
291,
771,
6874,
16063,
25731,
12,
2890,
18,
3353,
16,
365,
18,
1911,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
16,
508,
16,
646,
4672,
15324,
771,
6874,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
74,
291,
771,
6874,
16063,
25731,
12,
2890,
18,
3353,
16,
365,
18,
1911,
16... |
self.logging.info('Your server credential will expire in:\n\t%s hours %s minutes %s seconds\n'%(hours,minutes,seconds)) | logMsg = 'Your credential for the required server will expire in:\n\t' logMsg += '%s hours %s minutes %s seconds\n'%(hours,minutes,seconds) self.logging.info(logMsg) | def checkMyProxy( self , proxy=None, Time=4, checkRetrieverRenewer=False): """ """ if proxy == None: proxy=self.getUserProxy() ## check the myproxy server valid = True | f0bd01537c0ae70e1453b436a022850421b21f04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8886/f0bd01537c0ae70e1453b436a022850421b21f04/Proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12062,
3886,
12,
365,
269,
2889,
33,
7036,
16,
2647,
33,
24,
16,
866,
30801,
24058,
264,
33,
8381,
4672,
3536,
3536,
309,
2889,
422,
599,
30,
2889,
33,
2890,
18,
588,
1299,
3886,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
12062,
3886,
12,
365,
269,
2889,
33,
7036,
16,
2647,
33,
24,
16,
866,
30801,
24058,
264,
33,
8381,
4672,
3536,
3536,
309,
2889,
422,
599,
30,
2889,
33,
2890,
18,
588,
1299,
3886,
... |
cl = choice(colors) | cl = choice(self.colors) | def hashcolor(self, string): if string in self.used_colorlabels: return self.used_colors[self.used_colorlabels.index(string)] | fcbf54a129adc8c713beb87d1c6c88092bc15be6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/fcbf54a129adc8c713beb87d1c6c88092bc15be6/ShowGraph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
3266,
12,
2890,
16,
533,
4672,
309,
533,
316,
365,
18,
3668,
67,
3266,
5336,
30,
327,
365,
18,
3668,
67,
9724,
63,
2890,
18,
3668,
67,
3266,
5336,
18,
1615,
12,
1080,
25887,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1651,
3266,
12,
2890,
16,
533,
4672,
309,
533,
316,
365,
18,
3668,
67,
3266,
5336,
30,
327,
365,
18,
3668,
67,
9724,
63,
2890,
18,
3668,
67,
3266,
5336,
18,
1615,
12,
1080,
25887,
2,... |
return self.parts | def assemble_parts(self): writers.Writer.assemble_parts(self) for part in self.visitor_attributes: if part.startswith('body'): # body contains inline elements, so join without newline self.parts[part] = ''.join(getattr(self, part)) else: self.parts[part] = '\n'.join(getattr(self, part)) return self.parts | 72029aee8394eeb4400f5487aabbec1a1dfbd5cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5620/72029aee8394eeb4400f5487aabbec1a1dfbd5cd/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
67,
6019,
12,
2890,
4672,
18656,
18,
2289,
18,
29676,
67,
6019,
12,
2890,
13,
364,
1087,
316,
365,
18,
3516,
1811,
67,
4350,
30,
309,
1087,
18,
17514,
1918,
2668,
3432,
11,
4672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19540,
67,
6019,
12,
2890,
4672,
18656,
18,
2289,
18,
29676,
67,
6019,
12,
2890,
13,
364,
1087,
316,
365,
18,
3516,
1811,
67,
4350,
30,
309,
1087,
18,
17514,
1918,
2668,
3432,
11,
4672... | |
for dir in extension_dirs: for path in glob.glob(os.path.join(dir, '*.py')): | for dir_ in extension_dirs: dir_ = os.path.normpath(dir_) for path in glob.glob(os.path.join(dir_, '*.py')): | def get_dynamic_modules(): """ Returns dynamic modules to be bundled by default. """ print "enumerating dynamic modules" includes = [] service_dir = 'solipsis/services' # 1. Dynamically-loaded service plugins for filename in os.listdir(service_dir): path = os.path.join(service_dir, filename) if os.path.isdir(path) and... | c3a021da62fe65603b7803fe38c3b8cd77b55fc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2522/c3a021da62fe65603b7803fe38c3b8cd77b55fc6/commonsetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14507,
67,
6400,
13332,
3536,
2860,
5976,
4381,
358,
506,
324,
24467,
635,
805,
18,
3536,
1172,
315,
7924,
264,
1776,
5976,
4381,
6,
6104,
273,
5378,
225,
1156,
67,
1214,
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,
336,
67,
14507,
67,
6400,
13332,
3536,
2860,
5976,
4381,
358,
506,
324,
24467,
635,
805,
18,
3536,
1172,
315,
7924,
264,
1776,
5976,
4381,
6,
6104,
273,
5378,
225,
1156,
67,
1214,
273,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.