rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
idprof = sock.execute(dbname, uid, 'admin', 'ir.module.module', 'search', [('name','=',prof)]) | idprof = sock.execute(dbname, uid, 'admin', 'ir.module.module', 'search', [('name','=',prof)]) if l10n: | def wizard_run(wizname, fieldvalues={}, endstate='end'): wiz_id = sock4.create(dbname, uid, 'admin', wizname) state = 'init' datas = {'form':{}} while state!=endstate: res = sock4.execute(dbname, uid, 'admin', wiz_id, datas, state, {}) if 'datas' in res: datas['form'].update( res['datas'] ) if res['type']=='form': for ... | 7c1d25a6812e34799546830cd4cf8e3b8c7ec6fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/7c1d25a6812e34799546830cd4cf8e3b8c7ec6fd/check_profile_l10n_all.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24204,
67,
2681,
12,
91,
452,
529,
16,
652,
2372,
28793,
679,
2019,
2218,
409,
11,
4672,
341,
452,
67,
350,
273,
7313,
24,
18,
2640,
12,
20979,
16,
4555,
16,
296,
3666,
2187,
341,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24204,
67,
2681,
12,
91,
452,
529,
16,
652,
2372,
28793,
679,
2019,
2218,
409,
11,
4672,
341,
452,
67,
350,
273,
7313,
24,
18,
2640,
12,
20979,
16,
4555,
16,
296,
3666,
2187,
341,
45... |
if hasattr(objDef, 'animDict'): | if hasattr(objDef, 'animDict') and objDef.animDict != {}: | def addNewObject(self, typeName, uid = None, model = None, parent=None, anim = None, fSelectObject=True, nodePath=None, nameStr=None): """ function to add new obj to the scene """ if parent is None: parent = self.editor.NPParent | 140d0ab80bfbe1cbeae65429659503e2e1495179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/140d0ab80bfbe1cbeae65429659503e2e1495179/ObjectMgrBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20973,
921,
12,
2890,
16,
8173,
16,
4555,
273,
599,
16,
938,
273,
599,
16,
982,
33,
7036,
16,
10536,
273,
599,
16,
284,
3391,
921,
33,
5510,
16,
20758,
33,
7036,
16,
508,
1585,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20973,
921,
12,
2890,
16,
8173,
16,
4555,
273,
599,
16,
938,
273,
599,
16,
982,
33,
7036,
16,
10536,
273,
599,
16,
284,
3391,
921,
33,
5510,
16,
20758,
33,
7036,
16,
508,
1585,
33,
... |
cif = CifFile.ReadCif(fname) | cif = CifFile.ReadCif('file:/%s' % fname) | def _read_cbf_header(self, image): '''Read the contents of the header of this image.''' | 9a5555e740f3fbb248b3bcc5ac33ab17caff3b8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3290/9a5555e740f3fbb248b3bcc5ac33ab17caff3b8f/ReadHeaderCBF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
7358,
74,
67,
3374,
12,
2890,
16,
1316,
4672,
9163,
1994,
326,
2939,
434,
326,
1446,
434,
333,
1316,
1093,
6309,
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,
389,
896,
67,
7358,
74,
67,
3374,
12,
2890,
16,
1316,
4672,
9163,
1994,
326,
2939,
434,
326,
1446,
434,
333,
1316,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'SAGE External System Code (e.g., PARI, MAGMA, etc.)', | 'Sage External System Code (e.g., PARI, MAGMA, etc.)', | def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file). | 020bc5a17817481601e8ed113c19ee97bf3f96b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/020bc5a17817481601e8ed113c19ee97bf3f96b0/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3440,
12,
2890,
16,
1544,
16,
702,
2218,
2187,
880,
33,
7036,
16,
1026,
33,
7036,
16,
358,
33,
7036,
4672,
436,
8395,
1788,
392,
22576,
22463,
3440,
598,
326,
864,
1544,
5314,
326,
335... |
def __init__(self, methodName=None): | def __init__(self, methodName): | def __init__(self, methodName=None): super(TestCase, self).__init__(methodName) self._testMethodName = methodName testMethod = getattr(self, methodName) self._parents = [testMethod, self] self._parents.extend(util.getPythonContainers(testMethod)) self._shared = (hasattr(self, 'setUpClass') or hasattr(self, 'tearDownCla... | b7e78eb5833d66795b80f1516df69db55622316c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b7e78eb5833d66795b80f1516df69db55622316c/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4918,
4672,
2240,
12,
4709,
2449,
16,
365,
2934,
972,
2738,
972,
12,
2039,
461,
13,
365,
6315,
3813,
11666,
273,
4918,
1842,
1305,
273,
3869,
12,
2890,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4918,
4672,
2240,
12,
4709,
2449,
16,
365,
2934,
972,
2738,
972,
12,
2039,
461,
13,
365,
6315,
3813,
11666,
273,
4918,
1842,
1305,
273,
3869,
12,
2890,
1... |
class Canvas(textobject._PDFColorSetter,CanvasStringDrawer): | class Canvas(textobject._PDFColorSetter): | def pushCopy(self): '''the states must be shared across push/pop, but the values not''' x = self.__class__() x._d = self._d.copy() x._c = self._c return x | 83a5c2021d8e13f4065a93ed4bea35105604ba6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/83a5c2021d8e13f4065a93ed4bea35105604ba6a/canvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
2951,
12,
2890,
4672,
9163,
5787,
5493,
1297,
506,
5116,
10279,
1817,
19,
5120,
16,
1496,
326,
924,
486,
26418,
619,
273,
365,
16186,
1106,
972,
1435,
619,
6315,
72,
273,
365,
6315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
2951,
12,
2890,
4672,
9163,
5787,
5493,
1297,
506,
5116,
10279,
1817,
19,
5120,
16,
1496,
326,
924,
486,
26418,
619,
273,
365,
16186,
1106,
972,
1435,
619,
6315,
72,
273,
365,
6315... |
vcom_task = Task.simple_task_type('vcom', '${VCOM} ${VCOMFLAGS} ${SRC}', color='GREEN', before='cxx', ext_in=".vhd", vars=['VCOM', 'VCOMFLAGS']) | vcom_task = Task.simple_task_type('vcom', '${VCOM} ${_VCOMFLAGS} ${SRC}', color='GREEN', before='cxx', ext_in=".vhd", vars=['VCOM', '_VCOMFLAGS']) | def vsim_task_str(self): return "vsim: do %s -> %s\n" % (self.dotask, self.target) | 7c31064d730fec5e3b83aa4842fea01bd5df60db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/209/7c31064d730fec5e3b83aa4842fea01bd5df60db/modelsim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6195,
381,
67,
4146,
67,
701,
12,
2890,
4672,
327,
315,
6904,
381,
30,
741,
738,
87,
317,
738,
87,
64,
82,
6,
738,
261,
2890,
18,
9811,
835,
16,
365,
18,
3299,
13,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6195,
381,
67,
4146,
67,
701,
12,
2890,
4672,
327,
315,
6904,
381,
30,
741,
738,
87,
317,
738,
87,
64,
82,
6,
738,
261,
2890,
18,
9811,
835,
16,
365,
18,
3299,
13,
2,
-100,
-100,
... |
import scipy.special ans = str(scipy.special.sph_jn(int(n),float(var))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans) | from scipy.special.specfun import sphj return sphj(int(n), float(var))[1][-1] | def spherical_bessel_J(n, var, algorithm="maxima"): r""" Returns the spherical Bessel function of the first kind for integers n -1. Reference: AS 10.1.8 page 437 and AS 10.1.15 page 439. EXAMPLES:: sage: spherical_bessel_J(2,x) ((3/x^2 - 1)*sin(x) - 3*cos(x)/x)/x """ if algorithm=="scipy": import scipy.special ans =... | 394dfa38f63f3b63a7555c2762afda676f9b712a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/394dfa38f63f3b63a7555c2762afda676f9b712a/special.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
21570,
67,
70,
403,
292,
67,
46,
12,
82,
16,
569,
16,
4886,
1546,
1896,
13888,
6,
4672,
436,
8395,
2860,
326,
272,
21570,
605,
403,
292,
445,
434,
326,
1122,
3846,
364,
12321,
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,
272,
21570,
67,
70,
403,
292,
67,
46,
12,
82,
16,
569,
16,
4886,
1546,
1896,
13888,
6,
4672,
436,
8395,
2860,
326,
272,
21570,
605,
403,
292,
445,
434,
326,
1122,
3846,
364,
12321,
2... |
self.status() | def __repr__(self): self.status() return "Hg repository '%s' in directory %s"%(self.__name, self.__dir) | 02cfcb3154608284928c28969b88f297bb09e778 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/02cfcb3154608284928c28969b88f297bb09e778/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
315,
44,
75,
3352,
1995,
87,
11,
316,
1867,
738,
87,
6,
17105,
2890,
16186,
529,
16,
365,
16186,
1214,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
315,
44,
75,
3352,
1995,
87,
11,
316,
1867,
738,
87,
6,
17105,
2890,
16186,
529,
16,
365,
16186,
1214,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,... | |
def trialMakePolyList(v): | def trialMakePolyList(v): | def trialMakePolyList(v): pMat = [] for i in range(size(v)): pMat += [polyMat[i] * v[i]] segs = [] for corner, edges, planes in polyTab: pts = size(planes) for i in range(pts): segs += [pMat[corner], pMat[planes[i]]] segs += [pMat[planes[i]], pMat[planes[(i+1)%pts]]] return segs | d137aadae12afd03386c3c85863a6b2893ded503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d137aadae12afd03386c3c85863a6b2893ded503/drawer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12950,
6464,
12487,
682,
12,
90,
4672,
293,
15947,
273,
5378,
364,
277,
316,
1048,
12,
1467,
12,
90,
3719,
30,
293,
15947,
1011,
306,
16353,
15947,
63,
77,
65,
380,
331,
63,
77,
13563,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12950,
6464,
12487,
682,
12,
90,
4672,
293,
15947,
273,
5378,
364,
277,
316,
1048,
12,
1467,
12,
90,
3719,
30,
293,
15947,
1011,
306,
16353,
15947,
63,
77,
65,
380,
331,
63,
77,
13563,... |
def _prep_compile(self, sources, output_dir, depends=None): """Decide which souce files must be recompiled. Determine the list of object files corresponding to 'sources', and figure out which ones really need to be recompiled. Return a list of all object files and a dictionary telling which source files can be skipp... | def _fix_compile_args (self, output_dir, macros, include_dirs): """Typecheck and fix-up some of the arguments to the 'compile()' method, and return fixed-up values. Specifically: if 'output_dir' is None, replaces it with 'self.output_dir'; ensures that 'macros' is a list, and augments it with 'self.macros'; ensures th... | b293024314eb7b21eec80dd2cebe28a87661b28b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b293024314eb7b21eec80dd2cebe28a87661b28b/ccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
11100,
67,
1968,
261,
2890,
16,
876,
67,
1214,
16,
24302,
16,
2341,
67,
8291,
4672,
3536,
559,
1893,
471,
2917,
17,
416,
2690,
434,
326,
1775,
358,
326,
296,
11100,
11866... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
11100,
67,
1968,
261,
2890,
16,
876,
67,
1214,
16,
24302,
16,
2341,
67,
8291,
4672,
3536,
559,
1893,
471,
2917,
17,
416,
2690,
434,
326,
1775,
358,
326,
296,
11100,
11866... | |
"NS_GET_IID(%s), %s);\n" % (type.name, jsvalPtr)) | "resultiface, %s);\n" % jsvalPtr) | def writeResultConv(f, type, paramNum, jsvalPtr, jsvalRef): """ Emit code to convert the C++ variable `result` to a jsval. The emitted code contains a return statement; it returns JS_TRUE on success, JS_FALSE on error. """ # From NativeData2JS. typeName = getBuiltinOrNativeTypeName(type) if typeName is not None: templ... | b10cc8d19e2aa919583f608bf70ff0b7f0fa915b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/b10cc8d19e2aa919583f608bf70ff0b7f0fa915b/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1253,
17467,
12,
74,
16,
618,
16,
579,
2578,
16,
3828,
1125,
5263,
16,
3828,
1125,
1957,
4672,
3536,
16008,
981,
358,
1765,
326,
385,
9904,
2190,
1375,
2088,
68,
358,
279,
3828,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1253,
17467,
12,
74,
16,
618,
16,
579,
2578,
16,
3828,
1125,
5263,
16,
3828,
1125,
1957,
4672,
3536,
16008,
981,
358,
1765,
326,
385,
9904,
2190,
1375,
2088,
68,
358,
279,
3828,
... |
self.command = ' '.join(line.split[1:]) | self.command = ' '.join(line.split[1:])\ | def __init__(self, line=''): if not line: self.m, self.h, self.dom, self.mon, self.dow = ['*'] * 5 self.command = '' elif line[0] == '@': self.special = line.split()[0] self.command = ' '.join(line.split[1:]) if line.split()[1] else '' else: params = line.split() self.m, self.h, self.dom, self.mon, self.dow = params[:5... | bbe1e559c7443fe5150489469d739f0ef06da4e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/bbe1e559c7443fe5150489469d739f0ef06da4e3/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
980,
2218,
11,
4672,
309,
486,
980,
30,
365,
18,
81,
16,
365,
18,
76,
16,
365,
18,
9859,
16,
365,
18,
2586,
16,
365,
18,
72,
543,
273,
10228,
14,
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,
1001,
2738,
972,
12,
2890,
16,
980,
2218,
11,
4672,
309,
486,
980,
30,
365,
18,
81,
16,
365,
18,
76,
16,
365,
18,
9859,
16,
365,
18,
2586,
16,
365,
18,
72,
543,
273,
10228,
14,
3... |
rational). If p is (a/b), takes the principle b'th root of self, | rational). If p is (a/b), takes the principal b'th root of self, | def __pow__(self, e): """ self^p returns the p'th power of self (where p can be an arbitrary rational). If p is (a/b), takes the principle b'th root of self, then takes that to the a'th power. (Note that this differs from __pow__ on algebraic reals, where real roots are preferred over principle roots if they exist.) | ac5afda2de8f73e61caafce882f95206af1d8e02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/ac5afda2de8f73e61caafce882f95206af1d8e02/qqbar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23509,
972,
12,
2890,
16,
425,
4672,
3536,
365,
66,
84,
1135,
326,
293,
1404,
76,
7212,
434,
365,
261,
6051,
293,
848,
506,
392,
11078,
436,
8371,
2934,
225,
971,
293,
353,
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,
1001,
23509,
972,
12,
2890,
16,
425,
4672,
3536,
365,
66,
84,
1135,
326,
293,
1404,
76,
7212,
434,
365,
261,
6051,
293,
848,
506,
392,
11078,
436,
8371,
2934,
225,
971,
293,
353,
261,
... |
this = apply(_quickfix.new_DealingCapacity, args) | this = _quickfix.new_DealingCapacity(*args) | def __init__(self, *args): this = apply(_quickfix.new_DealingCapacity, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
758,
287,
310,
7437,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
758,
287,
310,
7437,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
3... |
print "$Id: plotsnrchisq_pipe.py,v 1.9 2007/05/14 21:28:06 channa Exp $" | print "$Id: plotsnrchisq_pipe.py,v 1.10 2007/05/14 21:43:51 channa Exp $" | def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFile): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--sample-rate": sampleR... | c4d2198cea6ff30c6d5f1aa9bee69af1c499079e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/c4d2198cea6ff30c6d5f1aa9bee69af1c499079e/plotsnrchisq_pipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
2844,
743,
16,
267,
1752,
15417,
1370,
16,
2121,
812,
4672,
225,
3597,
85,
7614,
273,
374,
31,
225,
364,
1027,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
8134,
86,
343,
291,
85,
12,
75,
1121,
950,
16,
3789,
812,
16,
2844,
743,
16,
267,
1752,
15417,
1370,
16,
2121,
812,
4672,
225,
3597,
85,
7614,
273,
374,
31,
225,
364,
1027,
316... |
calling search. So calling search up to height 20 then calling saturate results in another search up to height 18. | calling :meth:`search()`. So calling :meth:`search()` up to height 20 then calling :meth:`saturate()` results in another search up to height 18. | def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. | 9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 133) else quickfix.DoubleField.__init__(self, 133, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
30537,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
12,
2890,
16,
30537,
13,
469,
9549,
904,
18,
5265,
974,
16186,
2738,
972,
... |
if sys.argv[1:]: n_runs = int(sys.argv[1]) refinement_test.ls_cycle_repeats = n_runs else: n_runs = 1 | from libtbx.option_parser import option_parser command_line = (option_parser() .option(None, "--fix_random_seeds", action="store_true", default=False) .option(None, "--runs", type='int', default=1) ).process(args=sys.argv[1:]) if command_line.options.fix_random_seeds: flex.set_random_seed(1) random.seed(2) n_runs = com... | def run(): libtbx.utils.show_times_at_exit() import sys if sys.argv[1:]: n_runs = int(sys.argv[1]) refinement_test.ls_cycle_repeats = n_runs else: n_runs = 1 special_positions_test(n_runs).run() exercise_normal_equations() | 37b49af7901c1d7a36c16a828f1befd554bdea51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/37b49af7901c1d7a36c16a828f1befd554bdea51/tst_least_squares.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
2561,
18587,
92,
18,
5471,
18,
4500,
67,
8293,
67,
270,
67,
8593,
1435,
1930,
2589,
628,
2561,
18587,
92,
18,
3482,
67,
4288,
1930,
1456,
67,
4288,
1296,
67,
1369,
273,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
13332,
2561,
18587,
92,
18,
5471,
18,
4500,
67,
8293,
67,
270,
67,
8593,
1435,
1930,
2589,
628,
2561,
18587,
92,
18,
3482,
67,
4288,
1930,
1456,
67,
4288,
1296,
67,
1369,
273,
26... |
assert flex.grid().set_focus(1).focus() == (1,) assert flex.grid().set_focus(1,2).focus() == (1,2,) assert flex.grid().set_focus(1,2,3).focus() == (1,2,3) assert flex.grid().set_focus(1,2,3,4).focus() == (1,2,3,4) assert flex.grid().set_focus(1,2,3,4,5).focus() == (1,2,3,4,5) assert flex.grid().set_focus(1,2,3,4,5,6).f... | assert flex.grid(1).set_focus(1).focus() == (1,) assert flex.grid(1,2).set_focus(1,2).focus() == (1,2,) assert flex.grid(1,2,3).set_focus(1,2,3).focus() == (1,2,3) assert flex.grid(1,2,3,4).set_focus(1,2,3,4).focus() == (1,2,3,4) assert flex.grid(1,2,3,4,5).set_focus(1,2,3,4,5).focus() == (1,2,3,4,5) assert flex.grid(1... | def exercise_flex_grid(): g = flex.grid() assert g.nd() == 0 assert g.size_1d() == 0 assert not g.has_origin() assert g.origin() == () assert g.all() == () assert g.last() == () assert g.last(1) == () assert g.last(0) == () assert g.is_0_based() assert not g.is_padded() assert not g.is_trivial_1d() g = flex.grid((2,3,5... | bbf8bb0a447c23a4aef85ae21b929ee322041ec6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/bbf8bb0a447c23a4aef85ae21b929ee322041ec6/tst_flex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24165,
67,
27592,
67,
5222,
13332,
314,
273,
16600,
18,
5222,
1435,
1815,
314,
18,
4880,
1435,
422,
374,
1815,
314,
18,
1467,
67,
21,
72,
1435,
422,
374,
1815,
486,
314,
18,
5332,
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,
24165,
67,
27592,
67,
5222,
13332,
314,
273,
16600,
18,
5222,
1435,
1815,
314,
18,
4880,
1435,
422,
374,
1815,
314,
18,
1467,
67,
21,
72,
1435,
422,
374,
1815,
486,
314,
18,
5332,
67,
... |
print query, print 'report=' in query print not report_id in query | def _render_view(self, req, db, id): """Retrieve the report results and pre-process them for rendering.""" | d01c79a20a24809b4ed7d35fa0f4baab97d68d04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/d01c79a20a24809b4ed7d35fa0f4baab97d68d04/report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
612,
4672,
3536,
5767,
326,
2605,
1686,
471,
675,
17,
2567,
2182,
364,
9782,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
1945,
12,
2890,
16,
1111,
16,
1319,
16,
612,
4672,
3536,
5767,
326,
2605,
1686,
471,
675,
17,
2567,
2182,
364,
9782,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if filename.lower().find('chgcar') != -1 or len(self.chg) == 1: format = "chgcar" | if filename.lower().find('chgcar') != -1: format = 'chgcar' elif filename.lower().find('chg') != -1: format = 'chg' elif len(self.chg) == 1: format = 'chgcar' | def write(self, filename='CHG', format=None): """Write VASP charge density in CHG format | faff8ab41a4f3236e4b65a87950bf2459bd694ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/faff8ab41a4f3236e4b65a87950bf2459bd694ca/vasp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
1544,
2218,
1792,
43,
2187,
740,
33,
7036,
4672,
3536,
3067,
776,
3033,
52,
13765,
12142,
316,
6469,
43,
740,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
1045,
12,
2890,
16,
1544,
2218,
1792,
43,
2187,
740,
33,
7036,
4672,
3536,
3067,
776,
3033,
52,
13765,
12142,
316,
6469,
43,
740,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
_dictionaryEntries = None def getDictionaryEntries(dictionary): global _dictionaryEntries if not _dictionaryEntries: db = dbconnector.getDBConnector() table = db.tables[dictionary] _dictionaryEntries = db.selectRows( select([table.c.HeadwordTraditional, table.c.HeadwordSimplified, table.c.Reading], distinct=True)\ .ord... | def checkCharacterReading(dictionary, readingName, readingOptions={}, | def getReadingOperator(readingName, readingOptions={}): global _readingOperator if not _readingOperator: readingFactory = ReadingFactory() _readingOperator = readingFactory.createReadingOperator(readingName, **readingOptions) return _readingOperator | 03ee2902c9101f1e847d6ed9b78fc134a514e71a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/03ee2902c9101f1e847d6ed9b78fc134a514e71a/checkcedict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15714,
5592,
12,
21803,
461,
16,
6453,
1320,
12938,
4672,
2552,
389,
21803,
5592,
309,
486,
389,
21803,
5592,
30,
6453,
1733,
273,
31941,
1733,
1435,
389,
21803,
5592,
273,
6453,
1733... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
15714,
5592,
12,
21803,
461,
16,
6453,
1320,
12938,
4672,
2552,
389,
21803,
5592,
309,
486,
389,
21803,
5592,
30,
6453,
1733,
273,
31941,
1733,
1435,
389,
21803,
5592,
273,
6453,
1733... |
['sage/modules/vector_modn_dense.pyx']) | ['sage/modules/vector_modn_dense.pyx']) | def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False | 697d48ce28ff4d12606adf26a8fb095216c31678 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/697d48ce28ff4d12606adf26a8fb095216c31678/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
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,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,... |
if self.use_latex_toc: | if 'contents' in node['classes'] and self.use_latex_toc: | def visit_topic(self, node): self.topic_classes = node['classes'] if self.use_latex_toc: self.body.append('\\tableofcontents\n\n\\bigskip\n') self.topic_classes = [] raise nodes.SkipNode | 728bed18a85c7e38c0686bef7c5aa5b0bc455ca2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/728bed18a85c7e38c0686bef7c5aa5b0bc455ca2/latex2e.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10476,
12,
2890,
16,
756,
4672,
365,
18,
10476,
67,
4701,
273,
756,
3292,
4701,
3546,
309,
296,
3980,
11,
316,
756,
3292,
4701,
3546,
471,
365,
18,
1202,
67,
26264,
67,
1391,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
10476,
12,
2890,
16,
756,
4672,
365,
18,
10476,
67,
4701,
273,
756,
3292,
4701,
3546,
309,
296,
3980,
11,
316,
756,
3292,
4701,
3546,
471,
365,
18,
1202,
67,
26264,
67,
1391,... |
extraHeaders = { 'Ticket' : self.ticket } else: extraHeaders = None | def _putItem(self, item): """ putItem should publish an item and return etag/date, etc. """ | 9407bec8d667ad0d61415abd978106b23f8daadc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9407bec8d667ad0d61415abd978106b23f8daadc/Sharing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
458,
1180,
12,
2890,
16,
761,
4672,
3536,
1378,
1180,
1410,
3808,
392,
761,
471,
327,
13655,
19,
712,
16,
5527,
18,
3536,
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,
389,
458,
1180,
12,
2890,
16,
761,
4672,
3536,
1378,
1180,
1410,
3808,
392,
761,
471,
327,
13655,
19,
712,
16,
5527,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if __name__ == "__main__": __builtins__._ = None else: __builtins__['_'] = None | import builtins builtins._ = None | def run(self, test, compileflags=None, out=None, clear_globs=True): """ Run the examples in `test`, and display the results using the writer function `out`. | e1adf1357de1e60ce715c25abd6507a75d15d8c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/e1adf1357de1e60ce715c25abd6507a75d15d8c3/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1842,
16,
4074,
7133,
33,
7036,
16,
596,
33,
7036,
16,
2424,
67,
10581,
87,
33,
5510,
4672,
3536,
1939,
326,
10991,
316,
1375,
3813,
9191,
471,
2562,
326,
1686,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1842,
16,
4074,
7133,
33,
7036,
16,
596,
33,
7036,
16,
2424,
67,
10581,
87,
33,
5510,
4672,
3536,
1939,
326,
10991,
316,
1375,
3813,
9191,
471,
2562,
326,
1686,
145... |
"""Returns the appropriate TestInfo object for the file. Mostly this means that we look up the timeout value (in ms) to use for the given test file. By default we use TestRunner.DEFAULT_TEST_TIMEOUT_MS (currently 10 secs), but that can be overridden with the --timeout-ms command line argument. Tests marked SLOW are all... | """Returns the appropriate TestInfo object for the file. Mostly this is used for looking up the timeout value (in ms) to use for the given test.""" | def _GetTestInfoForFile(self, test_file): """Returns the appropriate TestInfo object for the file. Mostly this means that we look up the timeout value (in ms) to use for the given test file. By default we use TestRunner.DEFAULT_TEST_TIMEOUT_MS (currently 10 secs), but that can be overridden with the --timeout-ms comman... | 99fcffb2f8d3711c3a21de6d596e83faf021d2bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/99fcffb2f8d3711c3a21de6d596e83faf021d2bd/run_webkit_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
4709,
966,
1290,
812,
12,
2890,
16,
1842,
67,
768,
4672,
3536,
1356,
326,
5505,
7766,
966,
733,
364,
326,
585,
18,
22099,
715,
333,
353,
1399,
364,
7849,
731,
326,
2021,
460,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
4709,
966,
1290,
812,
12,
2890,
16,
1842,
67,
768,
4672,
3536,
1356,
326,
5505,
7766,
966,
733,
364,
326,
585,
18,
22099,
715,
333,
353,
1399,
364,
7849,
731,
326,
2021,
460,... |
else: punishableAvg = totalAvg stoptime = (totalAvg - cpulimit) * totaltime * 2 | def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: return # Increment total time totaltime += elapsedtime # Increment CPU use if ((tota... | 57cc65f7602baf18d5f7417c8dbc3ce7a1f6aa79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/57cc65f7602baf18d5f7417c8dbc3ce7a1f6aa79/nonportable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12980,
67,
11447,
67,
23205,
12,
896,
27936,
16,
3283,
332,
1038,
16,
8670,
16,
1151,
6610,
4672,
2552,
2078,
957,
16,
2078,
11447,
225,
9613,
957,
16,
5551,
3668,
273,
336,
67,
957,
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,
12980,
67,
11447,
67,
23205,
12,
896,
27936,
16,
3283,
332,
1038,
16,
8670,
16,
1151,
6610,
4672,
2552,
2078,
957,
16,
2078,
11447,
225,
9613,
957,
16,
5551,
3668,
273,
336,
67,
957,
6... | |
sys.path = [ norm_path(p) for p in sys.path ] ROBOTDIR = norm_path(os.path.dirname(os.path.abspath(__file__))) | ROBOTDIR = os.path.dirname(os.path.abspath(__file__)) | def remove_path(path): path = norm_path(path) while path in sys.path: sys.path.remove(path) | 94bbe917c2c4dfd733d4240e01d56a21b2abe07a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/94bbe917c2c4dfd733d4240e01d56a21b2abe07a/pythonpathsetter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
803,
12,
803,
4672,
589,
273,
4651,
67,
803,
12,
803,
13,
1323,
589,
316,
2589,
18,
803,
30,
2589,
18,
803,
18,
4479,
12,
803,
13,
282,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
803,
12,
803,
4672,
589,
273,
4651,
67,
803,
12,
803,
13,
1323,
589,
316,
2589,
18,
803,
30,
2589,
18,
803,
18,
4479,
12,
803,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-... |
if isinstance(b, str): | if not type(b) == tuple: | def calc_prob(self, tree, parent=None): '''walking a tree bottom-up based on dictionary ''' endog = self.endog datadict = self.datadict paramsind = self.paramsind branchsum = self.branchsum | 43e417321b16e1b7068d0a6d62ba8cbda226a35c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/43e417321b16e1b7068d0a6d62ba8cbda226a35c/treewalkerclass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
7748,
12,
2890,
16,
2151,
16,
982,
33,
7036,
4672,
9163,
11348,
310,
279,
2151,
5469,
17,
416,
2511,
603,
3880,
9163,
679,
717,
273,
365,
18,
409,
717,
22034,
933,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
7748,
12,
2890,
16,
2151,
16,
982,
33,
7036,
4672,
9163,
11348,
310,
279,
2151,
5469,
17,
416,
2511,
603,
3880,
9163,
679,
717,
273,
365,
18,
409,
717,
22034,
933,
273,
365,
... |
if module == 'chandler': print 'Nothing to be done for module', module log.write('Nothing to be done for module ' + module + '\n') log.write(separator) continue | if module == 'chandler' and not svnChanges['external'] and not svnChanges['internal']: makeTargets = dbgStr + " " + clean + " install purge" | def doBuild(buildmode, workingDir, log, svnChanges, clean='realclean'): # We only build external if there were changes in it # We build internal if external or internal were changed # We never build in chandler, because there is nothing to build if buildmode == "debug": dbgStr = "DEBUG=1" else: dbgStr = "" buildRoot =... | b13de730b44dccc5fe915b9135f4168cc5544b02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b13de730b44dccc5fe915b9135f4168cc5544b02/fullchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
3116,
12,
3510,
3188,
16,
5960,
1621,
16,
613,
16,
5893,
82,
7173,
16,
2721,
2218,
7688,
6200,
11,
4672,
468,
1660,
1338,
1361,
3903,
309,
1915,
4591,
3478,
316,
518,
468,
1660,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3116,
12,
3510,
3188,
16,
5960,
1621,
16,
613,
16,
5893,
82,
7173,
16,
2721,
2218,
7688,
6200,
11,
4672,
468,
1660,
1338,
1361,
3903,
309,
1915,
4591,
3478,
316,
518,
468,
1660,
1... |
method=True,store=True, type='datetime', string='Max. Planned Date', select=2), 'move_lines': fields.one2many('stock.move', 'picking_id', 'Move lines',states={'done':[('readonly',True)],'cancel':[('readonly',True)]}), | method=True, store=True, type='datetime', string='Max. Planned Date', select=2), 'move_lines': fields.one2many('stock.move', 'picking_id', 'Move lines', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}), | def create(self, cr, user, vals, context=None): if ('name' not in vals) or (vals.get('name')=='/'): vals['name'] = self.pool.get('ir.sequence').get(cr, user, 'stock.picking') return super(stock_picking, self).create(cr, user, vals, context) | 369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
729,
16,
5773,
16,
819,
33,
7036,
4672,
309,
7707,
529,
11,
486,
316,
5773,
13,
578,
261,
4524,
18,
588,
2668,
529,
6134,
18920,
2473,
4672,
5773,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
4422,
16,
729,
16,
5773,
16,
819,
33,
7036,
4672,
309,
7707,
529,
11,
486,
316,
5773,
13,
578,
261,
4524,
18,
588,
2668,
529,
6134,
18920,
2473,
4672,
5773,
3292,
... |
f = self.get_time() | f = get_time() | def calibrate(self, m): # Modified by Tim Peters n = m s = self.get_time() while n: self.simple() n = n - 1 f = self.get_time() my_simple = f - s #print "Simple =", my_simple, | 7c76e9ea47c5473c749a68d4ceef4f076daffc4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7c76e9ea47c5473c749a68d4ceef4f076daffc4a/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26139,
5141,
12,
2890,
16,
312,
4672,
468,
21154,
635,
12652,
453,
1032,
290,
273,
312,
272,
273,
365,
18,
588,
67,
957,
1435,
1323,
290,
30,
365,
18,
9647,
1435,
290,
273,
290,
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,
26139,
5141,
12,
2890,
16,
312,
4672,
468,
21154,
635,
12652,
453,
1032,
290,
273,
312,
272,
273,
365,
18,
588,
67,
957,
1435,
1323,
290,
30,
365,
18,
9647,
1435,
290,
273,
290,
300,
... |
This callback will be called with one method, this instance. | This callback will be called with one argument, this instance. | def notifyOnDisconnect(self, callback): """Register a callback to be called if our broker gets disconnected. | 1a93ab3e183ef6bc5d75ed809d92737628e44232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1a93ab3e183ef6bc5d75ed809d92737628e44232/pb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
1398,
18895,
12,
2890,
16,
1348,
4672,
3536,
3996,
279,
1348,
358,
506,
2566,
309,
3134,
8625,
5571,
17853,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5066,
1398,
18895,
12,
2890,
16,
1348,
4672,
3536,
3996,
279,
1348,
358,
506,
2566,
309,
3134,
8625,
5571,
17853,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
options.ramdb = True options.create = True parcelPath = Utility.initParcelEnv(options, chandlerDir) pluginEnv, pluginEggs = Utility.initPluginEnv(Globals.options, Globals.options.pluginPath) view = Utility.initRepository(repositoryDir, options) Utility.initParcels(options, view, parcelPath) Utility.initPlugins(Globa... | def generateModelDocs(options, outputDir=None): urlRoot = '/docs/current/model' chandlerDir = Utility.locateChandlerDirectory() repositoryDir = Utility.locateRepositoryDirectory(chandlerDir, options) if not outputDir: modelDir = os.path.join(chandlerDir, 'docs', 'model') else: modelDir = os.path.join(outputDir... | 0ac9b659361825b14b17130480cba4fa87a2569a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/0ac9b659361825b14b17130480cba4fa87a2569a/gen_docs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1488,
12656,
12,
2116,
16,
21412,
33,
7036,
4672,
880,
2375,
4202,
273,
1173,
8532,
19,
2972,
19,
2284,
11,
462,
464,
749,
1621,
282,
273,
13134,
18,
25450,
782,
464,
749,
2853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1488,
12656,
12,
2116,
16,
21412,
33,
7036,
4672,
880,
2375,
4202,
273,
1173,
8532,
19,
2972,
19,
2284,
11,
462,
464,
749,
1621,
282,
273,
13134,
18,
25450,
782,
464,
749,
2853,
... | |
for inv in self.browse(cr, uid, ids, context): print inv.name, inv.amount_total for line in inv.invoice_line: print line.price_subtotal | invoices = self.read(cr, uid, ids, ['state']) unlink_ids = [] for t in invoices: if t['state'] in ('draft', 'cancel'): unlink_ids.append(t['id']) else: raise osv.except_osv(_('Invalid action !'), _('Cannot delete invoice(s) that are already opened or paid !')) osv.osv.unlink(self, cr, uid, unlink_ids, context=context) ... | def unlink(self, cr, uid, ids, context=None): for inv in self.browse(cr, uid, ids, context): print inv.name, inv.amount_total for line in inv.invoice_line: print line.price_subtotal | 86597698aa994e439adbb2af281cd3fdad58165a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/86597698aa994e439adbb2af281cd3fdad58165a/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
364,
2198,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
1172,
2198,
18,
529,
16,
2198,
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,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
364,
2198,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
1172,
2198,
18,
529,
16,
2198,
18,... |
ifp = open(srcfss.as_pathname(), 'rb') ofp = open(dstfss.as_pathname(), 'wb') | ifp = open(src, 'rb') ofp = open(dst, 'wb') | def copy(src, dst, createpath=0, copydates=1, forcetype=None): """Copy a file, including finder info, resource fork, etc""" if createpath: mkdirs(os.path.split(dst)[0]) srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) ifp = open(srcfss.as_pathname(), 'rb') ofp = open(dstfss.as_pathname(), 'wb') d = ifp.read(BUFSI... | fee7a54e3e4b7473743856c6f2bb29c101f46603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fee7a54e3e4b7473743856c6f2bb29c101f46603/macostools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
4816,
16,
3046,
16,
752,
803,
33,
20,
16,
1610,
9683,
33,
21,
16,
364,
71,
5872,
33,
7036,
4672,
3536,
2951,
279,
585,
16,
6508,
7532,
1123,
16,
1058,
12515,
16,
5527,
8395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
12,
4816,
16,
3046,
16,
752,
803,
33,
20,
16,
1610,
9683,
33,
21,
16,
364,
71,
5872,
33,
7036,
4672,
3536,
2951,
279,
585,
16,
6508,
7532,
1123,
16,
1058,
12515,
16,
5527,
8395... |
ldflags = self.ldflags_shared_debug | ld_args = self.ldflags_shared_debug[:] | def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None): | c58c5177419a3703cb2c6397471ab1e8756a6755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c58c5177419a3703cb2c6397471ab1e8756a6755/bcppcompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
3099,
67,
12083,
67,
8291,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
11574,
67,
1612,
261,
2890,
16,
2184,
16,
876,
67,
3459,
16,
876,
67,
1214,
33,
7036,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
16,
3099,
67,
12083,
67,
8291,
33,
... |
EVT_LEFT_DCLICK(self, self.OnGotoSource) | EVT_LEFT_DCLICK(self, self.OnGotoSource) | def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.I... | 872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
19977,
4672,
7,
16,
284,
1098,
16,
4748,
4672,
7075,
682,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
7075,
734,
67,
27960,
12145,
16,
2154,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
19977,
4672,
7,
16,
284,
1098,
16,
4748,
4672,
7075,
682,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
7075,
734,
67,
27960,
12145,
16,
2154,... |
self.prohibit_importing('debian.debian_support') self.mock_imports('launch_control.sw_profile') mocker = Mocker() obj = mocker.replace('debian_bundle.debian_support.version_compare') mocker.replay() import launch_control.sw_profile self.assertTrue(launch_control.sw_profile.debian_version_compare is obj) mocker.verify()... | try: import debian except ImportError: pass else: self.prohibit_importing('debian.debian_support') self.mock_imports('launch_control.sw_profile') mocker = Mocker() obj = mocker.replace('debian_bundle.debian_support.version_compare') mocker.replay() import launch_control.sw_profile self.assertTrue(launch_control.sw_prof... | def test_debian_import_failure(self): """ Make sure we import debian_bundle if debian is not available """ self.prohibit_importing('debian.debian_support') self.mock_imports('launch_control.sw_profile') mocker = Mocker() obj = mocker.replace('debian_bundle.debian_support.version_compare') mocker.replay() import launch_... | dca9f2f5f76d60bccbb7c30194b7d789cf436e20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/dca9f2f5f76d60bccbb7c30194b7d789cf436e20/sw_profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
31888,
2779,
67,
5666,
67,
12251,
12,
2890,
4672,
3536,
4344,
3071,
732,
1930,
18202,
2779,
67,
9991,
309,
18202,
2779,
353,
486,
2319,
3536,
365,
18,
685,
31597,
67,
5666,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
31888,
2779,
67,
5666,
67,
12251,
12,
2890,
4672,
3536,
4344,
3071,
732,
1930,
18202,
2779,
67,
9991,
309,
18202,
2779,
353,
486,
2319,
3536,
365,
18,
685,
31597,
67,
5666,
310... |
return _get_element_list(self, 'descendant::draw:page', draw_style=style, regex=regex) | return _get_element_list(self, 'descendant::draw:page', draw_style=style, regex=regex) | def get_draw_page_list(self, style=None, regex=None): return _get_element_list(self, 'descendant::draw:page', draw_style=style, regex=regex) | ce277637ece39c490aa0e17baab70b714a014dd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/ce277637ece39c490aa0e17baab70b714a014dd4/element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9446,
67,
2433,
67,
1098,
12,
2890,
16,
2154,
33,
7036,
16,
3936,
33,
7036,
4672,
327,
389,
588,
67,
2956,
67,
1098,
12,
2890,
16,
296,
26236,
970,
2866,
9446,
30,
2433,
218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
67,
9446,
67,
2433,
67,
1098,
12,
2890,
16,
2154,
33,
7036,
16,
3936,
33,
7036,
4672,
327,
389,
588,
67,
2956,
67,
1098,
12,
2890,
16,
296,
26236,
970,
2866,
9446,
30,
2433,
218... |
return os.path.join(self.working_dir, self.job_file_name) | return os.path.join(self.work_dir, self.job_file_name) | def job_file(self): return os.path.join(self.working_dir, self.job_file_name) | 0e1a8878339575b302cf159e8b9d71fbaa0d82ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4219/0e1a8878339575b302cf159e8b9d71fbaa0d82ec/launcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1719,
67,
768,
12,
2890,
4672,
327,
1140,
18,
803,
18,
5701,
12,
2890,
18,
20478,
67,
1214,
16,
365,
18,
4688,
67,
768,
67,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1719,
67,
768,
12,
2890,
4672,
327,
1140,
18,
803,
18,
5701,
12,
2890,
18,
20478,
67,
1214,
16,
365,
18,
4688,
67,
768,
67,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def test_wait_for_individual_cancel(self): | def test_wait_for_individual_cancel_while_waiting(self): | def test_wait_for_individual_cancel(self): def end_call(): time.sleep(1) f2.cancel() call1.set_can() | 07724f0d7feafe4d50dece6f82a1962cbc64edc4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4870/07724f0d7feafe4d50dece6f82a1962cbc64edc4/test_futures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7048,
67,
1884,
67,
22032,
5557,
67,
10996,
67,
17523,
67,
20241,
12,
2890,
4672,
1652,
679,
67,
1991,
13332,
813,
18,
19607,
12,
21,
13,
284,
22,
18,
10996,
1435,
745,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7048,
67,
1884,
67,
22032,
5557,
67,
10996,
67,
17523,
67,
20241,
12,
2890,
4672,
1652,
679,
67,
1991,
13332,
813,
18,
19607,
12,
21,
13,
284,
22,
18,
10996,
1435,
745,
21,
... |
try: err, =self.command(23, "id", "error", (self.lid,)) except: self.log_traceback() self.connected=0 del connection_dict[self.lid] self.lid=None self.core.close() self.abort_channel.close() del self.core, self.abort_channel self.core=None self.abortChannel=None | if self.connected: try: err, =self.command(23, "id", "error", (self.lid,)) except: self.log_traceback() self.connected=0 del connection_dict[self.lid] self.lid=None self.core.close() self.abort_channel.close() del self.core, self.abort_channel self.core=None self.abortChannel=None | def disconnect(self): try: err, =self.command(23, "id", "error", (self.lid,)) #execute destroy_link except: self.log_traceback() #if we can't close nicely, we'll close anyway self.connected=0 del connection_dict[self.lid] self.lid=None self.core.close() self.abort_channel.close() del self.core, self.abort_channel sel... | 2ecea56fec4a466c983e0862abb4e1245d2011ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/2ecea56fec4a466c983e0862abb4e1245d2011ca/vxi_11.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9479,
12,
2890,
4672,
775,
30,
393,
16,
273,
2890,
18,
3076,
12,
4366,
16,
225,
315,
350,
3113,
315,
1636,
3113,
261,
2890,
18,
80,
350,
16,
3719,
468,
8837,
5546,
67,
1232,
1335,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9479,
12,
2890,
4672,
775,
30,
393,
16,
273,
2890,
18,
3076,
12,
4366,
16,
225,
315,
350,
3113,
315,
1636,
3113,
261,
2890,
18,
80,
350,
16,
3719,
468,
8837,
5546,
67,
1232,
1335,
30... |
self.update() def update(self): | def __init__(self, rect, attr=None): Window.__init__(self, rect) if not attr: attr = curses.color_pair(070) self.attr = attr self.update() | 81f45d44cd2cbe55af809e0d0331bb0aa12fb74f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/81f45d44cd2cbe55af809e0d0331bb0aa12fb74f/Curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4917,
16,
1604,
33,
7036,
4672,
6076,
16186,
2738,
972,
12,
2890,
16,
4917,
13,
309,
486,
1604,
30,
1604,
273,
30436,
18,
3266,
67,
6017,
12,
20,
7301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
4917,
16,
1604,
33,
7036,
4672,
6076,
16186,
2738,
972,
12,
2890,
16,
4917,
13,
309,
486,
1604,
30,
1604,
273,
30436,
18,
3266,
67,
6017,
12,
20,
7301,
... | |
if sys.platform=='win32' and ('install' in sys.argv or 'install_ext' in sys.argv): | if sys.hexversion<0x2030000 and sys.platform=='win32' and ('install' in sys.argv or 'install_ext' in sys.argv): | def pfxJoin(pfx,*N): R=[] for n in N: R.append(pJoin(pfx,n)) return R | f43fb40f8f2a84ee29fb78f853c6b109499dffdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/f43fb40f8f2a84ee29fb78f853c6b109499dffdd/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31592,
4572,
12,
14241,
92,
16,
14,
50,
4672,
534,
33,
8526,
364,
290,
316,
423,
30,
534,
18,
6923,
12,
84,
4572,
12,
14241,
92,
16,
82,
3719,
327,
534,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31592,
4572,
12,
14241,
92,
16,
14,
50,
4672,
534,
33,
8526,
364,
290,
316,
423,
30,
534,
18,
6923,
12,
84,
4572,
12,
14241,
92,
16,
82,
3719,
327,
534,
2,
-100,
-100,
-100,
-100,
... |
timeaware = timetz(now.hour, now.minute, now.second, now.microsecond, tzinfo=tz55) | timeaware = now.timetz().replace(tzinfo=tz55) | def test_tz_aware_arithmetic(self): import random | 1410f22e181c04b0c2bf26fede019523e36a5459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1410f22e181c04b0c2bf26fede019523e36a5459/test_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
12994,
67,
30799,
67,
297,
16368,
12,
2890,
4672,
1930,
2744,
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,
1842,
67,
12994,
67,
30799,
67,
297,
16368,
12,
2890,
4672,
1930,
2744,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
subsequent_indent=subsequent_indent)) | subsequent_indent=subsequent_indent) wrappedLines = [] for line in t.split('\n'): wrappedLines += wrapper.wrap(line.rstrip()) return '\n'.join(wrappedLines) | def wrap(t, cols=75, initial_indent='', subsequent_indent=''): try: import textwrap return '\n'.join(textwrap.wrap(t, replace_whitespace=0, width=cols, break_long_words=0, initial_indent=initial_indent, subsequent_indent=subsequent_indent)) except ImportError: return t | fdbf7afefbe36b1cdaf1e43e2261a635f45aa26b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/fdbf7afefbe36b1cdaf1e43e2261a635f45aa26b/Notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
12,
88,
16,
5347,
33,
5877,
16,
2172,
67,
9355,
2218,
2187,
10815,
67,
9355,
2218,
11,
4672,
775,
30,
1930,
30271,
327,
2337,
82,
10332,
5701,
12,
955,
4113,
18,
4113,
12,
88,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
88,
16,
5347,
33,
5877,
16,
2172,
67,
9355,
2218,
2187,
10815,
67,
9355,
2218,
11,
4672,
775,
30,
1930,
30271,
327,
2337,
82,
10332,
5701,
12,
955,
4113,
18,
4113,
12,
88,
... |
if not self.movie or not self.movie.filename: msg = redmsg("No tracefile exists for this part. To create one, run a simulation.") env.history.message(cmd + msg) return 1 self.traceFile = self.movie.get_trace_filename() | def setup(self): """Setup the Plot Tool dialog, including populating the combobox with plotting options. """ # To setup the Plot Tool, we need to do the following: # 1. Make sure there is a valid DPB file. This is temporary since the Plot Tool will # soon allow the user to open and plot any trace file. # 2. From th... | d7b7ec716f285241b2f07ff7b0c3092d6ef42db1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d7b7ec716f285241b2f07ff7b0c3092d6ef42db1/PlotTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
3536,
7365,
326,
15211,
13288,
6176,
16,
6508,
3650,
1776,
326,
3894,
27570,
598,
20947,
702,
18,
3536,
468,
2974,
3875,
326,
15211,
13288,
16,
732,
1608,
358,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
3536,
7365,
326,
15211,
13288,
6176,
16,
6508,
3650,
1776,
326,
3894,
27570,
598,
20947,
702,
18,
3536,
468,
2974,
3875,
326,
15211,
13288,
16,
732,
1608,
358,
741,
... | |
self.buffer = open("/tmp/redirect.log", "wt") | self.buffer = open("/tmp/redirect.log", "at", 0) | def createLogger(self): """ """ self.buffer = open("/tmp/redirect.log", "wt") | d06b69fb05d2caacc88f8983a8f607b2f1a0672b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10164/d06b69fb05d2caacc88f8983a8f607b2f1a0672b/redirector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3328,
12,
2890,
4672,
3536,
3536,
365,
18,
4106,
273,
1696,
2932,
19,
5645,
19,
7590,
18,
1330,
3113,
315,
6046,
7923,
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,
752,
3328,
12,
2890,
4672,
3536,
3536,
365,
18,
4106,
273,
1696,
2932,
19,
5645,
19,
7590,
18,
1330,
3113,
315,
6046,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def _set_tunnel(self, host, port=None): | def _set_tunnel(self, host, port=None, headers=None): | def _set_tunnel(self, host, port=None): """ Sets up the host and the port for the HTTP CONNECT Tunnelling. | b7205d0db3e110cd9d98bc9a567bc7a74a0b2292 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/b7205d0db3e110cd9d98bc9a567bc7a74a0b2292/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
19878,
12,
2890,
16,
1479,
16,
1756,
33,
7036,
16,
1607,
33,
7036,
4672,
3536,
11511,
731,
326,
1479,
471,
326,
1756,
364,
326,
2239,
21593,
399,
318,
82,
1165,
310,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
19878,
12,
2890,
16,
1479,
16,
1756,
33,
7036,
16,
1607,
33,
7036,
4672,
3536,
11511,
731,
326,
1479,
471,
326,
1756,
364,
326,
2239,
21593,
399,
318,
82,
1165,
310,
18,
... |
changed_cb=self.prefs_lyrics_location_changed) display_lyrics_location_hbox = gtk.HBox(spacing=12) display_lyrics_location_hbox.pack_end(display_lyrics_location, False, False) display_lyrics_location_hbox.pack_end(savelyrics_label, False, False) display_lyrics_location_hbox.set_sensitive(self.config.show_lyrics) displa... | changed_cb=self._lyrics_location_changed) lyrics_location_hbox = gtk.HBox(spacing=12) lyrics_location_hbox.pack_end(lyrics_location, False, False) lyrics_location_hbox.pack_end(savelyrics_label, False, False) lyrics_location_hbox.set_sensitive(self.config.show_lyrics) lyrics.connect('toggled', lyrics_toggled, lyrics_lo... | def display_tab(self, prefs_stylized_toggled, prefs_art_toggled, prefs_playback_toggled, prefs_progress_toggled, prefs_statusbar_toggled, prefs_lyrics_toggled, trayicon_available): """Construct and layout the display tab""" displaylabel = ui.label(markup='<b>' + _('Display') + '</b>') display_frame = gtk.Frame() displa... | 7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
7032,
12,
2890,
16,
15503,
67,
334,
93,
80,
1235,
67,
88,
23972,
1259,
16,
15503,
67,
485,
67,
88,
23972,
1259,
16,
15503,
67,
1601,
823,
67,
88,
23972,
1259,
16,
15503,
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,
2562,
67,
7032,
12,
2890,
16,
15503,
67,
334,
93,
80,
1235,
67,
88,
23972,
1259,
16,
15503,
67,
485,
67,
88,
23972,
1259,
16,
15503,
67,
1601,
823,
67,
88,
23972,
1259,
16,
15503,
67... |
modules = [player, trackFactory, db, randomizer] | modules = [player, trackFactory, db, randomizer, self] | def run(self): # Do platform-dependent imports, and choose a player type. For # now, we just choose it based on the platform... system = platform.system() self._logger.debug("Running on "+system+".") player = None if system == 'Windows': self._logger.debug("Loading Winamp module.") import WinampWindows player = WinampW... | ea1fb344907d2152656b6f962bb98a9984978a6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/ea1fb344907d2152656b6f962bb98a9984978a6a/Main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
2256,
4072,
17,
10891,
10095,
16,
471,
9876,
279,
7291,
618,
18,
2457,
468,
2037,
16,
732,
2537,
9876,
518,
2511,
603,
326,
4072,
2777,
2619,
273,
4072,
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,
1086,
12,
2890,
4672,
468,
2256,
4072,
17,
10891,
10095,
16,
471,
9876,
279,
7291,
618,
18,
2457,
468,
2037,
16,
732,
2537,
9876,
518,
2511,
603,
326,
4072,
2777,
2619,
273,
4072,
18,
... |
if connected == 1: gnucap += "R999999999 0 " for component in self.components: if component.is_connected(): gnucap += str(component.get_nodes()[0].get_wires()[0].get_wire_id()) break gnucap += " 1f\n" | gnucap += "R999999999 0 " for component in self.components: if component.is_connected(): gnucap += str(component.get_nodes()[0].get_wires()[0].get_wire_id()) break gnucap += " 1f\n" | def call_gnucap(self): if not self.components: if debug: print "call_gnucap: No component" self.gnucap_timer = 0 return | 712088d0003c9f34241e32e9fc653c82b72742d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/712088d0003c9f34241e32e9fc653c82b72742d6/electric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
1600,
5286,
438,
12,
2890,
4672,
309,
486,
365,
18,
8119,
30,
309,
1198,
30,
1172,
315,
1991,
67,
1600,
5286,
438,
30,
2631,
1794,
6,
365,
18,
1600,
5286,
438,
67,
12542,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
1600,
5286,
438,
12,
2890,
4672,
309,
486,
365,
18,
8119,
30,
309,
1198,
30,
1172,
315,
1991,
67,
1600,
5286,
438,
30,
2631,
1794,
6,
365,
18,
1600,
5286,
438,
67,
12542,
27... |
x, y -- top-left coordinate | i, j -- index of this cell in the map | def get_neighbor(self, cell, direction): '''Get the neighbor HexCell in the given direction which is one of self.UP, self.DOWN, self.UP_LEFT, self.UP_RIGHT, self.DOWN_LEFT or self.DOWN_RIGHT. | ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
18168,
12,
2890,
16,
2484,
16,
4068,
4672,
9163,
967,
326,
10553,
15734,
4020,
316,
326,
864,
4068,
1492,
353,
1245,
434,
365,
18,
3079,
16,
365,
18,
12711,
16,
365,
18,
3079,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18168,
12,
2890,
16,
2484,
16,
4068,
4672,
9163,
967,
326,
10553,
15734,
4020,
316,
326,
864,
4068,
1492,
353,
1245,
434,
365,
18,
3079,
16,
365,
18,
12711,
16,
365,
18,
3079,... |
m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2") | m['Date'] = email.Utils.formatdate(start_time[0]) | def getaddrs(opt, prpt, default = None): addrs = opts.get(opt) or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(ui, prpt, default)).split(',') return [mail.addressencode(ui, a.strip(), _charsets, opts.get('test')) for a in addrs if a.strip()] | 9f26a8abb86b5bfad9352e04b5c5cb9e4d95c868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/9f26a8abb86b5bfad9352e04b5c5cb9e4d95c868/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
18,
588,
12,
3838,
13,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
18,
588,
12,
3838,
13,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
... |
outs, upds = theano.scan(f, sequences=[input], outputs_info=[self.memory]) | outs, upds = theano.scan(f, sequences=[input], outputs_info=[self.memory, cost]) | def f(inp, mem): self.base_layer.build(T.join(1, T.unbroadcast(T.shape_padleft(inp),0), mem), inp_shape) return self.base_layer.output | be398f5295ae3c6c999c3358899e2a341413174d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3400/be398f5295ae3c6c999c3358899e2a341413174d/recurrent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
31647,
16,
1663,
4672,
365,
18,
1969,
67,
6363,
18,
3510,
12,
56,
18,
5701,
12,
21,
16,
399,
18,
318,
19805,
12,
56,
18,
4867,
67,
6982,
4482,
12,
31647,
3631,
20,
3631,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
12,
31647,
16,
1663,
4672,
365,
18,
1969,
67,
6363,
18,
3510,
12,
56,
18,
5701,
12,
21,
16,
399,
18,
318,
19805,
12,
56,
18,
4867,
67,
6982,
4482,
12,
31647,
3631,
20,
3631,
1... |
if os.path.exists(dest_path): os.remove(dest_path) shutil.copyfile(sub_path, dest_path) | if sub_path != dest_path: if os.path.exists(dest_path): os.remove(dest_path) shutil.copyfile(sub_path, dest_path) | def copy_subtitle_file(sub_path, video_path): """Copies the subtitle file located at sub_path alongside the video file located at video_path. It also changes the name so that the subtitle file follows the rules of sidecar files. Returns the path the subtitle file was copied to. """ from miro import iso_639 sub_basen... | 18e12c017bd10a63c6bd1bbc5286f86d5b6e9c4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/18e12c017bd10a63c6bd1bbc5286f86d5b6e9c4f/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
1717,
2649,
67,
768,
12,
1717,
67,
803,
16,
6191,
67,
803,
4672,
3536,
15670,
326,
20281,
585,
13801,
622,
720,
67,
803,
524,
7260,
831,
326,
6191,
585,
13801,
622,
6191,
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,
1610,
67,
1717,
2649,
67,
768,
12,
1717,
67,
803,
16,
6191,
67,
803,
4672,
3536,
15670,
326,
20281,
585,
13801,
622,
720,
67,
803,
524,
7260,
831,
326,
6191,
585,
13801,
622,
6191,
67,... |
INSTR_PATH = os.path.join(JOKOSHER_PATH, "Instruments") | INSTR_PATHS = (os.path.join(JOKOSHER_PATH, "Instruments"), os.path.expanduser("~/.jokosher/instruments")) | def idleCacheInstruments(): global instrumentPropertyList, _alreadyCached, _cacheGeneratorObject if _alreadyCached: #Stop idle_add from calling us again return False #create the generator if it hasnt been already if not _cacheGeneratorObject: _cacheGeneratorObject = _cacheInstrumentsGenerator() try: instrumentProperty... | ab5982e39937049ad0236f66503ac44e5aa93167 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/ab5982e39937049ad0236f66503ac44e5aa93167/Globals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
1649,
19228,
87,
13332,
2552,
10353,
1396,
682,
16,
389,
17583,
9839,
16,
389,
2493,
3908,
921,
309,
389,
17583,
9839,
30,
468,
4947,
12088,
67,
1289,
628,
4440,
584,
3382,
327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
1649,
19228,
87,
13332,
2552,
10353,
1396,
682,
16,
389,
17583,
9839,
16,
389,
2493,
3908,
921,
309,
389,
17583,
9839,
30,
468,
4947,
12088,
67,
1289,
628,
4440,
584,
3382,
327,
1... |
self.secStrucTextEdit.insertHtml(fixedPitchSequence) | self.secStrucTextEdit.setHtml(fixedPitchSequence) | def setSecondaryStructure(self, inSequence, inRestoreCursor = True): """ Set the secondary structure of the protein @param inSequence: The new sequence. @type inSequence: QString @param inRestoreCursor: restore cursor position @type inRestoreCursor: bool """ cursor = self.sequenceTextEdit.textCursor() c... | ee1906b1c674050edc0c2a79b4084695cc35cce7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ee1906b1c674050edc0c2a79b4084695cc35cce7/ProteinSequenceEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
14893,
6999,
12,
2890,
16,
316,
4021,
16,
316,
10874,
6688,
225,
273,
225,
1053,
4672,
3536,
1000,
326,
9946,
3695,
434,
326,
14314,
225,
632,
891,
316,
4021,
30,
1021,
394,
3102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14893,
6999,
12,
2890,
16,
316,
4021,
16,
316,
10874,
6688,
225,
273,
225,
1053,
4672,
3536,
1000,
326,
9946,
3695,
434,
326,
14314,
225,
632,
891,
316,
4021,
30,
1021,
394,
3102,
... |
print ' char *p;' | print ' if (g_getenv ("GIMP_COMPOSITE"))' print ' {' print ' gimp_composite_options.use = TRUE;' print ' g_printerr ("Using new image composite functions\\n");' print ' }' | def gimp_composite_init(function_tables): for o in function_tables: print 'extern void %s_init();' % (functionnameify(o[0])) pass print '' print 'void' print 'gimp_composite_init()' print '{' print ' char *p;' print '' print ' if ((p = getenv("GIMP_COMPOSITE"))) {' print ' gimp_composite_options.use = atol(p);' p... | 73af860ff4a9ad2d64dbee32023a1ec49e63a340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/73af860ff4a9ad2d64dbee32023a1ec49e63a340/make-gimp-composite-dispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
14532,
67,
27676,
67,
2738,
12,
915,
67,
9373,
4672,
364,
320,
316,
445,
67,
9373,
30,
1172,
296,
338,
798,
918,
738,
87,
67,
2738,
1435,
4359,
738,
261,
915,
529,
1164,
12,
83,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
14532,
67,
27676,
67,
2738,
12,
915,
67,
9373,
4672,
364,
320,
316,
445,
67,
9373,
30,
1172,
296,
338,
798,
918,
738,
87,
67,
2738,
1435,
4359,
738,
261,
915,
529,
1164,
12,
83,... |
'certificat': terp.get('certificat', ''), | 'certificate': terp.get('certificate', ''), | def download(self, cr, uid, ids, download=True, context=None): res = [] for mod in self.browse(cr, uid, ids, context=context): if not mod.url: continue match = re.search('-([a-zA-Z0-9\._-]+)(\.zip)', mod.url, re.I) version = '0' if match: version = match.group(1) if parse_version(mod.installed_version or '0') >= parse_... | 63d6e4443f732e89575e572aa847fb865fb79aa7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/63d6e4443f732e89575e572aa847fb865fb79aa7/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4224,
33,
5510,
16,
819,
33,
7036,
4672,
400,
273,
5378,
364,
681,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4224,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4224,
33,
5510,
16,
819,
33,
7036,
4672,
400,
273,
5378,
364,
681,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
33,
... |
reqheader = struct.pack("!BBBBB",version, command, rsv, atype, len(hostname)) | reqheader = struct.pack("!BBBB",version, command, rsv, atype) if atype == 0x03: reqheader += struct.pack("!B", len(hostname)) | def socks5ResolveRequest(hostname, atype=0x03, command=0xF0): version = 5 rsv = 0 port = 0 reqheader = struct.pack("!BBBBB",version, command, rsv, atype, len(hostname)) portstr = struct.pack("!H",port) return "%s%s%s"%(reqheader,hostname,portstr) | 6b3f6afb5863e670cf69c1c5219e1177e2ab26b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7483/6b3f6afb5863e670cf69c1c5219e1177e2ab26b2/tor-resolve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7313,
87,
25,
8460,
691,
12,
10358,
16,
30965,
33,
20,
92,
4630,
16,
1296,
33,
20,
16275,
20,
4672,
1177,
273,
1381,
3597,
90,
273,
374,
1756,
273,
374,
1111,
3374,
273,
1958,
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,
7313,
87,
25,
8460,
691,
12,
10358,
16,
30965,
33,
20,
92,
4630,
16,
1296,
33,
20,
16275,
20,
4672,
1177,
273,
1381,
3597,
90,
273,
374,
1756,
273,
374,
1111,
3374,
273,
1958,
18,
29... |
result = self._escapeString(authorDN) | result = self._escapeString( authorDN ) | def __setSiteStatusInMask(self,site,status,authorDN='Unknown',comment='No comment'): """ Set the given site status to 'status' or add a new active site """ | 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,
1001,
542,
4956,
1482,
382,
5796,
12,
2890,
16,
4256,
16,
2327,
16,
4161,
8609,
2218,
4874,
2187,
3469,
2218,
2279,
2879,
11,
4672,
3536,
225,
1000,
326,
864,
2834,
1267,
358,
296,
2327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
4956,
1482,
382,
5796,
12,
2890,
16,
4256,
16,
2327,
16,
4161,
8609,
2218,
4874,
2187,
3469,
2218,
2279,
2879,
11,
4672,
3536,
225,
1000,
326,
864,
2834,
1267,
358,
296,
2327,... |
x0 -- (0) default starting guess | x0 -- (0) default starting guess (overwritten with final value) | def bicg(A, b, x0=None, tol=1e-5, maxiter=None, xtype=None, callback=None): """Use BIConjugate Gradient iteration to solve A x = b Inputs: A -- An array or an object with matvec(x) and rmatvec(x) methods to represent A * x and A^H * x respectively. May also have psolve(b) and rpsolve(b) methods for representing so... | 813b4e6e6d06aca25d02aaa8a246c6d0200f0096 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/813b4e6e6d06aca25d02aaa8a246c6d0200f0096/iterative.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
335,
75,
12,
37,
16,
324,
16,
619,
20,
33,
7036,
16,
6085,
33,
21,
73,
17,
25,
16,
25743,
33,
7036,
16,
619,
723,
33,
7036,
16,
1348,
33,
7036,
4672,
3536,
3727,
605,
45,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
335,
75,
12,
37,
16,
324,
16,
619,
20,
33,
7036,
16,
6085,
33,
21,
73,
17,
25,
16,
25743,
33,
7036,
16,
619,
723,
33,
7036,
16,
1348,
33,
7036,
4672,
3536,
3727,
605,
45,
44... |
path = 'xmlrpc-private' netloc = netloc.split('@', 1)[-1] | path = os.path.join(path, 'xmlrpc-private') netloc = netloc.rsplit('@', 1)[-1] | def __init__(self, rbuilderUrl, user, pw): scheme, netloc, path, query, fragment = urlparse.urlsplit(rbuilderUrl) path = 'xmlrpc-private' netloc = netloc.split('@', 1)[-1] netloc = '%s:%s@' % (user, pw) + netloc rbuilderUrl = urlparse.urlunsplit( (scheme, netloc, path, query, fragment)) | 9e439cf11b693b8679104b8c826d784f045b5405 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8749/9e439cf11b693b8679104b8c826d784f045b5405/rbuilderclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7138,
953,
1489,
16,
729,
16,
8772,
4672,
4355,
16,
17345,
16,
589,
16,
843,
16,
5481,
273,
15185,
18,
718,
4939,
12,
6731,
953,
1489,
13,
225,
589,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7138,
953,
1489,
16,
729,
16,
8772,
4672,
4355,
16,
17345,
16,
589,
16,
843,
16,
5481,
273,
15185,
18,
718,
4939,
12,
6731,
953,
1489,
13,
225,
589,
27... |
self.section_level = 0 | self.section_level = 1 | def __init__(self, document): #nodes.SparseNodeVisitor.__init__(self, document) nodes.GenericNodeVisitor.__init__(self, document) self.settings = document.settings self.section_level = 0 self.section_count = 0 # Create ElementTree content and styles documents. if WhichElementTree == 'lxml': root = Element( 'office:docu... | 6783ed83a012a9a36121e2dfd2d40824a51ffa75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/6783ed83a012a9a36121e2dfd2d40824a51ffa75/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1668,
4672,
468,
4690,
18,
20565,
907,
7413,
16186,
2738,
972,
12,
2890,
16,
1668,
13,
2199,
18,
7014,
907,
7413,
16186,
2738,
972,
12,
2890,
16,
1668,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1668,
4672,
468,
4690,
18,
20565,
907,
7413,
16186,
2738,
972,
12,
2890,
16,
1668,
13,
2199,
18,
7014,
907,
7413,
16186,
2738,
972,
12,
2890,
16,
1668,
1... |
Uses C{r.RemoveComponents} to specify that the C{:devel} and | Uses C{r.removeComponents} to specify that the C{:devel} and | def removeComponents(self, componentList, groupName = None): """ B{C{r.removeComponents()}} - Define components which should not be installed by default | 6aaa06786be94a9f84afd30f0d6094ea841a9f48 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/6aaa06786be94a9f84afd30f0d6094ea841a9f48/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7171,
12,
2890,
16,
1794,
682,
16,
11619,
273,
599,
4672,
3536,
605,
95,
39,
95,
86,
18,
4479,
7171,
1435,
9090,
300,
13184,
4085,
1492,
1410,
486,
506,
5876,
635,
805,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
7171,
12,
2890,
16,
1794,
682,
16,
11619,
273,
599,
4672,
3536,
605,
95,
39,
95,
86,
18,
4479,
7171,
1435,
9090,
300,
13184,
4085,
1492,
1410,
486,
506,
5876,
635,
805,
2,
-100,
... |
self.run(statement, globals=globals_, locals=locals_) | self.run(statement) | def _runscript(self, filename): # Start with fresh empty copy of globals and locals and tell the script # that it's being run as __main__ to avoid scripts being able to access # the pdb.py namespace. globals_ = {"__name__" : "__main__"} locals_ = globals_ | b6ae6aa8ac8abb9350f2ae2186d609116676c661 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b6ae6aa8ac8abb9350f2ae2186d609116676c661/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
4263,
12,
2890,
16,
1544,
4672,
468,
3603,
598,
12186,
1008,
1610,
434,
10941,
471,
8985,
471,
9276,
326,
2728,
468,
716,
518,
1807,
3832,
1086,
487,
1001,
5254,
972,
358,
454... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2681,
4263,
12,
2890,
16,
1544,
4672,
468,
3603,
598,
12186,
1008,
1610,
434,
10941,
471,
8985,
471,
9276,
326,
2728,
468,
716,
518,
1807,
3832,
1086,
487,
1001,
5254,
972,
358,
454... |
return | return | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
2740,
12,
3001,
16,
833,
16,
1018,
4672,
309,
562,
12,
1968,
13,
480,
404,
30,
327,
225,
498,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1968,
63,
20,
5717,
309,
486,
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,
1610,
67,
2740,
12,
3001,
16,
833,
16,
1018,
4672,
309,
562,
12,
1968,
13,
480,
404,
30,
327,
225,
498,
273,
341,
355,
74,
2920,
18,
4720,
1726,
12,
1968,
63,
20,
5717,
309,
486,
4... |
self.jigAtomSetAction.setText(self.__tr("Atom Set")) | self.jigsAtomSetAction.setText(self.__tr("Atom Set")) | def languageChange(self): self.setCaption(self.__tr("nanoENGINEER-1")) self.fileOpenAction.setText(self.__tr("Open")) self.fileOpenAction.setMenuText(self.__tr("&Open...")) self.fileOpenAction.setAccel(self.__tr("Ctrl+O")) self.fileSaveAction.setText(self.__tr("Save")) self.fileSaveAction.setMenuText(self.__tr("&Save")... | 60e6bb271f2753e161f309e8cf0bf2108593416a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/60e6bb271f2753e161f309e8cf0bf2108593416a/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
13569,
83,
28980,
654,
17,
21,
6,
3719,
365,
18,
768,
3678,
1803,
18,
542,
1528,
12,
2890,
16186,
313,
2932... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2653,
3043,
12,
2890,
4672,
365,
18,
542,
21158,
12,
2890,
16186,
313,
2932,
13569,
83,
28980,
654,
17,
21,
6,
3719,
365,
18,
768,
3678,
1803,
18,
542,
1528,
12,
2890,
16186,
313,
2932... |
self.whatsthis_btn = QToolButton(self.body_frame,"whatsthis_btn") | self.whatsthis_btn = QPushButton(self.body_frame,"whatsthis_btn") self.whatsthis_btn.setMaximumSize(QSize(40,32767)) | def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl) | 1f7092c169c3c14428b2af6b56699d1a00aff2fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1f7092c169c3c14428b2af6b56699d1a00aff2fb/DnaGeneratorDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
17638,
273,
374,
16,
2242,
273,
374,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
17638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
17638,
273,
374,
16,
2242,
273,
374,
4672,
2238,
6353,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
17638,
... |
"""Yield submodule names+loaders recursively, for path or sys.path""" | """Yields (module_loader, name, ispkg) for all modules recursively on path, or, if path is None, all accessible modules. 'path' should be either None or a list of paths to look for modules in. 'prefix' is a string to output on the front of every module name on output. Note that this function must import all *package... | def walk_packages(path=None, prefix='', onerror=None): """Yield submodule names+loaders recursively, for path or sys.path""" def seen(p, m={}): if p in m: return True m[p] = True for importer, name, ispkg in iter_modules(path, prefix): yield importer, name, ispkg if ispkg: try: __import__(name) except ImportError: i... | bd5eb1a60ecc3c0d20a9ea453053fa50ae173312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bd5eb1a60ecc3c0d20a9ea453053fa50ae173312/pkgutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
67,
10308,
12,
803,
33,
7036,
16,
1633,
2218,
2187,
20991,
33,
7036,
4672,
3536,
16348,
87,
261,
2978,
67,
6714,
16,
508,
16,
353,
10657,
13,
364,
777,
4381,
8536,
603,
589,
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,
5442,
67,
10308,
12,
803,
33,
7036,
16,
1633,
2218,
2187,
20991,
33,
7036,
4672,
3536,
16348,
87,
261,
2978,
67,
6714,
16,
508,
16,
353,
10657,
13,
364,
777,
4381,
8536,
603,
589,
16,
... |
for img in item.data.xpath('//h:img[@src]', namespace=XPNSMAP): href = item.abshref(img.get('src')) | for img in path(item.data): href = item.abshref(img.get('src')) | def remove_first_image(self): for i, item in enumerate(self.oeb.spine): if i > 2: break for img in item.data.xpath('//h:img[@src]', namespace=XPNSMAP): href = item.abshref(img.get('src')) image = self.oeb.manifest.hrefs.get(href, None) if image is not None: self.log('Removing first image', img.get('src')) self.oeb.mani... | f5fb4d9a6ce8c731328bb2da1d16ee8cedafa9ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f5fb4d9a6ce8c731328bb2da1d16ee8cedafa9ab/jacket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
3645,
67,
2730,
12,
2890,
4672,
364,
277,
16,
761,
316,
4241,
12,
2890,
18,
15548,
70,
18,
1752,
558,
4672,
309,
277,
405,
576,
30,
898,
364,
3774,
316,
589,
12,
1726,
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,
1206,
67,
3645,
67,
2730,
12,
2890,
4672,
364,
277,
16,
761,
316,
4241,
12,
2890,
18,
15548,
70,
18,
1752,
558,
4672,
309,
277,
405,
576,
30,
898,
364,
3774,
316,
589,
12,
1726,
18,
... |
self.statuses = config.get('plugins', self.c_statuses) | self.statuses = config.get('plugins', self.c_statuses).split() | def __init__(self): try: self.accounts = config.get('plugins', self.c_accounts).split() except: self.accounts = [] config.set('plugins', self.c_accounts, '') | 24a5de3faaf31e123f1b96a3a84045348d8831fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/24a5de3faaf31e123f1b96a3a84045348d8831fd/gajim_status.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
775,
30,
365,
18,
13739,
273,
642,
18,
588,
2668,
8057,
2187,
365,
18,
71,
67,
13739,
2934,
4939,
1435,
1335,
30,
365,
18,
13739,
273,
5378,
642,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
775,
30,
365,
18,
13739,
273,
642,
18,
588,
2668,
8057,
2187,
365,
18,
71,
67,
13739,
2934,
4939,
1435,
1335,
30,
365,
18,
13739,
273,
5378,
642,
18,
... |
for (vbo, data, length) in self._vbos: | for surface in self._vbos: vbo = surface.update length = surface.important | def paint(self): """ For all of the known terrain, render whatever faces are exposed. """ if self._texture is None: self._texture = self._createTexture() | 2b8b4943e45ecd5955a03d25ad6e104987bd13ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6742/2b8b4943e45ecd5955a03d25ad6e104987bd13ca/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12574,
12,
2890,
4672,
3536,
2457,
777,
434,
326,
4846,
19272,
7596,
16,
1743,
15098,
11058,
854,
16265,
18,
3536,
309,
365,
6315,
955,
594,
353,
599,
30,
365,
6315,
955,
594,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
12,
2890,
4672,
3536,
2457,
777,
434,
326,
4846,
19272,
7596,
16,
1743,
15098,
11058,
854,
16265,
18,
3536,
309,
365,
6315,
955,
594,
353,
599,
30,
365,
6315,
955,
594,
273,
365,
... |
return make_uid(obj) | try: return make_uid(obj, make_uid(obj_parent), obj_name) except: pass | def findUID(name, container, docmap=None): """ Attempt to find the UID for the object that can be accessed with the name C{name} from the module C{module}. @param name: The name used to identify the object. @type name: C{string} @param container: The UID of the class or module containing the object. @type container: L... | bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503/uid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3060,
12,
529,
16,
1478,
16,
997,
1458,
33,
7036,
4672,
3536,
12864,
358,
1104,
326,
10034,
364,
326,
733,
716,
848,
506,
15539,
598,
326,
508,
385,
95,
529,
97,
628,
326,
1605,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3060,
12,
529,
16,
1478,
16,
997,
1458,
33,
7036,
4672,
3536,
12864,
358,
1104,
326,
10034,
364,
326,
733,
716,
848,
506,
15539,
598,
326,
508,
385,
95,
529,
97,
628,
326,
1605,
... |
def is_possible(self, number): | def is_legal(self, number): if((self.cursqre[0] == None) or (self.cursqre[1] == None)): return | def is_possible(self, number): | 0a0e4f57e86817b5ed43489a7c227ec1593d0921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/0a0e4f57e86817b5ed43489a7c227ec1593d0921/sudoku.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
12708,
12,
2890,
16,
1300,
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,
353,
67,
12708,
12,
2890,
16,
1300,
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,... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 762) else quickfix.StringField.__init__(self, 762, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
8898,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
8898,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
success = S.interrupt(INTERRUPT_TRIES, timeout=0.3, quit_on_fail=False) | success = S.interrupt(INTERRUPT_TRIES, quit_on_fail=False) | def interrupt(self): """ Interrupt all currently queued up calculations. | c81c01df0258310c7766b76faf4614132793dfb7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/c81c01df0258310c7766b76faf4614132793dfb7/worksheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13123,
12,
2890,
4672,
3536,
3094,
4483,
777,
4551,
12234,
731,
20882,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13123,
12,
2890,
4672,
3536,
3094,
4483,
777,
4551,
12234,
731,
20882,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
metaio.StripTableName(SnglInspiralTable.tableName): SnglInspiralIDs, | def __init__(self, n = 0): ILWD.__init__(self, "ligolw_mon", "event_id", n) | 1c8ee0a75a4bfb8d06bdf83f82720a91911aa701 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/1c8ee0a75a4bfb8d06bdf83f82720a91911aa701/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
273,
374,
4672,
467,
48,
16006,
16186,
2738,
972,
12,
2890,
16,
315,
80,
360,
355,
91,
67,
2586,
3113,
315,
2575,
67,
350,
3113,
290,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
273,
374,
4672,
467,
48,
16006,
16186,
2738,
972,
12,
2890,
16,
315,
80,
360,
355,
91,
67,
2586,
3113,
315,
2575,
67,
350,
3113,
290,
13,
2,
-100,... | |
copyfile(gp.oldpath, gp.path) | src, dst = [util.canonpath(cwd, cwd, x) for x in [gp.oldpath, gp.path]] copyfile(src, dst) | def closefile(): if not current_file: return 0 current_file.close() if rejmerge: rejmerge(current_file) return len(current_file.rej) | eff24b7c0b9f1720f9a75d109bf2354da1a89f37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/eff24b7c0b9f1720f9a75d109bf2354da1a89f37/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
768,
13332,
309,
486,
783,
67,
768,
30,
327,
374,
783,
67,
768,
18,
4412,
1435,
309,
283,
78,
2702,
30,
283,
78,
2702,
12,
2972,
67,
768,
13,
327,
562,
12,
2972,
67,
768,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
768,
13332,
309,
486,
783,
67,
768,
30,
327,
374,
783,
67,
768,
18,
4412,
1435,
309,
283,
78,
2702,
30,
283,
78,
2702,
12,
2972,
67,
768,
13,
327,
562,
12,
2972,
67,
768,
18,... |
try: if 'cpus' in cfg and type(cfg['cpus']) != list: cpus = [] for c in cfg['cpus'].split(','): if c.find('-') != -1: (x, y) = c.split('-') for i in range(int(x), int(y)+1): cpus.append(int(i)) else: if c[0] == '^': cpus = [x for x in cpus if x != int(c[1:])] | if 'cpus' in cfg: cpus = [] if type(cfg['cpus']) == list: try: for c in cfg['cpus']: cpus.append(int(c)) cfg['cpus'] = cpus except ValueError, e: raise XendConfigError('cpus = %s: %s' % (cfg['cpus'], e)) else: try: for c in cfg['cpus'].split(','): if c.find('-') != -1: (x, y) = c.split('-') for i in range... | def _parse_sxp(self, sxp_cfg): """ Populate this XendConfig using the parsed SXP. | 08ed26a8af7ca6fe5e8d209f39b551732f46ebac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/08ed26a8af7ca6fe5e8d209f39b551732f46ebac/XendConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
87,
23829,
12,
2890,
16,
13280,
84,
67,
7066,
4672,
3536,
22254,
333,
1139,
409,
809,
1450,
326,
2707,
348,
60,
52,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
87,
23829,
12,
2890,
16,
13280,
84,
67,
7066,
4672,
3536,
22254,
333,
1139,
409,
809,
1450,
326,
2707,
348,
60,
52,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Committer("Tony Chang", "tony@chromium.org", "tony^work"), | def __init__(self, name, email_or_emails, irc_nickname=None): Committer.__init__(self, name, email_or_emails, irc_nickname) self.can_review = True | c7e150ab49e6130bd4cd8270970f4f8649dbcf61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/c7e150ab49e6130bd4cd8270970f4f8649dbcf61/committers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
2699,
67,
280,
67,
22762,
16,
277,
1310,
67,
17091,
529,
33,
7036,
4672,
10269,
387,
16186,
2738,
972,
12,
2890,
16,
508,
16,
2699,
67,
280,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
2699,
67,
280,
67,
22762,
16,
277,
1310,
67,
17091,
529,
33,
7036,
4672,
10269,
387,
16186,
2738,
972,
12,
2890,
16,
508,
16,
2699,
67,
280,
6... | |
if session.connection(Recipe).execute(recipe_table.update( | elif session.connection(Recipe).execute(recipe_table.update( | def queued_recipes(*args): working = SystemStatus.by_name(u'Working') recipes = Recipe.query()\ .join('status')\ .join('systems')\ .join(['recipeset','priority'])\ .filter( or_( and_(Recipe.status==TaskStatus.by_name(u'Queued'), System.user==None, System.status==working, RecipeSet.lab_controller==None ), and_(Recipe.st... | 7f33ab29e7eac9ff60c1dd919a70844527be92ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/7f33ab29e7eac9ff60c1dd919a70844527be92ea/beakerd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12234,
67,
266,
3449,
281,
30857,
1968,
4672,
5960,
273,
2332,
1482,
18,
1637,
67,
529,
12,
89,
11,
14836,
6134,
5863,
281,
273,
7776,
3151,
18,
2271,
1435,
64,
263,
5701,
2668,
2327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12234,
67,
266,
3449,
281,
30857,
1968,
4672,
5960,
273,
2332,
1482,
18,
1637,
67,
529,
12,
89,
11,
14836,
6134,
5863,
281,
273,
7776,
3151,
18,
2271,
1435,
64,
263,
5701,
2668,
2327,
... |
yield ('csv', _('Comma-delimited Text'), 'csv', | yield ('csv', _("Comma-delimited Text"), 'csv', | def get_supported_conversions(self): yield ('csv', _('Comma-delimited Text'), 'csv', 'trac.ticket.Ticket', 'text/csv', 8) yield ('tab', _('Tab-delimited Text'), 'tsv', 'trac.ticket.Ticket', 'text/tab-separated-values', 8) yield ('rss', _('RSS Feed'), 'xml', 'trac.ticket.Ticket', 'application/rss+xml', 8) | a8a6442302dc21bfc63206a71113b0375cb3c946 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/a8a6442302dc21bfc63206a71113b0375cb3c946/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4127,
67,
591,
10169,
12,
2890,
4672,
2824,
7707,
6715,
2187,
389,
2932,
15594,
17,
3771,
1038,
329,
3867,
6,
3631,
296,
6715,
2187,
296,
313,
1077,
18,
16282,
18,
13614,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4127,
67,
591,
10169,
12,
2890,
4672,
2824,
7707,
6715,
2187,
389,
2932,
15594,
17,
3771,
1038,
329,
3867,
6,
3631,
296,
6715,
2187,
296,
313,
1077,
18,
16282,
18,
13614,
2187,
... |
if self.revision and self.root: | if self.revision and self.clean_root: | def GetFilename(self): file = self.file if self.revision and self.root: if self.srcdir: # strip the base path off # but we actually want the last dir in srcdir file = os.path.normpath(file) # the lower() is to handle win32+vc8, where # the source filenames come out all lowercase, # but the srcdir can be mixed case if f... | 237293f2635f411eb4f2d7a1758b1b6b20490cb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/237293f2635f411eb4f2d7a1758b1b6b20490cb7/symbolstore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5359,
12,
2890,
4672,
585,
273,
365,
18,
768,
309,
365,
18,
13057,
471,
365,
18,
6200,
67,
3085,
30,
309,
365,
18,
4816,
1214,
30,
468,
2569,
326,
1026,
589,
3397,
468,
1496,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
5359,
12,
2890,
4672,
585,
273,
365,
18,
768,
309,
365,
18,
13057,
471,
365,
18,
6200,
67,
3085,
30,
309,
365,
18,
4816,
1214,
30,
468,
2569,
326,
1026,
589,
3397,
468,
1496,
73... |
print "Group order now ",n1*n2,"=",n1,"*",n2 | print "Subgroup order now ",n1*n2,"=",n1,"*",n2 if not group_order_known: M = n1*n2 c1 = (upper/M).floor() if c1 == (lower/M).ceil(): group_order_known = True lower = upper = N = c1*M if debug: print "Group order now determined to be ",N | def abelian_group(self, debug=False): r""" Returns the abelian group structure of the group of points on this elliptic curve. | 7e0308bfa96d392f0529a28f30a5ec4774dcfbb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7e0308bfa96d392f0529a28f30a5ec4774dcfbb8/ell_finite_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1223,
292,
2779,
67,
1655,
12,
2890,
16,
1198,
33,
8381,
4672,
436,
8395,
2860,
326,
1223,
292,
2779,
1041,
3695,
434,
326,
1041,
434,
3143,
603,
333,
415,
549,
21507,
8882,
18,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1223,
292,
2779,
67,
1655,
12,
2890,
16,
1198,
33,
8381,
4672,
436,
8395,
2860,
326,
1223,
292,
2779,
1041,
3695,
434,
326,
1041,
434,
3143,
603,
333,
415,
549,
21507,
8882,
18,
2,
-10... |
data['url'] = '%s/%s' % (config['base_url'], data['pi_bl']) | data['url'] = '%s%s' % (config['base_url'], data['pi_bl']) | def blosxom_process_path_info(args): """ Process HTTP PATH_INFO for URI according to path specifications, fill in data dict accordingly The paths specification looks like this: - C{/foo.html} and C{/cat/foo.html} - file foo.* in / and /cat - C{/cat} - category - C{/2002} - year - C{/2002/Feb} (or 02) - Year and Month ... | 9bacc6df036b3644a3a45aa76336cda9dae6cbc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/9bacc6df036b3644a3a45aa76336cda9dae6cbc2/pyblosxom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
383,
30319,
362,
67,
2567,
67,
803,
67,
1376,
12,
1968,
4672,
3536,
4389,
2239,
7767,
67,
5923,
364,
3699,
4888,
358,
589,
21950,
16,
3636,
316,
501,
2065,
15905,
225,
1021,
2953,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
383,
30319,
362,
67,
2567,
67,
803,
67,
1376,
12,
1968,
4672,
3536,
4389,
2239,
7767,
67,
5923,
364,
3699,
4888,
358,
589,
21950,
16,
3636,
316,
501,
2065,
15905,
225,
1021,
2953,
... |
if other.label: | if other.label and other.id != other.label: | def copyAttributes(self, other): if other.xy: self.xy = other.xy if other.label: self.label = other.label if other.color: self.color = other.color if other.style: self.style = other.style if other.numbered: self.numbered = other.numbered if other.background: self.background = other.background if other.description: self... | d2af7c8c5277402e1368bc9b0c85dfbeb117c201 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/81/d2af7c8c5277402e1368bc9b0c85dfbeb117c201/blockdiag.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
2498,
12,
2890,
16,
1308,
4672,
309,
1308,
18,
1698,
30,
365,
18,
1698,
273,
1308,
18,
1698,
309,
1308,
18,
1925,
471,
1308,
18,
350,
480,
1308,
18,
1925,
30,
365,
18,
1925,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
2498,
12,
2890,
16,
1308,
4672,
309,
1308,
18,
1698,
30,
365,
18,
1698,
273,
1308,
18,
1698,
309,
1308,
18,
1925,
471,
1308,
18,
350,
480,
1308,
18,
1925,
30,
365,
18,
1925,
27... |
name, round(self.scale,2))) | name, round(scale,2))) | def LibraryCall(self): # 63 (off,a,b,c,d)=unpack('<hIIII', self.bgl.read(18)) name="%08x%08x%08x%08x" % (a,b,c,d) if name in self.output.friendly: friendly=self.output.friendly[name] elif name in self.output.stock: friendly=self.output.stock[name] else: friendly=name if self.libname: # recursive call in library self.ou... | d87ee6f81b21f2c4fda5318c88bdcdd71b150057 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11663/d87ee6f81b21f2c4fda5318c88bdcdd71b150057/convbgl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18694,
1477,
12,
2890,
4672,
202,
7,
13746,
261,
3674,
16,
69,
16,
70,
16,
71,
16,
72,
13,
33,
17309,
2668,
32,
76,
6954,
6954,
2187,
365,
18,
70,
7043,
18,
896,
12,
2643,
3719,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18694,
1477,
12,
2890,
4672,
202,
7,
13746,
261,
3674,
16,
69,
16,
70,
16,
71,
16,
72,
13,
33,
17309,
2668,
32,
76,
6954,
6954,
2187,
365,
18,
70,
7043,
18,
896,
12,
2643,
3719,
50... |
item = self.GetPyData(id) | def ExpandContainer (self, openedContainers, id): item = self.GetPyData(id) try: expand = openedContainers [item.getUUID()] except: return | 538d775ef0987b49832bb1a2e5975c7da5efc900 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/538d775ef0987b49832bb1a2e5975c7da5efc900/ContainerBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16429,
2170,
261,
2890,
16,
10191,
11177,
16,
612,
4672,
775,
30,
4542,
273,
10191,
11177,
306,
1726,
18,
588,
5562,
1435,
65,
1335,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
16429,
2170,
261,
2890,
16,
10191,
11177,
16,
612,
4672,
775,
30,
4542,
273,
10191,
11177,
306,
1726,
18,
588,
5562,
1435,
65,
1335,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
if num_modules <= 70: sys.stderr.write(']') | if num_files <= 70: sys.stderr.write(']') | def progress_callback(file, doc, verbosity=options['verbosity'], num_files=num_files, file_num=[1]): if verbosity==1: if file_num[0] == 1 and num_files <= 70: sys.stderr.write(' [') if (file_num[0] % 60) == 1 and num_files > 70: sys.stderr.write(' [%3d%%] ' % (100.0*file_num[0]/num_files)) sys.stderr.write('.') sys.s... | 2f8fde43e27ea795b3323abc9a5f5829238d8c08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/2f8fde43e27ea795b3323abc9a5f5829238d8c08/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4007,
67,
3394,
12,
768,
16,
997,
16,
11561,
33,
2116,
3292,
16629,
8807,
17337,
818,
67,
2354,
33,
2107,
67,
2354,
16,
585,
67,
2107,
22850,
21,
65,
4672,
309,
11561,
631,
21,
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,
4007,
67,
3394,
12,
768,
16,
997,
16,
11561,
33,
2116,
3292,
16629,
8807,
17337,
818,
67,
2354,
33,
2107,
67,
2354,
16,
585,
67,
2107,
22850,
21,
65,
4672,
309,
11561,
631,
21,
30,
3... |
db.create_table('shortterm_adlogentry', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ts', self.gf('django.db.models.fields.DateTimeField')()), ('ipaddr', self.gf('django.db.models.fields.CharField')(max_length=32)), ('agent', self.gf('django.db.models.fields.CharField')(max_length=256)),... | def forwards(self, orm): # Adding model 'AdLogEntry' db.create_table('shortterm_adlogentry', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ts', self.gf('django.db.models.fields.DateTimeField')()), ('ipaddr', self.gf('django.db.models.fields.CharField')(max_length=32)), ('agent', self.gf('... | 6cd63885478004e45d58e9bdbaa96ad38b570b02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/6cd63885478004e45d58e9bdbaa96ad38b570b02/0001_initial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24578,
12,
2890,
16,
13969,
4672,
225,
468,
21240,
938,
296,
1871,
25548,
11,
1319,
18,
2640,
67,
2121,
2668,
6620,
6408,
67,
361,
1330,
4099,
2187,
261,
7707,
350,
2187,
365,
18,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24578,
12,
2890,
16,
13969,
4672,
225,
468,
21240,
938,
296,
1871,
25548,
11,
1319,
18,
2640,
67,
2121,
2668,
6620,
6408,
67,
361,
1330,
4099,
2187,
261,
7707,
350,
2187,
365,
18,
75,
... | |
def close(self): | def close(self): | def close(self): | f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def __init(self, request_id, filename, code): | def __init__(self, request_id, filename, code): | def __init(self, request_id, filename, code): self.requestID = request_id self.filename = filename self.action = code | afab9c8f706f90731f09922367ec2dc7a2ea7d33 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/afab9c8f706f90731f09922367ec2dc7a2ea7d33/FileMonitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
67,
350,
16,
1544,
16,
981,
4672,
365,
18,
2293,
734,
273,
590,
67,
350,
365,
18,
3459,
273,
1544,
365,
18,
1128,
273,
981,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
67,
350,
16,
1544,
16,
981,
4672,
365,
18,
2293,
734,
273,
590,
67,
350,
365,
18,
3459,
273,
1544,
365,
18,
1128,
273,
981,
2,
-100,
-100,
-100,
... |
if self.friendly_name is not null: | if self.friendly_name is not None: | def __str__(self): """ Returns a string """ res = str(self.rangestart) + ' .. ' + str(self.rangeend) + ' <' + str(self.name) + '>' | 210ec3eacb24a9ee1ee9c9f18a194915b172f64b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/210ec3eacb24a9ee1ee9c9f18a194915b172f64b/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
2860,
279,
533,
3536,
400,
273,
609,
12,
2890,
18,
86,
539,
27893,
13,
397,
296,
6116,
296,
397,
609,
12,
2890,
18,
3676,
409,
13,
397,
296,
411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
701,
972,
12,
2890,
4672,
3536,
2860,
279,
533,
3536,
400,
273,
609,
12,
2890,
18,
86,
539,
27893,
13,
397,
296,
6116,
296,
397,
609,
12,
2890,
18,
3676,
409,
13,
397,
296,
411... |
if cleanup: | if cleanup and outputdata: | def doTidy(value, field, request, cleanup=0): """Tidy the data in 'value' for the field in the current request Optional cleanup: * removes header/footer of the output data * Removes warnings from the error data Return None for 'nothing done' else return (nerrors, nwarnings, outputdata, errordata) """ # we can't use t... | 7bc58f22e692d9fd70bfc9760bcb11bf8518dc03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11956/7bc58f22e692d9fd70bfc9760bcb11bf8518dc03/validators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
56,
29609,
12,
1132,
16,
652,
16,
590,
16,
6686,
33,
20,
4672,
3536,
56,
29609,
326,
501,
316,
296,
1132,
11,
364,
326,
652,
316,
326,
783,
590,
225,
4055,
6686,
30,
380,
7157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
56,
29609,
12,
1132,
16,
652,
16,
590,
16,
6686,
33,
20,
4672,
3536,
56,
29609,
326,
501,
316,
296,
1132,
11,
364,
326,
652,
316,
326,
783,
590,
225,
4055,
6686,
30,
380,
7157,
... |
if os.path.exists(filename): | if os.path.lexists(filename): | def list_files(self): dirs = [ "~/.beagle/Indexes", "~/.beagle/Log", "~/.beagle/TextCache" ] for dirname in dirs: dirname = os.path.expanduser(dirname) for filename in FileUtilities.children_in_directory(dirname, False): if os.path.exists(filename): yield filename | 18478f728f52d5b096698cd1aacebf770b66e683 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/18478f728f52d5b096698cd1aacebf770b66e683/CleanerBackend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
2354,
12,
2890,
4672,
7717,
273,
306,
19910,
15865,
2196,
346,
298,
19,
8639,
3113,
19910,
15865,
2196,
346,
298,
19,
1343,
3113,
19910,
15865,
2196,
346,
298,
19,
1528,
1649,
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,
666,
67,
2354,
12,
2890,
4672,
7717,
273,
306,
19910,
15865,
2196,
346,
298,
19,
8639,
3113,
19910,
15865,
2196,
346,
298,
19,
1343,
3113,
19910,
15865,
2196,
346,
298,
19,
1528,
1649,
6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.