rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if not self.links.has_key(widgetFrom): return [] for (widget, signalNameFrom, signalNameTo, enabled) in self.links[widgetFrom]:
for (widget, signalNameFrom, signalNameTo, enabled) in self.links.get(widgetFrom, []):
def findSignals(self, widgetFrom, widgetTo): signals = [] if not self.links.has_key(widgetFrom): return [] for (widget, signalNameFrom, signalNameTo, enabled) in self.links[widgetFrom]: if widget == widgetTo: signals.append((signalNameFrom, signalNameTo)) return signals
a5e916dd00f1cb9502a205aed42f7fac807dd48a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/a5e916dd00f1cb9502a205aed42f7fac807dd48a/orngSignalManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 23346, 12, 2890, 16, 3604, 1265, 16, 3604, 774, 4672, 11505, 273, 5378, 364, 261, 6587, 16, 4277, 461, 1265, 16, 4277, 28455, 16, 3696, 13, 316, 365, 18, 7135, 18, 588, 12, 6587,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23346, 12, 2890, 16, 3604, 1265, 16, 3604, 774, 4672, 11505, 273, 5378, 364, 261, 6587, 16, 4277, 461, 1265, 16, 4277, 28455, 16, 3696, 13, 316, 365, 18, 7135, 18, 588, 12, 6587,...
if 1==1:
name = "name" if table == "rnkMETHOD": name = "NAME" try:
def get_current_name(ID, ln, rtype, table): """Returns a list of the names, either with the name in the current language, the default language, or just the name from the given table ln - a language supported by cdsware type - the type of value wanted, like 'ln', 'sn'""" #try: if 1==1: res = "" if ID: res = run_sql("SELECT id_%s,value FROM %sname where type='%s' and ln='%s' and id_%s=%s" % (table, table, rtype,ln, table, ID)) else: res = run_sql("SELECT id_%s,value FROM %sname where type='%s' and ln='%s'" % (table, table, rtype,ln)) if ln != cdslang: if ID: res1 = run_sql("SELECT id_%s,value FROM %sname WHERE ln='%s' and type='%s' and id_%s=%s" % (table, table, cdslang, rtype, table, ID)) else: res1 = run_sql("SELECT id_%s,value FROM %sname WHERE ln='%s' and type='%s'" % (table, table, cdslang, rtype)) res2 = dict(res) result = filter(lambda x: not res2.has_key(x[0]), res1) res = res + result if ID: res1 = run_sql("SELECT id,name FROM %s where id=%s" % (table, ID)) else: res1 = run_sql("SELECT id,name FROM %s" % table) res2 = dict(res) result = filter(lambda x: not res2.has_key(x[0]), res1) res = res + result res = list(res) return res
d3b4def0c6be332e560be397eaf8d7d8fca46237 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/d3b4def0c6be332e560be397eaf8d7d8fca46237/bibrankadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2972, 67, 529, 12, 734, 16, 7211, 16, 9328, 16, 1014, 4672, 3536, 1356, 279, 666, 434, 326, 1257, 16, 3344, 598, 326, 508, 316, 326, 783, 2653, 16, 326, 805, 2653, 16, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2972, 67, 529, 12, 734, 16, 7211, 16, 9328, 16, 1014, 4672, 3536, 1356, 279, 666, 434, 326, 1257, 16, 3344, 598, 326, 508, 316, 326, 783, 2653, 16, 326, 805, 2653, 16, 578, ...
if (%(_zout)s) { Py_DECREF(%(_zout)s); }
def c_validate_update(self, (_z, _a, _x, _y, _b), (_zout, ), sub): return """ if (%(_zout)s) { Py_DECREF(%(_zout)s); } if (%(_zout)s != %(_z)s) { %(_zout)s = %(_z)s; Py_INCREF(%(_zout)s); } """ % locals()
aeca4a2512dc27209cba1de2797998611b11d789 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/aeca4a2512dc27209cba1de2797998611b11d789/tensor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 5662, 67, 2725, 12, 2890, 16, 261, 67, 94, 16, 389, 69, 16, 389, 92, 16, 389, 93, 16, 389, 70, 3631, 261, 67, 94, 659, 16, 262, 16, 720, 4672, 327, 3536, 309, 6142, 2489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 67, 5662, 67, 2725, 12, 2890, 16, 261, 67, 94, 16, 389, 69, 16, 389, 92, 16, 389, 93, 16, 389, 70, 3631, 261, 67, 94, 659, 16, 262, 16, 720, 4672, 327, 3536, 309, 6142, 2489...
elif isize != self.size:
elif isize != LOWU32(self.size):
def _read_eof(self): # We've read to the end of the file, so we have to rewind in order # to reread the 8 bytes containing the CRC and the file size. # We check the that the computed CRC and size of the # uncompressed data matches the stored values. self.fileobj.seek(-8, 1) crc32 = read32(self.fileobj) isize = U32(read32(self.fileobj)) # may exceed 2GB if U32(crc32) != U32(self.crc): raise ValueError, "CRC check failed" elif isize != self.size: raise ValueError, "Incorrect length of data produced"
d6ad56784fff03262669945b5e9b0ecb41948b2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d6ad56784fff03262669945b5e9b0ecb41948b2c/gzip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 9339, 12, 2890, 4672, 468, 1660, 8081, 855, 358, 326, 679, 434, 326, 585, 16, 1427, 732, 1240, 358, 12881, 316, 1353, 468, 358, 436, 264, 684, 326, 1725, 1731, 4191, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 9339, 12, 2890, 4672, 468, 1660, 8081, 855, 358, 326, 679, 434, 326, 585, 16, 1427, 732, 1240, 358, 12881, 316, 1353, 468, 358, 436, 264, 684, 326, 1725, 1731, 4191, 326,...
pos = 0 while 1: m = includeRE.search(isa_desc, pos) if not m: break filename = m.group('filename') print 'Including file "%s"' % filename try: isa_desc = isa_desc[:m.start()] + \ ' open(filename).read() + \ ' isa_desc[m.end():] except IOError: error(0, 'Error including file "%s"' % (filename)) pos = m.start() return isa_desc
contents = includeRE.sub(lambda m: replace_include(m, current_dir), contents) fileNameStack.pop() return contents
def preprocess_isa_desc(isa_desc): # Find any includes and include them pos = 0 while 1: m = includeRE.search(isa_desc, pos) if not m: break filename = m.group('filename') print 'Including file "%s"' % filename try: isa_desc = isa_desc[:m.start()] + \ '##newfile "' + filename + '"\n' + \ open(filename).read() + \ '##endfile\n' + \ isa_desc[m.end():] except IOError: error(0, 'Error including file "%s"' % (filename)) pos = m.start() return isa_desc
7427708b85741136c3f5dde5099a64bcd8fbcdc8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/7427708b85741136c3f5dde5099a64bcd8fbcdc8/isa_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17942, 67, 291, 69, 67, 5569, 12, 291, 69, 67, 5569, 4672, 468, 4163, 1281, 6104, 471, 2341, 2182, 949, 273, 374, 1323, 404, 30, 312, 273, 2341, 862, 18, 3072, 12, 291, 69, 67, 5569,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17942, 67, 291, 69, 67, 5569, 12, 291, 69, 67, 5569, 4672, 468, 4163, 1281, 6104, 471, 2341, 2182, 949, 273, 374, 1323, 404, 30, 312, 273, 2341, 862, 18, 3072, 12, 291, 69, 67, 5569,...
self.line_color = pack.getAttribute( 'line_color') or self.line_color
for attr in ("line_color",): if pack.getAttributeNode( attr): setattr( self, attr, pack.getAttribute( 'area_color'))
def read_package( self, pack): """reads the dom element pack and sets internal state according to it""" self.points = [] for p in pack.getElementsByTagName( 'point'): self.points.append( classes.point( self.paper, arrow=self, package=p))
6ce7a8feaff516b449f0fddc5799fa8940cdbcc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4298/6ce7a8feaff516b449f0fddc5799fa8940cdbcc7/graphics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 5610, 12, 365, 16, 2298, 4672, 3536, 11904, 326, 4092, 930, 2298, 471, 1678, 2713, 919, 4888, 358, 518, 8395, 365, 18, 4139, 273, 5378, 364, 293, 316, 2298, 18, 588, 3471, 104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 5610, 12, 365, 16, 2298, 4672, 3536, 11904, 326, 4092, 930, 2298, 471, 1678, 2713, 919, 4888, 358, 518, 8395, 365, 18, 4139, 273, 5378, 364, 293, 316, 2298, 18, 588, 3471, 104...
return self( permutation.Permutation( (i, i+1) ) )
return self.term(self.basis().keys()(permutation.Permutation( (i, i+1) ) ))
def t(self, i): """ EXAMPLES:: sage: H3 = HeckeAlgebraSymmetricGroupT(QQ,3) sage: H3.t(1) T[2, 1, 3] sage: H3.t(2) T[1, 3, 2] sage: H3.t(0) Traceback (most recent call last): ... ValueError: i must be between 1 and n-1 (= 2) """ if i not in range(1, self.n): raise ValueError, "i must be between 1 and n-1 (= %s)"%(self.n-1)
7d92d20e015467b29ad364626f147d8053e41098 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7d92d20e015467b29ad364626f147d8053e41098/symmetric_group_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 12, 2890, 16, 277, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 670, 23, 273, 670, 762, 73, 1067, 29087, 29496, 1114, 56, 12, 53, 53, 16, 23, 13, 272, 410, 30, 670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 12, 2890, 16, 277, 4672, 3536, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 670, 23, 273, 670, 762, 73, 1067, 29087, 29496, 1114, 56, 12, 53, 53, 16, 23, 13, 272, 410, 30, 670, ...
matrix = zeros((N, T+1), MATCODE)
matrix = numpy.zeros((N, T+1))
def _forward(N, T, lp_initial, lp_transition, lp_emission, outputs): # Implement the forward algorithm. This actually calculates a # Nx(T+1) matrix, where the last column is the total probability # of the output. matrix = zeros((N, T+1), MATCODE) # Initialize the first column to be the initial values. matrix[:,0] = lp_initial for t in range(1, T+1): k = outputs[t-1] for j in range(N): # The probability of the state is the sum of the # transitions from all the states from time t-1. lprob = LOG0 for i in range(N): lp = matrix[i][t-1] + \ lp_transition[i][j] + \ lp_emission[i][k] lprob = _logadd(lprob, lp) matrix[j][t] = lprob return matrix
9f6ccc18a75e2a2d3871e2b69f0ac7d071a00baf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/9f6ccc18a75e2a2d3871e2b69f0ac7d071a00baf/MarkovModel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11565, 12, 50, 16, 399, 16, 12423, 67, 6769, 16, 12423, 67, 14936, 16, 12423, 67, 351, 19710, 16, 6729, 4672, 468, 10886, 326, 5104, 4886, 18, 225, 1220, 6013, 17264, 279, 468, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11565, 12, 50, 16, 399, 16, 12423, 67, 6769, 16, 12423, 67, 14936, 16, 12423, 67, 351, 19710, 16, 6729, 4672, 468, 10886, 326, 5104, 4886, 18, 225, 1220, 6013, 17264, 279, 468, 42...
elif type(cls) == type(PyMooseBase):
elif isinstance(cls, PyMooseBase):
def doc(cls): """Return documentation string from MOOSE""" if (type(cls).__name__ == "classobj") or (type(cls).__name__ == "type"): return PyMooseBase.getContext().doc(cls.__name__) elif type(cls) == type(PyMooseBase): return PyMooseBase.getContext().doc(cls.className) elif type(cls).__name__ == "str": return PyMooseBase.getContext().doc(cls)
4e214869e1938e1dbe7f45f26f31c0c6b712589c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2961/4e214869e1938e1dbe7f45f26f31c0c6b712589c/moose.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 6429, 4672, 3536, 990, 7323, 533, 628, 16070, 51, 1090, 8395, 309, 261, 723, 12, 6429, 2934, 972, 529, 972, 422, 315, 1106, 2603, 7923, 578, 261, 723, 12, 6429, 2934, 972, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 12, 6429, 4672, 3536, 990, 7323, 533, 628, 16070, 51, 1090, 8395, 309, 261, 723, 12, 6429, 2934, 972, 529, 972, 422, 315, 1106, 2603, 7923, 578, 261, 723, 12, 6429, 2934, 972, 529...
''
empty
def write_dispatch_waybill_compass(self,waybill_id): db = cx_Oracle.Connection("TESTJERX001/TESTJERX001@//10.11.216.4:1521/JERX001") cursor = db.cursor()#connections['compas'].cursor() self.ErrorMessages = '' self.ErrorCodes = '' # gather wb info the_waybill = Waybill.objects.get(id=waybill_id) lineItems = the_waybill.loadingdetail_set.select_related() LTI= lineItems[0].siNo dispatch_person = EpicPerson.objects.get(person_pk = the_waybill.dispatcherName) # make dispatch remarks:::: dispatch_remarks = the_waybill.dispatchRemarks CODE = the_waybill.waybillNumber DOCUMENT_CODE = 'wb' DISPATCH_DATE=the_waybill.dateOfDispatch.strftime("%Y%m%d") ORIGIN_TYPE=LTI.ORIGIN_TYPE ORIGIN_LOCATION_CODE=LTI.ORIGIN_LOCATION_CODE ORIGIN_CODE=LTI.ORIGIN_WH_CODE ORIGIN_DESCR='' DESTINATION_LOCATION_CODE=LTI.DESTINATION_LOCATION_CODE DESTINATION_CODE=str(the_waybill.destinationWarehouse.ORG_CODE) PRO_ACTIVITY_CODE="" ACTIVITY_OUC="" LNDARRM_CODE="" LTI_ID=LTI.LTI_ID LOADING_DATE=the_waybill.dateOfLoading.strftime("%Y%m%d") ORGANIZATION_ID=LTI.CONSEGNEE_CODE TRAN_TYPE_CODE=the_waybill.transactionType TRAN_TYPE_DESCR=the_waybill.transportVehicleRegistration MODETRANS_CODE=the_waybill.transportType COMMENTS= dispatch_remarks PERSON_CODE=dispatch_person.code PERSON_OUC=dispatch_person.org_unit_code CERTIFING_TITLE=dispatch_person.title TRANS_CONTRACTOR_CODE=LTI.TRANSPORT_CODE SUPPLIER1_OUC=LTI.TRANSPORT_OUC DRIVER_NAME=the_waybill.transportDriverName LICENSE=the_waybill.transportDriverLicenceID VEHICLE_REGISTRATION=the_waybill.transportVehicleRegistration TRAILER_PLATE=the_waybill.transportTrailerRegistration CONTAINER_NUMBER=the_waybill.containerOneNumber ## For each lineItems all_ok = True db.begin() for lineItem in lineItems: COMM_CATEGORY_CODE = lineItem.siNo.COMM_CATEGORY_CODE COMM_CODE = lineItem.siNo.COMMODITY_CODE COI_CODE = lineItem.siNo.coi_code() #get stock TheStockItems = EpicStock.objects.filter(origin_id__contains=COI_CODE) PCKKCODE = TheStockItems[0].package_code ALLCODE = TheStockItems[0].allocation_code QUALITY = TheStockItems[0].qualitycode #'G' UnitsLoaded = lineItem.numberUnitsLoaded UnitNet= lineItem.siNo.UNIT_WEIGHT_NET UnitGross = lineItem.siNo.UNIT_WEIGHT_GROSS NetTotal =(UnitNet * UnitsLoaded) / 1000 strNetTotal = "%.3f" % NetTotal GrossTotal = (UnitGross * UnitsLoaded) / 1000 strGrossTotal = "%.3f" % GrossTotal
c497ff3c7ca806866130c41e5403acfcbf770652 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12559/c497ff3c7ca806866130c41e5403acfcbf770652/compas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10739, 67, 1888, 17240, 67, 2919, 428, 12, 2890, 16, 1888, 17240, 67, 350, 4672, 1319, 273, 9494, 67, 23601, 18, 1952, 2932, 16961, 46, 654, 60, 11664, 19, 16961, 46, 654, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 10739, 67, 1888, 17240, 67, 2919, 428, 12, 2890, 16, 1888, 17240, 67, 350, 4672, 1319, 273, 9494, 67, 23601, 18, 1952, 2932, 16961, 46, 654, 60, 11664, 19, 16961, 46, 654, 60...
'amount': vals['debit'] or vals['credit'],
'amount': vals.get('debit', False) or vals.get('credit', False) or 0.0,
def create(self, cr, uid, vals, context=None, check=True): if not context: context={} account_obj = self.pool.get('account.account') tax_obj=self.pool.get('account.tax') if ('account_id' in vals) and not account_obj.read(cr, uid, vals['account_id'], ['active'])['active']: raise osv.except_osv(_('Bad account!'), _('You can not use an inactive account!')) if 'journal_id' in vals and 'journal_id' not in context: context['journal_id'] = vals['journal_id'] if 'period_id' in vals and 'period_id' not in context: context['period_id'] = vals['period_id'] if ('journal_id' not in context) and ('move_id' in vals) and vals['move_id']: m = self.pool.get('account.move').browse(cr, uid, vals['move_id']) context['journal_id'] = m.journal_id.id context['period_id'] = m.period_id.id
ff2277ac3020d8bb9f0f84356b8df589385954b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ff2277ac3020d8bb9f0f84356b8df589385954b5/account_move_line.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 33, 7036, 16, 866, 33, 5510, 4672, 309, 486, 819, 30, 819, 12938, 2236, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 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, 752, 12, 2890, 16, 4422, 16, 4555, 16, 5773, 16, 819, 33, 7036, 16, 866, 33, 5510, 4672, 309, 486, 819, 30, 819, 12938, 2236, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 4631, 18, ...
self.path = path
self.path = path
def __init__(self, path, authz, log): self.path = path self.log = log if core.SVN_VER_MAJOR < 1: raise TracError("Subversion >= 1.0 required: Found %d.%d.%d" % \ (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO)) self.pool = Pool() # Remove any trailing slash or else subversion might abort path = os.path.normpath(path).replace('\\', '/') self.path = repos.svn_repos_find_root_path(path, self.pool()) if self.path is None: raise TracError("%s does not appear to be a Subversion repository." \ % path)
1e7fbc587c7afba5631f3ae6002cef1e3992ec11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/1e7fbc587c7afba5631f3ae6002cef1e3992ec11/svn_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 16, 18686, 16, 613, 4672, 365, 18, 803, 273, 589, 365, 18, 1330, 273, 613, 309, 2922, 18, 23927, 50, 67, 2204, 67, 26976, 916, 411, 404, 30, 1002,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 589, 16, 18686, 16, 613, 4672, 365, 18, 803, 273, 589, 365, 18, 1330, 273, 613, 309, 2922, 18, 23927, 50, 67, 2204, 67, 26976, 916, 411, 404, 30, 1002,...
return file.content_type
return getattr(file, 'content_type', self.default_content_type)
def getContentType(self, instance, fromBaseUnit=True): file = self.get(instance) return file.content_type
4cf0e46d18e3dc9d985c78c7437abaeaed326feb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/4cf0e46d18e3dc9d985c78c7437abaeaed326feb/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17470, 12, 2890, 16, 791, 16, 628, 2171, 2802, 33, 5510, 4672, 585, 273, 365, 18, 588, 12, 1336, 13, 327, 585, 18, 1745, 67, 723, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17470, 12, 2890, 16, 791, 16, 628, 2171, 2802, 33, 5510, 4672, 585, 273, 365, 18, 588, 12, 1336, 13, 327, 585, 18, 1745, 67, 723, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.announce ("swigging %s to %s" % (src, obj)) self.spawn(swig_cmd + ["-o", swig_targets[source], source])
target = swig_targets[source] self.announce ("swigging %s to %s" % (source, target)) self.spawn(swig_cmd + ["-o", target, source])
def swig_sources (self, sources):
2d9479c1fc4cccefa7f9ca72d93d67e6130aa129 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2d9479c1fc4cccefa7f9ca72d93d67e6130aa129/build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 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...
rows.sort(key=itemgetter(sortby), reverse=(sortorder=='down'))
records.sort(key=itemgetter(sortby), reverse=(sortorder=='down'))
def view(self, context): namespace = {}
ea76d631b134cd26755e19b7103b4b83b4587377 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/ea76d631b134cd26755e19b7103b4b83b4587377/table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 12, 2890, 16, 819, 4672, 1981, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
st t1, ds, [scale, index, base], disp
st t1, ds, [0, t0, t7], disp
def macroop ADD_P_I
dd95f0468c599f30303740527ce19d810f43aca6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/dd95f0468c599f30303740527ce19d810f43aca6/add_and_subtract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 11689, 67, 52, 67, 45, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 11689, 67, 52, 67, 45, 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, ...
router.add_backend(conf.pop("type"), name, conf)
router.add_backend(conf.pop("ENGINE"), name, conf)
def handle_noargs(self, **options):
e68452e860572f97062347a754efdb6b93194e55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11809/e68452e860572f97062347a754efdb6b93194e55/route.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2135, 1968, 12, 2890, 16, 2826, 2116, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 2135, 1968, 12, 2890, 16, 2826, 2116, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if value != self.expected_response: for i in range(len(value)): if len(self.expected_response) <= i: print `value[i-5:i+10]`, `self.expected_response[i-5:i+10]` elif value[i] != self.expected_response[i]: print `value[i-5:i+10]`, `self.expected_response[i-5:i+10]` break print '---VALUE---' print repr(value) print '---EXPECTED---' print repr(self.expected_response) raise AssertionError
self.assertEquals(value, self.expected_response)
def testBuffer(self): b = StringIOWithoutClosing() a = http.HTTPChannel() a.requestFactory = DummyHTTPHandler a.makeConnection(protocol.FileWrapper(b)) # one byte at a time, to stress it. for byte in self.requests: a.dataReceived(byte) a.connectionLost(IOError("all one")) value = b.getvalue() if value != self.expected_response: for i in range(len(value)): if len(self.expected_response) <= i: print `value[i-5:i+10]`, `self.expected_response[i-5:i+10]` elif value[i] != self.expected_response[i]: print `value[i-5:i+10]`, `self.expected_response[i-5:i+10]` break print '---VALUE---' print repr(value) print '---EXPECTED---' print repr(self.expected_response) raise AssertionError
e882ab6950563f69b462446b4b54179d8c120c2b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12595/e882ab6950563f69b462446b4b54179d8c120c2b/test_http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 1892, 12, 2890, 4672, 324, 273, 15777, 8073, 15745, 1435, 279, 273, 1062, 18, 3693, 2909, 1435, 279, 18, 2293, 1733, 273, 28622, 3693, 1503, 279, 18, 6540, 1952, 12, 8373, 18, 812,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1892, 12, 2890, 4672, 324, 273, 15777, 8073, 15745, 1435, 279, 273, 1062, 18, 3693, 2909, 1435, 279, 18, 2293, 1733, 273, 28622, 3693, 1503, 279, 18, 6540, 1952, 12, 8373, 18, 812,...
"""Toggle hasExtraData flag on installer.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Has Extra Directories'),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) menuItem.Enable(self.isSingle()) if self.isSingle(): installer = self.data[self.selected[0]] menuItem.Check(installer.hasExtraData) def Execute(self,event): """Handle selection.""" installer = self.data[self.selected[0]] installer.hasExtraData ^= True installer.refreshDataSizeCrc() installer.refreshStatus(self.data) self.data.refresh(what='N') self.gTank.RefreshUI()
"""Toggle hasExtraData flag on installer.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Has Extra Directories'),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) menuItem.Enable(self.isSingle()) if self.isSingle(): installer = self.data[self.selected[0]] menuItem.Check(installer.hasExtraData) def Execute(self,event): """Handle selection.""" installer = self.data[self.selected[0]] installer.hasExtraData ^= True installer.refreshDataSizeCrc() installer.refreshStatus(self.data) self.data.refresh(what='N') self.gTank.RefreshUI()
def Execute(self,event): """Handle selection.""" curName = self.selected[0] isdir = self.data.dir.join(curName).isdir() if isdir: root,ext = curName,'' else: root,ext = curName.rootExt newName = root+' Copy'+ext index = 0 while newName in self.data: newName = root + (_(' Copy (%d)') % index) + ext index += 1 result = balt.askText(self.gTank,_("Duplicate %s to:") % curName.s, self.title,newName.s) result = (result or '').strip() if not result: return #--Error checking newName = GPath(result).tail if not newName.s: balt.ShowWarning(self.gTank,_("%s is not a valid name.") % result) return if newName in self.data: balt.ShowWarning(self.gTank,_("%s already exists.") % newName.s) return if self.data.dir.join(curName).isfile() and curName.cext != newName.cext: balt.ShowWarning(self.gTank, _("%s does not have correct extension (%s).") % (newName.s,curName.ext)) return #--Duplicate try: wx.BeginBusyCursor() self.data.copy(curName,newName) finally: wx.EndBusyCursor() self.data.refresh(what='N') self.gTank.RefreshUI()
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 4421, 12123, 662, 461, 273, 365, 18, 8109, 63, 20, 65, 9783, 273, 365, 18, 892, 18, 1214, 18, 5701, 12, 1397, 461, 2934, 291, 1214, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 4421, 12123, 662, 461, 273, 365, 18, 8109, 63, 20, 65, 9783, 273, 365, 18, 892, 18, 1214, 18, 5701, 12, 1397, 461, 2934, 291, 1214, 1435, ...
logger = netsvc.Logger() logger.notifyChannel('orm', netsvc.LOG_ERROR, "Programming error: field '%s' does not exist in object '%s' !" % (name, self._table._name)) return None
self.logger.notifyChannel("browse_record", netsvc.LOG_WARNING, "Field '%s' does not exist in object '%s': \n%s" % ( name, self, ''.join(traceback.format_trace()))) raise KeyError("Field '%s' does not exist in object '%s'" % ( name, self))
def __getitem__(self, name): if name == 'id': return self._id if name not in self._data[self._id]: # build the list of fields we will fetch
a62d77fa115760328a1fb133b2ddc3f2846849b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/a62d77fa115760328a1fb133b2ddc3f2846849b9/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 508, 4672, 309, 508, 422, 296, 350, 4278, 327, 365, 6315, 350, 309, 508, 486, 316, 365, 6315, 892, 63, 2890, 6315, 350, 14542, 468, 1361, 326, 666, 434,...
if self.ModuleType == "DXE_SMM_DRIVER": self._DepexExpressionList["DXE_DRIVER"] = '' self._DepexExpressionList["SMM_DRIVER"] = '' else: self._DepexExpressionList[self.ModuleType] = ''
self._DepexExpressionList[self.ModuleType] = ''
def _GetDepexExpressionTokenList(self): if self._DepexExpressionList == None: self._DepexExpressionList = {} if self.IsLibrary or TAB_DEPENDENCY_EXPRESSION_FILE in self.FileTypes: return self._DepexExpressionList
9bb496c547cded520142c4d0922f8af5717f9dc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/9bb496c547cded520142c4d0922f8af5717f9dc8/AutoGen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 16316, 338, 2300, 1345, 682, 12, 2890, 4672, 309, 365, 6315, 16316, 338, 2300, 682, 422, 599, 30, 365, 6315, 16316, 338, 2300, 682, 273, 2618, 309, 365, 18, 2520, 9313, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16316, 338, 2300, 1345, 682, 12, 2890, 4672, 309, 365, 6315, 16316, 338, 2300, 682, 422, 599, 30, 365, 6315, 16316, 338, 2300, 682, 273, 2618, 309, 365, 18, 2520, 9313, 578, ...
self.submit_option = '--config-vo %s' % self.config['ConfigVO']
submit_option = '--config-vo %s' % self.config['ConfigVO']
def __set_submit_option__(self):
b539a73c73d4945301e6c2635eafd6fab1a0dda4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/b539a73c73d4945301e6c2635eafd6fab1a0dda4/Grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 9297, 67, 3482, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 67, 9297, 67, 3482, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""A utility to patch an object and return a handle for later restoration.
"""A utility to patch an object and return :class:`fudge.PatchHandler` for later restoration.
def patch_object(obj, attr_name, patched_value): """A utility to patch an object and return a handle for later restoration. You can use more convenient wrappers :func:`with_patched_object` and :func:`patched_context` """ if isinstance(obj, (str, unicode)): obj_path = obj obj = __import__(obj_path) for part in obj_path.split('.')[1:]: obj = getattr(obj, part) handle = PatchHandler(obj, attr_name) handle.patch(patched_value) return handle
6998d3b9bc8f5c723c59e95ed4b3ecdd4943ab3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3602/6998d3b9bc8f5c723c59e95ed4b3ecdd4943ab3e/patcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 67, 1612, 12, 2603, 16, 1604, 67, 529, 16, 25786, 67, 1132, 4672, 3536, 37, 12788, 358, 4729, 392, 733, 471, 327, 294, 1106, 28288, 74, 27110, 18, 7332, 1503, 68, 364, 5137, 3127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4729, 67, 1612, 12, 2603, 16, 1604, 67, 529, 16, 25786, 67, 1132, 4672, 3536, 37, 12788, 358, 4729, 392, 733, 471, 327, 294, 1106, 28288, 74, 27110, 18, 7332, 1503, 68, 364, 5137, 3127...
if info != {}:
if info:
def __get_info(self, info_id): retval = self.__run_boottool('--info=%s' % info_id).stdout
340a00d3ad01aceff412f3b7c2d1578788cd4dd2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/340a00d3ad01aceff412f3b7c2d1578788cd4dd2/bootloader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 1376, 12, 2890, 16, 1123, 67, 350, 4672, 5221, 273, 365, 16186, 2681, 67, 7137, 6738, 2668, 413, 1376, 5095, 87, 11, 738, 1123, 67, 350, 2934, 10283, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 67, 1376, 12, 2890, 16, 1123, 67, 350, 4672, 5221, 273, 365, 16186, 2681, 67, 7137, 6738, 2668, 413, 1376, 5095, 87, 11, 738, 1123, 67, 350, 2934, 10283, 2, -100, -100, -100...
]
lambda self, selectors: self.assertEqual( selectors.test_run.time_check_performed, False), lambda self, selectors: self.assertEqual( selectors.test_run.attributes, {}), lambda self, selectors: self.assertEqual( selectors.test_run.attachments, {}), lambda self, selectors: self.assertEqual( selectors.test_run.sw_context, None), lambda self, selectors: self.assertEqual( selectors.test_run.hw_context, None), ]
def test_deserialize_clears_old_error_on_success(self): BundleDeserializationError.objects.create( bundle = self.bundle, error_message="not important").save() mock = self.mocker.patch(self.bundle) expect(mock._do_deserialize()) self.mocker.replay() self.bundle.deserialize() # note we cannot check for self.bundle.deserialization_error # directly due to the way django handles operations that affect # existing instances (it does not touch them like storm would # IIRC). self.assertRaises( BundleDeserializationError.DoesNotExist, BundleDeserializationError.objects.get, bundle=self.bundle)
cb7777d5c58a90f038d8ca059654803230429d22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/cb7777d5c58a90f038d8ca059654803230429d22/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 18109, 67, 2131, 5913, 67, 1673, 67, 1636, 67, 265, 67, 4768, 12, 2890, 4672, 8539, 20765, 1588, 668, 18, 6911, 18, 2640, 12, 3440, 273, 365, 18, 9991, 16, 555, 67, 2150, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18109, 67, 2131, 5913, 67, 1673, 67, 1636, 67, 265, 67, 4768, 12, 2890, 4672, 8539, 20765, 1588, 668, 18, 6911, 18, 2640, 12, 3440, 273, 365, 18, 9991, 16, 555, 67, 2150, 1...
journaldate = str(date.Date(journaldate))
journaldate = date.Date(journaldate)
def add_new_columns_v2(self): '''While we're adding the actor column, we need to update the tables to have the correct datatypes.''' for klass in self.classes.values(): cn = klass.classname properties = klass.getprops() old_spec = self.database_schema['tables'][cn]
5f95dd34105d9fa54d471617dd14823905eabd07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/5f95dd34105d9fa54d471617dd14823905eabd07/back_mysql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2704, 67, 5112, 67, 90, 22, 12, 2890, 4672, 9163, 15151, 732, 4565, 6534, 326, 8327, 1057, 16, 732, 1608, 358, 1089, 326, 4606, 358, 1240, 326, 3434, 14760, 1093, 6309, 364, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2704, 67, 5112, 67, 90, 22, 12, 2890, 4672, 9163, 15151, 732, 4565, 6534, 326, 8327, 1057, 16, 732, 1608, 358, 1089, 326, 4606, 358, 1240, 326, 3434, 14760, 1093, 6309, 364, 7...
== [inplace.log1p_inplace, alloc]
== [T.log1p, alloc]
def test_log1p(): m = theano.config.mode if m == 'FAST_COMPILE': m = 'FAST_RUN' m = compile.mode.get_mode(m) m = m.excluding('fusion') # check some basic cases x = dvector() f = function([x], T.log(1+(x)), mode=m) assert [node.op for node in f.maker.env.toposort()] == [T.log1p] f = function([x], T.log(1+(-x)), mode=m) assert [node.op for node in f.maker.env.toposort()] == [T.neg, inplace.log1p_inplace] f = function([x], -T.log(1+(-x)), mode=m) assert [node.op for node in f.maker.env.toposort()] == [T.neg, inplace.log1p_inplace, inplace.neg_inplace] # check trickier cases (and use different dtype) y = fmatrix() f = function([x,y], T.log(fill(y,1)+(x)), mode=m) print f.maker.env.toposort() # the first three ops are Shape_i, Shape_i, and Dimshuffle theano.printing.debugprint(f) assert [node.op for node in f.maker.env.toposort()][3:] \ == [inplace.log1p_inplace, alloc] f = function([x,y], T.log(0+(x) + fill(y,1.0)), mode=m) theano.printing.debugprint(f) assert [node.op for node in f.maker.env.toposort()][3:] \ == [inplace.log1p_inplace, alloc] f = function([x,y], T.log(2+(x) - fill(y,1.0)), mode=m) theano.printing.debugprint(f) assert [node.op for node in f.maker.env.toposort()][3:] \ == [inplace.log1p_inplace, alloc] f([1e-7, 10], [[0, 0], [0, 0]]) #debugmode will verify values if 0: # at one point this worked, but it has been broken since # the constant up-casting made 1 -> 1.0+0.0j # I was never sure if this optimization should work on complex numbers or not. z = zmatrix() f = function([z], T.log(1+(z)), mode=m) theano.printing.debugprint(f) assert [node.op for node in f.maker.env.toposort()] == [T.log1p] if 1: # should work for int z = imatrix() f = function([z], T.log(1+(z)), mode=m) theano.printing.debugprint(f) assert [node.op for node in f.maker.env.toposort()] == [T.log1p]
6efb14d5b50778175ec5c937b5269ee07a6dbce3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/6efb14d5b50778175ec5c937b5269ee07a6dbce3/test_opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1330, 21, 84, 13332, 312, 273, 326, 31922, 18, 1425, 18, 3188, 309, 312, 422, 296, 2046, 882, 67, 31075, 900, 4278, 312, 273, 296, 2046, 882, 67, 15238, 11, 312, 273, 4074, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1330, 21, 84, 13332, 312, 273, 326, 31922, 18, 1425, 18, 3188, 309, 312, 422, 296, 2046, 882, 67, 31075, 900, 4278, 312, 273, 296, 2046, 882, 67, 15238, 11, 312, 273, 4074, ...
('i', 'ignored', None, _('show ignored files')),
('i', 'ignored', None, _('show only ignored files')),
def version_(ui): """output version and copyright information""" ui.write(_("Mercurial Distributed SCM (version %s)\n") % version.get_version()) ui.status(_( "\nCopyright (C) 2005, 2006 Matt Mackall <mpm@selenic.com>\n" "This is free software; see the source for copying conditions. " "There is NO\nwarranty; " "not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" ))
a6bad45f4978d1e344f3e88045b9ebfa16739626 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/a6bad45f4978d1e344f3e88045b9ebfa16739626/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 67, 12, 4881, 4672, 3536, 2844, 1177, 471, 22245, 1779, 8395, 5915, 18, 2626, 24899, 2932, 8478, 1397, 649, 27877, 8795, 49, 261, 1589, 738, 87, 5153, 82, 7923, 738, 1177, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1177, 67, 12, 4881, 4672, 3536, 2844, 1177, 471, 22245, 1779, 8395, 5915, 18, 2626, 24899, 2932, 8478, 1397, 649, 27877, 8795, 49, 261, 1589, 738, 87, 5153, 82, 7923, 738, 1177, 18, 588,...
x = 20 + col*120
x = 20 + col*d
def test(): D = Drawing(450,650) for row in range(5): y = 530 - row*120 if row == 0: for col in range(3): x = 20 + col*120 g = Grid0() g.x = x g.y = y g.useRects = 0 g.useLines = 1 if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() D.add(g) elif row == 1: for col in range(3): x = 20 + col*120 g = Grid0() g.y = y g.x = x if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() D.add(g) elif row == 2: for col in range(3): x = 20 + col*120 g = Grid0() g.x = x g.y = y g.useLines = 1 g.useRects = 1 if col == 0: pass elif col == 1: g.delta0 = 10 elif col == 2: g.orientation = 'horizontal' g.demo() D.add(g) elif row == 3: for col in range(3): x = 20 + col*120 sr = ShadedRect0() sr.x = x sr.y = y sr.fillColorStart = colors.Color(0, 0, 0) sr.fillColorEnd = colors.Color(1, 1, 1) if col == 0: sr.numShades = 5 elif col == 1: sr.numShades = 2 elif col == 2: sr.numShades = 1 sr.demo() D.add(sr) elif row == 4: for col in range(3): x = 20 + col*120 sr = ShadedRect0() sr.x = x sr.y = y sr.fillColorStart = colors.red sr.fillColorEnd = colors.blue sr.orientation = 'horizontal' if col == 0: sr.numShades = 10 elif col == 1: sr.numShades = 20 elif col == 2: sr.numShades = 50 sr.demo() D.add(sr) renderPDF.drawToFile(D, 'grids.pdf', 'grids.py') print 'wrote file: grids.pdf'
2153c6f9f7afc55d87d741aa392569b7c2232d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/2153c6f9f7afc55d87d741aa392569b7c2232d19/grids.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 463, 273, 10184, 310, 12, 24, 3361, 16, 26, 3361, 13, 225, 364, 1027, 316, 1048, 12, 25, 4672, 677, 273, 1381, 5082, 300, 1027, 14, 22343, 309, 1027, 422, 374, 30, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 463, 273, 10184, 310, 12, 24, 3361, 16, 26, 3361, 13, 225, 364, 1027, 316, 1048, 12, 25, 4672, 677, 273, 1381, 5082, 300, 1027, 14, 22343, 309, 1027, 422, 374, 30, 364, ...
sys.stderr = test.globs['oldstderr']
sys.stderr = test.globs['oldstderr']
def tearDown(test): sys.stderr = test.globs['oldstderr'] zope.deferredimport.__path__.pop() shutil.rmtree(test.globs['tmp_d']) for name in test.globs['created_modules']: sys.modules.pop(name, None) warnings.warn = test.globs['saved_warn']
1e57035f6a851bd4df39f40857d2a410de3df967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9638/1e57035f6a851bd4df39f40857d2a410de3df967/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 3813, 4672, 2589, 18, 11241, 273, 1842, 18, 10581, 87, 3292, 1673, 11241, 3546, 225, 998, 1306, 18, 26622, 5666, 16186, 803, 25648, 5120, 1435, 11060, 18, 86, 17371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 3813, 4672, 2589, 18, 11241, 273, 1842, 18, 10581, 87, 3292, 1673, 11241, 3546, 225, 998, 1306, 18, 26622, 5666, 16186, 803, 25648, 5120, 1435, 11060, 18, 86, 17371, ...
returns 'modelRoot' NOTE: returns parts of first LOD"""
returns 'modelRoot' NOTE: returns parts of arbitrary LOD"""
def getPartNames(self): """getPartNames(self): Return list of Actor part names. If not an multipart actor, returns 'modelRoot' NOTE: returns parts of first LOD""" return self.__partBundleDict.values()[0].keys()
b906b53bfb8134931cc86a27e39666665bcc2f42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/b906b53bfb8134931cc86a27e39666665bcc2f42/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13657, 1557, 12, 2890, 4672, 3536, 588, 1988, 1557, 12, 2890, 4672, 2000, 666, 434, 21142, 1087, 1257, 18, 971, 486, 392, 10263, 8327, 16, 1135, 296, 2284, 2375, 11, 5219, 30, 1135, 2140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13657, 1557, 12, 2890, 4672, 3536, 588, 1988, 1557, 12, 2890, 4672, 2000, 666, 434, 21142, 1087, 1257, 18, 971, 486, 392, 10263, 8327, 16, 1135, 296, 2284, 2375, 11, 5219, 30, 1135, 2140...
def delete_menu(self, arg=None, menuw=None):
def delete_menu(self, arg=None, menuw=None, allow_reload=True):
def delete_menu(self, arg=None, menuw=None): if len(self.menustack) > 1: self.menustack = self.menustack[:-1] menu = self.menustack[-1]
ae6399f1b1861a828b01e49d82fb3db0ac6ea475 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/ae6399f1b1861a828b01e49d82fb3db0ac6ea475/menu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 5414, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 16, 1699, 67, 17517, 33, 5510, 4672, 309, 562, 12, 2890, 18, 27617, 641, 484, 13, 405, 404, 30, 365, 18, 27617, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 5414, 12, 2890, 16, 1501, 33, 7036, 16, 3824, 91, 33, 7036, 16, 1699, 67, 17517, 33, 5510, 4672, 309, 562, 12, 2890, 18, 27617, 641, 484, 13, 405, 404, 30, 365, 18, 27617, ...
def getEvalStrGen(self):
def getEvalStrGen(self, getInstance=False):
def getEvalStrGen(self): str = '' prevIndirection = None curIndirection = None nextIndirection = None # make sure the indirections don't go away on us indirections = self._indirections for indirection in indirections: indirection.acquire() for i in xrange(len(indirections)): yield None if i > 0: prevIndirection = indirections[i-1] else: prevIndirection = None curIndirection = indirections[i] if i < len(indirections)-1: nextIndirection = indirections[i+1] else: nextIndirection = None str += curIndirection.getString(prevIndirection=prevIndirection, nextIndirection=nextIndirection) for indirection in indirections: yield None indirection.release() yield str
4b0c19f61ad7b72d770281f09de1f398289fc892 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/4b0c19f61ad7b72d770281f09de1f398289fc892/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4774, 1125, 1585, 7642, 12, 2890, 16, 3694, 33, 8381, 4672, 609, 273, 875, 2807, 3866, 2769, 273, 599, 662, 3866, 2769, 273, 599, 1024, 3866, 2769, 273, 599, 468, 1221, 3071, 326, 1547, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4774, 1125, 1585, 7642, 12, 2890, 16, 3694, 33, 8381, 4672, 609, 273, 875, 2807, 3866, 2769, 273, 599, 662, 3866, 2769, 273, 599, 1024, 3866, 2769, 273, 599, 468, 1221, 3071, 326, 1547, ...
if self.browser.wd != "/": self.browse(None, self.browserdata.get_value(self.browserdata.get_iter((1,)), 1))
if self.browser.is_focus(): if self.browser.wd != "/": self.browse(None, self.browserdata.get_value(self.browserdata.get_iter((1,)), 1)) return
def parent_dir(self, action): if self.notebook.get_current_page() == 1: if self.browser.wd != "/": self.browse(None, self.browserdata.get_value(self.browserdata.get_iter((1,)), 1))
9a1189ef0a6c014f0c3d64fa26fdc291b0f3a6e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/9a1189ef0a6c014f0c3d64fa26fdc291b0f3a6e6/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 982, 67, 1214, 12, 2890, 16, 1301, 4672, 309, 365, 18, 24422, 18, 588, 67, 2972, 67, 2433, 1435, 422, 404, 30, 309, 365, 18, 11213, 18, 3623, 480, 4016, 30, 365, 18, 25731, 12, 7036,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 982, 67, 1214, 12, 2890, 16, 1301, 4672, 309, 365, 18, 24422, 18, 588, 67, 2972, 67, 2433, 1435, 422, 404, 30, 309, 365, 18, 11213, 18, 3623, 480, 4016, 30, 365, 18, 25731, 12, 7036,...
help_pages = ["file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-basic.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-bootloader.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-install.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-partitions.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-network.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-auth.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-firewall.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-xconfig.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-pkgs.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-prescript.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-postscript.html",
help_pages = ["file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-basic.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-bootloader.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-install.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-partitions.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-network.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-auth.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-firewall.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-xconfig.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-pkgs.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-prescript.html", "file:///usr/share/doc/ksconfig-" + VERSION + "/ksconfig-postinstall.html",
def on_help_button_clicked (self, args): help_pages = ["file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-basic.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-bootloader.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-install.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-partitions.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-network.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-auth.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-firewall.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-xconfig.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-pkgs.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-prescript.html", "file:///usr/share/doc/ksconfig-" + VERSION + "ksconfig-postscript.html", ] print self.options_notebook.get_current_page () gnome.help.goto (help_pages [self.options_notebook.get_current_page ()])
87883f841cef7d62366a66790513f7b1a5acd2ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5376/87883f841cef7d62366a66790513f7b1a5acd2ca/ksconfig_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5201, 67, 5391, 67, 7475, 329, 261, 2890, 16, 833, 4672, 225, 2809, 67, 7267, 273, 8247, 768, 2207, 19, 13640, 19, 14419, 19, 2434, 19, 7904, 1425, 10951, 397, 8456, 397, 2206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 5201, 67, 5391, 67, 7475, 329, 261, 2890, 16, 833, 4672, 225, 2809, 67, 7267, 273, 8247, 768, 2207, 19, 13640, 19, 14419, 19, 2434, 19, 7904, 1425, 10951, 397, 8456, 397, 2206...
xmlfile = os.path.join( cachedir, '%s_%d.xhtml' % (self.name, self.id) )
xmlfile = cachefile + '.xhtml'
def pdf_generate(self): """ Generates the PDF for this snip and stores it into cachedir. """ cachefile = self.pdf_get_cachefile() xmlfile = os.path.join( cachedir, '%s_%d.xhtml' % (self.name, self.id) )
fb71f95bf6a8512919a57c29f1e8c9d1394f2020 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11563/fb71f95bf6a8512919a57c29f1e8c9d1394f2020/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8169, 67, 7163, 12, 2890, 4672, 3536, 31902, 326, 12667, 364, 333, 4556, 625, 471, 9064, 518, 1368, 3472, 481, 18, 3536, 1247, 768, 273, 365, 18, 7699, 67, 588, 67, 2493, 768, 1435, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8169, 67, 7163, 12, 2890, 4672, 3536, 31902, 326, 12667, 364, 333, 4556, 625, 471, 9064, 518, 1368, 3472, 481, 18, 3536, 1247, 768, 273, 365, 18, 7699, 67, 588, 67, 2493, 768, 1435, 20...
missing = [ x for x in targets if not group.hasTrove(*x) ] if missing: l = missingTargets.setdefault(trv, []) l += missing
missing = [ x for x in targets if not group.hasTrove(*x) ] if missing: l = missingTargets.setdefault(trv, []) l += missing
def checkForRedirects(group, repos, troveCache): redirectTups = [] for troveTup in group.iterTroveList(strongRefs=True, weakRefs=False): if troveCache.isRedirect(troveTup): redirectTups.append(troveTup) if not redirectTups: return redirectTroves = repos.getTroves(redirectTups) missingTargets = {} for trv in redirectTroves: targets = [] name = trv.getName() for (subName, subVersion, subFlavor) in trv.iterTroveList( strongRefs=True): if (":" not in subName and ":" not in name) or \ (":" in subName and ":" in name): targets.append((subName, subVersion, subFlavor)) missing = [ x for x in targets if not group.hasTrove(*x) ] if missing: l = missingTargets.setdefault(trv, []) l += missing errmsg = [] if not missingTargets: for troveTup in redirectTups: group.delTrove(*troveTup) return for trv in sorted(missingTargets): (n,v,f) = (trv.getName(),trv.getVersion(),trv.getFlavor()) errmsg.append('\n%s=%s[%s]:' % (n, v.asString(), deps.formatFlavor(f))) errmsg.extend([(' -> %s=%s[%s]' % (n, v.asString(), deps.formatFlavor(f))) for (n,v,f) in sorted(missingTargets[trv])]) raise RecipeFileError, ("""\
694593e124170eaa52844d1f294d71d9550fb016 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/694593e124170eaa52844d1f294d71d9550fb016/grouprecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13855, 21978, 12, 1655, 16, 13686, 16, 23432, 537, 1649, 4672, 3136, 56, 18294, 273, 5378, 364, 23432, 537, 56, 416, 316, 1041, 18, 2165, 56, 303, 537, 682, 12, 9110, 9837, 33, 5510, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13855, 21978, 12, 1655, 16, 13686, 16, 23432, 537, 1649, 4672, 3136, 56, 18294, 273, 5378, 364, 23432, 537, 56, 416, 316, 1041, 18, 2165, 56, 303, 537, 682, 12, 9110, 9837, 33, 5510, 1...
if (query.has_key("open_tree") and query['open_tree'] != '/'): br = query['open_tree'] else: br = '/' tmp=result.__class__(result) dbh.execute("select from_unixtime(modified) as time from reg_%s where path=%r",(tablename,br)) row=dbh.fetch() try: tmp.text("Last modified %s " % row['time'],color='red') result.row(tmp) except TypeError: pass
def tree_notebook_cb(query,result): if (query.has_key("open_tree") and query['open_tree'] != '/'): br = query['open_tree'] else: br = '/' tmp=result.__class__(result) dbh.execute("select from_unixtime(modified) as time from reg_%s where path=%r",(tablename,br)) row=dbh.fetch() try: tmp.text("Last modified %s " % row['time'],color='red') result.row(tmp) except TypeError: pass def pane_cb(branch,table): path = FlagFramework.normpath('/'.join(branch))
58c8a3dc398fe0908d35f4f71199984226b442f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/58c8a3dc398fe0908d35f4f71199984226b442f0/RegScan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2151, 67, 24422, 67, 7358, 12, 2271, 16, 2088, 4672, 225, 1652, 13618, 67, 7358, 12, 7500, 16, 2121, 4672, 589, 273, 9960, 13701, 18, 7959, 803, 2668, 2473, 18, 5701, 12, 7500, 3719, 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, 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, 2151, 67, 24422, 67, 7358, 12, 2271, 16, 2088, 4672, 225, 1652, 13618, 67, 7358, 12, 7500, 16, 2121, 4672, 589, 273, 9960, 13701, 18, 7959, 803, 2668, 2473, 18, 5701, 12, 7500, 3719, 2...
def mergeFonts(firstFont, secondFont, result):
def mergeFonts(firstFont, secondFont, result, setinfos=0):
def mergeFonts(firstFont, secondFont, result): global scriptNum fscript=open("merge-gregoria-%d.pe" % scriptNum, 'w') fscript.write("#!/usr/local/bin/fontforge\n\n") fscript.write("Open(\"%s.sfd\");\n" % firstFont) fscript.write("MergeFonts(\"%s.sfd\");\n" % secondFont) fscript.write("Reencode(\"compacted\");\n") fscript.write("Reencode(\"original\",1);\n") fscript.write("Save(\"%s.sfd\");\n" % result) fscript.write("Close();\n") fscript.write("Quit(0);\n") scriptNum = scriptNum +1 fscript.close()
5793a8d9c69a539fd28403473bebf475356c4700 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7096/5793a8d9c69a539fd28403473bebf475356c4700/gregoria2gregorio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 5711, 87, 12, 3645, 5711, 16, 2205, 5711, 16, 563, 16, 444, 18227, 33, 20, 4672, 2552, 2728, 2578, 284, 4263, 33, 3190, 2932, 2702, 17, 2810, 280, 1155, 6456, 72, 18, 347, 6, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2691, 5711, 87, 12, 3645, 5711, 16, 2205, 5711, 16, 563, 16, 444, 18227, 33, 20, 4672, 2552, 2728, 2578, 284, 4263, 33, 3190, 2932, 2702, 17, 2810, 280, 1155, 6456, 72, 18, 347, 6, 7...
elif info_sort == COL_TITLE:
elif info_sort == COL_TITLE_SORT:
def save_sorting(self, node): """Save sorting information into node""" info_sort, sort_dir = self.model.get_sort_column_id()
a13cb9f852c20f9fdb97cec601c502c69605ab04 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4738/a13cb9f852c20f9fdb97cec601c502c69605ab04/noteselector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 28751, 12, 2890, 16, 756, 4672, 3536, 4755, 9602, 1779, 1368, 756, 8395, 225, 1123, 67, 3804, 16, 1524, 67, 1214, 273, 365, 18, 2284, 18, 588, 67, 3804, 67, 2827, 67, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 28751, 12, 2890, 16, 756, 4672, 3536, 4755, 9602, 1779, 1368, 756, 8395, 225, 1123, 67, 3804, 16, 1524, 67, 1214, 273, 365, 18, 2284, 18, 588, 67, 3804, 67, 2827, 67, 350, ...
match = map(decode, re.findall(conf.strings["imdb_mpaa_re"], page, re.MULTILINE)) if match: self.mpaa = decode(match[0]) self.__setitem__("mpaa", self.mpaa)
def __parsePage(self, page):
94b2b16fd1c061001a6110209b8adf873a6b2c81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13971/94b2b16fd1c061001a6110209b8adf873a6b2c81/pythonbits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 1964, 12, 2890, 16, 1363, 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, 1001, 2670, 1964, 12, 2890, 16, 1363, 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, -10...
dest='find_mode', action='store_Const', const='small')
dest='find_mode', action='store_Const', const='small'),
def redirecting_stdout(self, action, filter_name, filter_args): '''Calls the given _action_ with stdout temporarily redirected to _self.output_file_ or
6c274fdfc4e866cb11e8f3cf3816bdd7ba3a5dfa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8383/6c274fdfc4e866cb11e8f3cf3816bdd7ba3a5dfa/cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 310, 67, 10283, 12, 2890, 16, 1301, 16, 1034, 67, 529, 16, 1034, 67, 1968, 4672, 9163, 10125, 326, 864, 389, 1128, 67, 598, 3909, 18917, 21808, 358, 389, 2890, 18, 2844, 67, 768,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3136, 310, 67, 10283, 12, 2890, 16, 1301, 16, 1034, 67, 529, 16, 1034, 67, 1968, 4672, 9163, 10125, 326, 864, 389, 1128, 67, 598, 3909, 18917, 21808, 358, 389, 2890, 18, 2844, 67, 768,...
elif res >= dtstart: yield res if count: count -= 1 if not count:
else: for i in set[start:end]: if i is not None: date = datetime.date.fromordinal(ii.yearordinal+i) for time in self._time: res = datetime.datetime.combine(date, time) if self._until and res > until:
def iter(self, dtstart): year, month, day, hour, minute, second, weekday, yearday, _ = \ dtstart.timetuple()
b6d02321017f6062893e0b89e3c8b0dbc1bba103 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/b6d02321017f6062893e0b89e3c8b0dbc1bba103/rrule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 12, 2890, 16, 3681, 1937, 4672, 3286, 16, 3138, 16, 2548, 16, 6126, 16, 8044, 16, 2205, 16, 7560, 16, 677, 73, 1060, 528, 16, 389, 273, 521, 3681, 1937, 18, 8584, 278, 2268, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 12, 2890, 16, 3681, 1937, 4672, 3286, 16, 3138, 16, 2548, 16, 6126, 16, 8044, 16, 2205, 16, 7560, 16, 677, 73, 1060, 528, 16, 389, 273, 521, 3681, 1937, 18, 8584, 278, 2268, 14...
if urlDict.has_key('surl') and urlDict['surl']: pathSURL = self.getUrl(urlDict['surl'])['Value']
if urlDict.has_key( 'surl' ) and urlDict['surl']: pathSURL = self.getUrl( urlDict['surl'] )['Value']
def prestageFile(self,path,lifetime=60*60*24): """ Issue prestage request for file """ res = self.checkArgumentFormat(path) if not res['OK']: return res urls = res['Value']
70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 12869, 812, 12, 2890, 16, 803, 16, 17155, 33, 4848, 14, 4848, 14, 3247, 4672, 3536, 11820, 675, 12869, 590, 364, 585, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 12869, 812, 12, 2890, 16, 803, 16, 17155, 33, 4848, 14, 4848, 14, 3247, 4672, 3536, 11820, 675, 12869, 590, 364, 585, 3536, 400, 273, 365, 18, 1893, 1379, 1630, 12, 803, 13, 309, ...
random.seed(time.time())
def __getRandomContentNodeList(self, au, minCount, maxCount): """Return a randomly sized list of nodes with content, between min and max in length. If there are fewer than 'max' nodes, this will return a list between 'min' and 'len(allnodes)'.""" nodes = self.getAuNodesWithContent(au) maxCount = min(maxCount, len(nodes))
cb9a70c7bbdce1e09c351d60188d3e6bda051e84 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/766/cb9a70c7bbdce1e09c351d60188d3e6bda051e84/lockss_daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 8529, 1350, 19914, 12, 2890, 16, 20309, 16, 1131, 1380, 16, 943, 1380, 4672, 3536, 990, 279, 20153, 26046, 666, 434, 2199, 598, 913, 16, 3086, 1131, 471, 943, 316, 769, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 8529, 1350, 19914, 12, 2890, 16, 20309, 16, 1131, 1380, 16, 943, 1380, 4672, 3536, 990, 279, 20153, 26046, 666, 434, 2199, 598, 913, 16, 3086, 1131, 471, 943, 316, 769, 18, ...
self.prot = None def buildProtocol(self, addr): self.prot = Factory.buildProtocol(self, addr) return self.prot def reply(self, reply): if self.prot: self.prot.transport.write(reply + "\r\n")
class RelayError(Exception): pass
def __init__(self, dispatcher): self.dispatcher = dispatcher self.prot = None
52c591872af75930b633f50641d72f593784ac59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3445/52c591872af75930b633f50641d72f593784ac59/dispatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7393, 4672, 365, 18, 18495, 273, 7393, 365, 18, 11815, 273, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7393, 4672, 365, 18, 18495, 273, 7393, 365, 18, 11815, 273, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.reason = 'dxr3 output'
self.reason = 'dxr3 or dfbmga output'
def __init__(self): if config.CONF.display == 'dxr3': print 'For some strange reason, the starting of the webserver inside' print 'Freevo messes up with the DXR3 output. The webserver plugin' print 'will be disabled. Start it from outside Freevo with' print 'freevo webserver [start|stop]' self.reason = 'dxr3 output' return plugin.DaemonPlugin.__init__(self) self.pid = None os.system('%s webserver start' % os.environ['FREEVO_SCRIPT'])
8689d91b39c26cb146caa77e484961ac2b4c17b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/8689d91b39c26cb146caa77e484961ac2b4c17b1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 309, 642, 18, 14497, 18, 5417, 422, 296, 13437, 86, 23, 4278, 1172, 296, 1290, 2690, 609, 726, 3971, 16, 326, 5023, 434, 326, 732, 2266, 502, 4832, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 309, 642, 18, 14497, 18, 5417, 422, 296, 13437, 86, 23, 4278, 1172, 296, 1290, 2690, 609, 726, 3971, 16, 326, 5023, 434, 326, 732, 2266, 502, 4832, 11,...
format = unicode(path) path = self.view.model().db.format_abspath(self.current_row, format)
path = self.view.model().db.format_abspath(self.current_row, path)
def open_book_path(self, path): if os.sep in unicode(path): open_local_file(path) else: format = unicode(path) path = self.view.model().db.format_abspath(self.current_row, format) if path is not None: open_local_file(path)
233baa63c6de7f2f45ad23cd53a4e74929330e3b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/233baa63c6de7f2f45ad23cd53a4e74929330e3b/book_info.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3618, 67, 803, 12, 2890, 16, 589, 4672, 309, 1140, 18, 10814, 316, 5252, 12, 803, 4672, 1696, 67, 3729, 67, 768, 12, 803, 13, 469, 30, 589, 273, 365, 18, 1945, 18, 2284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3618, 67, 803, 12, 2890, 16, 589, 4672, 309, 1140, 18, 10814, 316, 5252, 12, 803, 4672, 1696, 67, 3729, 67, 768, 12, 803, 13, 469, 30, 589, 273, 365, 18, 1945, 18, 2284, ...
return command
return cmd
def complete(self, text, state): idx = 0 for command in self.commands: if command.startswith(text): idx += 1 if idx > state: return command #print "text: '%s', state '%d'" % (text, state)
d5af29786f36313ce7c47a3b5fe963033faa2dd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/d5af29786f36313ce7c47a3b5fe963033faa2dd7/hatari-console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3912, 12, 2890, 16, 977, 16, 919, 4672, 2067, 273, 374, 364, 1296, 316, 365, 18, 7847, 30, 309, 1296, 18, 17514, 1918, 12, 955, 4672, 2067, 1011, 404, 309, 2067, 405, 919, 30, 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, 3912, 12, 2890, 16, 977, 16, 919, 4672, 2067, 273, 374, 364, 1296, 316, 365, 18, 7847, 30, 309, 1296, 18, 17514, 1918, 12, 955, 4672, 2067, 1011, 404, 309, 2067, 405, 919, 30, 327, 1...
directive = None data = self.sendCMD(['info', 'quit'], sleep = 1) if (data is None): return None data = self.stripPrompt(data) result = {} if directive: result[directive] = data.split('\n') for i in range(len(result[directive])): if (len(result[directive][i]) != 0): result[directive][i] = result[directive][i].strip() result[directive].remove('') else: lines = data.split('\n') result['id'] = lines[0] result['os'] = lines[1] result['systime'] = lines[2] result['uptime'] = lines[3] result['screen'] = lines[4] result['memory'] = lines[5] if (lines[6] == 'Power status'): tmp = [] for i in range(4): tmp.append(line[7 + i]) result['power'] = tmp tmp = [] linenum = 11 for j in range(len(lines) - linenum): if (lines[j + linenum].strip() != ''): procline = lines[j + linenum].split('\t') if len(procline) == 2: tmp.append([procline[0], procline[1]]) elif len(procline) == 3: tmp.append([procline[1], procline[2], procline[0]]) result['process'] = tmp return result
return True """ Uninstalls the named application from device and causes a reboot. Takes an optional argument of installation path - the path to where the application was installed. Returns True, but it doesn't mean anything other than the command was sent, the reboot happens and we don't know if this succeeds or not. """ def uninstallAppAndReboot(self, appName, installPath=None): cmd = 'uninst ' + appName if installPath: cmd += ' ' + installPath self.sendCMD([cmd]) return True
def getInfo(self, directive): data = None if (directive in ('os','id','uptime','systime','screen','memory','process', 'disk','power')): data = self.sendCMD(['info ' + directive, 'quit'], sleep = 1) else: directive = None data = self.sendCMD(['info', 'quit'], sleep = 1)
02223128cd056cb013609966605554a83eff291d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/02223128cd056cb013609966605554a83eff291d/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17142, 12, 2890, 16, 8655, 4672, 501, 273, 599, 309, 261, 22347, 316, 7707, 538, 17023, 350, 17023, 3648, 494, 17023, 87, 1094, 494, 17023, 9252, 17023, 7858, 17023, 2567, 2187, 296, 10863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17142, 12, 2890, 16, 8655, 4672, 501, 273, 599, 309, 261, 22347, 316, 7707, 538, 17023, 350, 17023, 3648, 494, 17023, 87, 1094, 494, 17023, 9252, 17023, 7858, 17023, 2567, 2187, 296, 10863...
thumbList+="%s," % starttime
if starttime==0: if thumboffset < segment: thumbList+="%s," % thumboffset else: thumbList+="%s," % starttime else: thumbList+="%s," % starttime
def createVideoChapters(itemnum, numofchapters, lengthofvideo, getthumbnails): """Returns numofchapters chapter marks even spaced through a certain time period""" segment=int(lengthofvideo / numofchapters) write( "Video length is %s seconds. Each chapter will be %s seconds" % (lengthofvideo,segment)) chapters="" thumbList="" starttime=0 count=1 while count<=numofchapters: chapters+=time.strftime("%H:%M:%S",time.gmtime(starttime)) thumbList+="%s," % starttime if numofchapters>1: chapters+="," starttime+=segment count+=1 if getthumbnails==True: extractVideoFrames( os.path.join(getItemTempPath(itemnum),"stream.mv2"), os.path.join(getItemTempPath(itemnum),"chapter-%1.jpg"), thumbList) return chapters
18622f0e94a0b3f152e7c2cec8074260206e63c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/18622f0e94a0b3f152e7c2cec8074260206e63c3/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10083, 782, 1657, 414, 12, 1726, 2107, 16, 818, 792, 343, 1657, 414, 16, 769, 792, 9115, 16, 336, 14904, 87, 4672, 3536, 1356, 818, 792, 343, 1657, 414, 23580, 13999, 5456, 3476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 10083, 782, 1657, 414, 12, 1726, 2107, 16, 818, 792, 343, 1657, 414, 16, 769, 792, 9115, 16, 336, 14904, 87, 4672, 3536, 1356, 818, 792, 343, 1657, 414, 23580, 13999, 5456, 3476, ...
plot(chisq_time - duration/2.,chisqNorm_vector)
plot(chisq_time - chisq_position,chisqNorm_vector) xlim(-duration/2., duration/2.)
def plotsnrchisq(gpsTime,frameFile,ligoName,chisqBins,chisqDelta,outputPath): # BE CAREFUL ! The length of the frame file itself (without taking into account the path) is supposed to be 30 characters ! ind1 = len(frameFile) - 30 # this variable is also used in the definition of the plot title ind2 = ind1 + 2 ifoName = frameFile[ind1:ind2] print ifoName chanString = ifoName + ':' + ligoName + '_SNRSQ_0' print chanString # find the start time of the first channel # BE CAREFUL ! it is assumed that the sampling frequency is higher than 200 Hz testOnFirstChannel = frgetvect.frgetvect(frameFile,chanString,-1,0.01,0) gpsStart = testOnFirstChannel[3] # This actually prints only one digit after the . print gpsStart # find the channel which contains the data we want to look at # BE CAREFUL ! it is assumed that the segment length is 128 s segmentLength = 128. position = (float(gpsTime) - float(gpsStart) - segmentLength/2.)/segmentLength position = int(position) chanNumber = str(position) chanNameSnr = ifoName + ':' + ligoName + '_SNRSQ_' + chanNumber print chanNameSnr chanNameChisq = ifoName + ':' + ligoName + '_CHISQ_' + chanNumber # now, read the data !! # The window width should be an input argument maybe ? duration = 2.0 startWindow = float(gpsTime) - duration/2. squareSnr_tuple = frgetvect.frgetvect(frameFile,chanNameSnr,startWindow,duration,0) print squareSnr_tuple[0] squareChisq_tuple = frgetvect.frgetvect(frameFile,chanNameChisq,startWindow,duration,0) # compute the snr vector snr_vector = sqrt(squareSnr_tuple[0]) print snr_vector snr_time = squareSnr_tuple[1] print snr_time # compute the r^2 rsq_vector = squareChisq_tuple[0] chisq_time = squareChisq_tuple[1] print rsq_vector # compute the normalized chisq chisqNorm_vector = rsq_vector/(1 + chisqDelta/chisqBins*squareSnr_tuple[0]) print chisqNorm_vector # Now plot the snr time serie !! figure(1) plot(snr_time - duration/2.,snr_vector) xlabel('time (s)',size='x-large') ylabel(r'$\rho$',size='x-large') grid(1) title(ifoName + ' trigger: ' + gpsTime) savefig(ifoName + '_' + str(int(float(gpsTime))) + '_snr.png') # Now plot the r^2 time serie !! figure(2) plot(chisq_time - duration/2.,rsq_vector) xlabel('time (s)',size='x-large') ylabel(r'$r^2$',size='x-large') grid(1) title(ifoName + ' trigger: ' + gpsTime) savefig(ifoName + '_' + str(int(float(gpsTime))) + '_rsq.png') # Now plot the normalized chisq time serie !! figure(3) plot(chisq_time - duration/2.,chisqNorm_vector) xlabel('time (s)',size='x-large') ylabel(r'$\chi^2 / (p + \delta^2\rho^2)$',size='x-large') grid(1) title(ifoName + ' trigger: ' + gpsTime) savefig(ifoName + '_' + str(int(float(gpsTime))) + '_chisq.png')
5500c5862e20bba832c1849255466b92ac551b52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/5500c5862e20bba832c1849255466b92ac551b52/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, 80, 17626, 461, 16, 343, 291, 85, 38, 2679, 16, 343, 291, 85, 9242, 16, 2844, 743, 4672, 225, 468, 9722, 6425, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 80, 17626, 461, 16, 343, 291, 85, 38, 2679, 16, 343, 291, 85, 9242, 16, 2844, 743, 4672, 225, 468, 9722, 6425, 1...
m = B.PDBModel( T.testRoot() + '/com/1BGS.pdb' ) x = Intervor( m, [0], debug=1, verbose=0, catch_err=1 ) x.run() pm = x.visualize( profile='so_min', xwat=[2], wat=[3] ) pm.run()
BT.localTest(debug=1)
def visualize( self, profile='so_min', wat=None, xwat=None ): """ Create a receptor / ligand / water view with a profile color-coded on it. @param profile: name of the profile to color-project ['so_min'] @type profile: str @param wat: chain ids of water molecules (default: None) These will end up as spheres in group 'water' @type wat: [ int ] @param xwat: chain ids of crystal water molecules (default: None) These will end up as spheres in group 'xwater' @type xwat: [ int ]
600a99d513b19994aab9fb8dd567b3ad90dc7ad1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/600a99d513b19994aab9fb8dd567b3ad90dc7ad1/Intervor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11623, 554, 12, 365, 16, 3042, 2218, 2048, 67, 1154, 2187, 341, 270, 33, 7036, 16, 619, 91, 270, 33, 7036, 262, 30, 3536, 1788, 279, 283, 6757, 342, 31388, 342, 16313, 1476, 598, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11623, 554, 12, 365, 16, 3042, 2218, 2048, 67, 1154, 2187, 341, 270, 33, 7036, 16, 619, 91, 270, 33, 7036, 262, 30, 3536, 1788, 279, 283, 6757, 342, 31388, 342, 16313, 1476, 598, 279, ...
def delTrove(self, name, version):
def delTrove(self, name, version, forUpdate = False):
def delTrove(self, name, version):
ebbc3d6eb81d8e07f56bc42485f3fd47386b41b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/ebbc3d6eb81d8e07f56bc42485f3fd47386b41b7/trovedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 56, 303, 537, 12, 2890, 16, 508, 16, 1177, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 56, 303, 537, 12, 2890, 16, 508, 16, 1177, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
p -- integer (default: 0); if nonzero, compute the p-new subspace.
p -- integer (default: 0); if nonzero, compute the $p$-new subspace.
def dimension_new_cusp_forms_H(G,k, p=0): """ Return the dimension of the space of new (or $p$-new) weight $k$ cusp forms for $G$. INPUT: G -- group of the form Gamma_H(N) k -- an integer at least 2 (the weight) p -- integer (default: 0); if nonzero, compute the p-new subspace. OUTPUT: Integer EXAMPLES: sage: from sage.modular.dims import * sage: dimension_new_cusp_forms_H(GammaH(33,[2]), 2) 3 """ N = G.level() if p==0 or N%p!=0: return sum([dimension_cusp_forms_H(H,k) * mumu(N // H.level()) \ for H in G.divisor_subgroups()]) else: return dimension_cusp_forms_H(G,k) - \ 2*dimension_new_cusp_forms_H(G.restrict(N//p),k)
c82112a889c87779a875085f7c30d0e045ec245d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c82112a889c87779a875085f7c30d0e045ec245d/dims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4968, 67, 2704, 67, 71, 407, 84, 67, 9741, 67, 44, 12, 43, 16, 79, 16, 293, 33, 20, 4672, 3536, 2000, 326, 4968, 434, 326, 3476, 434, 394, 261, 280, 271, 84, 8, 17, 2704, 13, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4968, 67, 2704, 67, 71, 407, 84, 67, 9741, 67, 44, 12, 43, 16, 79, 16, 293, 33, 20, 4672, 3536, 2000, 326, 4968, 434, 326, 3476, 434, 394, 261, 280, 271, 84, 8, 17, 2704, 13, 311...
def __unicode__(self): return self.value or ''
def __repr__(self): short = self._get_repr_value() return '<%s \'%s\' at 0x%07x>' % (self._get_repr_name(), short, id(self))
16b9b09222313e6cf45cd4daa313fd0f951f6a94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11268/16b9b09222313e6cf45cd4daa313fd0f951f6a94/sql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 3025, 273, 365, 6315, 588, 67, 12715, 67, 1132, 1435, 327, 2368, 9, 87, 15413, 87, 3730, 622, 374, 92, 9, 8642, 92, 1870, 738, 261, 2890, 6315, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12715, 972, 12, 2890, 4672, 3025, 273, 365, 6315, 588, 67, 12715, 67, 1132, 1435, 327, 2368, 9, 87, 15413, 87, 3730, 622, 374, 92, 9, 8642, 92, 1870, 738, 261, 2890, 6315, 588, ...
attributes = {}
sliver_attributes = [] attributes = []
def call(self, auth, node_filter = None):
3d5a85d267e89ad9412199fb93251958e2b9f837 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/3d5a85d267e89ad9412199fb93251958e2b9f837/GetSlivers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 756, 67, 2188, 273, 599, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 12, 2890, 16, 1357, 16, 756, 67, 2188, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
tz_offset1 = database.doSQL("select tz_offset from bottime "\ "where nick = '%s'" % qnick) if tz_offset1: self.Debug(tz_offset1) tz_offset = tz_offset1[0][0] elif not tz_is_valid: return "You have no timezone setting, "\ "current server time is: %s" % time.asctime()
tz_offset = database.doSQL("select tz_offset from bottime "\ "where nick = '%s'" % self.sqlEscape(qnick)) if tz_offset: tz_offset = tz_offset[0][0] tz_is_valid = True if not tz_is_valid: return "%s have no timezone setting, "\ "current server time is: %s" % (qnick, time.asctime())
def get_time(self, input, request_nick): """return the requested time string
b4584c763d1c30d99f2200f65f570aabe0a3e501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10749/b4584c763d1c30d99f2200f65f570aabe0a3e501/bottime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 957, 12, 2890, 16, 810, 16, 590, 67, 17091, 4672, 3536, 2463, 326, 3764, 813, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 957, 12, 2890, 16, 810, 16, 590, 67, 17091, 4672, 3536, 2463, 326, 3764, 813, 533, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
""" Used for pickling. We throw away all cached information. EXAMPLES:: sage: type(units.__getstate__()[0]) <type 'str'> sage: type(units.__getstate__()[1]) <type 'dict'> sage: loads(dumps(units)) == units True sage: loads(dumps(units.area)) == units.area True sage: bool(loads(dumps(units.area.acre)) == units.area.acre) True """ return (self.__name, self.__data)
""" Used for pickling. We throw away all cached information. EXAMPLES:: sage: type(units.__getstate__()[0]) <type 'str'> sage: type(units.__getstate__()[1]) <type 'dict'> sage: loads(dumps(units)) == units True sage: loads(dumps(units.area)) == units.area True sage: bool(loads(dumps(units.area.acre)) == units.area.acre) True """ return (self.__name, self.__data)
def __getstate__(self):
d9145e61c2e167a847618a21778e0e532a04af5d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d9145e61c2e167a847618a21778e0e532a04af5d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 2019, 972, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return None
raise Warning, "input to __patchFrameTypeDef__ included a \ gps time argument specified as None\n" return frametype
def __patchFrameTypeDef__(frametype=None,ifo=None,gpstime=None): """ Temporary patch function, to adjust specfied frame type used in searching the filesystem for files to display in followup. """ if frametype == None: return None if gpstime == None: return None if ifo == None: return None endOfS5=int(875232014) new=None if int(gpstime)<=endOfS5: if not frametype.lower().startswith(ifo.lower()): orig=frametype new=ifo+"_"+frametype return new
3e5232562c1f2bb3d38508d79878dd6063b06863 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/3e5232562c1f2bb3d38508d79878dd6063b06863/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2272, 3219, 559, 3262, 972, 12, 74, 1940, 5872, 33, 7036, 16, 20299, 33, 7036, 16, 6403, 334, 494, 33, 7036, 4672, 3536, 22791, 4729, 445, 16, 358, 5765, 857, 74, 2092, 2623, 618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2272, 3219, 559, 3262, 972, 12, 74, 1940, 5872, 33, 7036, 16, 20299, 33, 7036, 16, 6403, 334, 494, 33, 7036, 4672, 3536, 22791, 4729, 445, 16, 358, 5765, 857, 74, 2092, 2623, 618...
while (not gotSession) and (tryCount < retries): try: time.sleep(interval)
while tryCount < retries: try:
def internal_service_factory(self, communicator, user="root", group=None, retries=6, interval=10, client_uuid=None): """ Try to return a ServiceFactory from the grid. Try a number of times then give up and raise the last exception returned. This method will only work internally to the grid, i.e. behind the Glacier2 firewall. It is intended for internal servers to be able to create sessions for accessing the database. communicator := Ice.Communicator used to find the registry user := Username which should have a session created group := Group into which the session should be logged retries := Number of session creation retries before throwing interval := Seconds between retries client_uuid := Uuid of the client which should be used """ log = logging.getLogger("omero.utils") gotSession = False tryCount = 0 excpt = None query = communicator.stringToProxy("IceGrid/Query") query = IceGrid.QueryPrx.checkedCast(query) if client_uuid is None: client_uuid = str(uuid.uuid4()) while (not gotSession) and (tryCount < retries): try: time.sleep(interval) blitz = query.findAllObjectsByType("::Glacier2::SessionManager")[0] blitz = Glacier2.SessionManagerPrx.checkedCast(blitz) sf = blitz.create(user, None, {"omero.client.uuid":client_uuid}) # Group currently unused. sf = omero.api.ServiceFactoryPrx.checkedCast(sf) gotSession = True except Exception, e: tryCount += 1 log.info("Failed to get session on attempt %s", str(tryCount)) excpt = e if gotSession: return sf else: log.info("Reason: %s", str(excpt)) raise Exception
3d21ac5dbe1104b4cabef36f2e9a9730d15fae19 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/3d21ac5dbe1104b4cabef36f2e9a9730d15fae19/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2713, 67, 3278, 67, 6848, 12, 2890, 16, 8391, 8844, 16, 729, 1546, 3085, 3113, 1041, 33, 7036, 16, 9453, 33, 26, 16, 3673, 33, 2163, 16, 1004, 67, 7080, 33, 7036, 4672, 3536, 6161, 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, 2713, 67, 3278, 67, 6848, 12, 2890, 16, 8391, 8844, 16, 729, 1546, 3085, 3113, 1041, 33, 7036, 16, 9453, 33, 26, 16, 3673, 33, 2163, 16, 1004, 67, 7080, 33, 7036, 4672, 3536, 6161, 3...
res = eval(r'u"\N{%s}"' % name)
res = eval(r'"\N{%s}"' % name)
def checkletter(self, name, code): # Helper that put all \N escapes inside eval'd raw strings, # to make sure this script runs even if the compiler # chokes on \N escapes res = eval(r'u"\N{%s}"' % name) self.assertEqual(res, code) return res
bf4806bac5697bd50e6ca41fcf6838f93ed9a511 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/bf4806bac5697bd50e6ca41fcf6838f93ed9a511/test_ucn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 13449, 12, 2890, 16, 508, 16, 981, 4672, 468, 9705, 716, 1378, 777, 521, 50, 23802, 4832, 5302, 14271, 1831, 2064, 16, 468, 358, 1221, 3071, 333, 2728, 7597, 5456, 309, 326, 5274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 13449, 12, 2890, 16, 508, 16, 981, 4672, 468, 9705, 716, 1378, 777, 521, 50, 23802, 4832, 5302, 14271, 1831, 2064, 16, 468, 358, 1221, 3071, 333, 2728, 7597, 5456, 309, 326, 5274, ...
self.assert_(self._box._toc == {key0: os.path.join('new', key0)})
self.assertEqual(self._box._toc, {key0: os.path.join('new', key0)})
def test_lookup(self): # Look up message subpaths in the TOC self.assertRaises(KeyError, lambda: self._box._lookup('foo')) key0 = self._box.add(self._template % 0) self.assert_(self._box._lookup(key0) == os.path.join('new', key0)) os.remove(os.path.join(self._path, 'new', key0)) self.assert_(self._box._toc == {key0: os.path.join('new', key0)}) self.assertRaises(KeyError, lambda: self._box._lookup(key0)) self.assertEqual(self._box._toc, {})
9d1fae6c21b9661e8074aa8a166635ba69122b4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/9d1fae6c21b9661e8074aa8a166635ba69122b4b/test_mailbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8664, 12, 2890, 4672, 468, 10176, 731, 883, 720, 4481, 316, 326, 8493, 39, 365, 18, 11231, 12649, 6141, 12, 653, 668, 16, 3195, 30, 365, 6315, 2147, 6315, 8664, 2668, 11351, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8664, 12, 2890, 4672, 468, 10176, 731, 883, 720, 4481, 316, 326, 8493, 39, 365, 18, 11231, 12649, 6141, 12, 653, 668, 16, 3195, 30, 365, 6315, 2147, 6315, 8664, 2668, 11351, ...
elif o in ('--title'):
elif o in ('--title',):
def do_obj(self, argv):
67b8280e3e3a5fcdde21a536adf595f1d889e4da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/67b8280e3e3a5fcdde21a536adf595f1d889e4da/scons-time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2603, 12, 2890, 16, 5261, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2603, 12, 2890, 16, 5261, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.planning', context=c),
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'stock.planning', context=c),
def onchange_company(self, cr, uid, ids, company_id): result = {} if company_id: result['warehouse_id2'] = False return {'value': result}
6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 16840, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 9395, 67, 350, 4672, 563, 273, 2618, 309, 9395, 67, 350, 30, 563, 3292, 2726, 13028, 67, 350, 22, 3546, 273, 1083, 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, 603, 3427, 67, 16840, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 9395, 67, 350, 4672, 563, 273, 2618, 309, 9395, 67, 350, 30, 563, 3292, 2726, 13028, 67, 350, 22, 3546, 273, 1083, 3...
state.proxyPort = int(arg)
state.proxyPorts = [int(arg)]
def runProxy(): # Name the database in case it ever gets auto-flushed to disk. UserInterfaceListener(8881) BayesProxyListener('localhost', 8110, 8111) state.bayes.learn(tokenizer.tokenize(spam1), True) state.bayes.learn(tokenizer.tokenize(good1), False) proxyReady.set() asyncore.loop()
b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b4db8e8cff9ae2da9617fcf4ec43e2aa8aa06995/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 3886, 13332, 468, 1770, 326, 2063, 316, 648, 518, 14103, 5571, 3656, 17, 11330, 329, 358, 4234, 18, 21369, 2223, 12, 5482, 11861, 13, 605, 528, 281, 3886, 2223, 2668, 13014, 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, 1086, 3886, 13332, 468, 1770, 326, 2063, 316, 648, 518, 14103, 5571, 3656, 17, 11330, 329, 358, 4234, 18, 21369, 2223, 12, 5482, 11861, 13, 605, 528, 281, 3886, 2223, 2668, 13014, 2187, ...
for key, value in dict(*args, **kwargs).iteritems()
for key, value in d.iteritems()
def do_xmlattr(_environment, d, autospace=True): """Create an SGML/XML attribute string based on the items in a dict. All values that are neither `none` nor `undefined` are automatically escaped: .. sourcecode:: html+jinja <ul{{ {'class': 'my_list', 'missing': None, 'id': 'list-%d'|format(variable)}|xmlattr }}> ... </ul> Results in something like this: .. sourcecode:: html <ul class="my_list" id="list-42"> ... </ul> As you can see it automatically prepends a space in front of the item if the filter returned something unless the second parameter is false. """ rv = u' '.join( u'%s="%s"' % (escape(key), escape(value)) for key, value in dict(*args, **kwargs).iteritems() if value is not None and not isinstance(value, Undefined) ) if autospace and rv: rv = u' ' + rv if _environment.autoescape: rv = Markup(rv) return rv
8b085c350aa62e0ea860a3823d1688a0f6d49313 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14446/8b085c350aa62e0ea860a3823d1688a0f6d49313/filters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2902, 1747, 24899, 10274, 16, 302, 16, 13133, 909, 33, 5510, 4672, 3536, 1684, 392, 348, 43, 1495, 19, 4201, 1566, 533, 2511, 603, 326, 1516, 316, 279, 2065, 18, 4826, 924, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2902, 1747, 24899, 10274, 16, 302, 16, 13133, 909, 33, 5510, 4672, 3536, 1684, 392, 348, 43, 1495, 19, 4201, 1566, 533, 2511, 603, 326, 1516, 316, 279, 2065, 18, 4826, 924, 71...
if operation == OP_UPDATE and \ (pkg2 in self.pkg_updates or pkg2 in self.pkg_obsoletes):
fi = pkg2.getRpmFileInfo(filename) if pkg1.getNEVR() == pkg2.getNEVR() and \ buildarchtranslate[pkg1["arch"]] != \ buildarchtranslate[pkg2["arch"]] and \ pkg1["arch"] != "noarch" and \ pkg2["arch"] != "noarch" and \ pkg1_fi.filecolor != fi.filecolor and \ pkg1_fi.filecolor > 0 and fi.filecolor > 0:
def _hasFileConflict(self, pkg1, pkg2, filename, pkg1_fi, operation=OP_INSTALL): """RpmPackage's pkg1 and pkg2 share filename.
efef11aae58f2bceb029f0b6812cd5e55e5f40ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/efef11aae58f2bceb029f0b6812cd5e55e5f40ff/resolver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5332, 812, 10732, 12, 2890, 16, 3475, 21, 16, 3475, 22, 16, 1544, 16, 3475, 21, 67, 22056, 16, 1674, 33, 3665, 67, 28865, 4672, 3536, 54, 7755, 2261, 1807, 3475, 21, 471, 3475, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5332, 812, 10732, 12, 2890, 16, 3475, 21, 16, 3475, 22, 16, 1544, 16, 3475, 21, 67, 22056, 16, 1674, 33, 3665, 67, 28865, 4672, 3536, 54, 7755, 2261, 1807, 3475, 21, 471, 3475, ...
self.Cost_5,
def initialize(self):
9b9b7c34569ffc477a96095d7c898b6c89cfacf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/9b9b7c34569ffc477a96095d7c898b6c89cfacf3/ScWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 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, 4046, 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, -...
ph += ', '+par.sqltype+' '+par.name
ph += ', ' + par.name
def CreateHyperlinkedSourceFilePages(): """ Generates pages with the complete source code of each file, including link targets (A NAME=) for each line. This way we can link directly to the line starting the definition of an object, or where it is called (used) from. Very basic syntax highlighting is performed here as well if code is included. """ printProgress("Creating hyperlinked source file pages") fileInfoList = metaInfo.fileInfoList html_dir = metaInfo.htmlDir top_level_directory = metaInfo.topLevelDirectory sqlkeywords = [] sqltypes = [] for line in fileinput.input(os.path.split(sys.argv[0])[0] + os.sep + 'sql.keywords'): if line.strip()[0]=='#': continue sqlkeywords.append(line.strip()) for line in fileinput.input(os.path.split(sys.argv[0])[0] + os.sep + 'sql.types'): if line.strip()[0]=='#': continue sqltypes.append(line.strip()) dot_count = 1 for file_info in fileInfoList: # skip all non-sql files if file_info.fileType != "sql": continue # print a . every file dotProgress(dot_count) dot_count += 1 # read up the source file infile = open(file_info.fileName, "r") infile_line_list = infile.readlines() infile.close() # generate a file name for us to write to (+1 for delimiter) outfilename = os.path.split(file_info.fileName)[1].replace(".", "_") outfilename += "_" + `file_info.uniqueNumber` + ".html" outfile = open(html_dir + outfilename, "w") outfile.write(MakeHTMLHeader(file_info.fileName[len(top_level_directory)+1:])) outfile.write("<H1>" + file_info.fileName[len(top_level_directory)+1:] + "</H1>\n") # ===[ JAVADOC STARTS HERE ]=== # Do we have views in this file? viewdetails = '\n\n' #if len(file_info.viewInfoList) > 0: #print 'We have views here' # Do we have to introduce JavaDoc here as well? # *!* # Do we have packages in this file? packagedetails = '\n\n' if len(file_info.packageInfoList) > 0: outfile.write('<H2 CLASS="api">Package Overview</H2>\n') outfile.write('<TABLE CLASS="apilist">\n') for p in range(len(file_info.packageInfoList)): jdoc = file_info.packageInfoList[p].javadoc outfile.write(' <TR><TH COLSPAN="2">' + file_info.packageInfoList[p].name + '</TH></TR>\n') outfile.write(' <TR><TD COLSPAN="2">') outfile.write( jdoc.getHtml(0) ) outfile.write('</TD></TR>\n') # Check the packages for functions if len(file_info.packageInfoList[p].functionInfoList) > 0: packagedetails += '<A NAME="funcs"></A><H2>Functions</H2>\n'; outfile.write(' <TR><TH CLASS="sub" COLSPAN="2">Functions</TH></TR>\n') for item in file_info.packageInfoList[p].functionInfoList: if not item.javadoc.isDefault(): if item.javadoc.private: iname = 'private ' else: iname = 'public ' else: iname = '' if item.javadoc.name != '': iname += '<A HREF="#'+item.javadoc.name+'_'+str(item.uniqueNumber)+'">'+item.javadoc.name+'</A>' idesc = item.javadoc.getShortDesc() else: iname += item.name idesc = '' outfile.write(' <TR><TD><DIV STYLE="margin-left:15px;text-indent:-15px;">'+iname) if metaInfo.includeSource: outfile.write(' <SUP><A HREF="#'+str(item.lineNumber)+'">#</A></SUP>') outfile.write(' (') if len(item.javadoc.params) > 0: ph = '' for par in item.javadoc.params: ph += ', '+par.sqltype+' '+par.name outfile.write(ph[2:]) outfile.write(')</DIV></TD><TD>'+idesc+'</TD></TR>\n') packagedetails += item.javadoc.getHtml(item.uniqueNumber) # Check the packages for procedures if len(file_info.packageInfoList[p].procedureInfoList) > 0: packagedetails += '<A NAME="procs"></A><H2>Procedures</H2>\n'; outfile.write(' <TR><TH CLASS="sub" COLSPAN="2">Procedures</TH></TR>\n') for item in file_info.packageInfoList[p].procedureInfoList: iname = item.javadoc.getVisibility() if item.javadoc.name != '': iname += '<A HREF="#'+item.javadoc.name+'_'+str(item.uniqueNumber)+'">'+item.javadoc.name+'</A>' idesc = item.javadoc.getShortDesc() else: iname += item.name idesc = '' outfile.write(' <TR><TD><DIV STYLE="margin-left:15px;text-indent:-15px;">'+iname) if metaInfo.includeSource: outfile.write(' <SUP><A HREF="#'+str(item.lineNumber)+'">#</A></SUP>') outfile.write(' (') if len(item.javadoc.params) > 0: ph = '' for par in item.javadoc.params: ph += ', '+par.sqltype+' '+par.name outfile.write(ph[2:]) outfile.write(')</DIV></TD><TD>'+idesc+'</TD></TR>\n') packagedetails += item.javadoc.getHtml(item.uniqueNumber) outfile.write('</TABLE>\n\n') outfile.write(viewdetails) outfile.write(packagedetails) # ===[ JAVADOC END ]=== # include the source itself if metaInfo.includeSource: outfile.write('\n<H2>Source</H2>\n') outfile.write('<code><pre>') outfile.write( hypercode(infile_line_list, sqlkeywords, sqltypes) ) outfile.write("</pre></code>\n") outfile.write('<DIV CLASS="toppagelink"><A HREF="#topOfPage">^ Top</A></DIV><BR>\n') outfile.write(MakeHTMLFooter(file_info.fileName[len(top_level_directory)+1:])) outfile.close() # print carriage return after last dot dotFlush()
6b7f5d84e8b5afd2cbe4c2f86930cd5e251c2eaa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5976/6b7f5d84e8b5afd2cbe4c2f86930cd5e251c2eaa/HyperSQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 15996, 17738, 31150, 5716, 13332, 3536, 31902, 4689, 598, 326, 3912, 1084, 981, 434, 1517, 585, 16, 6508, 1692, 5774, 261, 37, 6048, 33, 13, 364, 1517, 980, 18, 1220, 4031, 732, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 15996, 17738, 31150, 5716, 13332, 3536, 31902, 4689, 598, 326, 3912, 1084, 981, 434, 1517, 585, 16, 6508, 1692, 5774, 261, 37, 6048, 33, 13, 364, 1517, 980, 18, 1220, 4031, 732, 84...
req.args['path'] = match.group(2)
req.args['path'] = match.group(2).replace(':', '/')
def match_request(self, req): match = re.match(r'^/attachment/(ticket|wiki)(?:/(.*))?$', req.path_info) if match: req.args['type'] = match.group(1) req.args['path'] = match.group(2) return 1
1ce7c0e71e112e806f4306aa8c7c8a668545da43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/1ce7c0e71e112e806f4306aa8c7c8a668545da43/attachment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 67, 2293, 12, 2890, 16, 1111, 4672, 845, 273, 283, 18, 1916, 12, 86, 19856, 19, 11461, 19, 12, 16282, 96, 13044, 13, 6503, 19, 7444, 24783, 8, 2187, 1111, 18, 803, 67, 1376, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 845, 67, 2293, 12, 2890, 16, 1111, 4672, 845, 273, 283, 18, 1916, 12, 86, 19856, 19, 11461, 19, 12, 16282, 96, 13044, 13, 6503, 19, 7444, 24783, 8, 2187, 1111, 18, 803, 67, 1376, 13,...
self.pbase = doc.src_base
def __init__ (self, doc, source, target, transcript): """ Initialize the index, by specifying the source file (generated by LaTeX), the target file (the output of makeindex) and the transcript (e.g. .ilg) file. Transcript is used by glosstex.py. """ self.doc = doc self.pbase = doc.src_base self.source = doc.src_base + "." + source self.target = doc.src_base + "." + target self.transcript = doc.src_base + "." + transcript if os.path.exists(self.source): self.md5 = md5_file(self.source) else: self.md5 = None
83e15aff8f37055b316114051eb562a884eee441 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/83e15aff8f37055b316114051eb562a884eee441/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 997, 16, 1084, 16, 1018, 16, 15194, 4672, 3536, 9190, 326, 770, 16, 635, 13664, 326, 1084, 585, 261, 11168, 635, 21072, 21575, 60, 3631, 326, 1018, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 2890, 16, 997, 16, 1084, 16, 1018, 16, 15194, 4672, 3536, 9190, 326, 770, 16, 635, 13664, 326, 1084, 585, 261, 11168, 635, 21072, 21575, 60, 3631, 326, 1018, 585, ...
self.basector.set('\n\n%s%s.__init__(self,pname=name, aname="%%s" %% name, **kw)' % (ID3,tpc))
self.basector.set('\n\n%s%s.__init__(self,pname=name, aname="%s" %% name, **kw)' % (ID3,tpc,self.aname_func("%s")))
self.initdef.set('\n\n%sdef __init__(self, name=None, ns=None, **kw):' \ % ID2)
f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/f062f4cd5d2c50539a63020b5dfd9d6370b8a9a7/wsdl2python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 2738, 536, 18, 542, 2668, 64, 82, 64, 82, 9, 87, 536, 1001, 2738, 972, 12, 2890, 16, 508, 33, 7036, 16, 3153, 33, 7036, 16, 2826, 9987, 13, 2497, 521, 738, 1599, 22, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 365, 18, 2738, 536, 18, 542, 2668, 64, 82, 64, 82, 9, 87, 536, 1001, 2738, 972, 12, 2890, 16, 508, 33, 7036, 16, 3153, 33, 7036, 16, 2826, 9987, 13, 2497, 521, 738, 1599, 22, 13, 2, -1...
t0 = time.time()
def write_sourcecode(self, out, doc, name_to_docs): t0 = time.time() filename = doc.filename name = str(doc.canonical_name) # Header self.write_header(out, name) self.write_navbar(out, doc) self.write_breadcrumbs(out, doc, self.pysrc_url(doc))
cb605e2f15ea3ea524e831c0c4175f23a8a00731 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cb605e2f15ea3ea524e831c0c4175f23a8a00731/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 3168, 710, 12, 2890, 16, 596, 16, 997, 16, 508, 67, 869, 67, 8532, 4672, 282, 1544, 273, 997, 18, 3459, 508, 273, 609, 12, 2434, 18, 18288, 67, 529, 13, 225, 468, 4304, 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, 1045, 67, 3168, 710, 12, 2890, 16, 596, 16, 997, 16, 508, 67, 869, 67, 8532, 4672, 282, 1544, 273, 997, 18, 3459, 508, 273, 609, 12, 2434, 18, 18288, 67, 529, 13, 225, 468, 4304, 3...
self.write_file(c_file, 'void init_foo(void) {};\n')
self.write_file(c_file, 'void initfoo(void) {};\n')
def test_get_outputs(self): tmp_dir = self.mkdtemp() c_file = os.path.join(tmp_dir, 'foo.c') self.write_file(c_file, 'void init_foo(void) {};\n') ext = Extension('foo', [c_file], optional=False) dist = Distribution({'name': 'xx', 'ext_modules': [ext]}) cmd = build_ext(dist) cmd.ensure_finalized() self.assertEquals(len(cmd.get_outputs()), 1)
62c56c206d96dcbb252cf01b5e378d19886655b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/62c56c206d96dcbb252cf01b5e378d19886655b3/test_build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 12295, 12, 2890, 4672, 1853, 67, 1214, 273, 365, 18, 24816, 72, 5814, 1435, 276, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 5645, 67, 1214, 16, 296, 11351, 18, 71,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 12295, 12, 2890, 4672, 1853, 67, 1214, 273, 365, 18, 24816, 72, 5814, 1435, 276, 67, 768, 273, 1140, 18, 803, 18, 5701, 12, 5645, 67, 1214, 16, 296, 11351, 18, 71,...
self.button_press(widget, event)
if self.button_press(widget, event): return True
def streams_button_press(self, widget, event): self.button_press(widget, event)
948c569be2d2e6bdaff07b41c989446a5e274f47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/948c569be2d2e6bdaff07b41c989446a5e274f47/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8205, 67, 5391, 67, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 365, 18, 5391, 67, 1028, 12, 6587, 16, 871, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8205, 67, 5391, 67, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 365, 18, 5391, 67, 1028, 12, 6587, 16, 871, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
('Object|list|List|Map|args|Sequence|Coroutine|File', Name.Builtin),
('(Object|list|List|Map|args|Sequence|Coroutine|File)\b', Name.Builtin),
def get_tokens_unprocessed(self, text): for index, token, value in \ RegexLexer.get_tokens_unprocessed(self, text): if token is Name: if value in self._functions: yield index, Name.Builtin, value continue elif '.' in value: a, b = value.split('.') yield index, Name, a yield index + len(a), Punctuation, u'.' yield index + len(a) + 1, Name, b continue yield index, token, value
b6aaea5d8fe2c82efa385284dda7c08210ef77e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2885/b6aaea5d8fe2c82efa385284dda7c08210ef77e9/agile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 364, 770, 16, 1147, 16, 460, 316, 521, 15078, 13356, 18, 588, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 309, 1147, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 364, 770, 16, 1147, 16, 460, 316, 521, 15078, 13356, 18, 588, 67, 7860, 67, 318, 11005, 12, 2890, 16, 977, 4672, 309, 1147, 35...
os.system('asq -doc "%s"'%s)
e = os.system('asq -doc "%s"'%s) if e: print "Help system not available."
def example(self, s): if sage.server.support.EMBEDDED_MODE: os.system('asq -doc "%s" < /dev/null'%s) else: os.system('asq -doc "%s"'%s)
0024e3d6e2e182d4eb67b1e9bb08b4eb9dbe85bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0024e3d6e2e182d4eb67b1e9bb08b4eb9dbe85bb/axiom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3454, 12, 2890, 16, 272, 4672, 309, 272, 410, 18, 3567, 18, 13261, 18, 3375, 22235, 7660, 67, 7038, 30, 1140, 18, 4299, 2668, 345, 85, 300, 2434, 2213, 87, 6, 411, 342, 5206, 19, 201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3454, 12, 2890, 16, 272, 4672, 309, 272, 410, 18, 3567, 18, 13261, 18, 3375, 22235, 7660, 67, 7038, 30, 1140, 18, 4299, 2668, 345, 85, 300, 2434, 2213, 87, 6, 411, 342, 5206, 19, 201...
"De-compression requires the (missing) zlib module"
"De-compression requires the (missing) zlib module"
def read(self, name): "Return file bytes (as a string) for name" if self.mode not in ("r", "a"): raise RuntimeError, 'read() requires mode "r" or "a"' if not self.fp: raise RuntimeError, \ "Attempt to read ZIP archive that was already closed" zinfo = self.getinfo(name) filepos = self.fp.tell() self.fp.seek(zinfo.file_offset, 0) bytes = self.fp.read(zinfo.compress_size) self.fp.seek(filepos, 0) if zinfo.compress_type == ZIP_STORED: pass elif zinfo.compress_type == ZIP_DEFLATED: if not zlib: raise RuntimeError, \ "De-compression requires the (missing) zlib module" # zlib compress/decompress code by Jeremy Hylton of CNRI dc = zlib.decompressobj(-15) bytes = dc.decompress(bytes) # need to feed in unused pad byte so that zlib won't choke ex = dc.decompress('Z') + dc.flush() if ex: bytes = bytes + ex else: raise BadZipfile, \ "Unsupported compression method %d for file %s" % \ (zinfo.compress_type, name) crc = binascii.crc32(bytes) if crc != zinfo.CRC: raise BadZipfile, "Bad CRC-32 for file %s" % name return bytes
22171cafae2345fe7bc544232932e6979cc26f17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/22171cafae2345fe7bc544232932e6979cc26f17/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 508, 4672, 315, 990, 585, 1731, 261, 345, 279, 533, 13, 364, 508, 6, 309, 365, 18, 3188, 486, 316, 7566, 86, 3113, 315, 69, 6, 4672, 1002, 7265, 16, 296, 896, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 508, 4672, 315, 990, 585, 1731, 261, 345, 279, 533, 13, 364, 508, 6, 309, 365, 18, 3188, 486, 316, 7566, 86, 3113, 315, 69, 6, 4672, 1002, 7265, 16, 296, 896, 14...
(milestone.encode('utf-8')))
(milestone.encode('utf-8'),))
def setMilestoneList(self, m, key): """Remove all milestones, set them to `m`""" self.assertNoTickets() c = self.db().cursor() c.execute("DELETE FROM milestone") for ms in m: milestone = ms[key] print " inserting milestone '%s'" % (milestone) c.execute("INSERT INTO milestone (name) VALUES (%s)", (milestone.encode('utf-8'))) self.db().commit()
a2f7e3cad12eaefaeb90c1c79ec0c2afb2d9063a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/a2f7e3cad12eaefaeb90c1c79ec0c2afb2d9063a/bugzilla2trac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15430, 18270, 682, 12, 2890, 16, 312, 16, 498, 4672, 3536, 3288, 777, 312, 14849, 5322, 16, 444, 2182, 358, 1375, 81, 68, 8395, 365, 18, 11231, 2279, 6264, 2413, 1435, 225, 276, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15430, 18270, 682, 12, 2890, 16, 312, 16, 498, 4672, 3536, 3288, 777, 312, 14849, 5322, 16, 444, 2182, 358, 1375, 81, 68, 8395, 365, 18, 11231, 2279, 6264, 2413, 1435, 225, 276, 273, 3...
for item in self.list: if item.name == key: return True return False
return any(item.name == key for item in self.list)
def __contains__(self, key): """Dictionary style __contains__ method.""" if self.list is None: raise TypeError, "not indexable" for item in self.list: if item.name == key: return True return False
61088280799041cf1abdd526255d9a2c61b3dafb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/61088280799041cf1abdd526255d9a2c61b3dafb/cgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 498, 4672, 3536, 10905, 2154, 1001, 12298, 972, 707, 12123, 309, 365, 18, 1098, 353, 599, 30, 1002, 3580, 16, 315, 902, 770, 429, 6, 364, 761, 316, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12298, 972, 12, 2890, 16, 498, 4672, 3536, 10905, 2154, 1001, 12298, 972, 707, 12123, 309, 365, 18, 1098, 353, 599, 30, 1002, 3580, 16, 315, 902, 770, 429, 6, 364, 761, 316, 365,...
return "%i-%02i-01 00:00:00" % (dt.year, dt.month)
return "%i-%02i-01 00:00:00" % (date.year, date.month)
def date_trunc(_type, date): if _type == 'second': return date try: date = mx.DateTime.strptime(date, '%Y-%m-%d %H:%M:%S') except: return None if _type == 'year': return "%i-01-01 00:00:00" % dt.year elif _type == 'month': return "%i-%02i-01 00:00:00" % (dt.year, dt.month) elif _type == 'day': return "%i-%02i-%02i 00:00:00" % (dt.year, dt.month, dt.day)
b557f2b913375e34db813504994392fa7b97f509 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/b557f2b913375e34db813504994392fa7b97f509/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 67, 23558, 24899, 723, 16, 1509, 4672, 309, 389, 723, 422, 296, 8538, 4278, 327, 1509, 775, 30, 1509, 273, 7938, 18, 5096, 18, 701, 10650, 12, 712, 16, 1995, 61, 6456, 81, 6456, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1509, 67, 23558, 24899, 723, 16, 1509, 4672, 309, 389, 723, 422, 296, 8538, 4278, 327, 1509, 775, 30, 1509, 273, 7938, 18, 5096, 18, 701, 10650, 12, 712, 16, 1995, 61, 6456, 81, 6456, ...
elif user.posts.count() >= forum_settings.FORUM_STAR_0_HALF:
elif posts >= forum_settings.FORUM_STAR_0_HALF:
def forum_stars(user): if user.posts.count() >= forum_settings.FORUM_STAR_5: return mark_safe('<img src="%sforum/img/stars/Star_5.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_4_HALF: return mark_safe('<img src="%sforum/img/stars/Star_4_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_4: return mark_safe('<img src="%sforum/img/stars/Star_4.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_3_HALF: return mark_safe('<img src="%sforum/img/stars/Star_3_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_3: return mark_safe('<img src="%sforum/img/stars/Star_3.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_2_HALF: return mark_safe('<img src="%sforum/img/stars/Star_2_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_2: return mark_safe('<img src="%sforum/img/stars/Star_2.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_1_HALF: return mark_safe('<img src="%sforum/img/stars/Star_1_Half.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_1: return mark_safe('<img src="%sforum/img/stars/Star_1.gif" alt="" >' % (settings.MEDIA_URL)) elif user.posts.count() >= forum_settings.FORUM_STAR_0_HALF: return mark_safe('<img src="%sforum/img/stars/Star_0_Half.gif" alt="" >' % (settings.MEDIA_URL)) else: return mark_safe('<img src="%sforum/img/stars/Star_0.gif" alt="" >' % (settings.MEDIA_URL))
3b86f217ff6e6ad464cca6ec2419884f35c2355f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/3b86f217ff6e6ad464cca6ec2419884f35c2355f/forum_extras.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11283, 67, 334, 5913, 12, 1355, 4672, 309, 729, 18, 11660, 18, 1883, 1435, 1545, 11283, 67, 4272, 18, 7473, 2799, 67, 20943, 67, 25, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 1161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11283, 67, 334, 5913, 12, 1355, 4672, 309, 729, 18, 11660, 18, 1883, 1435, 1545, 11283, 67, 4272, 18, 7473, 2799, 67, 20943, 67, 25, 30, 327, 2267, 67, 4626, 2668, 32, 6081, 1705, 1161...
print ">", self.section_level
def visit_section(self, node): self.section_level += 1 print ">", self.section_level
5b088a1f4b8ffea86b98a70d67077426700acda3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11821/5b088a1f4b8ffea86b98a70d67077426700acda3/manpage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 3464, 12, 2890, 16, 756, 4672, 365, 18, 3464, 67, 2815, 1011, 404, 1172, 14675, 16, 365, 18, 3464, 67, 2815, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 3464, 12, 2890, 16, 756, 4672, 365, 18, 3464, 67, 2815, 1011, 404, 1172, 14675, 16, 365, 18, 3464, 67, 2815, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
exec code
try: exec code except "CacheNeedsUpdate": raise Exception("CacheNeedsUpdate")
def execute(self, request, parser, code): """ Write page content by executing cache code """ formatter = self.formatter from MoinMoin.macro import Macro macro_obj = Macro(parser) # Fix __file__ when running from a zip package import MoinMoin if hasattr(MoinMoin, '__loader__'): __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy') exec code
bba001c094ed67078bbd647db8cc2a66fc3d55f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/bba001c094ed67078bbd647db8cc2a66fc3d55f3/Page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 590, 16, 2082, 16, 981, 4672, 3536, 2598, 1363, 913, 635, 11274, 1247, 981, 3536, 4453, 273, 365, 18, 12354, 628, 490, 885, 49, 885, 18, 26448, 1930, 31203, 11522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 590, 16, 2082, 16, 981, 4672, 3536, 2598, 1363, 913, 635, 11274, 1247, 981, 3536, 4453, 273, 365, 18, 12354, 628, 490, 885, 49, 885, 18, 26448, 1930, 31203, 11522, ...
msg.warn(_("dependency '%s' not found") % arg, **pos)
msg.warn(_("dependency '%s' not found") % arg, **self.vars)
def do_depend (self, *args): for arg in args: file = self.env.find_file(arg) if file: self.sources[file] = DependLeaf(self.env, file) else: msg.warn(_("dependency '%s' not found") % arg, **pos)
e4864d9634be4f6abd17ad90a93368930cf7802f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/e4864d9634be4f6abd17ad90a93368930cf7802f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5817, 261, 2890, 16, 380, 1968, 4672, 364, 1501, 316, 833, 30, 585, 273, 365, 18, 3074, 18, 4720, 67, 768, 12, 3175, 13, 309, 585, 30, 365, 18, 10141, 63, 768, 65, 273, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 5817, 261, 2890, 16, 380, 1968, 4672, 364, 1501, 316, 833, 30, 585, 273, 365, 18, 3074, 18, 4720, 67, 768, 12, 3175, 13, 309, 585, 30, 365, 18, 10141, 63, 768, 65, 273, 10...
print "Error running pyrexc." sys.exit(ret)
print "sage: Error running pyrexc." sys.exit(1)
def process_pyrex_file(f, m): # This is a pyrex file, so process accordingly. g = os.path.splitext(f)[0] pyx_inst_file = '%s/%s'%(SITE_PACKAGES, f) if need_to_create(f, pyx_inst_file): print "%s --> %s"%(f, pyx_inst_file) os.system('cp %s %s 2>/dev/null'%(f, pyx_inst_file)) out_file = f[:-4] + ".c" if m.language == 'c++': out_file += 'pp' if need_to_create(f, out_file) or need_to_create(g + '.pxd', out_file): cmd = "pyrexc -I%s %s"%(os.getcwd(),f) print cmd ret = os.system(cmd) if ret != 0: print "Error running pyrexc." sys.exit(ret) # If the language for the extension is C++, # then move the resulting output file to have the correct extension. # (I don't know how to tell Pyrex to do this automatically.) if m.language == 'c++': os.system('mv %s.c %s'%(f[:-4], out_file)) return [out_file]
7f11d4cc501b77bb872b17a06cddc05b4f06163d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/7f11d4cc501b77bb872b17a06cddc05b4f06163d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2074, 266, 92, 67, 768, 12, 74, 16, 312, 4672, 468, 1220, 353, 279, 2395, 266, 92, 585, 16, 1427, 1207, 15905, 18, 314, 273, 1140, 18, 803, 18, 4939, 408, 12, 74, 25146, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2074, 266, 92, 67, 768, 12, 74, 16, 312, 4672, 468, 1220, 353, 279, 2395, 266, 92, 585, 16, 1427, 1207, 15905, 18, 314, 273, 1140, 18, 803, 18, 4939, 408, 12, 74, 25146, ...
parts = parts[1:]
parts = parts[1:]
def loadTestsFromName(self, name, module=None): """Return a suite of all tests cases given a string specifier.
1b3c04b510c875fd3e31d13b73e76d3702bf99a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1b3c04b510c875fd3e31d13b73e76d3702bf99a0/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 14650, 29732, 12, 2890, 16, 508, 16, 1605, 33, 7036, 4672, 3536, 990, 279, 11371, 434, 777, 7434, 6088, 864, 279, 533, 24562, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 14650, 29732, 12, 2890, 16, 508, 16, 1605, 33, 7036, 4672, 3536, 990, 279, 11371, 434, 777, 7434, 6088, 864, 279, 533, 24562, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
s = idaapi.get_struc(id)
s = idaapi.get_struc(sid)
def DelStrucMember(id, member_offset): """ Delete structure member @param id: structure type ID @param member_offset: offset of the member @return: != 0 - ok. @note: IDA allows 'holes' between members of a structure. It treats these 'holes' as unnamed arrays of bytes. """ s = idaapi.get_struc(id) if not s: return 0 return idaapi.del_struc_member(s, member_offset)
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 1585, 5286, 4419, 12, 350, 16, 3140, 67, 3348, 4672, 3536, 2504, 3695, 3140, 225, 632, 891, 612, 30, 3695, 618, 1599, 632, 891, 3140, 67, 3348, 30, 1384, 434, 326, 3140, 225, 632...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6603, 1585, 5286, 4419, 12, 350, 16, 3140, 67, 3348, 4672, 3536, 2504, 3695, 3140, 225, 632, 891, 612, 30, 3695, 618, 1599, 632, 891, 3140, 67, 3348, 30, 1384, 434, 326, 3140, 225, 632...
print "Can't test select easily"
print "Can't test select easily on", sys.platform
def test(): import sys if sys.platform in ('win', 'mac'): if verbose: print "Can't test select easily" return cmd = 'for i in 0 1 2 3 4 5 6 7 8 9; do echo testing...; sleep 1; done' p = os.popen(cmd, 'r') for tout in (0, 1, 2, 4, 8, 16) + (None,)*10: if verbose: print 'timeout =', tout rfd, wfd, xfd = select.select([p], [], [], tout)
4a0694d23578559cefb49c92ba4107e9997e93ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4a0694d23578559cefb49c92ba4107e9997e93ca/test_select.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1930, 2589, 309, 2589, 18, 9898, 316, 7707, 8082, 2187, 296, 5821, 11, 4672, 309, 3988, 30, 1172, 315, 2568, 1404, 1842, 2027, 17997, 603, 3113, 2589, 18, 9898, 327, 1797, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 1930, 2589, 309, 2589, 18, 9898, 316, 7707, 8082, 2187, 296, 5821, 11, 4672, 309, 3988, 30, 1172, 315, 2568, 1404, 1842, 2027, 17997, 603, 3113, 2589, 18, 9898, 327, 1797, 2...
except:
except NotImplementedError:
def script_reportCurrentLine(self,keyPress): obj=api.getFocusObject() virtualBuffer=obj.virtualBuffer if hasattr(virtualBuffer,'TextInfo') and not virtualBuffer.passThrough: obj=virtualBuffer try: info=obj.makeTextInfo(textHandler.POSITION_CARET) except: info=obj.makeTextInfo(textHandler.POSITION_FIRST) info.expand(textHandler.UNIT_LINE) if scriptHandler.getLastScriptRepeatCount()==0: speech.speakTextInfo(info,reason=speech.REASON_CARET) else: speech.speakSpelling(info.text)
786b53788eb5a108404f4ba26da4bd3656f8fa15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/786b53788eb5a108404f4ba26da4bd3656f8fa15/_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 6006, 3935, 1670, 12, 2890, 16, 856, 11840, 4672, 1081, 33, 2425, 18, 588, 9233, 921, 1435, 5024, 1892, 33, 2603, 18, 12384, 1892, 309, 3859, 12, 12384, 1892, 11189, 1528, 966,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 6006, 3935, 1670, 12, 2890, 16, 856, 11840, 4672, 1081, 33, 2425, 18, 588, 9233, 921, 1435, 5024, 1892, 33, 2603, 18, 12384, 1892, 309, 3859, 12, 12384, 1892, 11189, 1528, 966,...
def callback (*args):
def callback (window, *args):
def callback (*args): window.disconnect(handle_id) loadPosition(window) window.set_size_request(-1, -1)
1d20bf18140fe711d86a7ff894e729aa5b586980 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/1d20bf18140fe711d86a7ff894e729aa5b586980/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1348, 261, 5668, 16, 380, 1968, 4672, 2742, 18, 20177, 12, 4110, 67, 350, 13, 1262, 2555, 12, 5668, 13, 2742, 18, 542, 67, 1467, 67, 2293, 19236, 21, 16, 300, 21, 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, 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, 1348, 261, 5668, 16, 380, 1968, 4672, 2742, 18, 20177, 12, 4110, 67, 350, 13, 1262, 2555, 12, 5668, 13, 2742, 18, 542, 67, 1467, 67, 2293, 19236, 21, 16, 300, 21, 13, 2, -100, -100, ...
if os.path.isfile(terp_file) or zipfile.is_zipfile(mod_path):
if os.path.isfile(terp_file) or zipfile.is_zipfile(mod_path+'.zip'):
def create_graph(module_list, force=None): if not force: force=[] graph = Graph() packages = [] for module in module_list: if module[-4:]=='.zip': module = module[:-4] try: mod_path = get_module_path(module) if not mod_path: continue except IOError: continue terp_file = get_module_resource(module, '__terp__.py') if not terp_file: continue if os.path.isfile(terp_file) or zipfile.is_zipfile(mod_path): try: info = eval(tools.file_open(terp_file).read()) except: logger.notifyChannel('init', netsvc.LOG_ERROR, 'addon:%s:eval file %s' % (module, terp_file)) raise if info.get('installable', True): packages.append((module, info.get('depends', []), info)) current,later = Set([p for p, dep, data in packages]), Set() while packages and current > later: package, deps, datas = packages[0] # if all dependencies of 'package' are already in the graph, add 'package' in the graph if reduce(lambda x,y: x and y in graph, deps, True): if not package in current: packages.pop(0) continue later.clear() current.remove(package) graph.addNode(package, deps) node = Node(package, graph) node.datas = datas for kind in ('init', 'demo', 'update'): if package in tools.config[kind] or 'all' in tools.config[kind] or kind in force: setattr(node, kind, True) else: later.add(package) packages.append((package, deps, datas)) packages.pop(0) for package in later: logger.notifyChannel('init', netsvc.LOG_ERROR, 'addon:%s:Unmet dependency' % package) return graph
808d552be8360d02485572b2543f757a32980f23 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/808d552be8360d02485572b2543f757a32980f23/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4660, 12, 2978, 67, 1098, 16, 2944, 33, 7036, 4672, 309, 486, 2944, 30, 2944, 33, 8526, 2667, 273, 5601, 1435, 5907, 273, 5378, 225, 364, 1605, 316, 1605, 67, 1098, 30, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4660, 12, 2978, 67, 1098, 16, 2944, 33, 7036, 4672, 309, 486, 2944, 30, 2944, 33, 8526, 2667, 273, 5601, 1435, 5907, 273, 5378, 225, 364, 1605, 316, 1605, 67, 1098, 30, 309, ...
if s[turtle:turtle+len(macro_name)+1] == "\\"+macro_name :
if s[turtle:turtle+len(macro_name)] == macro_name :
def NextMacroCandidate(s,macro_name): turtle = 0 while turtle < len(s): if s[turtle:turtle+len(macro_name)+1] == "\\"+macro_name : return True,turtle if s[turtle]=="%": a=s[turtle:] pos = a.find("\n") if pos == -1: return False,-1 turtle = turtle+pos turtle=turtle+1
c9d7fa43b31ce3e98a6588012e23c4225758db6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5109/c9d7fa43b31ce3e98a6588012e23c4225758db6f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4804, 17392, 11910, 12, 87, 16, 26448, 67, 529, 4672, 268, 295, 5929, 273, 374, 1323, 268, 295, 5929, 411, 562, 12, 87, 4672, 309, 272, 63, 25271, 5929, 30, 25271, 5929, 15, 1897, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4804, 17392, 11910, 12, 87, 16, 26448, 67, 529, 4672, 268, 295, 5929, 273, 374, 1323, 268, 295, 5929, 411, 562, 12, 87, 4672, 309, 272, 63, 25271, 5929, 30, 25271, 5929, 15, 1897, 12, ...
print 'key', key
def __getitem__(self, key): self=self.aq_parent
a150bc65d31f8513a75ea91d1ff34b54973ad182 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a150bc65d31f8513a75ea91d1ff34b54973ad182/History.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 365, 33, 2890, 18, 69, 85, 67, 2938, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 365, 33, 2890, 18, 69, 85, 67, 2938, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
TabPageLayout_5.addItem(spacer10,2,0)
TabPageLayout_6.addItem(spacer10,2,0)
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
7cc18611a6df93ebc9707a8878e31fb8451f8ff6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/7cc18611a6df93ebc9707a8878e31fb8451f8ff6/UserPrefsDialog.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, ...
new_line = Line(source=source)
new_line = objects.Line(source=source)
def _cb_btn_add_clicked(self, sender): selection = self.treeview.get_selection() model, pathlist = selection.get_selected_rows()
9c32eac186439f07092e593414a8822590fd0705 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2510/9c32eac186439f07092e593414a8822590fd0705/layerwin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7358, 67, 11898, 67, 1289, 67, 7475, 329, 12, 2890, 16, 5793, 4672, 4421, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1435, 938, 16, 589, 1098, 273, 4421, 18, 588, 67, 8109, 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, 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, 7358, 67, 11898, 67, 1289, 67, 7475, 329, 12, 2890, 16, 5793, 4672, 4421, 273, 365, 18, 3413, 1945, 18, 588, 67, 10705, 1435, 938, 16, 589, 1098, 273, 4421, 18, 588, 67, 8109, 6...
raise MarkupMismatch
raise rst.states.MarkupMismatch
def standalone_refs(self, match, lineno): text = match.group(0) if text.startswith('pep-'): ref = os.path.splitext(text)[0] + ".html" elif text.startswith('PEP'): pepnum = int(match.group('pepnum')) ref = self.pep_url % pepnum elif text.startswith('RFC'): rfcnum = int(match.group('rfcnum')) ref = self.rfc_url % rfcnum else: raise MarkupMismatch unescaped = rst.states.unescape(text, 0) return [nodes.reference(rst.states.unescape(text, 1), unescaped, refuri=ref)]
d672fdc85a387737c3fa6a37e40fb2e48f0d4e07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/d672fdc85a387737c3fa6a37e40fb2e48f0d4e07/pep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17676, 67, 9316, 12, 2890, 16, 845, 16, 7586, 4672, 977, 273, 845, 18, 1655, 12, 20, 13, 309, 977, 18, 17514, 1918, 2668, 29363, 6627, 4672, 1278, 273, 1140, 18, 803, 18, 4939, 408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17676, 67, 9316, 12, 2890, 16, 845, 16, 7586, 4672, 977, 273, 845, 18, 1655, 12, 20, 13, 309, 977, 18, 17514, 1918, 2668, 29363, 6627, 4672, 1278, 273, 1140, 18, 803, 18, 4939, 408, ...
cmd = "cmp -l "+name1 + " " + name2 + " | wc --lines"
cmd = "cmp -l "+name1 + " " + name2 + " | wc -l"
def fdiff(name1,name2): cmd = "cmp -l "+name1 + " " + name2 + " | wc --lines" out = commands.getoutput(cmd) out = split(out,"\n") out=out[-1] if (-1==find(out,"No")): diff = atof(out) size1 = os.path.getsize(name1) size2 = os.path.getsize(name2) diff = diff + abs(size1-size2) size = max(size1,size2) else: diff = -1 size = 0 return (diff,size)
611374b8cc133cd7a401781b4bb8aef9324775c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1520/611374b8cc133cd7a401781b4bb8aef9324775c8/lametest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5194, 3048, 12, 529, 21, 16, 529, 22, 4672, 1797, 273, 315, 9625, 300, 80, 13773, 529, 21, 397, 315, 315, 397, 508, 22, 397, 315, 571, 14310, 300, 80, 6, 596, 273, 4364, 18, 588, 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, 5194, 3048, 12, 529, 21, 16, 529, 22, 4672, 1797, 273, 315, 9625, 300, 80, 13773, 529, 21, 397, 315, 315, 397, 508, 22, 397, 315, 571, 14310, 300, 80, 6, 596, 273, 4364, 18, 588, 2...
if hasattr(self, idattr): id=getattr(self, idattr)
if hasattr(item, idattr): id=getattr(item, idattr)
def tpValuesIds(self, branches, args, simple_type={type(''):0, type(1):0, type(1.0):0}.has_key, ): # This should build the ids of subitems which are # expandable (non-empty). Leaves should never be # in the state - it will screw the colspan counting. r=[] idattr=args['id'] try: try: items=getattr(self, branches)() except AttributeError: items=() for item in items: try: if getattr(item, branches)(): if hasattr(self, idattr): id=getattr(self, idattr) if not simple_type(type(id)): id=id() elif hasattr(item, '_p_oid'): id=oid(item) else: id=pyid(item) e=tpValuesIds(item, branches, args) if e: id=[id,e] else: id=[id] r.append(id) except: pass except: pass return r
e04cc3d9225693282bb2a306ea5d4af2951b770e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/e04cc3d9225693282bb2a306ea5d4af2951b770e/TreeTag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8071, 1972, 2673, 12, 2890, 16, 11483, 16, 833, 16, 4143, 67, 723, 5899, 723, 2668, 11, 4672, 20, 16, 618, 12, 21, 4672, 20, 16, 618, 12, 21, 18, 20, 4672, 20, 5496, 5332, 67, 856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8071, 1972, 2673, 12, 2890, 16, 11483, 16, 833, 16, 4143, 67, 723, 5899, 723, 2668, 11, 4672, 20, 16, 618, 12, 21, 4672, 20, 16, 618, 12, 21, 18, 20, 4672, 20, 5496, 5332, 67, 856,...