rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.__peer = conn.getpeername() | try: self.__peer = conn.getpeername() except socket.error as err: self.close() if err.args[0] != errno.ENOTCONN: raise return | def __init__(self, server, conn, addr): asynchat.async_chat.__init__(self, conn) self.__server = server self.__conn = conn self.__addr = addr self.__line = [] self.__state = self.COMMAND self.__greeting = 0 self.__mailfrom = None self.__rcpttos = [] self.__data = '' self.__fqdn = socket.getfqdn() self.__peer = conn.getpeername() print >> DEBUGSTREAM, 'Peer:', repr(self.__peer) self.push('220 %s %s' % (self.__fqdn, __version__)) self.set_terminator('\r\n') | 777508185731fe4411e62659e9fa7ddbc840124c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/777508185731fe4411e62659e9fa7ddbc840124c/smtpd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
16,
1487,
16,
3091,
4672,
487,
2515,
270,
18,
3810,
67,
10880,
16186,
2738,
972,
12,
2890,
16,
1487,
13,
365,
16186,
3567,
273,
1438,
365,
16186,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
16,
1487,
16,
3091,
4672,
487,
2515,
270,
18,
3810,
67,
10880,
16186,
2738,
972,
12,
2890,
16,
1487,
13,
365,
16186,
3567,
273,
1438,
365,
16186,
4... |
def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') header = input.read(AS_HEADER_LENGTH) try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg if verbose: print 'Magic: 0x%8.8x'%magic print 'Version: 0x%8.8x'%version print 'Entries: %d'%nentry if magic != AS_MAGIC: raise Error, 'Unknown AppleSingle magic number 0x%8.8x'%magic if version != AS_VERSION: raise Error, 'Unknown AppleSingle version number 0x%8.8x'%version if nentry <= 0: raise Error, "AppleSingle file contains no forks" headers = [input.read(AS_ENTRY_LENGTH) for i in range(nentry)] didwork = 0 for hdr in headers: | class AppleSingle(object): datafork = None resourcefork = None def __init__(self, fileobj, verbose=False): header = fileobj.read(AS_HEADER_LENGTH) | def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') # Should we also test for FSSpecs or FSRefs? header = input.read(AS_HEADER_LENGTH) try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg if verbose: print 'Magic: 0x%8.8x'%magic print 'Version: 0x%8.8x'%version print 'Entries: %d'%nentry if magic != AS_MAGIC: raise Error, 'Unknown AppleSingle magic number 0x%8.8x'%magic if version != AS_VERSION: raise Error, 'Unknown AppleSingle version number 0x%8.8x'%version if nentry <= 0: raise Error, "AppleSingle file contains no forks" headers = [input.read(AS_ENTRY_LENGTH) for i in range(nentry)] didwork = 0 for hdr in headers: try: id, offset, length = struct.unpack(AS_ENTRY_FORMAT, hdr) except ValueError, arg: raise Error, "Unpack entry error: %s"%arg if verbose: print 'Fork %d, offset %d, length %d'%(id, offset, length) input.seek(offset) if length == 0: data = '' else: data = input.read(length) if len(data) != length: raise Error, 'Short read: expected %d bytes got %d'%(length, len(data)) if id == AS_DATAFORK: if verbose: print ' (data fork)' if not resonly: didwork = 1 fp = open(output, 'wb') fp.write(data) fp.close() elif id == AS_RESOURCEFORK: didwork = 1 if verbose: print ' (resource fork)' if resonly: fp = open(output, 'wb') else: fp = MacOS.openrf(output, 'wb') fp.write(data) fp.close() elif id in AS_IGNORE: if verbose: print ' (ignored)' else: raise Error, 'Unknown fork type %d'%id if not didwork: raise Error, 'No useful forks found' | 3e3e4327592f5de90d5f86293c6743ea75f0953d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3e3e4327592f5de90d5f86293c6743ea75f0953d/applesingle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2630,
16,
876,
16,
400,
3700,
33,
20,
4672,
309,
618,
12,
2630,
13,
422,
618,
2668,
11,
4672,
810,
273,
1696,
12,
2630,
16,
296,
6731,
6134,
468,
9363,
732,
2546,
1842,
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,
2495,
12,
2630,
16,
876,
16,
400,
3700,
33,
20,
4672,
309,
618,
12,
2630,
13,
422,
618,
2668,
11,
4672,
810,
273,
1696,
12,
2630,
16,
296,
6731,
6134,
468,
9363,
732,
2546,
1842,
364... |
print "splitting item amount with buffer balance" | item_amount_over = float("-%s" % (item_amount_over)) print "splitting item amount with buffer balance %s" % item_amount_over | def _update_category_balance(self, item): "Update the category balance from the item amount" if int(item['type']) == 1: table = "ExpenseCategory" elif int(item['type']) == 2: table = "BillCategory" elif int(item['type']) == 3: table = "SavingCategory" category_select = "select * from %s where id = :id;" % (table) category_update = "update %s set balance = :balance where id = :id;" % (table) | 3e8994ff93dfc320538510e8ba0ed85f5f4f5adc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14271/3e8994ff93dfc320538510e8ba0ed85f5f4f5adc/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
4743,
67,
12296,
12,
2890,
16,
761,
4672,
315,
1891,
326,
3150,
11013,
628,
326,
761,
3844,
6,
309,
509,
12,
1726,
3292,
723,
19486,
422,
404,
30,
1014,
273,
315,
424,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2725,
67,
4743,
67,
12296,
12,
2890,
16,
761,
4672,
315,
1891,
326,
3150,
11013,
628,
326,
761,
3844,
6,
309,
509,
12,
1726,
3292,
723,
19486,
422,
404,
30,
1014,
273,
315,
424,
... |
self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=output,indent=indent) | if t.isVector: self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=output,indent=indent) else: self.printValueOfType(prefix, '%s[%d]'%(name,i), t.elementType, output=output,indent=indent) | def printValueOfType(self, prefix, name, t, output=None, indent=2): if output is None: output = self.output if isinstance(t, BuiltinType): if t.name.endswith('long long'): code = 'lld' elif t.name.endswith('long'): code = 'ld' elif t.name.split(' ')[-1] in ('_Bool','char','short','int'): code = 'd' elif t.name in ('float','double'): code = 'f' elif t.name == 'long double': code = 'Lf' else: code = 'p' print >>output, '%*sprintf("%s: %s = %%%s\\n", %s);'%(indent, '', prefix, name, code, name) elif isinstance(t, RecordType): if not t.fields: print >>output, '%*sprintf("%s: %s (empty)\\n");'%(indent, '', prefix, name) for i,f in enumerate(t.fields): fname = '%s.field%d'%(name,i) self.printValueOfType(prefix, fname, f, output=output, indent=indent) elif isinstance(t, ComplexType): self.printValueOfType(prefix, '(__real %s)'%name, t.elementType, output=output,indent=indent) self.printValueOfType(prefix, '(__imag %s)'%name, t.elementType, output=output,indent=indent) elif isinstance(t, ArrayType): for i in range(t.numElements): # Access in this fashion as a hackish way to portably # access vectors. self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=output,indent=indent) else: raise NotImplementedError,'Cannot print value of type: "%s"'%(t,) | 2f0b8f841ada4d1bc8d2cee975e5033d020c283c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11986/2f0b8f841ada4d1bc8d2cee975e5033d020c283c/ABITestGen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
620,
18859,
12,
2890,
16,
1633,
16,
508,
16,
268,
16,
876,
33,
7036,
16,
3504,
33,
22,
4672,
309,
876,
353,
599,
30,
876,
273,
365,
18,
2844,
309,
1549,
12,
88,
16,
27376,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
620,
18859,
12,
2890,
16,
1633,
16,
508,
16,
268,
16,
876,
33,
7036,
16,
3504,
33,
22,
4672,
309,
876,
353,
599,
30,
876,
273,
365,
18,
2844,
309,
1549,
12,
88,
16,
27376,
26... |
pid = ing(file(pidfile).read()) | pid = int(file(pidfile).read()) | def status (pidfile): if os.path.exists(pidfile): pid = ing(file(pidfile).read()) return i18n._("WebCleaner is running (PID %d)")%pid, 0 else: return i18n._("WebCleaner is not running (no lock file found)"), 3 | 2ea0d1d113b6cda31008c0e861b40f9bbed20881 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/2ea0d1d113b6cda31008c0e861b40f9bbed20881/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
261,
6610,
768,
4672,
309,
1140,
18,
803,
18,
1808,
12,
6610,
768,
4672,
4231,
273,
509,
12,
768,
12,
6610,
768,
2934,
896,
10756,
327,
277,
2643,
82,
6315,
2932,
4079,
7605,
264... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
261,
6610,
768,
4672,
309,
1140,
18,
803,
18,
1808,
12,
6610,
768,
4672,
4231,
273,
509,
12,
768,
12,
6610,
768,
2934,
896,
10756,
327,
277,
2643,
82,
6315,
2932,
4079,
7605,
264... |
isoYear, isoWeek, isoDay = date.isocalendar() return'%s_%s%0d' % (parentTableName, year, isoWeek) | weekDay = date.weekday() if weekDay: date = date - dt.timedelta(weekDay) return'%s_%4d%02d%02d' % ((parentTableName,) + date.timetuple()[:3]) | def targetTableName (parentTableName, dateAsString): """ Given the name of the master table and a date, determine the name of the partition table that new data should go into.""" year = int(dateAsString[:4]) month = int(dateAsString[5:7]) day = int(dateAsString[8:10]) date = dt.datetime(year, month, day) isoYear, isoWeek, isoDay = date.isocalendar() return'%s_%s%0d' % (parentTableName, year, isoWeek) | 1471875fe1f243f243a300dfd6408c3d0440f7d0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/1471875fe1f243f243a300dfd6408c3d0440f7d0/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1018,
7147,
261,
2938,
7147,
16,
1509,
8092,
4672,
3536,
16803,
326,
508,
434,
326,
4171,
1014,
471,
279,
1509,
16,
4199,
326,
508,
434,
326,
3590,
1014,
716,
394,
501,
1410,
1960,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1018,
7147,
261,
2938,
7147,
16,
1509,
8092,
4672,
3536,
16803,
326,
508,
434,
326,
4171,
1014,
471,
279,
1509,
16,
4199,
326,
508,
434,
326,
3590,
1014,
716,
394,
501,
1410,
1960,
1368,... |
PyErr_Format(PyExc_TypeError, "%.400s constructor takes either 0 or " "%d positional argument%s", Py_TYPE(self)->tp_name, | PyErr_Format(PyExc_TypeError, "%.400s constructor takes %s" "%" PY_FORMAT_SIZE_T "d positional argument%s", Py_TYPE(self)->tp_name, numfields == 0 ? "" : "either 0 or ", | def visitModule(self, mod): self.emit(""" | 1721e757499db93373cba263b0553a64d4c545a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/1721e757499db93373cba263b0553a64d4c545a3/asdl_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
3120,
12,
2890,
16,
681,
4672,
365,
18,
18356,
2932,
3660,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
3120,
12,
2890,
16,
681,
4672,
365,
18,
18356,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
name = "Upcase word" | name = "Upcase" | def mutate(self, txt): """Change to title case -- first letter capitalized, rest lower case. """ return txt.title() | cf547067d078a173b6c5182ffcf438b67d49f8dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/cf547067d078a173b6c5182ffcf438b67d49f8dc/text_transforms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15887,
12,
2890,
16,
6463,
4672,
3536,
3043,
358,
2077,
648,
1493,
1122,
9471,
12872,
1235,
16,
3127,
2612,
648,
18,
3536,
327,
6463,
18,
2649,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15887,
12,
2890,
16,
6463,
4672,
3536,
3043,
358,
2077,
648,
1493,
1122,
9471,
12872,
1235,
16,
3127,
2612,
648,
18,
3536,
327,
6463,
18,
2649,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
self.bubbleRect.setText("Cut off height: \n %f" % self.cutOffHeight) self.bubbleRect.setPos(e.scenePos().x(), e.scenePos().y()) self.bubbleRect.show() self.update() | QToolTip.showText(e.screenPos(), "Cut off height: \n %f" % self.cutOffHeight, e.widget(), toolTipRect) | def mouseMoveEvent(self, e): | 8831277dc381559aa4de7aa848bba2c91b0d2e4c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/8831277dc381559aa4de7aa848bba2c91b0d2e4c/OWHierarchicalClustering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
7607,
1133,
12,
2890,
16,
425,
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,
7644,
7607,
1133,
12,
2890,
16,
425,
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... |
print " <icon>http://www.tvsite.be/gfx/logos/%s.gif</icon>" % self.title | print " <icon>http://www.teveblad.be/gfx/logos/%s.gif</icon>" % self.title | def xml(self,today = strftime("%Y/%m/%d",localtime(time())),tomorrow = strftime("%Y/%m/%d",localtime(time()+86400))): | 9392fbfdf763574a03e1401669d97418d30dd72e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/9392fbfdf763574a03e1401669d97418d30dd72e/xml_tv_be.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
12,
2890,
16,
30064,
273,
10405,
27188,
61,
5258,
81,
5258,
72,
3113,
3729,
957,
12,
957,
10756,
3631,
3599,
15318,
273,
10405,
27188,
61,
5258,
81,
5258,
72,
3113,
3729,
957,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2025,
12,
2890,
16,
30064,
273,
10405,
27188,
61,
5258,
81,
5258,
72,
3113,
3729,
957,
12,
957,
10756,
3631,
3599,
15318,
273,
10405,
27188,
61,
5258,
81,
5258,
72,
3113,
3729,
957,
12,
... |
sage.misc.persist.save(help, HELP_CACHE) | sage.misc.persist.save(help, HELP_CACHE) | def __init__(self, stacksize=10000000, # 10MB maxread=100000, script_subdirectory=None, logfile=None, server=None, init_list_length=1024): Expect.__init__(self, | 7cab41b96e223cae76a422a76ffbd495dc312360 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7cab41b96e223cae76a422a76ffbd495dc312360/lie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2110,
1467,
33,
21,
17877,
16,
282,
468,
1728,
7969,
943,
896,
33,
21,
11706,
16,
2728,
67,
1717,
5149,
33,
7036,
16,
15204,
33,
7036,
16,
1438,
33,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2110,
1467,
33,
21,
17877,
16,
282,
468,
1728,
7969,
943,
896,
33,
21,
11706,
16,
2728,
67,
1717,
5149,
33,
7036,
16,
15204,
33,
7036,
16,
1438,
33,
70... |
weight = lambda x : x if (x is not None and x != {}) else 1 | weight = lambda x: x if (x is not None and x != {}) else 1 | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
raise RuntimeError("Can't find xulrunner-xpcom or mozilla-xpcom") | raise RuntimeError("Can't find xulrunner-xpcom, mozilla-xpcom or firefox-xpcom") | def parsePkgConfig(command, components, options_dict = None): """Helper function to parse compiler/linker arguments from pkg-config/mozilla-config and update include_dirs, library_dirs, etc. We return a dict with the following keys, which match up with keyword arguments to the setup function: include_dirs, library_dirs, libraries, extra_compile_args. Command is the command to run (pkg-config, mozilla-config, etc). Components is a string that lists the components to get options for. If options_dict is passed in, we add options to it, instead of starting from scratch. """ if options_dict is None: options_dict = { 'include_dirs' : [], 'library_dirs' : [], 'libraries' : [], 'extra_compile_args' : [] } commandLine = "%s --cflags --libs %s" % (command, components) output = getCommandOutput(commandLine).strip() for comp in output.split(): prefix, rest = comp[:2], comp[2:] if prefix == '-I': options_dict['include_dirs'].append(rest) elif prefix == '-L': options_dict['library_dirs'].append(rest) elif prefix == '-l': options_dict['libraries'].append(rest) else: options_dict['extra_compile_args'].append(comp) return options_dict | 06a01ae812b082d2afa4149584a57243cdf95272 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/06a01ae812b082d2afa4149584a57243cdf95272/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
11264,
809,
12,
3076,
16,
4085,
16,
702,
67,
1576,
273,
599,
4672,
3536,
2276,
445,
358,
1109,
5274,
19,
1232,
264,
1775,
628,
3475,
17,
1425,
19,
8683,
15990,
17,
1425,
471,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
11264,
809,
12,
3076,
16,
4085,
16,
702,
67,
1576,
273,
599,
4672,
3536,
2276,
445,
358,
1109,
5274,
19,
1232,
264,
1775,
628,
3475,
17,
1425,
19,
8683,
15990,
17,
1425,
471,
108... |
self.indexer.feed(filename, category, title, self.doctrees[filename]) | self.indexer.feed(filename, category, title, doctree) | def handle_file(self, filename, context): # only index pages with title and category title = context['title'] if self.indexer is not None and title: category = get_category(filename) if category is not None: self.indexer.feed(filename, category, title, self.doctrees[filename]) | 7c86f6623279052ea372ff758c5fff2ebb8aac62 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/7c86f6623279052ea372ff758c5fff2ebb8aac62/builder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
768,
12,
2890,
16,
1544,
16,
819,
4672,
468,
1338,
770,
4689,
598,
2077,
471,
3150,
2077,
273,
819,
3292,
2649,
3546,
309,
365,
18,
24541,
353,
486,
599,
471,
2077,
30,
3150,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
768,
12,
2890,
16,
1544,
16,
819,
4672,
468,
1338,
770,
4689,
598,
2077,
471,
3150,
2077,
273,
819,
3292,
2649,
3546,
309,
365,
18,
24541,
353,
486,
599,
471,
2077,
30,
3150,... |
"""Logs given `dictionary's` length and content with given `level` | """Logs the size and contents of the `dictionary` using given `level`. | def log_dictionary(self, dictionary, level='INFO'): """Logs given `dictionary's` length and content with given `level` Valid levels are TRACE, DEBUG, INFO (default), and WARN. In case you want only log the length, use keyword `Get Length` from BuiltIn library. """ print '*%s* ' % (_validate_log_level(level)), if len(dictionary) == 0: print 'Dictionary is empty' elif len(dictionary) == 1: print "Dictionary has one item '%s: %s'" % (dictionary.items()[0]) else: print "Dictionary length is '%s'" % (len(dictionary)) for key in self.get_dictionary_keys(dictionary): print '%s: %s' % (key, dictionary[key]) | 1a30ca3f7347244c59d0f784ad3f1162492374e1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/1a30ca3f7347244c59d0f784ad3f1162492374e1/Collections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
15556,
12,
2890,
16,
3880,
16,
1801,
2218,
5923,
11,
4672,
3536,
7777,
326,
963,
471,
2939,
434,
326,
1375,
15556,
68,
1450,
864,
1375,
2815,
8338,
225,
2364,
7575,
854,
12734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
15556,
12,
2890,
16,
3880,
16,
1801,
2218,
5923,
11,
4672,
3536,
7777,
326,
963,
471,
2939,
434,
326,
1375,
15556,
68,
1450,
864,
1375,
2815,
8338,
225,
2364,
7575,
854,
12734,
... |
subprocess.call(['taskkill.exe', '/PID', self._process.pid]) self._retcode = self._process.wait() return self._retcode | subprocess.call(['taskkill.exe', '/PID', str(self._process.pid)]) return self.retcode() | def kill(self): """Kill our running process if needed. Wait for kill to complete. | 266cd3d6298af7058ba9162c8c5ab9babb5b23bc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/266cd3d6298af7058ba9162c8c5ab9babb5b23bc/coverage_posix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
12,
2890,
4672,
3536,
19045,
3134,
3549,
1207,
309,
3577,
18,
225,
5838,
364,
8673,
358,
3912,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8673,
12,
2890,
4672,
3536,
19045,
3134,
3549,
1207,
309,
3577,
18,
225,
5838,
364,
8673,
358,
3912,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
else: client[frame.frameMACAddress]= {serverMac:{"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}} | client[client_address][serverMac] = {"socket":socket, "to_client_buff":[], 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()} | def newconn(socket, frame): # INIT SERVER # TODO handle the -1 connbuff size option if frame.frameMesgType == INIT_SERVER: print "Connected to new server: "+frame.frameMACAddress # declare a new buffer to store data from clients to the server buff = [] # setup the main server data structure server[frame.frameMACAddress] = {"socket":socket, "default_server_buff_size":int(frame.frameContent),"to_server_buff":buff} # send a response to the server resp = NATFrame() resp.initAsForwarderResponse(STATUS_CONFIRMED) try: socket.send(resp.toString()) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise drop_server(frame.frameMACAddress) print "SocketError occured sending Status_Confirm Response to server: "+frame.frameMACAddress # launch threads to handle this server settimer(0,read_from_server,[frame.frameMACAddress]) settimer(0,write_to_server,[frame.frameMACAddress]) # INIT CLIENT elif frame.frameMesgType == INIT_CLIENT: serverMac = frame.frameContent found_server = (serverMac in server) # is the server available if found_server: this_server = server[serverMac] client_address = frame.frameMACAddress print "Connected Client: "+client_address+" to server: "+serverMac # buffer for messages from server to client buff = [] # is the client already connected if client_address in client: client[client_address][serverMac] = {"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()} # is this an initial connection else: client[frame.frameMACAddress]= {serverMac:{"socket":socket, "to_client_buff":buff, 'to_client_buff_MAX':this_server['default_server_buff_size'], 'to_client_buff_current':this_server['default_server_buff_size'], 'server_buff_size':this_server['default_server_buff_size'], 'buff_size_lock':getlock()}} # send a response resp = NATFrame() resp.initAsForwarderResponse(STATUS_CONFIRMED) try: socket.send(resp.toString()) except Exception, e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured sending Status Confirmed to client: "+client_address drop_client(frame.frameMACAddress,serverMac) print "Dropped Client: "+client_address return # Tell the server it has this client this_server['to_server_buff'].append(frame.toString()) # start threads to read and write from this client socket settimer(0,read_from_client,[client_address,serverMac]) settimer(0,write_to_client,[client_address,serverMac]) # The server is not available else: resp = NATFrame() resp.initAsForwarderResponse(STATUS_NO_SERVER) try: socket.send(resp.toString()) except Exception,e: if "socket" not in str(type(e)) and "Socket" not in str(e): raise print "SocketError occured sending STATUS_NO_SERVER to client: "+frame.frameMACAddress drop_client(frame.frameMACAddress,serverMac) print frame.frameMACAddress+" has been dropped" | af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/af7b0bcb583945cc32ce1e6ac1cd2acbd599a1e9/forwarder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4646,
12,
7814,
16,
2623,
4672,
225,
468,
12584,
15061,
468,
2660,
1640,
326,
300,
21,
1487,
20664,
963,
1456,
309,
2623,
18,
3789,
49,
281,
75,
559,
422,
12584,
67,
4370,
30,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
4646,
12,
7814,
16,
2623,
4672,
225,
468,
12584,
15061,
468,
2660,
1640,
326,
300,
21,
1487,
20664,
963,
1456,
309,
2623,
18,
3789,
49,
281,
75,
559,
422,
12584,
67,
4370,
30,
225... |
if len(prefixSpec) == 2 : | if not prefixSpec or not isinstance(prefixSpec, types.ListType): self._console.warn("Missing or incorrect prefix spec, might lead to incorrect resource id's.") elif len(prefixSpec) == 2 : | def extractFromPrefixSpec(prefixSpec): prefix = altprefix = "" if len(prefixSpec) == 2 : # prefixSpec = [ prefix, altprefix ] prefix, altprefix = prefixSpec elif len(prefixSpec) == 1: prefix = prefixSpec[0] altprefix = "" return prefix, altprefix | ac93a98c68c9641558765a1287864adbdd569790 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/ac93a98c68c9641558765a1287864adbdd569790/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
1265,
2244,
1990,
12,
3239,
1990,
4672,
1633,
273,
3770,
3239,
273,
1408,
309,
486,
1633,
1990,
578,
486,
1549,
12,
3239,
1990,
16,
1953,
18,
19366,
4672,
365,
6315,
8698,
18,
8935... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
1265,
2244,
1990,
12,
3239,
1990,
4672,
1633,
273,
3770,
3239,
273,
1408,
309,
486,
1633,
1990,
578,
486,
1549,
12,
3239,
1990,
16,
1953,
18,
19366,
4672,
365,
6315,
8698,
18,
8935... |
'href': dispatch.translate(request, request.path_info, assigned_to=[get_profile(request.user)]) }) | 'href': dispatch.translate(request, request.path_info, assigned_to=[request.user.username]) }) | def get_assigned_strings(request, path_obj, has_strings): if check_permission('translate', request): result = { 'text': _('Translate My Strings') } else: result = { 'text': _('View My Strings') } if has_strings: result.update({ 'href': dispatch.translate(request, request.path_info, assigned_to=[get_profile(request.user)]) }) else: result.update({ 'title': _('No strings assigned to you') }) return result | ca5b4ce1319a0201ba81d989496221a9934e2501 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/ca5b4ce1319a0201ba81d989496221a9934e2501/item_dict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15938,
67,
10219,
12,
2293,
16,
589,
67,
2603,
16,
711,
67,
10219,
4672,
309,
866,
67,
9827,
2668,
13929,
2187,
590,
4672,
563,
273,
288,
296,
955,
4278,
389,
2668,
12818,
800... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15938,
67,
10219,
12,
2293,
16,
589,
67,
2603,
16,
711,
67,
10219,
4672,
309,
866,
67,
9827,
2668,
13929,
2187,
590,
4672,
563,
273,
288,
296,
955,
4278,
389,
2668,
12818,
800... |
self.allow_colorizing = 0 self.stop_colorizing = 1 | self.allow_colorizing = False self.stop_colorizing = True | def close(self, close_when_done=None): if self.after_id: after_id = self.after_id self.after_id = None if DEBUG: print "cancel scheduled recolorizer" self.after_cancel(after_id) self.allow_colorizing = 0 self.stop_colorizing = 1 if close_when_done: if not self.colorizing: close_when_done.destroy() else: self.close_when_done = close_when_done | 252b1b5cce18ce424fd13f1508a3e1d43aace433 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/252b1b5cce18ce424fd13f1508a3e1d43aace433/ColorDelegator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
1746,
67,
13723,
67,
8734,
33,
7036,
4672,
309,
365,
18,
5205,
67,
350,
30,
1839,
67,
350,
273,
365,
18,
5205,
67,
350,
365,
18,
5205,
67,
350,
273,
599,
309,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
16,
1746,
67,
13723,
67,
8734,
33,
7036,
4672,
309,
365,
18,
5205,
67,
350,
30,
1839,
67,
350,
273,
365,
18,
5205,
67,
350,
365,
18,
5205,
67,
350,
273,
599,
309,
6... |
You can also use the collection of pre-defined graphs, then create a DiGraph from them. :: sage: g=DiGraph(graphs.PetersenGraph()) | You can also use the collection of pre-defined graphs, then create a digraph from them. :: sage: g = DiGraph(graphs.PetersenGraph()) | def min_spanning_tree(self, weight_function=lambda e: 1, algorithm='Kruskal', starting_vertex=None ): """ Returns the edges of a minimum spanning tree, if one exists, otherwise returns False. INPUT: - ``weight_function`` - A function that takes an edge and returns a numeric weight. Defaults to assigning each edge a weight of 1. - ``algorithm`` - Three variants of algorithms are implemented: 'Kruskal', 'Prim fringe', and 'Prim edge' (the last two are variants of Prim's algorithm). Defaults to 'Kruskal'. Currently, 'Prim fringe' ignores the labels on the edges. - ``starting_vertex`` - The vertex with which to start Prim's algorithm. OUTPUT: the edges of a minimum spanning tree. EXAMPLES:: sage: g=graphs.CompleteGraph(5) sage: len(g.min_spanning_tree()) 4 sage: weight = lambda e: 1/( (e[0]+1)*(e[1]+1) ) sage: g.min_spanning_tree(weight_function=weight) [(3, 4, None), (2, 4, None), (1, 4, None), (0, 4, None)] sage: g.min_spanning_tree(algorithm='Prim edge', starting_vertex=2, weight_function=weight) [(2, 4, None), (3, 4, None), (1, 3, None), (0, 4, None)] sage: g.min_spanning_tree(algorithm='Prim fringe', starting_vertex=2, weight_function=weight) [(4, 2), (3, 4), (1, 4), (0, 4)] """ if self.is_connected()==False: return False | a1371df28f1a50021d7507de4e96bdcb7caafce8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a1371df28f1a50021d7507de4e96bdcb7caafce8/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
67,
1752,
10903,
67,
3413,
12,
2890,
16,
3119,
67,
915,
33,
14661,
425,
30,
404,
16,
4886,
2218,
47,
8010,
79,
287,
2187,
5023,
67,
15281,
33,
7036,
262,
30,
3536,
2860,
326,
5... |
s = [f.read().split(":"), f.read().split(":")] | s = f.readlines() | def load_score(self): try: f = file(os.path.join(os.path.abspath('.'), 'visualmatch.score'), "r") s = [f.read().split(":"), f.read().split(":")] f.close self.vmw.low_score = (int(s[0]), int(s[1])) print "low score is: %d" % (self.vmw.low_score) except: self.vmw.low_score = [-1, -1] | e4a64eca2c257da825c8379d225fa379555ffb85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/e4a64eca2c257da825c8379d225fa379555ffb85/visualmatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
6355,
12,
2890,
4672,
775,
30,
284,
273,
585,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
5113,
803,
2668,
1093,
3631,
296,
26671,
1916,
18,
6355,
19899,
315,
86,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
6355,
12,
2890,
4672,
775,
30,
284,
273,
585,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
803,
18,
5113,
803,
2668,
1093,
3631,
296,
26671,
1916,
18,
6355,
19899,
315,
86,
792... |
return self.__sections.has_key(section) | return section in self.sections() | def has_section(self, section): """Indicate whether the named section is present in the configuration. | 3ef3039d1728bcb72ff9d637d2063d2dc8b75710 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3ef3039d1728bcb72ff9d637d2063d2dc8b75710/ConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
3464,
12,
2890,
16,
2442,
4672,
3536,
3866,
2659,
2856,
326,
4141,
2442,
353,
3430,
316,
326,
1664,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
3464,
12,
2890,
16,
2442,
4672,
3536,
3866,
2659,
2856,
326,
4141,
2442,
353,
3430,
316,
326,
1664,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if not infoDict[ 'VOMS' ]: | if 'VOMS' not in infoDict or not infoDict[ 'VOMS' ]: | def invalidProxy( msg ): print "[INVALID] %s" % msg sys.exit(1) | 39482821ee2a8bbbed416ff21a659cf53b7e8061 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/39482821ee2a8bbbed416ff21a659cf53b7e8061/dirac-proxy-info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2057,
3886,
12,
1234,
262,
30,
1172,
5158,
9347,
65,
738,
87,
6,
738,
1234,
2589,
18,
8593,
12,
21,
13,
282,
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,
2057,
3886,
12,
1234,
262,
30,
1172,
5158,
9347,
65,
738,
87,
6,
738,
1234,
2589,
18,
8593,
12,
21,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if os.name == "nt": ext = ".exe" elif os.name == "mac": ext = ".app" default_path = os.path.join(os.path.dirname(sys.argv[0]), 'blenderplayer'+ext) player_path = StringProperty(name="Player Path", description="The path to the player to use", default=default_path) | default_player_path = os.path.join(blender_bin_dir, 'blenderplayer' + ext) player_path = StringProperty(name="Player Path", description="The path to the player to use", default=default_player_path) | def WriteRuntime(player_path, output_path): # Check the paths if not os.path.isfile(player_path): print("The player could not be found! Runtime not saved.") return # Check if we're bundling a .app if player_path.endswith('.app'): WriteAppleRuntime(player_path, output_path) return # Get the player's binary and the offset for the blend file = open(player_path, 'rb') player_d = file.read() offset = file.tell() file.close() # Create a tmp blend file blend_path = bpy.path.clean_name(output_path) bpy.ops.wm.save_as_mainfile(filepath=blend_path, copy=True) blend_path += '.blend' # Get the blend data file = open(blend_path, 'rb') blend_d = file.read() file.close() # Get rid of the tmp blend, we're done with it os.remove(blend_path) # Create a new file for the bundled runtime output = open(output_path, 'wb') # Write the player and blend data to the new runtime output.write(player_d) output.write(blend_d) # Store the offset (an int is 4 bytes, so we split it up into 4 bytes and save it) output.write(struct.pack('B', (offset>>24)&0xFF)) output.write(struct.pack('B', (offset>>16)&0xFF)) output.write(struct.pack('B', (offset>>8)&0xFF)) output.write(struct.pack('B', (offset>>0)&0xFF)) # Stuff for the runtime output.write("BRUNTIME".encode()) output.close() # Make the runtime executable on Linux if os.name == 'posix': os.chmod(output_path, 0o755) | 9b70afa0d4189c04821edadce1fad4edd972f1eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/9b70afa0d4189c04821edadce1fad4edd972f1eb/game_engine_save_as_runtime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
5576,
12,
14872,
67,
803,
16,
876,
67,
803,
4672,
225,
468,
2073,
326,
2953,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
14872,
67,
803,
4672,
1172,
2932,
1986,
7291,
3377,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
5576,
12,
14872,
67,
803,
16,
876,
67,
803,
4672,
225,
468,
2073,
326,
2953,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
14872,
67,
803,
4672,
1172,
2932,
1986,
7291,
3377,
486,
... |
i.sort() | i.sort(key=lambda (x,y): x) | def to_tuple(d): i = d.items() i.sort() return tuple(i) | 8ae66dedb4f18bb5fee03321ca44c4596a0493d0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/8ae66dedb4f18bb5fee03321ca44c4596a0493d0/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8052,
12,
72,
4672,
277,
273,
302,
18,
3319,
1435,
277,
18,
3804,
12,
856,
33,
14661,
261,
92,
16,
93,
4672,
619,
13,
327,
3193,
12,
77,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
8052,
12,
72,
4672,
277,
273,
302,
18,
3319,
1435,
277,
18,
3804,
12,
856,
33,
14661,
261,
92,
16,
93,
4672,
619,
13,
327,
3193,
12,
77,
13,
2,
-100,
-100,
-100,
-100,
-10... |
self.append_statement = "INSERT INTO %s (%s) VALUES (%s)" % (self.dbtablename, ",".join(self.dbcolumnnames), ",".join("?" * len(self.dbcolumnnames))) | params = { "sqlite3": ",".join("?" * len(self.dbcolumnnames)), "mysql": ",".join(["%s"] * len(self.dbcolumnnames)) }[connection_db_type(self.connection)] self.append_statement = "INSERT INTO %s (%s) VALUES (%s)" % (self.dbtablename, ",".join(self.dbcolumnnames), params) | def _end_of_columns(self): table.Table._end_of_columns(self) # dbcolumnnames and types have the "not loaded" columns # removed if self.loadcolumns is not None: self.dbcolumnnames = [name for name in self.columnnames if name in self.loadcolumns] self.dbcolumntypes = [name for i, name in enumerate(self.columntypes) if self.columnnames[i] in self.loadcolumns] else: self.dbcolumnnames = self.columnnames self.dbcolumntypes = self.columntypes | bba59742cb4d1d950583f58105082465812d2b8c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/bba59742cb4d1d950583f58105082465812d2b8c/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
792,
67,
5112,
12,
2890,
4672,
1014,
18,
1388,
6315,
409,
67,
792,
67,
5112,
12,
2890,
13,
468,
1319,
2827,
1973,
471,
1953,
1240,
326,
315,
902,
4203,
6,
2168,
468,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
409,
67,
792,
67,
5112,
12,
2890,
4672,
1014,
18,
1388,
6315,
409,
67,
792,
67,
5112,
12,
2890,
13,
468,
1319,
2827,
1973,
471,
1953,
1240,
326,
315,
902,
4203,
6,
2168,
468,
37... |
for c in self.cstack: c[(f.f_code.co_filename, f.f_lineno)] = 1 | def t(self, f, w, unused): #pragma: no cover if w == 'line': #print "Executing %s @ %d" % (f.f_code.co_filename, f.f_lineno) self.c[(f.f_code.co_filename, f.f_lineno)] = 1 for c in self.cstack: c[(f.f_code.co_filename, f.f_lineno)] = 1 return self.t | 6554c74cd9574cf89b8acd0a0333651afacbfa8e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/6554c74cd9574cf89b8acd0a0333651afacbfa8e/coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
12,
2890,
16,
284,
16,
341,
16,
10197,
4672,
4766,
282,
468,
683,
9454,
30,
1158,
5590,
309,
341,
422,
296,
1369,
4278,
468,
1188,
315,
22134,
738,
87,
632,
738,
72,
6,
738,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
12,
2890,
16,
284,
16,
341,
16,
10197,
4672,
4766,
282,
468,
683,
9454,
30,
1158,
5590,
309,
341,
422,
296,
1369,
4278,
468,
1188,
315,
22134,
738,
87,
632,
738,
72,
6,
738,
261... | |
crc = binascii.crc32("Test the CRC-32 of") crc = binascii.crc32(" this string.", crc) | crc = binascii.crc32(self.type2test("Test the CRC-32 of")) crc = binascii.crc32(self.type2test(" this string."), crc) | def test_crc32(self): crc = binascii.crc32("Test the CRC-32 of") crc = binascii.crc32(" this string.", crc) self.assertEqual(crc, 1571220330) | 56917fffc941f205cbeb70b1cd4a3d4666741ebc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/56917fffc941f205cbeb70b1cd4a3d4666741ebc/test_binascii.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22988,
1578,
12,
2890,
4672,
10619,
273,
28222,
18,
22988,
1578,
12,
2890,
18,
723,
22,
3813,
2932,
4709,
326,
21773,
17,
1578,
434,
6,
3719,
10619,
273,
28222,
18,
22988,
1578... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22988,
1578,
12,
2890,
4672,
10619,
273,
28222,
18,
22988,
1578,
12,
2890,
18,
723,
22,
3813,
2932,
4709,
326,
21773,
17,
1578,
434,
6,
3719,
10619,
273,
28222,
18,
22988,
1578... |
def SetMemberName(id, member_offset, name): | def SetMemberName(sid, member_offset, name): | def SetMemberName(id, member_offset, name): """ Change structure member name @param id: structure type ID @param member_offset: offset of the member @param name: new name of the member @return: != 0 - ok. """ s = idaapi.get_struc(id) if not s: return 0 return idaapi.set_member_name(s, member_offset, name) | 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,
1000,
4419,
461,
12,
7453,
16,
3140,
67,
3348,
16,
508,
4672,
3536,
7576,
3695,
3140,
508,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384,
434,
326,
3140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4419,
461,
12,
7453,
16,
3140,
67,
3348,
16,
508,
4672,
3536,
7576,
3695,
3140,
508,
225,
632,
891,
612,
30,
3695,
618,
1599,
632,
891,
3140,
67,
3348,
30,
1384,
434,
326,
3140,
... |
if(abs(npy.sqrt(atoms.d * atoms.d).sum()) > self.maxstep): atoms.d = atoms.du * self.maxstep atoms.r += atoms.d | if(abs(npy.sqrt(self.d * self.d).sum()) > self.maxstep): self.d = self.du * self.maxstep self.r += self.d atoms.set_positions(self.r) | def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',atoms.r atoms.f = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.f[i-1] = atoms.images[i].get_forces() print >> g,'atoms.f',atoms.f try: atoms.start except:atoms.start=0 if(not atoms.start): atoms.start = 1 atoms.a = npy.zeros(self.memory+1, 'd') self.ptmp = atoms self.maxstep = npy.sqrt(self.maxstep * self.ni) atoms.lbfgsinit = 0 try: atoms.lbfgsinit except:atoms.lbfgsinit=0 if(not atoms.lbfgsinit): atoms.lbfgsinit = 1 atoms.Ho = npy.ones((self.ni, atoms.natoms, self.dim), 'd') if (not self.min=='line'):atoms.Ho = atoms.Ho * self.alpha atoms.ITR = 1 atoms.s = [1.] atoms.y = [1.] atoms.rho = [1.] else: a1 = abs (npy.vdot(atoms.f, atoms.f_old)) a2 = npy.vdot(atoms.f_old, atoms.f_old) print 'a1,a2 created',a1,a2 if(self.min=='line'): if(a1<=0.5* a2 and a2!=0): reset_flag = 0 else: reset_flag = 1 else: reset_flag = 0 if(reset_flag==0): g1 = open('out1','w') g2 = open('out2','w') print >> g1,'atoms.r',atoms.r print >> g2,'atoms.r_old',atoms.r_old ITR = atoms.ITR#correctly generated if(ITR > self.memory): atoms.s.pop(1) atoms.y.pop(1) atoms.rho.pop(1) ITR=self.memory atoms.s.append(atoms.r - atoms.r_old)#!!atoms.r is not updating # boundry cond # for i in range(atoms.ni): # if(method=='min'):i=0 # try: # DBC(atoms.s[ITR][i],atoms.p[i].Box) #need to make matrix for box # except: # print "Box not found." # if(method=='min'):break atoms.y.append(-(atoms.f-atoms.f_old)) atoms.rho.append(1/npy.vdot(atoms.y[ITR],atoms.s[ITR])) atoms.ITR += 1 else: | 689ed3715e535adf898039f50971002aa6c5a5e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/689ed3715e535adf898039f50971002aa6c5a5e9/glbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... |
@register.inclusion_tag("shared_css.html") | @register.inclusion_tag(("shared_css.html", "../shared_css.html")) | def maps_javascript(): return {'App': App} | 0f07c344864f199248f8978bf545cf3e0ae21a2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12010/0f07c344864f199248f8978bf545cf3e0ae21a2a/templatetags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7565,
67,
11242,
13332,
327,
13666,
3371,
4278,
4677,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7565,
67,
11242,
13332,
327,
13666,
3371,
4278,
4677,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'virStorageVolGetUUID', 'virStorageVolLookupByUUID', | def enum(type, name, value): if not enums.has_key(type): enums[type] = {} enums[type][name] = value | 1b58a90c1a40d555fd82d91e89f8cf0a51042059 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8293/1b58a90c1a40d555fd82d91e89f8cf0a51042059/generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
12,
723,
16,
508,
16,
460,
4672,
309,
486,
17922,
18,
5332,
67,
856,
12,
723,
4672,
17922,
63,
723,
65,
273,
2618,
17922,
63,
723,
6362,
529,
65,
273,
460,
225,
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,
2792,
12,
723,
16,
508,
16,
460,
4672,
309,
486,
17922,
18,
5332,
67,
856,
12,
723,
4672,
17922,
63,
723,
65,
273,
2618,
17922,
63,
723,
6362,
529,
65,
273,
460,
225,
2,
-100,
-100,
... | |
except (dns.query.BadResponse, dns.message.TrailingJunk, dns.query.UnexpectedSource) as exc: | except (dns.query.BadResponse, dns.message.TrailingJunk, dns.query.UnexpectedSource), exc: | def TimedRequest(self, type_string, record_string): """Make a DNS request, returning the reply and duration it took. | aa965b257d24fc3ba4bcc906e75097784686aba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/aa965b257d24fc3ba4bcc906e75097784686aba7/nameserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23925,
691,
12,
2890,
16,
618,
67,
1080,
16,
1409,
67,
1080,
4672,
3536,
6464,
279,
8858,
590,
16,
5785,
326,
4332,
471,
3734,
518,
23151,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23925,
691,
12,
2890,
16,
618,
67,
1080,
16,
1409,
67,
1080,
4672,
3536,
6464,
279,
8858,
590,
16,
5785,
326,
4332,
471,
3734,
518,
23151,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
except ValuError: | except ValueError: | def sort(self, mode=None): """ Returns the string how to sort this item """ if mode == 'date': if self.filename: return u'%s%s' % (os.stat(self.filename).st_ctime, Unicode(self.filename)) if mode == 'advanced': # sort by track number try: return '%0.3i-%s' % (int(self['trackno']), Unicode(self.url)) except ValuError: return '%s-%s' % (Unicode(self['trackno']), Unicode(self.url)) return Unicode(self.url) | 35ba99b5ccb8b0647380bde7ac80bbc9161d3b44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/35ba99b5ccb8b0647380bde7ac80bbc9161d3b44/audioitem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
12,
2890,
16,
1965,
33,
7036,
4672,
3536,
2860,
326,
533,
3661,
358,
1524,
333,
761,
3536,
309,
1965,
422,
296,
712,
4278,
309,
365,
18,
3459,
30,
327,
582,
11,
9,
87,
9,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1524,
12,
2890,
16,
1965,
33,
7036,
4672,
3536,
2860,
326,
533,
3661,
358,
1524,
333,
761,
3536,
309,
1965,
422,
296,
712,
4278,
309,
365,
18,
3459,
30,
327,
582,
11,
9,
87,
9,
87,
... |
def my_scroller_go_900_900(obj, sc, *args, **kwargs): | def my_scroller_go_900_900(obj, sc): | def my_scroller_go_900_900(obj, sc, *args, **kwargs): sc.region_bring_in(900, 900, 318, 318) | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
1017,
1539,
67,
3240,
67,
29,
713,
67,
29,
713,
12,
2603,
16,
888,
4672,
888,
18,
6858,
67,
2848,
310,
67,
267,
12,
29,
713,
16,
2468,
713,
16,
890,
2643,
16,
890,
2643,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3399,
67,
1017,
1539,
67,
3240,
67,
29,
713,
67,
29,
713,
12,
2603,
16,
888,
4672,
888,
18,
6858,
67,
2848,
310,
67,
267,
12,
29,
713,
16,
2468,
713,
16,
890,
2643,
16,
890,
2643,
... |
return "%s.%s" % (_strclass(self.__class__), self.__testMethodName) | return "%s.%s" % (_strclass(self.__class__), self._testMethodName) | def id(self): return "%s.%s" % (_strclass(self.__class__), self.__testMethodName) | dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77/unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
612,
12,
2890,
4672,
327,
2213,
87,
7866,
87,
6,
738,
261,
67,
701,
1106,
12,
2890,
16186,
1106,
972,
3631,
365,
16186,
3813,
11666,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
612,
12,
2890,
4672,
327,
2213,
87,
7866,
87,
6,
738,
261,
67,
701,
1106,
12,
2890,
16186,
1106,
972,
3631,
365,
16186,
3813,
11666,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print bold("[error]: Value must be a valid number") | print bold("> Error: Value must be a valid number") | def e17_bshade(): import pyetun_bshade try: print "> Border Shade Options:" # border shade animate if pyetun_bshade.get_bshade() == "1": print bold_yellow("=> "), print "Border shade animation - ENABLED (1)" elif pyetun_bshade.get_bshade() == "0": print bold_yellow("=> "), print "Border shade animation - DISABLED (0)" #border shade transition print bold_yellow("=> "), print "Shading animation algorithm -", print pyetun_bshade.get_trans_alg() #shading speed (pixels/sec) print bold_yellow("=> "), print "Shading Speed -", print pyetun_bshade.get_shade_speed(), print "pixels/sec" #Options print bold_red("> Options: ") print bold_green("[B]ORDER SHADE ANIMATION <0/1>") print bold_green("[A]NIMATION ALGORITHM <value between 0 and 3>") print bold_green("[S]HADING SPEED <value>") print "> CTRL+C - Main Menu" valu=raw_input("Option: ") while 1: try: t=valu.split(" ") opt=t[0] value=t[1] except: print bold ("> Error: m00, wrong move! Try again..") e17_bshade() if opt=="b": try: value=int(value) if value>=0 and value<=1: pyetun_bshade.set_bshade(value) print bold("Done!") e17_bshade() else: print bold("[error]: Value between 0 and 1") e17_bshade() except ValueError: print bold("[error]: Value between 0 and 1") e17_bshade() elif opt=="a": try: value=int(value) if value>=0 and value<=3: pyetun_bshade.set_trans_alg(value) print bold("Done!") e17_bshade() else: print bold("[error]: Value between 0 and 1") e17_bshade() except ValueError: print bold("[error]: Value between 0 and 1") e17_bshade() elif opt=="s": try: value=float(value) pyetun_bshade.set_shade_speed(value) print bold("Done!") e17_bshade() except ValueError: print bold("[error]: Value must be a valid number") e17_bshade() else: print bold("[error] m000 wrong option!") e17_bshade() except KeyboardInterrupt: print "\nOops! exiting ;)" console() | 2dc56bf12f43e29753088b6cfaeea43096646f6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2281/2dc56bf12f43e29753088b6cfaeea43096646f6a/pyetun.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
4033,
67,
70,
674,
2486,
13332,
1930,
2395,
278,
318,
67,
70,
674,
2486,
775,
30,
1172,
14402,
13525,
2638,
2486,
5087,
2773,
225,
468,
5795,
699,
2486,
14671,
309,
2395,
278,
318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
4033,
67,
70,
674,
2486,
13332,
1930,
2395,
278,
318,
67,
70,
674,
2486,
775,
30,
1172,
14402,
13525,
2638,
2486,
5087,
2773,
225,
468,
5795,
699,
2486,
14671,
309,
2395,
278,
318,
... |
idstring = "$Id: notation3.py,v 1.67 2001-04-26 05:13:27 connolly Exp $" | idstring = "$Id: notation3.py,v 1.68 2001-05-08 08:14:51 connolly Exp $" | def startDoc(self): | 9d87456fb6b9ea807cc2539ce6094e4f47e95cbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/9d87456fb6b9ea807cc2539ce6094e4f47e95cbb/notation3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1759,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1759,
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,
-1... |
sys.stderr.write('MH error: %\n' % (msg % args)) | sys.stderr.write('MH error: %s\n' % (msg % args)) | def error(self, msg, *args): sys.stderr.write('MH error: %\n' % (msg % args)) | ca4080248ab45f039942df6137766b3f37621321 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ca4080248ab45f039942df6137766b3f37621321/mhlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
12,
2890,
16,
1234,
16,
380,
1968,
4672,
2589,
18,
11241,
18,
2626,
2668,
49,
44,
555,
30,
738,
64,
82,
11,
738,
261,
3576,
738,
833,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
555,
12,
2890,
16,
1234,
16,
380,
1968,
4672,
2589,
18,
11241,
18,
2626,
2668,
49,
44,
555,
30,
738,
64,
82,
11,
738,
261,
3576,
738,
833,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
return None | return MISSING_CODE | def parsecodes(codes, len=len, range=range): """ Converts code combinations to either a single code integer or a tuple of integers. meta-codes (in angular brackets, e.g. <LR> and <RL>) are ignored. Empty codes or illegal ones are returned as None. """ if not codes: return None l = codes.split('+') if len(l) == 1: return int(l[0],16) for i in range(len(l)): try: l[i] = int(l[i],16) except ValueError: l[i] = None l = [x for x in l if x is not None] if len(l) == 1: return l[0] else: return tuple(l) | 5fad89f5bc38b8ed3e50cc50ee87a5006bd75121 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/5fad89f5bc38b8ed3e50cc50ee87a5006bd75121/gencodec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
7000,
12,
7000,
16,
562,
33,
1897,
16,
1048,
33,
3676,
4672,
225,
3536,
20377,
981,
17265,
358,
3344,
279,
2202,
981,
3571,
578,
279,
3193,
434,
12321,
18,
225,
2191,
17,
7000,
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,
1109,
7000,
12,
7000,
16,
562,
33,
1897,
16,
1048,
33,
3676,
4672,
225,
3536,
20377,
981,
17265,
358,
3344,
279,
2202,
981,
3571,
578,
279,
3193,
434,
12321,
18,
225,
2191,
17,
7000,
2... |
class EditEntries(PloneKSSView): | class EditEntry(PloneKSSView): | def update(self): self.entries = [] for entry in self.task.entries: time = round_time_to_minutes(entry.time) item = dict(date = entry.date.strftime('%d-%m'), text = entry.text, time = time.strftime('%H:%M')) self.entries.append(item) | 964eb18633f02a68ce23066a2f76abe46bdb8672 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10445/964eb18633f02a68ce23066a2f76abe46bdb8672/entry.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
365,
18,
8219,
273,
5378,
364,
1241,
316,
365,
18,
4146,
18,
8219,
30,
813,
273,
3643,
67,
957,
67,
869,
67,
17916,
12,
4099,
18,
957,
13,
761,
273,
2065,
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,
1089,
12,
2890,
4672,
365,
18,
8219,
273,
5378,
364,
1241,
316,
365,
18,
4146,
18,
8219,
30,
813,
273,
3643,
67,
957,
67,
869,
67,
17916,
12,
4099,
18,
957,
13,
761,
273,
2065,
12,
... |
this = apply(_quickfix.new_LegPool, args) | this = _quickfix.new_LegPool(*args) | def __init__(self, *args): this = apply(_quickfix.new_LegPool, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8329,
2864,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
8329,
2864,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
1... |
logger.Error("Can't update bdev cache for %s, error %s" % (dev_path, str(err))) | logging.exception("Can't update bdev cache for %s", dev_path) | def RemoveCache(cls, dev_path): """Remove data for a dev_path. | 18682bca5711b7b492aeb3cd3a550087f1413e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/18682bca5711b7b492aeb3cd3a550087f1413e0b/backend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3581,
1649,
12,
6429,
16,
4461,
67,
803,
4672,
3536,
3288,
501,
364,
279,
4461,
67,
803,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
3581,
1649,
12,
6429,
16,
4461,
67,
803,
4672,
3536,
3288,
501,
364,
279,
4461,
67,
803,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if self.html[1] == None: self.download_serverhtml() if not self.want_reconnect: file_name_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*" return re.search(file_name_pattern, self.html[1]).group(1).split('/')[-1] else: return self.parent.url | if self.html[0] == None: self.download_html() file_name_pattern = r"<p class=\"downloadlink\">.+/(.+)<font" return re.findall(file_name_pattern, self.html[0])[0] | def get_file_name(self): if self.html[1] == None: self.download_serverhtml() if not self.want_reconnect: file_name_pattern = r".*name=\"dlf\" action=\"(.*)\" method=.*" return re.search(file_name_pattern, self.html[1]).group(1).split('/')[-1] else: return self.parent.url | 84704fb71130288ba71ad6c6f74ec31892814eea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9838/84704fb71130288ba71ad6c6f74ec31892814eea/RapidshareCom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
529,
12,
2890,
4672,
309,
365,
18,
2620,
63,
20,
65,
422,
599,
30,
365,
18,
7813,
67,
2620,
1435,
225,
585,
67,
529,
67,
4951,
273,
436,
6,
32,
84,
667,
5189,
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,
336,
67,
768,
67,
529,
12,
2890,
4672,
309,
365,
18,
2620,
63,
20,
65,
422,
599,
30,
365,
18,
7813,
67,
2620,
1435,
225,
585,
67,
529,
67,
4951,
273,
436,
6,
32,
84,
667,
5189,
7... |
assert(self.debugPrint("useGhostControls()")) | assert self.notify.debugCall(id(self)) | def useGhostControls(self): assert(self.debugPrint("useGhostControls()")) if self.currentControls is not self.ghostControls: self.currentControls.disableAvatarControls() self.currentControls.setCollisionsActive(0) self.ghostControls.setCollisionsActive(1) self.currentControls = self.ghostControls if self.isEnabled: self.currentControls.enableAvatarControls() | b89bbac8300857fe485c1c4217180cabb1332c50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/b89bbac8300857fe485c1c4217180cabb1332c50/ControlManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
43,
2564,
16795,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
12,
350,
12,
2890,
3719,
309,
365,
18,
2972,
16795,
353,
486,
365,
18,
75,
2564,
16795,
30,
365,
18,
2972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
43,
2564,
16795,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
12,
350,
12,
2890,
3719,
309,
365,
18,
2972,
16795,
353,
486,
365,
18,
75,
2564,
16795,
30,
365,
18,
2972,
... |
'invoice_line': [(6,0,lines)], 'currency_id' : order.pricelist_id.currency_id.id, | 'invoice_line': [(6, 0, lines)], 'currency_id': order.pricelist_id.currency_id.id, | def _make_invoice(self, cr, uid, order, lines,context={}): a = order.partner_id.property_account_receivable.id if order.payment_term: pay_term = order.payment_term.id else: pay_term = False for preinv in order.invoice_ids: if preinv.state not in ('cancel',): for preline in preinv.invoice_line: inv_line_id = self.pool.get('account.invoice.line').copy(cr, uid, preline.id, {'invoice_id':False, 'price_unit':-preline.price_unit}) lines.append(inv_line_id) inv = { 'name': order.client_order_ref or order.name, 'origin': order.name, 'type': 'out_invoice', 'reference': "P%dSO%d"%(order.partner_id.id,order.id), 'account_id': a, 'partner_id': order.partner_id.id, 'address_invoice_id': order.partner_invoice_id.id, 'address_contact_id': order.partner_invoice_id.id, 'invoice_line': [(6,0,lines)], 'currency_id' : order.pricelist_id.currency_id.id, 'comment': order.note, 'payment_term': pay_term, 'fiscal_position': order.partner_id.property_account_position.id } inv_obj = self.pool.get('account.invoice') inv.update(self._inv_get(cr, uid, order)) inv_id = inv_obj.create(cr, uid, inv) data = inv_obj.onchange_payment_term_date_invoice(cr, uid, [inv_id], pay_term,time.strftime('%Y-%m-%d')) if data.get('value',False): inv_obj.write(cr, uid, [inv_id], data['value'], context=context) inv_obj.button_compute(cr, uid, [inv_id]) return inv_id | fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fa29dc7d9e6d87f49bc3316e2b56fa977448ad6c/sale.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
16119,
12,
2890,
16,
4422,
16,
4555,
16,
1353,
16,
2362,
16,
2472,
12938,
4672,
279,
273,
1353,
18,
31993,
67,
350,
18,
4468,
67,
4631,
67,
8606,
427,
429,
18,
350,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
16119,
12,
2890,
16,
4422,
16,
4555,
16,
1353,
16,
2362,
16,
2472,
12938,
4672,
279,
273,
1353,
18,
31993,
67,
350,
18,
4468,
67,
4631,
67,
8606,
427,
429,
18,
350,
30... |
self.artwork.update_songinfo(self.songinfo) | def single_connect_for_passed_arg(self, type): self.user_connect = True self.settings_load() self.mpd_connect(blocking=True, force=True) if self.conn: self.status = mpdh.status(self.client) self.songinfo = mpdh.currsong(self.client) self.artwork.update_songinfo(self.songinfo) if type == "play": mpdh.call(self.client, 'play') elif type == "pause": mpdh.call(self.client, 'pause', 1) elif type == "stop": mpdh.call(self.client, 'stop') elif type == "next": mpdh.call(self.client, 'next') elif type == "prev": mpdh.call(self.client, 'previous') elif type == "random": if self.status: if self.status['random'] == '0': mpdh.call(self.client, 'random', 1) else: mpdh.call(self.client, 'random', 0) elif type == "repeat": if self.status: if self.status['repeat'] == '0': mpdh.call(self.client, 'repeat', 1) else: mpdh.call(self.client, 'repeat', 0) elif type == "pp": self.status = mpdh.status(self.client) if self.status: if self.status['state'] in ['play']: mpdh.call(self.client, 'pause', 1) elif self.status['state'] in ['pause', 'stop']: mpdh.call(self.client, 'play') elif type == "info": if self.status and self.status['state'] in ['play', 'pause']: mpdh.conout (_("Title") + ": " + mpdh.get(self.songinfo, 'title')) mpdh.conout (_("Artist") + ": " + mpdh.get(self.songinfo, 'artist')) mpdh.conout (_("Album") + ": " + mpdh.get(self.songinfo, 'album')) mpdh.conout (_("Date") + ": " + mpdh.get(self.songinfo, 'date')) mpdh.conout (_("Track") + ": " + mpdh.getnum(self.songinfo, 'track', '0', False, 2)) mpdh.conout (_("Genre") + ": " + mpdh.get(self.songinfo, 'genre')) mpdh.conout (_("File") + ": " + os.path.basename(mpdh.get(self.songinfo, 'file'))) at, length = [int(c) for c in self.status['time'].split(':')] at_time = misc.convert_time(at) try: time = misc.convert_time(int(mpdh.get(self.songinfo, 'time'))) print _("Time") + ": " + at_time + " / " + time except: print _("Time") + ": " + at_time print _("Bitrate") + ": " + self.status.get('bitrate', '') else: print _("MPD stopped") elif type == "status": if self.status: try: if self.status['state'] == 'play': print _("State") + ": " + _("Playing") elif self.status['state'] == 'pause': print _("State") + ": " + _("Paused") elif self.status['state'] == 'stop': print _("State") + ": " + _("Stopped") if self.status['repeat'] == '0': print _("Repeat") + ": " + _("Off") else: print _("Repeat") + ": " + _("On") if self.status['random'] == '0': print _("Random") + ": " + _("Off") else: print _("Random") + ": " + _("On") print _("Volume") + ": " + self.status['volume'] + "/100" print _('Crossfade') + ": " + self.status['xfade'] + ' ' + gettext.ngettext('second', 'seconds', int(self.status['xfade'])) except: pass else: print _("Unable to connect to MPD.\nPlease check your Sonata preferences or MPD_HOST/MPD_PORT environment variables.") | cbb6e91290137da4f75b84c01fb4a7a5c0339df2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2312/cbb6e91290137da4f75b84c01fb4a7a5c0339df2/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
67,
3612,
67,
1884,
67,
23603,
67,
3175,
12,
2890,
16,
618,
4672,
365,
18,
1355,
67,
3612,
273,
1053,
365,
18,
4272,
67,
945,
1435,
365,
18,
1291,
72,
67,
3612,
12,
18926,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2202,
67,
3612,
67,
1884,
67,
23603,
67,
3175,
12,
2890,
16,
618,
4672,
365,
18,
1355,
67,
3612,
273,
1053,
365,
18,
4272,
67,
945,
1435,
365,
18,
1291,
72,
67,
3612,
12,
18926,
33,
... | |
logo = None | def create(self, cr, uid, ids, data, context=None): logo = None if not context: context={} context = context.copy() | f16cf978ff88ce3b744db58016d29e38fb92872c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/f16cf978ff88ce3b744db58016d29e38fb92872c/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
819,
273,
819,
18,
3530,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
501,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
819,
273,
819,
18,
3530,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
del test07_EnvRemoveAndRename | del test08_EnvRemoveAndRename | def test07_EnvRemoveAndRename(self): if not self.env: return | 46ea74ede0b8d2264d7a6e3eeddf206a32b98522 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/46ea74ede0b8d2264d7a6e3eeddf206a32b98522/test_basics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8642,
67,
3491,
3288,
1876,
16019,
12,
2890,
4672,
309,
486,
365,
18,
3074,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
8642,
67,
3491,
3288,
1876,
16019,
12,
2890,
4672,
309,
486,
365,
18,
3074,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"The --force_32bit option is only valid on Mac OS systems.") if (sys.maxint > 2**31-1): raise Sorry( 'The --force_32bit option can only be used with 32-bit Python.\n' ' See also: "man python"') buffers = easy_run.fully_buffered( command="/usr/bin/arch -i386 /bin/ls /") if ( len(buffers.stderr_lines) != 0 or len(buffers.stdout_lines) == 0): raise Sorry( "The --force_32bit option is not valid for this platform.") if ( self.command_line.options.msvs_arch_flag != "None" and os.name != "nt"): raise Sorry( "The --msvs_arch_flag option is not valid for this platform.") | "The --msvs_arch_flag option is not valid for this platform.") | def __init__(self, args, default_repositories=None): self.repository_paths = [] if (len(args) == 0): args = ["--help"] if (default_repositories is None): command_name = "libtbx.configure" self.warm_start = True else: command_name = "libtbx/configure.py" self.warm_start = False parser = option_parser( usage="%s [options] module_name[=redirection_path] ..." % command_name) if (self.warm_start): parser.option(None, "--only", action="store_true", default=False, help="disable previously configured modules") else: parser.option("-r", "--repository", action="callback", type="string", callback=self.option_repository, help="path to source code repository" " (may be specified multiple times;" " paths are searched in the order given)", metavar="DIRECTORY") if (hasattr(os.path, "samefile")): parser.option(None, "--current_working_directory", action="store", type="string", default=None, help="preferred spelling of current working directory" " (to resolve ambiguities due to soft links)", metavar="DIRECTORY") parser.option(None, "--build", choices=build_options.supported_modes, default="release", help="build mode (default: release)", metavar="|".join(build_options.supported_modes)) parser.option(None, "--compiler", action="store", type="string", default="default", help="select non-standard compiler (platform dependent)", metavar="STRING") parser.option(None, "--warning_level", action="store", type="int", default=0, help="manipulate warning options (platform dependent)") parser.option(None, "--static_libraries", action="store_true", default=False, help="build all libraries statically") parser.option(None, "--static_exe", action="store_true", default=False, help="link all executables statically (implies --static_libraries)") parser.option(None, "--scan_boost", action="store_true", default=False, help="enable implicit dependency scan") parser.option(None, "--write_full_flex_fwd_h", action="store_true", default=default_write_full_flex_fwd_h, help="create full flex_fwd.h files to work around platform-specific" " problems (see comments in cctbx.source_generators.flex_fwd_h)") parser.option(None, "--command_version_suffix", action="store", type="string", default=None, help="version suffix for commands in bin directory", metavar="STRING") parser.option(None, "--use_environment_flags", action="store_true", default=False, help="add compiler flags from environment variables: CXXFLAGS, CFLAGS," " CPPFLAGS") parser.option(None, "--force_32bit", action="store_true", default=False, help="Force 32-bit compilation on Mac OS 10.6 (Snow Leopard)\n" "Not compatible with /usr/bin/python: please run configure\n" "with /System/Library/Frameworks/Python.framework/" "Versions/2.x/bin/python") msvs_arch_flag_choices = ("None", "SSE", "SSE2") parser.option(None, "--msvs_arch_flag", choices=msvs_arch_flag_choices, default=default_msvs_arch_flag, help="choose MSVS CPU architecture instruction set" " for optimized builds", metavar="|".join(msvs_arch_flag_choices)) parser.option(None, "--build_boost_python_extensions", action="store", type="bool", default=default_build_boost_python_extensions, help="build Boost.Python extension modules (default: %s)" % bool_literal(default_build_boost_python_extensions), metavar="True|False") parser.option(None, "--enable_boost_threads", action="store_true", default=False, help="enable threads in Boost") parser.option(None, "--enable_openmp_if_possible", action="store", type="bool", default=default_enable_openmp_if_possible, help="use OpenMP if available and known to work (default: %s)" % bool_literal(default_enable_openmp_if_possible), metavar="True|False") if (not self.warm_start): parser.option(None, "--boost_python_no_py_signatures", action="store_true", default=False, help="disable Boost.Python docstring Python signatures") parser.option(None, "--boost_python_bool_int_strict", action="store_false", default=True, help="disable Boost.Python implicit bool<->int conversions") self.command_line = parser.process(args=args) if (len(self.command_line.args) == 0): raise Sorry( "At least one module name is required" " (use --help to obtain more information).") if (not hasattr(os.path, "samefile")): self.command_line.options.current_working_directory = None if (default_repositories is not None): self.repository_paths.extend(default_repositories) if (self.command_line.options.force_32bit): if (sys.platform != "darwin"): raise Sorry( "The --force_32bit option is only valid on Mac OS systems.") if (sys.maxint > 2**31-1): raise Sorry( 'The --force_32bit option can only be used with 32-bit Python.\n' ' See also: "man python"') buffers = easy_run.fully_buffered( command="/usr/bin/arch -i386 /bin/ls /") if ( len(buffers.stderr_lines) != 0 or len(buffers.stdout_lines) == 0): raise Sorry( "The --force_32bit option is not valid for this platform.") if ( self.command_line.options.msvs_arch_flag != "None" and os.name != "nt"): raise Sorry( "The --msvs_arch_flag option is not valid for this platform.") | 26945c8ce4ae33f464bef40e91429539198913a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/26945c8ce4ae33f464bef40e91429539198913a2/env_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
833,
16,
805,
67,
26626,
33,
7036,
4672,
365,
18,
9071,
67,
4481,
273,
5378,
309,
261,
1897,
12,
1968,
13,
422,
374,
4672,
833,
273,
8247,
413,
5201,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
16,
805,
67,
26626,
33,
7036,
4672,
365,
18,
9071,
67,
4481,
273,
5378,
309,
261,
1897,
12,
1968,
13,
422,
374,
4672,
833,
273,
8247,
413,
5201,
1... |
if options.local_base: | if not options.download_base: | def RealMain(argv, data=None): logging.basicConfig(format=("%(asctime).19s %(levelname)s %(filename)s:" "%(lineno)s %(message)s ")) os.environ['LC_ALL'] = 'C' options, args = parser.parse_args(argv[1:]) global verbosity verbosity = options.verbose if verbosity >= 3: logging.getLogger().setLevel(logging.DEBUG) elif verbosity >= 2: logging.getLogger().setLevel(logging.INFO) vcs = GuessVCS() if isinstance(vcs, SubversionVCS): # base field is only allowed for Subversion. # Note: Fetching base files may become deprecated in future releases. base = vcs.GuessBase(not options.local_base) else: base = None if not base and not options.local_base: options.local_base = True logging.info("Enabled upload of base file") if not options.assume_yes: vcs.CheckForUnknownFiles() if data is None: data = vcs.GenerateDiff(args) if verbosity >= 1: print "Upload server:", options.server, "(change with -s/--server)" if options.issue: prompt = "Message describing this patch set: " else: prompt = "New issue subject: " message = options.message or raw_input(prompt).strip() if not message: ErrorExit("A non-empty message is required") rpc_server = GetRpcServer(options) form_fields = [("subject", message)] if base: form_fields.append(("base", base)) if options.issue: form_fields.append(("issue", str(options.issue))) if options.email: form_fields.append(("user", options.email)) if options.reviewers: for reviewer in options.reviewers.split(','): if reviewer.count("@") != 1 or "." not in reviewer.split("@")[1]: ErrorExit("Invalid email address: %s" % reviewer) form_fields.append(("reviewers", options.reviewers)) if options.cc: for cc in options.cc.split(','): if cc.count("@") != 1 or "." not in cc.split("@")[1]: ErrorExit("Invalid email address: %s" % cc) form_fields.append(("cc", options.cc)) description = options.description if options.description_file: if options.description: ErrorExit("Can't specify description and description_file") file = open(options.description_file, 'r') description = file.read() file.close() if description: form_fields.append(("description", description)) # If we're uploading base files, don't send the email before the uploads, so # that it contains the file status. if options.send_mail and not options.local_base: form_fields.append(("send_mail", "1")) if options.local_base: form_fields.append(("content_upload", "1")) if len(data) > MAX_UPLOAD_SIZE: print "Patch is large, so uploading file patches separately." files = [] form_fields.append(("separate_patches", "1")) else: files = [("data", "data.diff", data)] ctype, body = EncodeMultipartFormData(form_fields, files) response_body = rpc_server.Send("/upload", body, content_type=ctype) if options.local_base or not files: lines = response_body.splitlines() if len(lines) >= 2: msg = lines[0] patchset = lines[1].strip() patches = [x.split(" ", 1) for x in lines[2:]] else: msg = response_body else: msg = response_body StatusUpdate(msg) if not response_body.startswith("Issue created.") and \ not response_body.startswith("Issue updated."): sys.exit(0) issue = msg[msg.rfind("/")+1:] if not files: result = UploadSeparatePatches(issue, rpc_server, patchset, data, options) if options.local_base: patches = result if options.local_base: vcs.UploadBaseFiles(issue, rpc_server, patches, patchset, options) if options.send_mail: rpc_server.Send("/" + issue + "/mail", payload="") return issue | 51830c0e218e798dbe421fbf5161f68626b9b3b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/51830c0e218e798dbe421fbf5161f68626b9b3b5/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15987,
6376,
12,
19485,
16,
501,
33,
7036,
4672,
2907,
18,
13240,
809,
12,
2139,
33,
2932,
17105,
345,
21261,
2934,
3657,
87,
8975,
31994,
13,
87,
8975,
3459,
13,
87,
2773,
22061,
17782,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15987,
6376,
12,
19485,
16,
501,
33,
7036,
4672,
2907,
18,
13240,
809,
12,
2139,
33,
2932,
17105,
345,
21261,
2934,
3657,
87,
8975,
31994,
13,
87,
8975,
3459,
13,
87,
2773,
22061,
17782,... |
plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet | plnet = game.state.galaxy[game.quadrant.i][game.quadrant.j].planet | def status(req=0): "Emit status report lines" if not req or req == 1: prstat(_("Stardate"), _("%.1f, Time Left %.2f") \ % (game.state.date, game.state.remtime)) if not req or req == 2: if game.condition != "docked": newcnd() dam = 0 for t in range(NDEVICES): if game.damage[t]>0: dam += 1 prstat(_("Condition"), _("%s, %i DAMAGES") % (game.condition.upper(), dam)) if not req or req == 3: prstat(_("Position"), "%s , %s" % (game.quadrant, game.sector)) if not req or req == 4: if damaged(DLIFSUP): if game.condition == "docked": s = _("DAMAGED, Base provides") else: s = _("DAMAGED, reserves=%4.2f") % game.lsupres else: s = _("ACTIVE") prstat(_("Life Support"), s) if not req or req == 5: prstat(_("Warp Factor"), "%.1f" % game.warpfac) if not req or req == 6: extra = "" if game.icrystl and (game.options & OPTION_SHOWME): extra = _(" (have crystals)") prstat(_("Energy"), "%.2f%s" % (game.energy, extra)) if not req or req == 7: prstat(_("Torpedoes"), "%d" % (game.torps)) if not req or req == 8: if damaged(DSHIELD): s = _("DAMAGED,") elif game.shldup: s = _("UP,") else: s = _("DOWN,") data = _(" %d%% %.1f units") \ % (int((100.0*game.shield)/game.inshld + 0.5), game.shield) prstat(_("Shields"), s+data) if not req or req == 9: prstat(_("Klingons Left"), "%d" \ % (game.state.remkl + len(game.state.kcmdr) + game.state.nscrem)) if not req or req == 10: if game.options & OPTION_WORLDS: plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet if plnet and plnet.inhabited: prstat(_("Major system"), plnet.name) else: prout(_("Sector is uninhabited")) elif not req or req == 11: attackreport(not req) | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
12,
3658,
33,
20,
4672,
315,
17982,
1267,
2605,
2362,
6,
309,
486,
1111,
578,
1111,
422,
404,
30,
846,
5642,
24899,
2932,
18379,
712,
6,
3631,
389,
27188,
18,
21,
74,
16,
2647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1267,
12,
3658,
33,
20,
4672,
315,
17982,
1267,
2605,
2362,
6,
309,
486,
1111,
578,
1111,
422,
404,
30,
846,
5642,
24899,
2932,
18379,
712,
6,
3631,
389,
27188,
18,
21,
74,
16,
2647,
... |
@param defval: the default identifier. This value will appear in | @param defval: the default identifier. This value will appear in | def AskIdent(defval, prompt): """ Ask the user to enter an identifier @param defval: the default identifier. This value will appear in the dialog box. @param prompt: the prompt to display in the dialog box @return: the entered identifier or 0. """ return idaapi.askident(defval, prompt) | bf1ab9894aabbc1bcdadb6513fc5ef25283e4f52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/bf1ab9894aabbc1bcdadb6513fc5ef25283e4f52/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25747,
6106,
12,
536,
1125,
16,
6866,
4672,
3536,
25747,
326,
729,
358,
6103,
392,
2756,
225,
632,
891,
1652,
1125,
30,
326,
805,
2756,
18,
1220,
460,
903,
9788,
316,
326,
6176,
3919,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25747,
6106,
12,
536,
1125,
16,
6866,
4672,
3536,
25747,
326,
729,
358,
6103,
392,
2756,
225,
632,
891,
1652,
1125,
30,
326,
805,
2756,
18,
1220,
460,
903,
9788,
316,
326,
6176,
3919,
... |
i = random.randrange(0, n) | i = random.randrange(n) | def randrange(n): """Return a random shuffle of range(n).""" fn = os.path.join(td, "rr%06d" % n) try: fp = open(fn, "rb") except IOError: result = [] for i in range(n): result.append(random.random()) try: try: fp = open(fn, "wb") marshal.dump(result, fp) fp.close() fp = None finally: if fp: try: os.unlink(fn) except os.error: pass except IOError, msg: print "can't write", fn, ":", msg else: result = marshal.load(fp) fp.close() ##assert len(result) == n # Shuffle it a bit... for i in range(10): i = random.randrange(0, n) temp = result[:i] del result[:i] temp.reverse() result[len(result):] = temp del temp return result | 1a0647b0e18d6de52c4c51bdae9fe97eb7441d05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1a0647b0e18d6de52c4c51bdae9fe97eb7441d05/sortperf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5605,
3676,
12,
82,
4672,
3536,
990,
279,
2744,
12552,
434,
1048,
12,
82,
13,
12123,
2295,
273,
1140,
18,
803,
18,
5701,
12,
4465,
16,
315,
523,
9,
7677,
72,
6,
738,
290,
13,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5605,
3676,
12,
82,
4672,
3536,
990,
279,
2744,
12552,
434,
1048,
12,
82,
13,
12123,
2295,
273,
1140,
18,
803,
18,
5701,
12,
4465,
16,
315,
523,
9,
7677,
72,
6,
738,
290,
13,
775,
... |
assumedEndTime = datetime.datetime.utcnow()-((datetime.datetime.utcnow()-startTime)/2) | assumedEndTime = datetime.datetime.utcnow() - ( ( datetime.datetime.utcnow() - startTime ) / 2 ) | def MigratingToMigrated(self,se): """ Obtain the active files from the migration monitoring db and check their status """ # First get the migrating files from the database gLogger.info("[%s] MigratingToMigrated: Attempting to obtain 'Migrating' files." % se) res = self.__getFiles(se,'Migrating') if not res['OK']: gLogger.error("[%s] MigratingToMigrated: Failed to get 'Migrating' files." % se, res['Message']) return res pfnIDs = res['Value']['PFNIDs'] if not pfnIDs: gLogger.info("[%s] MigratingToMigrated: Found no 'Migrating' files." % se) return S_OK() migratingFiles = res['Value']['MigratingFiles'] gLogger.info("[%s] MigratingToMigrated: Found %d 'Migrating' files." % (se, len(pfnIDs))) gMonitor.addMark("MigratingFiles%s" % se,len(pfnIDs)) gLogger.info("[%s] MigratingToMigrated: Obtaining physical file metadata for 'Migrating' files." % se) startTime = datetime.datetime.utcnow() res = self.__getMigratedFiles(se,pfnIDs.keys()) if not res['OK']: gLogger.error("[%s] MigratingToMigrated: Failed to get 'Migrating' file metadata." % se, res['Message']) return res assumedEndTime = datetime.datetime.utcnow()-((datetime.datetime.utcnow()-startTime)/2) # Assumed that the files are found migrated midway through obtaining the metadata previousMonitorTime = self.lastMonitors[se] self.lastMonitors[se] = datetime.datetime.utcnow() terminal = res['Value']['Terminal'] migrated = res['Value']['Migrated'] | 9a22336d92a455ef5a2bab49d70e2e3a11f3d910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a22336d92a455ef5a2bab49d70e2e3a11f3d910/MigrationMonitoringAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
490,
2757,
1776,
774,
25483,
690,
12,
2890,
16,
307,
4672,
3536,
24850,
326,
2695,
1390,
628,
326,
6333,
16309,
1319,
471,
866,
3675,
1267,
3536,
468,
5783,
336,
326,
4196,
1776,
1390,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
490,
2757,
1776,
774,
25483,
690,
12,
2890,
16,
307,
4672,
3536,
24850,
326,
2695,
1390,
628,
326,
6333,
16309,
1319,
471,
866,
3675,
1267,
3536,
468,
5783,
336,
326,
4196,
1776,
1390,
6... |
message := the message, or '' to come back from awayness | message := the message, or '' to come back from awayness | def away(self,message=''): """ change away state | cf5c1b9b6982ffbfcc655062fdf4b5c939fafc3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/cf5c1b9b6982ffbfcc655062fdf4b5c939fafc3f/toc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10804,
12,
2890,
16,
2150,
2218,
11,
4672,
3536,
2549,
10804,
919,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10804,
12,
2890,
16,
2150,
2218,
11,
4672,
3536,
2549,
10804,
919,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
"hooktestpackage.sub.subber": (False, test_co), | "hooktestpackage.sub.subber": (True, test_co), | def find_module(self, fullname, path=None): self.imports.append(fullname) return None | 318667d7da006e095462f3bbeb4beaa114200a18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/318667d7da006e095462f3bbeb4beaa114200a18/test_importhooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2978,
12,
2890,
16,
13321,
16,
589,
33,
7036,
4672,
365,
18,
21350,
18,
6923,
12,
21885,
13,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
2978,
12,
2890,
16,
13321,
16,
589,
33,
7036,
4672,
365,
18,
21350,
18,
6923,
12,
21885,
13,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
from django.contrib.auth import authenticate user = authenticate(username=username, password=password) if user is None: | user = ESPUser.objects.get(username__iexact=username) if not user.check_password(password): | def return_(val): """ Return the specified return value in the appropriate format """ if val == True: print "true" sys.exit(0) elif val == False: print "false" sys.exit(1) else: print val sys.exit(255) | 6f049ff6022c075b74a5dd4847c06eb99b7a0878 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/6f049ff6022c075b74a5dd4847c06eb99b7a0878/cmdline_auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
12,
1125,
4672,
3536,
2000,
326,
1269,
327,
460,
316,
326,
5505,
740,
3536,
309,
1244,
422,
1053,
30,
1172,
315,
3767,
6,
2589,
18,
8593,
12,
20,
13,
1327,
1244,
422,
1083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
327,
67,
12,
1125,
4672,
3536,
2000,
326,
1269,
327,
460,
316,
326,
5505,
740,
3536,
309,
1244,
422,
1053,
30,
1172,
315,
3767,
6,
2589,
18,
8593,
12,
20,
13,
1327,
1244,
422,
1083,
... |
if not math.isnan(feat.GetField( 'AREA' )): print feat.GetFieldAsString( 'AREA' )+' returned for AREA instead of '+value | if got_val == got_val: print(feat.GetFieldAsString( 'AREA' )+' returned for AREA instead of '+value) | dst_feat = ogr.Feature( feature_def = gdaltest.pg_lyr.GetLayerDefn() ) | 543a0c331f58d1331c9e2514039e4acdd2e52390 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10289/543a0c331f58d1331c9e2514039e4acdd2e52390/ogr_pg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3046,
67,
29735,
273,
320,
3197,
18,
4595,
12,
2572,
67,
536,
273,
15551,
2390,
395,
18,
8365,
67,
715,
86,
18,
967,
4576,
3262,
82,
1435,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3046,
67,
29735,
273,
320,
3197,
18,
4595,
12,
2572,
67,
536,
273,
15551,
2390,
395,
18,
8365,
67,
715,
86,
18,
967,
4576,
3262,
82,
1435,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
effective = (effective / tabwidth + 1) * tabwidth | effective = (int(effective / tabwidth) + 1) * tabwidth | def classifyws(s, tabwidth): raw = effective = 0 for ch in s: if ch == ' ': raw = raw + 1 effective = effective + 1 elif ch == '\t': raw = raw + 1 effective = (effective / tabwidth + 1) * tabwidth else: break return raw, effective | 56ad405be8e8cd22c8b59f914257b2c442df3a21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/56ad405be8e8cd22c8b59f914257b2c442df3a21/AutoIndent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19974,
4749,
12,
87,
16,
3246,
2819,
4672,
1831,
273,
11448,
273,
374,
364,
462,
316,
272,
30,
309,
462,
422,
296,
4290,
1831,
273,
1831,
397,
404,
11448,
273,
11448,
397,
404,
1327,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19974,
4749,
12,
87,
16,
3246,
2819,
4672,
1831,
273,
11448,
273,
374,
364,
462,
316,
272,
30,
309,
462,
422,
296,
4290,
1831,
273,
1831,
397,
404,
11448,
273,
11448,
397,
404,
1327,
4... |
i += 1 sn += 1 | def makeSectors(self): # normalize slice data if type(self.data) in (ListType, TupleType) and type(self.data[0]) in (ListType, TupleType): #it's a nested list, more than one sequence normData = [] n = [] for l in self.data: t = self.normalizeData(l) normData.append(t) n.append(len(t)) self._seriesCount = max(n) else: normData = self.normalizeData(self.data) n = len(normData) self._seriesCount = n | 8eb5ba4a1afccb43cbef813598e010b3e0d959a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/8eb5ba4a1afccb43cbef813598e010b3e0d959a9/doughnut.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
55,
18886,
12,
2890,
4672,
468,
3883,
2788,
501,
309,
618,
12,
2890,
18,
892,
13,
316,
261,
19366,
16,
7257,
559,
13,
471,
618,
12,
2890,
18,
892,
63,
20,
5717,
316,
261,
19366... | |
self.extra_headers.append(Header("SIP-If-Match", self._last_etag)) | extra_headers.append(Header("SIP-If-Match", self._last_etag)) extra_headers.extend(self.extra_headers) | def _make_and_send_request(self, body, route_header, timeout, do_publish): notification_center = NotificationCenter() self.extra_headers.append(Header("Event", self.event)) self.extra_headers.append(Header("Expires", str(int(self.duration) if do_publish else 0))) if self._last_etag is not None: self.extra_headers.append(Header("SIP-If-Match", self._last_etag)) content_type = (self.content_type if body is not None else None) request = Request("PUBLISH", self.from_header, ToHeader.new(self.from_header), self.from_header.uri, route_header, credentials=self.credentials, cseq=1, extra_headers=self.extra_headers, content_type=content_type, body=body) notification_center.add_observer(self, sender=request) if self._current_request is not None: # we are trying to send something already, cancel whatever it is self._current_request.end() self._current_request = None try: request.send(timeout=timeout) except: notification_center.remove_observer(self, sender=request) raise self._unpublishing = not do_publish self._current_request = request | 54054ceb4db5c460c5e448eee5b3466d1aa0ee29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/54054ceb4db5c460c5e448eee5b3466d1aa0ee29/_primitives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
464,
67,
4661,
67,
2293,
12,
2890,
16,
1417,
16,
1946,
67,
3374,
16,
2021,
16,
741,
67,
6543,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
365,
18,
7763,
67,
2485,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
67,
464,
67,
4661,
67,
2293,
12,
2890,
16,
1417,
16,
1946,
67,
3374,
16,
2021,
16,
741,
67,
6543,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
365,
18,
7763,
67,
2485,
18,... |
return (self._state != self.Open) | return (self._state == self.Open) | def isOpen(self): """Return True if serial connection is open" """ return (self._state != self.Open) | 5eed45bbd5254c44a87c429e6fa71ff31f08cd74 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6354/5eed45bbd5254c44a87c429e6fa71ff31f08cd74/TkSerial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16633,
12,
2890,
4672,
3536,
990,
1053,
309,
2734,
1459,
353,
1696,
6,
3536,
327,
261,
2890,
6315,
2019,
422,
365,
18,
3678,
13,
225,
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,
16633,
12,
2890,
4672,
3536,
990,
1053,
309,
2734,
1459,
353,
1696,
6,
3536,
327,
261,
2890,
6315,
2019,
422,
365,
18,
3678,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if func.func_name in self.commands_resuming : | if func.func_name in self.commands_resuming: | return # continue to handle other cmd def in the cmd list | f856eefea3958fc4346d1e2b34b70f05aa053bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f856eefea3958fc4346d1e2b34b70f05aa053bdc/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
327,
468,
1324,
358,
1640,
1308,
1797,
1652,
316,
326,
1797,
666,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
327,
468,
1324,
358,
1640,
1308,
1797,
1652,
316,
326,
1797,
666,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
MelString('ICON','iconPath'), | MelString('ICON','largeIconPath'), MelString('MICO','smallIconPath'), | def dumpData(self,record,out): if not record.schd_p: MelStruct.dumpData(self,record,out) | 99172d4ed4977108c05b04adab7c91f861e1c635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/99172d4ed4977108c05b04adab7c91f861e1c635/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
751,
12,
2890,
16,
3366,
16,
659,
4672,
309,
486,
1409,
18,
28204,
72,
67,
84,
30,
490,
292,
3823,
18,
8481,
751,
12,
2890,
16,
3366,
16,
659,
13,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
751,
12,
2890,
16,
3366,
16,
659,
4672,
309,
486,
1409,
18,
28204,
72,
67,
84,
30,
490,
292,
3823,
18,
8481,
751,
12,
2890,
16,
3366,
16,
659,
13,
2,
-100,
-100,
-100,
-100,
... |
installDir = os.path.join(destdir,libDir.split(os.sep)) | installDir = os.path.join(destdir,*libDir.split(os.sep)) | def main(command, destdir): # Command-line arguments if command not in ("build","install","clean","uninstall"): raise RuntimeError, "Command '%s' not supported" % command # Extract the Makefile variables print "\nExtracting Makefile variables ...", sys.stdout.flush() makeMacros = processMakefile("Makefile") print "done" # Determine what packages are enabled enabledPackages = [package for package in packages if makeMacros.get("ENABLE_" + package.upper(), "false") == "true"] # Determine the installation information mkdir = makeMacros["mkdir_p"] libDir = makeMacros["libdir"] if destdir: installDir = os.path.join(destdir,libDir.split(os.sep)) else: installDir = libDir ###################################################### # Build/clean/install/uninstall the shared libraries # ###################################################### if SharedUtils.buildSharedLibraries(): # Create the shared library builders builders = [ ] for package in enabledPackages: builders.append(SharedUtils.SharedTrilinosBuilder(package)) # Special cases if makeMacros["ENABLE_THYRA" ] == "true" and \ makeMacros["ENABLE_EPETRA"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("thyraepetra")) if makeMacros["ENABLE_THYRA" ] == "true" and \ makeMacros["ENABLE_EPETRAEXT"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("thyraepetraext")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_AMESOS" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosamesos")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_AZTECOO" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosaztecoo")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_IFPACK" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosifpack")) if makeMacros["ENABLE_STRATIMIKOS"] == "true" and \ makeMacros["ENABLE_ML" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("stratimikosml")) if makeMacros["ENABLE_NOX_EPETRA"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("noxepetra")) if makeMacros["ENABLE_LOCA" ] == "true" and \ makeMacros["ENABLE_EPETRA"] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("locaepetra")) if makeMacros["ENABLE_MOOCHO"] == "true" and \ makeMacros["ENABLE_THYRA" ] == "true": builders.append(SharedUtils.SharedTrilinosBuilder("moochothyra")) # Add the PyTrilinos shared library builder to the end of the list if makeMacros["ENABLE_PYTRILINOS"] == "true": builders.append(SharedUtils.SharedPyTrilinosBuilder()) # Build command if command == "build": # Convert package libraries to shared for builder in builders: builder.buildShared() # Clean command if command == "clean": # Remove any dynamic libraries for builder in builders: builder.clean() # Install command if command == "install": # Make sure the lib directory exists SharedUtils.runCommand(" ".join([mkdir, installDir])) # Install the shared libraries for builder in builders: builder.install(installDir) # Uninstall command if command == "uninstall": # Uninstall the dynamic libraries for builder in builders: builder.uninstall() | 1fde73463515d81a43b34293b141579ba8676802 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1130/1fde73463515d81a43b34293b141579ba8676802/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3076,
16,
1570,
1214,
4672,
225,
468,
3498,
17,
1369,
1775,
309,
1296,
486,
316,
7566,
3510,
15937,
5425,
15937,
6200,
15937,
28872,
6,
4672,
1002,
7265,
16,
315,
2189,
1995,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3076,
16,
1570,
1214,
4672,
225,
468,
3498,
17,
1369,
1775,
309,
1296,
486,
316,
7566,
3510,
15937,
5425,
15937,
6200,
15937,
28872,
6,
4672,
1002,
7265,
16,
315,
2189,
1995,
8... |
def onPageChanged(self, event): inspector = self.inspectors[event.GetSelection()] if inspector is not None: self.SetTitle(inspector.name() + ' ' + gettext('Inspector')) if not self._updatingInspectors: self._lastClickedInspectorClass = inspector.__class__ | def onSize(self, event): if self._activeInspector is not None: self._activeInspector.window().Layout() | def onPageChanged(self, event): inspector = self.inspectors[event.GetSelection()] if inspector is not None: self.SetTitle(inspector.name() + ' ' + gettext('Inspector')) if not self._updatingInspectors: self._lastClickedInspectorClass = inspector.__class__ self.Layout() self.Fit() # wx.StaticBoxSizers in wx.ToolBooks are flaky with the current wx. Any static boxes in the inspector won't be laid out correctly at this point. # We have to wait until they get realized and rendered once and then layout again. wx.CallAfter(self.relayout) | 853364df34a3a5ee0851c87290c96a6e9b16b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6368/853364df34a3a5ee0851c87290c96a6e9b16b8f5/InspectorFrame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
1225,
12,
2890,
16,
871,
4672,
309,
365,
6315,
3535,
19443,
353,
486,
599,
30,
365,
6315,
3535,
19443,
18,
5668,
7675,
3744,
1435,
365,
18,
3744,
1435,
365,
18,
14219,
1435,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1225,
12,
2890,
16,
871,
4672,
309,
365,
6315,
3535,
19443,
353,
486,
599,
30,
365,
6315,
3535,
19443,
18,
5668,
7675,
3744,
1435,
365,
18,
3744,
1435,
365,
18,
14219,
1435,
225,
... |
os.unlink(TESTFN) | test_support.unlink(TESTFN) | def test_codingspec(self): try: for enc in ALL_CJKENCODINGS: print('# coding:', enc, file=io.open(TESTFN, 'w')) execfile(TESTFN) finally: os.unlink(TESTFN) | 7159cac0b83cfedc657b3553c4ea97667edc1fe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/7159cac0b83cfedc657b3553c4ea97667edc1fe5/test_multibytecodec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1559,
899,
705,
12,
2890,
4672,
775,
30,
364,
2446,
316,
8061,
67,
39,
19474,
14672,
55,
30,
1172,
2668,
7,
14848,
30,
2187,
2446,
16,
585,
33,
1594,
18,
3190,
12,
16961,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1559,
899,
705,
12,
2890,
4672,
775,
30,
364,
2446,
316,
8061,
67,
39,
19474,
14672,
55,
30,
1172,
2668,
7,
14848,
30,
2187,
2446,
16,
585,
33,
1594,
18,
3190,
12,
16961,
1... |
setTelephone(self.phone.getText()) | setOptions(self.phone.getText(), self.username.getText()) | def connect(self): if self.green_function == CONNECT: global gateway gateway = getDefaultGateway() self["state"].setText(_("Dialing:")) system("route del default") system("modprobe ppp_async"); self.stateTimer.start(1000,False) setTelephone(self.phone.getText()) setSecretString(self.username.getText() + ' * ' + self.password.getText()) ret = conn.execute("pppd", "pppd", "-d", "-detach") if ret: print "execute pppd failed!" self.pppdClosed(ret) pppdClosed(ret) self.green_function = NONE self.red_function = ABORT self.updateGui() | d54760e74574f4fdc37b73f9afc8474e744d8543 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/d54760e74574f4fdc37b73f9afc8474e744d8543/plugin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
4672,
309,
365,
18,
11571,
67,
915,
422,
21593,
30,
2552,
6878,
6878,
273,
4829,
5197,
1435,
365,
9614,
2019,
6,
8009,
542,
1528,
24899,
2932,
11885,
310,
2773,
3719,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
4672,
309,
365,
18,
11571,
67,
915,
422,
21593,
30,
2552,
6878,
6878,
273,
4829,
5197,
1435,
365,
9614,
2019,
6,
8009,
542,
1528,
24899,
2932,
11885,
310,
2773,
3719,
261... |
YouTubeVideoQuery.__init__(self, feed, text_query=text_query, | YouTubeVideoQuery.__init__(self, feed=feed, text_query=text_query, | def __init__(self, playlist_id, text_query=None, params=None, categories=None): if playlist_id: feed = "http://%s/feeds/playlists/%s" % (YOUTUBE_SERVER, playlist_id) else: feed = "http://%s/feeds/playlists" % (YOUTUBE_SERVER) | 9f0ecbaa66b0e2a9b00d6ebc6945a479a8ce44f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/9f0ecbaa66b0e2a9b00d6ebc6945a479a8ce44f5/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16428,
67,
350,
16,
977,
67,
2271,
33,
7036,
16,
859,
33,
7036,
16,
6477,
33,
7036,
4672,
309,
16428,
67,
350,
30,
4746,
273,
315,
2505,
23155,
87,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16428,
67,
350,
16,
977,
67,
2271,
33,
7036,
16,
859,
33,
7036,
16,
6477,
33,
7036,
4672,
309,
16428,
67,
350,
30,
4746,
273,
315,
2505,
23155,
87,
19,... |
'date_planned': newdate.strftime('%Y-%m-%d'), | 'date_planned': newdate.strftime('%Y-%m-%d %H:%M:%S'), | def po_generate(self,cr, uid, ids, *args): plines = self.browse(cr, uid ,ids) if not plines: raise osv.except_osv('Warning', "There's no purchase lines defined for this campaign") for pline in plines: if pline.state != 'done': if not pline.product_id.seller_ids: raise osv.except_osv('Warning', "There's no supplier defined for this product : %s" % (pline.product_id.name,) ) | 69c8954d987167cad030faf89e21c8ebbb6cb792 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/69c8954d987167cad030faf89e21c8ebbb6cb792/campaign.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8275,
67,
7163,
12,
2890,
16,
3353,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
886,
1465,
273,
365,
18,
25731,
12,
3353,
16,
4555,
269,
2232,
13,
309,
486,
886,
1465,
30,
1002,
225,
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,
8275,
67,
7163,
12,
2890,
16,
3353,
16,
4555,
16,
3258,
16,
380,
1968,
4672,
886,
1465,
273,
365,
18,
25731,
12,
3353,
16,
4555,
269,
2232,
13,
309,
486,
886,
1465,
30,
1002,
225,
11... |
r = text.__repr__() if r[0] == '"': r = r[1:-1].replace("'", "\\'") else: r = r[1:-1].replace('"', '\\"') return r | return text.encode("string_escape") | def encode(text): r = text.__repr__() if r[0] == '"': # String surrounded by " returned, need to escape ' r = r[1:-1].replace("'", "\\'") else: # String surrounded by ' returned, need to escape " r = r[1:-1].replace('"', '\\"') return r | 9544ed6a77ed6e5482983d4fea911e4c6c8f1d14 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7146/9544ed6a77ed6e5482983d4fea911e4c6c8f1d14/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
955,
4672,
436,
273,
977,
16186,
12715,
972,
1435,
309,
436,
63,
20,
65,
422,
2119,
4278,
468,
514,
5056,
27561,
635,
315,
2106,
16,
1608,
358,
4114,
296,
436,
273,
436,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
12,
955,
4672,
436,
273,
977,
16186,
12715,
972,
1435,
309,
436,
63,
20,
65,
422,
2119,
4278,
468,
514,
5056,
27561,
635,
315,
2106,
16,
1608,
358,
4114,
296,
436,
273,
436,
63,
... |
Searches for events in the database and stores a list of resource names. All events with at least one pick set in between start- and | Searches for events in the database and returns a lxml ElementTree object. All events with at least one pick set in between start- and | def updateEventListFromSeishub(self, starttime, endtime): """ Searches for events in the database and stores a list of resource names. All events with at least one pick set in between start- and endtime are returned. | f1b07e9850f312d642204d84482875b77beec5ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/f1b07e9850f312d642204d84482875b77beec5ed/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1133,
682,
1265,
1761,
1468,
373,
12,
2890,
16,
23437,
16,
31361,
4672,
3536,
5167,
281,
364,
2641,
316,
326,
2063,
471,
1135,
279,
328,
2902,
22566,
733,
18,
4826,
2641,
598,
622,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1133,
682,
1265,
1761,
1468,
373,
12,
2890,
16,
23437,
16,
31361,
4672,
3536,
5167,
281,
364,
2641,
316,
326,
2063,
471,
1135,
279,
328,
2902,
22566,
733,
18,
4826,
2641,
598,
622,... |
assert package in packages, "package " + package + " cannot be updated because it does not exist" | if package not in packages: sys.stderr.write ("package " + package + " cannot be updated because it does not exist\n") | def myvercmp (first, second): if first == second: return 0 elif bestVersion((first, second)) == first: return 1 else: return -1 | fb06a65eda201f9ceb8dc47bedd30453a10cc740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2508/fb06a65eda201f9ceb8dc47bedd30453a10cc740/new-kde-ebuilds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
502,
9625,
261,
3645,
16,
2205,
4672,
309,
1122,
422,
2205,
30,
327,
374,
1327,
3796,
1444,
12443,
3645,
16,
2205,
3719,
422,
1122,
30,
327,
404,
469,
30,
327,
300,
21,
225,
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,
3399,
502,
9625,
261,
3645,
16,
2205,
4672,
309,
1122,
422,
2205,
30,
327,
374,
1327,
3796,
1444,
12443,
3645,
16,
2205,
3719,
422,
1122,
30,
327,
404,
469,
30,
327,
300,
21,
225,
2,
... |
(uid, gid, pid) = self.GetContext() tsumufs.cacheManager.access(uid, path, os.W_OK) | context = self.GetContext() tsumufs.cacheManager.access(context['uid'], path, os.W_OK) | def rmdir(self, path): ''' Removes a directory from disk. | 56cfc668ba28d4093de8b3bf968f1f77cb41dc81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5149/56cfc668ba28d4093de8b3bf968f1f77cb41dc81/fusethread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21306,
12,
2890,
16,
589,
4672,
9163,
20284,
279,
1867,
628,
4234,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21306,
12,
2890,
16,
589,
4672,
9163,
20284,
279,
1867,
628,
4234,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) c = tuple (map (fix360, c)) if ((), c) in net: net[((), c)] = net[((), c)] + 1 else: net[((), c)] = 1 | for frame in range(len(cbone)): c = cbone[frame,:] c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) c = tuple (map (fix360, c)) if ((), c) in net: net[((), c)] = net[((), c)] + 1 else: net[((), c)] = 1 | def load(asf, files): amcs = [] nets = {} for filename in files: print 'loading %s' % filename amcs.append(AMC.from_file(filename)) relationships = {} for rel in asf.hierarchy: parent = rel[0] children = rel[1:] if len(parent): relationships[parent] = children for child in children: if child in amcs[0].bones: nets[child] = {} # this *ought* to match the interval we use in the grap building, but I'm # not sure it really matters interval = 5 print 'building bayes nets' for parent, children in relationships.iteritems(): for child in children: print 'building net for %s' % child if child not in amcs[0].bones: # If the child has no DOF, we don't need to build a net at # all, since we won't be interpolating that bone continue if parent not in amcs[0].bones: # If the parent has no DOF, the bayes net for this # relationship simplifies to a simple histogram of the # bone positions net = nets[child] for amc in amcs: cbone = amc.bones[child] # Chomp to within interval c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) c = tuple (map (fix360, c)) if ((), c) in net: net[((), c)] = net[((), c)] + 1 else: net[((), c)] = 1 else: net = nets[child] for amc in amcs: pbone = Numeric.remainder (amc.bones[parent], 360.0) cbone = Numeric.remainder (amc.bones[child], 360.0) for frame in range(len(pbone)): p = pbone[frame,:] c = cbone[frame,:] # Chomp to within interval p = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, p))) c = tuple (int (n / interval) * interval for n in tuple (map (fixnegative, c))) p = tuple (map (fix360, p)) c = tuple (map (fix360, c)) if (p, c) in net: net[(p, c)] = net[(p, c)] + 1 else: net[(p, c)] = 1 newnets = {} for bone, net in nets.iteritems(): newnet = {} parents = {} for pose, count in net.iteritems(): ppose = pose[0] cpose = pose[1] if ppose not in parents: parents[ppose] = {} parents[ppose][cpose] = count newnets[bone] = parents del nets nets = {} for bone, parents in newnets.iteritems(): for parent, children in parents.iteritems(): total = 0 for count in children.itervalues(): total += count for child, count in children.iteritems(): nets[(parent, child)] = float(count) / float(total) return nets | ff1f81aafb7e519fd2e34a728f13603d021b1703 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/ff1f81aafb7e519fd2e34a728f13603d021b1703/build_bayes_net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
345,
74,
16,
1390,
4672,
2125,
2143,
273,
5378,
21954,
273,
2618,
225,
364,
1544,
316,
1390,
30,
1172,
296,
15174,
738,
87,
11,
738,
1544,
2125,
2143,
18,
6923,
12,
2192,
39,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
345,
74,
16,
1390,
4672,
2125,
2143,
273,
5378,
21954,
273,
2618,
225,
364,
1544,
316,
1390,
30,
1172,
296,
15174,
738,
87,
11,
738,
1544,
2125,
2143,
18,
6923,
12,
2192,
39,... |
doc = self.doc if doc == None: return None try: doc._ctxt.setContextNode(self) except: doc._ctxt = doc.xpathNewContext() doc._ctxt.setContextNode(self) res = doc._ctxt.xpathEval(expr) return res | return self.xpathEval(expr) | def xpathEval2(self, expr): doc = self.doc if doc == None: return None try: doc._ctxt.setContextNode(self) except: doc._ctxt = doc.xpathNewContext() doc._ctxt.setContextNode(self) res = doc._ctxt.xpathEval(expr) return res | f88d8cf9f1c9538dba187290ad5add003dc22bc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/f88d8cf9f1c9538dba187290ad5add003dc22bc7/libxml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6748,
13904,
22,
12,
2890,
16,
3065,
4672,
997,
273,
365,
18,
2434,
309,
997,
422,
599,
30,
327,
599,
775,
30,
997,
6315,
20364,
18,
542,
1042,
907,
12,
2890,
13,
1335,
30,
997,
6315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6748,
13904,
22,
12,
2890,
16,
3065,
4672,
997,
273,
365,
18,
2434,
309,
997,
422,
599,
30,
327,
599,
775,
30,
997,
6315,
20364,
18,
542,
1042,
907,
12,
2890,
13,
1335,
30,
997,
6315... |
starting = _MAX_LINES - 4 response[starting:-3] = ['(...%d lines, entire response in ' '%s ...)' % (nlines - (_MAX_LINES - 1), paste_url)] | response[_MAX_LINES:] = ['(...%d lines, entire response in ' '%s ...)' % (nlines, paste_url)] | def infobat_exec(self, target, *text): try: paste_url = yield self._codepad(_EXEC_PRELUDE + ' '.join(text)) page, ign = yield http.get_page(paste_url) except: self.msg(target, 'Error: %r' % sys.exc_info()[1]) raise else: doc = lxml.html.fromstring(page.decode('utf8', 'replace')) response = u''.join(doc.xpath("//a[@name='output']" "/following-sibling::div/table/tr/td[2]/div/pre/text()")) response = [line.rstrip() for line in response.encode('utf-8').splitlines() if line.strip()] nlines = len(response) if nlines > _MAX_LINES: starting = _MAX_LINES - 4 response[starting:-3] = ['(...%d lines, entire response in ' '%s ...)' % (nlines - (_MAX_LINES - 1), paste_url)] for part in response: self.msg(target, part) | cfdcbcc35f8032f08e6ca4663a573b2462f9e51c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6095/cfdcbcc35f8032f08e6ca4663a573b2462f9e51c/irc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
28260,
67,
4177,
12,
2890,
16,
1018,
16,
380,
955,
4672,
775,
30,
19401,
67,
718,
273,
2824,
365,
6315,
710,
6982,
24899,
15271,
67,
3670,
11778,
1639,
397,
296,
2418,
5701,
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,
1123,
28260,
67,
4177,
12,
2890,
16,
1018,
16,
380,
955,
4672,
775,
30,
19401,
67,
718,
273,
2824,
365,
6315,
710,
6982,
24899,
15271,
67,
3670,
11778,
1639,
397,
296,
2418,
5701,
12,
... |
os.mkdir(gromacsFullBaseFileName) pidFileName = gromacsFullBaseFileName + os.sep + "pid" | pidFileName = \ gromacsWorkingDir + os.sep + \ gromacsFullBaseFileInfo.completeBaseName() print "1 pidFileName=%s" % pidFileName os.mkdir(pidFileName) pidFileName += os.sep + "pid" print "2 pidFileName=%s" % pidFileName | def run_using_old_movie_obj_to_hold_sim_params(self, movie): #bruce 051115 removed unused 'options' arg self._movie = movie # general kluge for old-code compat (lots of our methods still use this and modify it) # note, this movie object (really should be a simsetup object?) does not yet know a proper alist (or any alist, I hope) [bruce 050404] self.errcode = self.set_options_errQ( ) # set movie alist, output filenames, sim executable pathname (verify it exists) #obs comment [about the options arg i removed?? or smth else?] # options include everything that affects the run except the set of atoms and the part if self.errcode: # used to be a local var 'r' # bruce 051115 comment: more than one reason this can happen, one is sim executable missing return self.sim_input_file = self.sim_input_filename() # might get name from options or make up a temporary filename if (self.mflag == 1 and self.useGromacs): if (not self.verifyGromacsPlugin()): self.errcode = _FAILURE_ALREADY_DOCUMENTED return self.set_waitcursor(True) progressBar = self.win.statusBar().progressBar | db577c710d68147b29e19e07c975b40966936f56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/db577c710d68147b29e19e07c975b40966936f56/runSim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
9940,
67,
1673,
67,
8683,
13120,
67,
2603,
67,
869,
67,
21056,
67,
9812,
67,
2010,
12,
2890,
16,
21360,
4672,
468,
2848,
3965,
15331,
2499,
3600,
3723,
10197,
296,
2116,
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,
1086,
67,
9940,
67,
1673,
67,
8683,
13120,
67,
2603,
67,
869,
67,
21056,
67,
9812,
67,
2010,
12,
2890,
16,
21360,
4672,
468,
2848,
3965,
15331,
2499,
3600,
3723,
10197,
296,
2116,
11,
... |
m[i,j] = l[i] | mat[i,j] = l[i] | def hecke_matrix(self, m, n, use_recurrence = False, exact_arith = False): r""" Calculate the matrix of the `T_m` operator in the basis of this space, truncated to an `n \times n` matrix. Conventions are that operators act on the left on column vectors (this is the opposite of the conventions of the sage.modules.matrix_morphism class!) Uses naive q-expansion arguments if use_recurrence=False and uses the Kolberg style recurrences if use_recurrence=True. | 838a498abee29f10814d0a05c45a15fbb11d024c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/838a498abee29f10814d0a05c45a15fbb11d024c/genus0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
5667,
12,
2890,
16,
312,
16,
290,
16,
999,
67,
266,
17131,
273,
1083,
16,
5565,
67,
297,
483,
273,
1083,
4672,
436,
8395,
9029,
326,
3148,
434,
326,
1375,
56,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
762,
73,
67,
5667,
12,
2890,
16,
312,
16,
290,
16,
999,
67,
266,
17131,
273,
1083,
16,
5565,
67,
297,
483,
273,
1083,
4672,
436,
8395,
9029,
326,
3148,
434,
326,
1375,
56,
67,
... |
"msg" : _('Installing %s for Python (required by UFO)') % (component,), | "msg" : _('Installing %s (required by UFO)') % (component,), | def get_generic_installation_messages(self, component): return { "title" : _("Please wait"), "msg" : _('Installing %s for Python (required by UFO)') % (component,), "success_msg" : _("%s was successfully installed") % (component,), "error_msg" : _("An error occurred while installing %s") % (component,) } | 0b8f257b05178bfc46cf1ab8a677c74ccd1ca05e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/0b8f257b05178bfc46cf1ab8a677c74ccd1ca05e/linuxbackend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13540,
67,
5425,
367,
67,
6833,
12,
2890,
16,
1794,
4672,
327,
288,
315,
2649,
6,
294,
389,
2932,
8496,
2529,
6,
3631,
315,
3576,
6,
294,
389,
2668,
6410,
310,
738,
87,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
13540,
67,
5425,
367,
67,
6833,
12,
2890,
16,
1794,
4672,
327,
288,
315,
2649,
6,
294,
389,
2932,
8496,
2529,
6,
3631,
315,
3576,
6,
294,
389,
2668,
6410,
310,
738,
87,
261,... |
def __search(self, songs, dummy): | def __search(self, browser, songs, dummy): | def __search(self, songs, dummy): model = self.__view.get_model() model.clear() songs.sort() for song in songs: model.append([song]) | 9c701556952d3e0476b1cdf1642f5c98851e8063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/9c701556952d3e0476b1cdf1642f5c98851e8063/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3072,
12,
2890,
16,
4748,
16,
272,
7260,
16,
9609,
4672,
938,
273,
365,
16186,
1945,
18,
588,
67,
2284,
1435,
938,
18,
8507,
1435,
272,
7260,
18,
3804,
1435,
364,
17180,
316,
272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3072,
12,
2890,
16,
4748,
16,
272,
7260,
16,
9609,
4672,
938,
273,
365,
16186,
1945,
18,
588,
67,
2284,
1435,
938,
18,
8507,
1435,
272,
7260,
18,
3804,
1435,
364,
17180,
316,
272... |
def copy(self): return GenericSQLQuery(self.__database__, self.__query_string__, self.__param_tuple__) | def __init__(self, database, query_string, param_tuple=None): """ TEACH PEOPLE ABOUT USING '?' AND TUPLES """ | 85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2063,
16,
843,
67,
1080,
16,
579,
67,
8052,
33,
7036,
4672,
3536,
25156,
18133,
16628,
3665,
900,
10336,
5069,
11836,
1360,
6787,
4116,
399,
3079,
11386,
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,
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,
2063,
16,
843,
67,
1080,
16,
579,
67,
8052,
33,
7036,
4672,
3536,
25156,
18133,
16628,
3665,
900,
10336,
5069,
11836,
1360,
6787,
4116,
399,
3079,
11386,
3... | |
no1wkst = firstwkst = self.wdaymask.find(rr._wkst) | no1wkst = firstwkst = self.wdaymask.index(rr._wkst) | def rebuild(self, year, month): rr = self.rrule if year != self.lastyear: self.yearlen = 365+calendar.isleap(year) self.yearordinal = datetime.date(year,1,1).toordinal() | b3c88411265904f5f13de2fe4210eefdaea843f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8441/b3c88411265904f5f13de2fe4210eefdaea843f5/rrule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13419,
12,
2890,
16,
3286,
16,
3138,
4672,
8354,
273,
365,
18,
523,
725,
309,
3286,
480,
365,
18,
2722,
6874,
30,
365,
18,
6874,
1897,
273,
21382,
15,
11650,
18,
291,
298,
438,
12,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13419,
12,
2890,
16,
3286,
16,
3138,
4672,
8354,
273,
365,
18,
523,
725,
309,
3286,
480,
365,
18,
2722,
6874,
30,
365,
18,
6874,
1897,
273,
21382,
15,
11650,
18,
291,
298,
438,
12,
6... |
def hates_mime_p(x, s=self, v=mm_cfg.DisableMime): | def hates_mime_p(x, s=mlist, v=mm_cfg.DisableMime): | def hates_mime_p(x, s=self, v=mm_cfg.DisableMime): return s.GetUserOption(x, v) | 14cf5da2f1f3d7f535be4dbb63df355bcfa31de4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/14cf5da2f1f3d7f535be4dbb63df355bcfa31de4/ToDigest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
815,
67,
11757,
67,
84,
12,
92,
16,
272,
33,
781,
376,
16,
331,
33,
7020,
67,
7066,
18,
11879,
13320,
4672,
327,
272,
18,
967,
1299,
1895,
12,
92,
16,
331,
13,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
815,
67,
11757,
67,
84,
12,
92,
16,
272,
33,
781,
376,
16,
331,
33,
7020,
67,
7066,
18,
11879,
13320,
4672,
327,
272,
18,
967,
1299,
1895,
12,
92,
16,
331,
13,
2,
-100,
-100,
... |
super(NoOpPyPayload).__init__() | super(NoOpPyPayload,self).__init__() | def __init__(self, num): self.num = num super(NoOpPyPayload).__init__() | 2a40303d92970c8f659e49bd37f9c545b23daba9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10974/2a40303d92970c8f659e49bd37f9c545b23daba9/structures.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
818,
4672,
365,
18,
2107,
273,
818,
2240,
12,
2279,
3817,
9413,
6110,
16,
2890,
2934,
972,
2738,
972,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
818,
4672,
365,
18,
2107,
273,
818,
2240,
12,
2279,
3817,
9413,
6110,
16,
2890,
2934,
972,
2738,
972,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
__dynamic__ = 1 | __dynamic__ = 1 | def mysetattr(self, name, value): if name == "spam": raise AttributeError return object.__setattr__(self, name, value) | 9479174c90f03a075db9a923423b21776350dabe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9479174c90f03a075db9a923423b21776350dabe/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
542,
1747,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
422,
315,
1752,
301,
6877,
1002,
6394,
327,
733,
16186,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3399,
542,
1747,
12,
2890,
16,
508,
16,
460,
4672,
309,
508,
422,
315,
1752,
301,
6877,
1002,
6394,
327,
733,
16186,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
13,
2,
-100,
-100,
-1... |
dtd = xmldtd.load_dtd(self.dtd) app = xmlval.ValidatingApp(dtd, self) app.set_locator(self) self.dom2sax(dom, app) def report_error(self, number, args=None): self.errors = xmlproc.errors.english | def check_dom_against_dtd(self, dom): """ Check DOM again DTD. Doesn't give as nice error messages. (no location info) """ dtd = xmldtd.load_dtd(self.dtd) app = xmlval.ValidatingApp(dtd, self) app.set_locator(self) self.dom2sax(dom, app) | 0358e60e5eeb0513fd8b2ff43913f28c50a09327 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6195/0358e60e5eeb0513fd8b2ff43913f28c50a09327/xenapi_create.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
9859,
67,
23095,
334,
67,
31834,
12,
2890,
16,
4092,
4672,
3536,
2073,
4703,
3382,
10696,
40,
18,
9637,
82,
1404,
8492,
487,
13752,
555,
2743,
18,
261,
2135,
2117,
1123,
13,
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,
866,
67,
9859,
67,
23095,
334,
67,
31834,
12,
2890,
16,
4092,
4672,
3536,
2073,
4703,
3382,
10696,
40,
18,
9637,
82,
1404,
8492,
487,
13752,
555,
2743,
18,
261,
2135,
2117,
1123,
13,
3... | |
self.error("Size of the pixel in the output differ for X and Y axes.") | def open_input(self): """Initialization of the input raster, reprojection if necessary""" gdal.AllRegister() | c3d8df74eef052268add49773dc5efec101e76b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10290/c3d8df74eef052268add49773dc5efec101e76b2/gdal2tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2630,
12,
2890,
4672,
3536,
17701,
434,
326,
810,
12553,
16,
283,
19183,
309,
4573,
8395,
225,
15551,
287,
18,
1595,
3996,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2630,
12,
2890,
4672,
3536,
17701,
434,
326,
810,
12553,
16,
283,
19183,
309,
4573,
8395,
225,
15551,
287,
18,
1595,
3996,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
X = type('X',(MultilingualStackedInline,), | X = MultiType('X',(MultilingualStackedInline,), | def multilingual_modeladmin_new(cls, model, admin_site): if isinstance(model.objects, manager.Manager): X = type('X',(MultilingualStackedInline,), {'model':model._meta.translation_model, 'fk_name':'master', 'extra':get_language_count(), 'max_num':get_language_count()}) if cls.inlines: cls.inlines.append(X) else: cls.inlines = [X] return _old_admin_new(cls, model, admin_site) | 4785127c97c6fa9fc1b13c1c726e110b5ab1ad22 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12035/4785127c97c6fa9fc1b13c1c726e110b5ab1ad22/translation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
25853,
67,
2284,
3666,
67,
2704,
12,
6429,
16,
938,
16,
3981,
67,
4256,
4672,
309,
1549,
12,
2284,
18,
6911,
16,
3301,
18,
1318,
4672,
1139,
273,
5991,
559,
2668,
60,
2187,
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,
1778,
25853,
67,
2284,
3666,
67,
2704,
12,
6429,
16,
938,
16,
3981,
67,
4256,
4672,
309,
1549,
12,
2284,
18,
6911,
16,
3301,
18,
1318,
4672,
1139,
273,
5991,
559,
2668,
60,
2187,
12,
... |
def __init__(self): JolicloudRestoreUtilityBase.__init__(self) | def update_tasks_list(self, tasks): JolicloudRestoreUtilityBase.update_tasks_list(self, tasks) | def __init__(self): JolicloudRestoreUtilityBase.__init__(self) self.run_next_task() | 459dafba24990cc2eff8b6e42515b9a973e44ab5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13085/459dafba24990cc2eff8b6e42515b9a973e44ab5/restore_utility.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
9416,
67,
1098,
12,
2890,
16,
4592,
4672,
804,
1415,
2760,
10874,
6497,
2171,
18,
2725,
67,
9416,
67,
1098,
12,
2890,
16,
4592,
13,
365,
18,
2681,
67,
4285,
67,
4146,
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,
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,
1089,
67,
9416,
67,
1098,
12,
2890,
16,
4592,
4672,
804,
1415,
2760,
10874,
6497,
2171,
18,
2725,
67,
9416,
67,
1098,
12,
2890,
16,
4592,
13,
365,
18,
2681,
67,
4285,
67,
4146,
1435,
... |
def on_drag_motion (self, widget, context, x, y, timestamp): | def on_drag_motion (self, receiver, context, x, y, timestamp): | def on_drag_motion (self, widget, context, x, y, timestamp): if self.dragPos == (x,y): return parsed = self.parsePosition(x,y) if not self.dragPos or self.highLight != parsed: self.dragPos = (x,y) self.highLight = parsed self.queue_draw() self.dragPos = (x,y) if self.highLight == None: if isinstance(widget, gtk.Notebook): widget.set_group_id(GROUP_ID_INACTIVE) else: context.drag_status (gtk.gdk.ACTION_DEFAULT, timestamp) else: if isinstance(widget, gtk.Notebook): widget.set_group_id(GROUP_ID_ACTIVE) else: context.drag_status (gtk.gdk.ACTION_MOVE, timestamp) return True | b74bada3c4a52655d2f0ff893e7a277c37cc7231 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5339/b74bada3c4a52655d2f0ff893e7a277c37cc7231/pydock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
15997,
67,
81,
8240,
261,
2890,
16,
5971,
16,
819,
16,
619,
16,
677,
16,
2858,
4672,
309,
365,
18,
15997,
1616,
422,
261,
92,
16,
93,
4672,
327,
2707,
273,
365,
18,
2670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15997,
67,
81,
8240,
261,
2890,
16,
5971,
16,
819,
16,
619,
16,
677,
16,
2858,
4672,
309,
365,
18,
15997,
1616,
422,
261,
92,
16,
93,
4672,
327,
2707,
273,
365,
18,
2670,
... |
return x | return int(x+0.0001) | def ops(i): x = 0 x += i < i x += i <= i x += i == i x += i != i x += i >= i x += i > i x += x % i x += x ** 0 x += x ** 1 x += x ** 2 x += i + 1 * i // i - 1 return x | 7a42ff24dbf6d5e3203664a69ccaca41ef0338a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/7a42ff24dbf6d5e3203664a69ccaca41ef0338a8/test_genllvm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6727,
12,
77,
4672,
619,
273,
374,
619,
1011,
277,
411,
277,
619,
1011,
277,
1648,
277,
619,
1011,
277,
422,
277,
619,
1011,
277,
480,
277,
619,
1011,
277,
1545,
277,
619,
1011,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6727,
12,
77,
4672,
619,
273,
374,
619,
1011,
277,
411,
277,
619,
1011,
277,
1648,
277,
619,
1011,
277,
422,
277,
619,
1011,
277,
480,
277,
619,
1011,
277,
1545,
277,
619,
1011,
277,
... |
username = forms.RegexField( username_re, label=_(u'Username')) email_address = forms.CharField(label=_(u'Email address'), | username = forms.RegexField( username_re, label=ugettext_lazy(u'Username')) email_address = forms.CharField(label=ugettext_lazy(u'Email address'), | def register(request, group = None): if request.method == 'POST': form = RegisterEmailAddress(request.POST) if form.is_valid(): regdata = form.cleaned_data email_address = regdata['email_address'] if not group: subject = _(u'Email verification required') else: subject = _(u'Email verification required for site %(site_name)s') % {'site_name': group.get_name()} validationcode = cryptString( settings.SECRET_KEY, email_address ) mail_context = RequestContext(request, { 'email': email_address, 'baseurl': group.baseurl, 'path': sph_reverse( 'sphene.community.views.register_hash', (), { 'emailHash': validationcode, } ), 'validationcode': validationcode, 'group': group, }) text_part = loader.get_template('sphene/community/accounts/account_verification_email.txt') \ .render(mail_context) html_part = loader.get_template('sphene/community/accounts/account_verification_email.html') \ .render(mail_context) msg = EmailMultiAlternatives(subject, text_part, None, [email_address]) msg.attach_alternative(html_part, "text/html") msg.send() return render_to_response( 'sphene/community/register_emailsent.html', { 'email': email_address, }, context_instance = RequestContext(request) ) pass else: form = RegisterEmailAddress() return render_to_response( 'sphene/community/register.html', { 'form': form }, context_instance = RequestContext(request) ) | 4928be0229899927d1ff0f031f89b71d54fb646c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11563/4928be0229899927d1ff0f031f89b71d54fb646c/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
12,
2293,
16,
1041,
273,
599,
4672,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
646,
273,
5433,
23590,
12,
2293,
18,
3798,
13,
309,
646,
18,
291,
67,
877,
13332,
960,
892,
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,
1744,
12,
2293,
16,
1041,
273,
599,
4672,
225,
309,
590,
18,
2039,
422,
296,
3798,
4278,
646,
273,
5433,
23590,
12,
2293,
18,
3798,
13,
309,
646,
18,
291,
67,
877,
13332,
960,
892,
2... |
A vector of length ``n``. ``T[i]`` is the flat cluster number to which original observation ``i`` belongs. | A vector of length ``n``. ``T[i]`` is the flat cluster number to which original observation ``i`` belongs. | def fclusterdata(X, t, criterion='inconsistent', \ metric='euclidean', depth=2, method='single', R=None): """ ``T = fclusterdata(X, t)`` Clusters the original observations in the ``n`` by ``m`` data matrix ``X`` (``n`` observations in ``m`` dimensions), using the euclidean distance metric to calculate distances between original observations, performs hierarchical clustering using the single linkage algorithm, and forms flat clusters using the inconsistency method with t as the cut-off threshold. A one-dimensional numpy array ``T`` of length ``n`` is returned. ``T[i]`` is the index of the flat cluster to which the original observation ``i`` belongs. :Arguments: - Z : ndarray The hierarchical clustering encoded with the matrix returned by the ``linkage`` function. - t : double The threshold to apply when forming flat clusters. - criterion : string Specifies the criterion for forming flat clusters. Valid values are 'inconsistent', 'distance', or 'maxclust' cluster formation algorithms. See ``fcluster`` for descriptions. - method : string The linkage method to use (single, complete, average, weighted, median centroid, ward). See ``linkage`` for more information. - metric : string The distance metric for calculating pairwise distances. See distance.pdist for descriptions and linkage to verify compatibility with the linkage method. - t : double The cut-off threshold for the cluster function or the maximum number of clusters (criterion='maxclust'). - depth : int The maximum depth for the inconsistency calculation. See ``inconsistent`` for more information. - R : ndarray The inconsistency matrix. It will be computed if necessary if it is not passed. :Returns: - T : ndarray A vector of length ``n``. ``T[i]`` is the flat cluster number to which original observation ``i`` belongs. Notes ----- This function is similar to MATLAB(TM) clusterdata function. """ X = np.asarray(X, order='c', dtype=np.double) if type(X) != np.ndarray or len(X.shape) != 2: raise TypeError('The observation matrix X must be an n by m numpy array.') Y = distance.pdist(X, metric=metric) Z = linkage(Y, method=method) if R is None: R = inconsistent(Z, d=depth) else: R = np.asarray(R, order='c') T = fcluster(Z, criterion=criterion, depth=depth, R=R, t=t) return T | 55e7dab95616ab5f72603a0b6ccbbfc630085278 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/55e7dab95616ab5f72603a0b6ccbbfc630085278/hierarchy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
7967,
892,
12,
60,
16,
268,
16,
11498,
2218,
267,
16952,
2187,
521,
3999,
2218,
73,
22392,
2187,
3598,
33,
22,
16,
707,
2218,
7526,
2187,
534,
33,
7036,
4672,
3536,
12176,
56,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
7967,
892,
12,
60,
16,
268,
16,
11498,
2218,
267,
16952,
2187,
521,
3999,
2218,
73,
22392,
2187,
3598,
33,
22,
16,
707,
2218,
7526,
2187,
534,
33,
7036,
4672,
3536,
12176,
56,
273... |
self._position_root_map.get(self.label_position, "DUMMY"), | self._position_root_map.get(arrow_root, "DUMMY"), | def overlay(self, component, gc, view_bounds=None, mode="normal"): """ Draws the tooltip overlaid on another component. Overrides ToolTip. """ if self.clip_to_plot: gc.save_state() c = component gc.clip_to_rect(c.x, c.y, c.width, c.height) | 0fdcc8e73bfc83aeb07cb0a2882c8457e4aaddf0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13167/0fdcc8e73bfc83aeb07cb0a2882c8457e4aaddf0/data_label.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9218,
12,
2890,
16,
1794,
16,
8859,
16,
1476,
67,
10576,
33,
7036,
16,
1965,
1546,
6130,
6,
4672,
3536,
10184,
87,
326,
11915,
1879,
11821,
350,
603,
4042,
1794,
18,
225,
531,
9857,
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,
9218,
12,
2890,
16,
1794,
16,
8859,
16,
1476,
67,
10576,
33,
7036,
16,
1965,
1546,
6130,
6,
4672,
3536,
10184,
87,
326,
11915,
1879,
11821,
350,
603,
4042,
1794,
18,
225,
531,
9857,
13... |
): | ): | def SendMailConfig( self, panel, sbjct, From, To, Copy, Txt, Append, toName, text, plugin | b38dc8881c425781e3bd5f610cc554c4d034a6be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/b38dc8881c425781e3bd5f610cc554c4d034a6be/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2479,
6759,
809,
12,
365,
16,
6594,
16,
272,
441,
299,
16,
6338,
16,
2974,
16,
5631,
16,
6424,
88,
16,
6181,
16,
358,
461,
16,
977,
16,
1909,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2479,
6759,
809,
12,
365,
16,
6594,
16,
272,
441,
299,
16,
6338,
16,
2974,
16,
5631,
16,
6424,
88,
16,
6181,
16,
358,
461,
16,
977,
16,
1909,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
k = find_token(document.body, "<features tabularvalignment=", i) if k == -1: | tabularvalignment = 'c' m = document.body[i+2].find('tabularvalignment="top"') if m > -1: tabularvalignment = 't' m = document.body[i+2].find('tabularvalignment="bottom"') if m > -1: tabularvalignment = 'b' q = document.body[i+2].find("tabularvalignment") if q > -1: document.body[i+2] = document.body[i+2][:q-1] document.body[i+2] = document.body[i+2] + '>' if tabularvalignment == 'c': | def revert_tabularvalign(document): " Revert the tabular valign option " i = 0 while True: i = find_token(document.body, "\\begin_inset Tabular", i) if i == -1: return j = find_end_of_inset(document.body, i) if j == -1: document.warning("Malformed LyX document: Could not find end of tabular.") i = j continue # don't set a box for longtables, only delete tabularvalignment p = find_token(document.body, "<features islongtable=", i) if p > -1: q = document.body[p].find("tabularvalignment") if q > -1: document.body[p] = document.body[p][:q-1] document.body[p] = document.body[p] + '>' i = i + 1 # when no longtable if p == -1: k = find_token(document.body, "<features tabularvalignment=", i) if k == -1: i = j continue # which valignment is specified? tabularvalignment_re = re.compile(r'<features tabularvalignment="(top|bottom)">') m = tabularvalignment_re.match(document.body[k]) if not m: i = j continue tabularvalignment = m.group(1) subst = ['\\end_layout', '\\end_inset'] document.body[j+1:j+1] = subst # just inserts those lines subst = ['\\begin_inset Box Frameless', 'position "' + tabularvalignment[0] +'"', 'hor_pos "c"', 'has_inner_box 1', 'inner_pos "c"', 'use_parbox 0', 'width "0col%"', 'special "none"', 'height "1in"', 'height_special "totalheight"', 'status open', '', '\\begin_layout Plain Layout'] document.body[i:i] = subst # this just inserts the array at i i += len(subst) + 2 # adjust i to save a few cycles | 3fcd8ee4deb2984592b45b173fe2d362b3768b2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7514/3fcd8ee4deb2984592b45b173fe2d362b3768b2b/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
842... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
7032,
2490,
1125,
724,
12,
5457,
4672,
315,
868,
1097,
326,
28342,
1244,
724,
1456,
315,
277,
273,
374,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
842... |
obj.name = name obj.value = value | obj.name = obj._old_name = name obj.value = obj._old_value = value | def select(cls, env, db=None): if not db: db = env.get_db_cnx() cursor = db.cursor() cursor.execute("SELECT name,value FROM enum WHERE type=%s " "ORDER BY value", (cls.type,)) for name, value in cursor: obj = cls(env) obj.name = name obj.value = value yield obj | c815765ee307a6af8eb82a2569c1f4ea0859d552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/c815765ee307a6af8eb82a2569c1f4ea0859d552/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
6429,
16,
1550,
16,
1319,
33,
7036,
4672,
309,
486,
1319,
30,
1319,
273,
1550,
18,
588,
67,
1966,
67,
10305,
92,
1435,
3347,
273,
1319,
18,
9216,
1435,
3347,
18,
8837,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
6429,
16,
1550,
16,
1319,
33,
7036,
4672,
309,
486,
1319,
30,
1319,
273,
1550,
18,
588,
67,
1966,
67,
10305,
92,
1435,
3347,
273,
1319,
18,
9216,
1435,
3347,
18,
8837,
2932,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.