rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
def __cmp__( self, other ): return cmp( self.__dict__, other.__dict__ ) def _RegKeyEnumerator( key ): return _RegEnumerator( key, _winreg.EnumKey ) def _RegValueEnumerator( key ): return _RegEnumerator( key, _winreg.EnumValue ) def _RegEnumerator( key, func ):
def __cmp__(self, other): return cmp(self.__dict__, other.__dict__) def _RegKeyEnumerator(key): return _RegEnumerator(key, _winreg.EnumKey) def _RegValueEnumerator(key): return _RegEnumerator(key, _winreg.EnumValue) def _RegEnumerator(key, func):
def __cmp__( self, other ): return cmp( self.__dict__, other.__dict__ )
59648a863c896e2f14363d0c28a25b3865360d9a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/992/59648a863c896e2f14363d0c28a25b3865360d9a/win32timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 365, 16, 1308, 262, 30, 327, 9411, 12, 365, 16186, 1576, 972, 16, 1308, 16186, 1576, 972, 262, 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, 1001, 9625, 972, 12, 365, 16, 1308, 262, 30, 327, 9411, 12, 365, 16186, 1576, 972, 16, 1308, 16186, 1576, 972, 262, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
curs.execute(query, (one_day, ed))
if host: curs.execute(query, (one_day, ed, host)) elif user: curs.execute(query, (one_day, ed, user)) else: curs.execute(query, (one_day, ed))
def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None
23256af1e8e77c746a31d94ef7f2cab0675707b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/23256af1e8e77c746a31d94ef7f2cab0675707b6/untangle_base_webfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 856, 67, 14438, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -1...
poller._process_changes(StringIO(goodUnparsedResult))
poller._process_changes(goodUnparsedResult)
def testParserWorksAfterInvalidResult(self): """Make sure the BonsaiPoller still works after catching an InvalidResultError"""
e8c5b2518f8dd78458b246b52a5fef3b92cc2416 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13067/e8c5b2518f8dd78458b246b52a5fef3b92cc2416/test_bonsaipoller.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 2678, 16663, 4436, 1941, 1253, 12, 2890, 4672, 3536, 6464, 3071, 326, 605, 7008, 10658, 5850, 749, 4859, 6330, 1839, 1044, 310, 392, 1962, 1253, 668, 8395, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 2678, 16663, 4436, 1941, 1253, 12, 2890, 4672, 3536, 6464, 3071, 326, 605, 7008, 10658, 5850, 749, 4859, 6330, 1839, 1044, 310, 392, 1962, 1253, 668, 8395, 2, -100, -100, -100, -100,...
for name, value in _internal.symbols().iteritems():
for name, value in _intnl.symbols().iteritems():
def _export_symbols(): for name, value in _internal.symbols().iteritems(): globals()[name] = value
bcdcc0cf4d66f4619dbb85f174a3a5a5ac2d35a5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12867/bcdcc0cf4d66f4619dbb85f174a3a5a5ac2d35a5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6530, 67, 15536, 13332, 364, 508, 16, 460, 316, 389, 474, 14039, 18, 15536, 7675, 2165, 3319, 13332, 10941, 1435, 63, 529, 65, 273, 460, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6530, 67, 15536, 13332, 364, 508, 16, 460, 316, 389, 474, 14039, 18, 15536, 7675, 2165, 3319, 13332, 10941, 1435, 63, 529, 65, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100,...
method = self.elements.get(tag, (None, None))[1] if method is not None: self.handle_endtag(tag, method) else: self.unknown_endtag(tag)
def finish_endtag(self, tag): if not tag: self.syntax_error('name-less end tag') found = len(self.stack) - 1 if found < 0: self.unknown_endtag(tag) return else: found = -1 for i in range(len(self.stack)): if tag == self.stack[i][0]: found = i if found == -1: self.syntax_error('unopened end tag') method = self.elements....
4ff63fb625144f23bffc0b05ca082a326f91bd4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4ff63fb625144f23bffc0b05ca082a326f91bd4a/xmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 67, 409, 2692, 12, 2890, 16, 1047, 4672, 309, 486, 1047, 30, 365, 18, 14308, 67, 1636, 2668, 529, 17, 2656, 679, 1047, 6134, 1392, 273, 562, 12, 2890, 18, 3772, 13, 300, 404, 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, 4076, 67, 409, 2692, 12, 2890, 16, 1047, 4672, 309, 486, 1047, 30, 365, 18, 14308, 67, 1636, 2668, 529, 17, 2656, 679, 1047, 6134, 1392, 273, 562, 12, 2890, 18, 3772, 13, 300, 404, 3...
elif color == 'default':
elif color == 'default' or color == None:
def css(color='default'): """ Return the CSS header used by the SAGE Notebook. INPUT: color -- string or pair of html colors, e.g., 'gmail' 'grey' ('#ff0000', '#0000ff') EXAMPLES: sage: import sage.server.notebook.css as c sage: type(c.css()) <type 'str'> """ s = r"""
d613b570daf4dcda25ffd518391342b5b9eed8df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/d613b570daf4dcda25ffd518391342b5b9eed8df/css.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3747, 12, 3266, 2218, 1886, 11, 4672, 3536, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 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, 3747, 12, 3266, 2218, 1886, 11, 4672, 3536, 2000, 326, 6765, 1446, 1399, 635, 326, 348, 2833, 3609, 3618, 18, 225, 12943, 30, 2036, 1493, 533, 578, 3082, 434, 1729, 5740, 16, 425, 18, ...
Returns an UTF-8 encoded string suitable for the Subversion python bindings.
Returns an UTF-8 encoded string suitable for the Subversion python bindings (the returned path never starts with a leading "/")
def _to_svn(*args): """Expect a list of `unicode` path components. Returns an UTF-8 encoded string suitable for the Subversion python bindings. """ return '/'.join([path.strip('/') for path in args]).encode('utf-8')
932997a104e7a3ea841b40706f8ee156a9315e01 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/932997a104e7a3ea841b40706f8ee156a9315e01/svn_fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 67, 31505, 30857, 1968, 4672, 3536, 11988, 279, 666, 434, 1375, 9124, 68, 589, 4085, 18, 2860, 392, 6380, 17, 28, 3749, 533, 10631, 364, 326, 2592, 1589, 5790, 7394, 261, 5787,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 869, 67, 31505, 30857, 1968, 4672, 3536, 11988, 279, 666, 434, 1375, 9124, 68, 589, 4085, 18, 2860, 392, 6380, 17, 28, 3749, 533, 10631, 364, 326, 2592, 1589, 5790, 7394, 261, 5787,...
rList.append('Poor')
rList.append( 'Poor' )
def getSiteSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of jobs in a given status on all the sites in the standard Web form """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 6550, 316, 279, 864, 1267, 603, 777, 326, 9180, 316, 326, 452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11021, 4733, 4079, 12, 2890, 16, 4025, 5014, 16, 1524, 682, 16, 787, 1180, 16, 943, 3126, 4672, 3536, 968, 326, 4916, 434, 6550, 316, 279, 864, 1267, 603, 777, 326, 9180, 316, 326, 452...
if self.timepoints > 0:
if self.timepoints > 1:
def getTimepoint(self, timepointIndex): """ Return the timepointIndexth timepoint """ self.timepoint = timepointIndex path = self.path[:] if not self.reader: self.reader = vtkbxd.vtkExtTIFFReader() self.reader.AddObserver("ProgressEvent", self.updateProgress) xDimension, yDimension, zDimension = self.dimensions self.re...
fef0ffd1d9f21239774e5af678a9729f839452de /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2877/fef0ffd1d9f21239774e5af678a9729f839452de/OlympusDataSource.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6135, 1153, 12, 2890, 16, 813, 1153, 1016, 4672, 3536, 2000, 326, 813, 1153, 1016, 451, 813, 1153, 3536, 365, 18, 957, 1153, 273, 813, 1153, 1016, 589, 273, 365, 18, 803, 10531, 65, 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, 6135, 1153, 12, 2890, 16, 813, 1153, 1016, 4672, 3536, 2000, 326, 813, 1153, 1016, 451, 813, 1153, 3536, 365, 18, 957, 1153, 273, 813, 1153, 1016, 589, 273, 365, 18, 803, 10531, 65, 30...
self.input_entry.set_sensitive(True) self.input_entry.grab_focus()
self.outputbox.input_entry.set_sensitive(True) self.outputbox.input_entry.grab_focus()
def handle_debuggee_output(self, ignorelines=1): #print 'handle_output called' returnmode = 'normal' try: while True: line = self.debuggee.readline() if ignorelines > 0: #print "line ignored:", line ignorelines -= 1 continue #print(line) m = re.match('> ([<>/a-zA-Z0-9_\.]+)\(([0-9]+)\).*', line) if m: self.append_debug...
17466ef0e62a97384363a1ba189f4b8c03f93b77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4616/17466ef0e62a97384363a1ba189f4b8c03f93b77/gepdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 4148, 908, 73, 67, 2844, 12, 2890, 16, 2305, 3548, 33, 21, 4672, 468, 1188, 296, 4110, 67, 2844, 2566, 11, 327, 3188, 273, 296, 6130, 11, 775, 30, 1323, 1053, 30, 980, 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, 1640, 67, 4148, 908, 73, 67, 2844, 12, 2890, 16, 2305, 3548, 33, 21, 4672, 468, 1188, 296, 4110, 67, 2844, 2566, 11, 327, 3188, 273, 296, 6130, 11, 775, 30, 1323, 1053, 30, 980, 273,...
for u in self._users.keys():
for u in self._users:
def del_user(self, users): """Delete some users from the users list.
9ab01f45288e6d39631001033cbfccc296ce149c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2718/9ab01f45288e6d39631001033cbfccc296ce149c/window_channel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 67, 1355, 12, 2890, 16, 3677, 4672, 3536, 2613, 2690, 3677, 628, 326, 3677, 666, 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,...
[ 1, 1, 1, 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, 1464, 67, 1355, 12, 2890, 16, 3677, 4672, 3536, 2613, 2690, 3677, 628, 326, 3677, 666, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
m = re.match("^\t&([a-z_]+)", l)
m = re.match("^\t&([a-z][a-z0-9_]+)", l)
def get_function_names(): names = [] try: f = open('../src/plugins.c') while 1: l = f.readline() if l == "": break; m = re.match("^\t&([a-z_]+)", l) if m: s = m.group(1) if not s.endswith('_funcs'): names.append(s) f.close except: pass return names
2d015b6fb29b7cc0ff47375eadbba5afb6976184 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12113/2d015b6fb29b7cc0ff47375eadbba5afb6976184/genapi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 915, 67, 1973, 13332, 1257, 273, 5378, 775, 30, 284, 273, 1696, 2668, 6216, 4816, 19, 8057, 18, 71, 6134, 1323, 404, 30, 328, 273, 284, 18, 896, 1369, 1435, 309, 328, 422, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 915, 67, 1973, 13332, 1257, 273, 5378, 775, 30, 284, 273, 1696, 2668, 6216, 4816, 19, 8057, 18, 71, 6134, 1323, 404, 30, 328, 273, 284, 18, 896, 1369, 1435, 309, 328, 422, 1...
for animName, anim in animDict.items(): if anim.animControl and anim.animControl.isPlaying():
if animName: anim = animDict.get(animName) if not anim: Actor.notify.warning("couldn't find anim: %s" % (animName)) elif anim.animControl:
def getCurrentFrame(self, animName=None, partName=None): """ Return the current frame number of the anim current playing on the actor. If part not specified return current anim of first part in dictionary. NOTE: only returns info for an arbitrary LOD """ lodName, animControlDict = self.__animControlDict.items()[0] if p...
9e76c93d1e885885e2b983682ab58c0070773706 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/9e76c93d1e885885e2b983682ab58c0070773706/Actor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 3219, 12, 2890, 16, 10536, 461, 33, 7036, 16, 1087, 461, 33, 7036, 4672, 3536, 2000, 326, 783, 2623, 1300, 434, 326, 10536, 783, 23982, 603, 326, 8327, 18, 971, 1087, 486, 1269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 3219, 12, 2890, 16, 10536, 461, 33, 7036, 16, 1087, 461, 33, 7036, 4672, 3536, 2000, 326, 783, 2623, 1300, 434, 326, 10536, 783, 23982, 603, 326, 8327, 18, 971, 1087, 486, 1269, ...
self._blast.gap_penalties = (self._blast.gap_penalties, int(self._value))
self._parameters.gap_penalties = (self._parameters.gap_penalties, int(self._value))
def _end_Parameters_gap_extend(self): """gap extension cose (-E) """ self._blast.gap_penalties = (self._blast.gap_penalties, int(self._value))
222c25b5ffb6f82620be0e71c5d11e486994dbfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/222c25b5ffb6f82620be0e71c5d11e486994dbfb/NCBIXML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 2402, 67, 14048, 67, 14313, 12, 2890, 4672, 3536, 14048, 2710, 1825, 307, 24927, 41, 13, 3536, 365, 6315, 30901, 18, 14048, 67, 1907, 2390, 606, 273, 261, 2890, 6315, 30901...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 409, 67, 2402, 67, 14048, 67, 14313, 12, 2890, 4672, 3536, 14048, 2710, 1825, 307, 24927, 41, 13, 3536, 365, 6315, 30901, 18, 14048, 67, 1907, 2390, 606, 273, 261, 2890, 6315, 30901...
tid = threading._get_ident() print tid, 'wanting to acquire'
def get_cnx(self, timeout=None): start = time.time() tid = threading._get_ident() print tid, 'wanting to acquire' self._available.acquire() print tid, 'ok' try: tid = threading._get_ident() if tid in self._active: num, cnx = self._active.get(tid) if num == 0: # was pushed back (see _cleanup) if not try_rollback(cnx): d...
153c4d9a243e6843f09abb249abb3f9032d99388 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/153c4d9a243e6843f09abb249abb3f9032d99388/pool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10305, 92, 12, 2890, 16, 2021, 33, 7036, 4672, 787, 273, 813, 18, 957, 1435, 365, 6315, 5699, 18, 1077, 1039, 1435, 1172, 11594, 16, 296, 601, 11, 775, 30, 11594, 273, 17254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10305, 92, 12, 2890, 16, 2021, 33, 7036, 4672, 787, 273, 813, 18, 957, 1435, 365, 6315, 5699, 18, 1077, 1039, 1435, 1172, 11594, 16, 296, 601, 11, 775, 30, 11594, 273, 17254, ...
0.70709209610 - 0.42035364080*I
0.70709209 - 0.42035364*I
def gamma_inc(self, t): """ Return the incomplete Gamma function evaluated at this complex number.
0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9601, 67, 9523, 12, 2890, 16, 268, 4672, 3536, 2000, 326, 14715, 25409, 445, 12697, 622, 333, 7233, 1300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9601, 67, 9523, 12, 2890, 16, 268, 4672, 3536, 2000, 326, 14715, 25409, 445, 12697, 622, 333, 7233, 1300, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
thisfunc = vals[2][sub] if len(thisfunc) > 8 and thisfunc[:8] == "PyNumber":
if t.type == 'O':
def make_arrays(funcdict): # functions array contains an entry for every type implemented # NULL should be placed where PyUfunc_ style function will be filled in later # code1list = [] code2list = [] for name, vals in funcdict.iteritems(): funclist = [] datalist = [] siglist = [] k=0; sub=0; numin, numout = vals[3] ...
912beccc011bf60d61b61fa24021f6235dba0225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/912beccc011bf60d61b61fa24021f6235dba0225/generate_umath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16223, 12, 644, 1576, 4672, 468, 4186, 526, 1914, 392, 1241, 364, 3614, 618, 8249, 468, 282, 3206, 1410, 506, 15235, 1625, 4707, 57, 644, 67, 2154, 445, 903, 506, 6300, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 16223, 12, 644, 1576, 4672, 468, 4186, 526, 1914, 392, 1241, 364, 3614, 618, 8249, 468, 282, 3206, 1410, 506, 15235, 1625, 4707, 57, 644, 67, 2154, 445, 903, 506, 6300, 316, ...
if not buf_obj:
if buf_obj is not None:
def BandReadAsArray( band, xoff, yoff, win_xsize, win_ysize, buf_xsize=None, buf_ysize=None, buf_obj=None ): """Pure python implementation of reading a chunk of a GDAL file into a numpy array. Used by the gdal.Band.ReadaAsArray method.""" if win_xsize is None: win_xsize = band.XSize if win_ysize is None: win_ysize = ...
2ea1551fafdf07f039bb2c57772d3ebe494bf900 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10289/2ea1551fafdf07f039bb2c57772d3ebe494bf900/gdal_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27601, 1994, 19196, 12, 8937, 16, 619, 3674, 16, 677, 3674, 16, 5657, 67, 92, 1467, 16, 5657, 67, 93, 1467, 16, 1681, 67, 92, 1467, 33, 7036, 16, 1681, 67, 93, 1467, 33, 7036, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27601, 1994, 19196, 12, 8937, 16, 619, 3674, 16, 677, 3674, 16, 5657, 67, 92, 1467, 16, 5657, 67, 93, 1467, 16, 1681, 67, 92, 1467, 33, 7036, 16, 1681, 67, 93, 1467, 33, 7036, 16, ...
y = Value(ctypes.c_double, 1.0/3.0, lock=lock)
y = Value(c_double, 1.0/3.0, lock=lock)
def test_sharedctypes(self, lock=False): if c_int is None: return
25cf464eab41c10bd4fc7d4653bc57d98c37256e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/25cf464eab41c10bd4fc7d4653bc57d98c37256e/test_multiprocessing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11574, 299, 989, 12, 2890, 16, 2176, 33, 8381, 4672, 309, 276, 67, 474, 353, 599, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 11574, 299, 989, 12, 2890, 16, 2176, 33, 8381, 4672, 309, 276, 67, 474, 353, 599, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if self.file is None: self.file = self.sock.makefile('rb')
if self.file is None: self.file = self.sock.makefile('rb')
def getreply(self): """Get a reply from the server. Returns a tuple consisting of:
053a07b597f875016b8bc478c8a905c8baf4efe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/053a07b597f875016b8bc478c8a905c8baf4efe4/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 10629, 12, 2890, 4672, 3536, 967, 279, 4332, 628, 326, 1438, 18, 225, 2860, 279, 3193, 23570, 434, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 10629, 12, 2890, 4672, 3536, 967, 279, 4332, 628, 326, 1438, 18, 225, 2860, 279, 3193, 23570, 434, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
offset = 0 labels = self.gdata.getLabels() nKeys = self.gdata.getNumberOfKeys() tmp_b = [] if self.prefs.has_key('log_yaxis'): tmp_b = [0.001]*nKeys ymin = 0.001 else: tmp_b = [0.]*nKeys ymin = 0. self.polygons = [] self.lines = [] labels = self.gdata.getLabels() labels.reverse() if self.gdata.isSimplePlot(): labe...
xmin = 0 ax.set_xlim( xmin=xmin,xmax=len(ticks) ) elif self.gdata.key_type == "time": dl = PrettyDateLocator() df = PrettyDateFormatter( dl ) ax.xaxis.set_major_locator( dl ) ax.xaxis.set_major_formatter( df ) ax.xaxis.set_clip_on(False) sf = PrettyScalarFormatter( ) ax.yaxis.set_major_formatter( sf )
def draw( self ): PlotBase.draw(self) self.x_formatter_cb(self.ax) if self.gdata.isEmpty(): return None tmp_x = []; tmp_y = []
ffc6d6cabe145c25dc211d7c1daa3f9a712612c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/ffc6d6cabe145c25dc211d7c1daa3f9a712612c8/BarGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 365, 262, 30, 225, 15211, 2171, 18, 9446, 12, 2890, 13, 365, 18, 92, 67, 12354, 67, 7358, 12, 2890, 18, 651, 13, 225, 309, 365, 18, 75, 892, 18, 291, 1921, 13332, 327, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 365, 262, 30, 225, 15211, 2171, 18, 9446, 12, 2890, 13, 365, 18, 92, 67, 12354, 67, 7358, 12, 2890, 18, 651, 13, 225, 309, 365, 18, 75, 892, 18, 291, 1921, 13332, 327, 59...
FIXME: must test when we have a multilib platform! """ invariantinclusions = [ '*.\.(so.*|a)$',
FIXME: should limit itself to ELF objects once Filter evaluates magic """ invariantinclusions = [ '.*\.(so.*|a)$',
def doFile(self, path):
fb31d4d4679886f2e8f716976debb9f197629f66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/fb31d4d4679886f2e8f716976debb9f197629f66/destdirpolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 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, ...
self.vibfreq.extend(map(self.float,line[15:].split()))
self.vibfreqs.extend(map(self.float,line[15:].split()))
def parse(self): """Extract information from the logfile.""" inputfile = open(self.filename,"r") for line in inputfile: if line[1:8]=="NAtoms=":
47c8821cc88c71efe3af04aace14c00a4fd2b2e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/47c8821cc88c71efe3af04aace14c00a4fd2b2e5/g03parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 10837, 86, 7923, 364, 980, 316, 810, 768, 30, 225, 309, 980, 63, 21, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 10837, 86, 7923, 364, 980, 316, 810, 768, 30, 225, 309, 980, 63, 21, 30, 28, ...
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Icon Path'),_('Model'))) + '"\n')), ('SGST', bolt.csvFormat('ssfiiss')+'\n',
_('Editor Id'),_('Name'),_('Weight'),_('Value'),_('Large Icon Path'),_('Small Icon Path'),_('Model'))) + '"\n')), ('WEAP', bolt.csvFormat('ssfiiiififffiifffffffffffffffffifssssss')+'\n',
def getSortedIds(stats): longids = stats.keys() longids.sort(key=lambda a: stats[a][0]) longids.sort(key=itemgetter(0)) return longids
aeca1db1240364fac710811ccc7f19b3a36b644a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/aeca1db1240364fac710811ccc7f19b3a36b644a/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15175, 329, 2673, 12, 5296, 4672, 1525, 2232, 273, 3177, 18, 2452, 1435, 1525, 2232, 18, 3804, 12, 856, 33, 14661, 279, 30, 3177, 63, 69, 6362, 20, 5717, 1525, 2232, 18, 3804, 12, 856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15175, 329, 2673, 12, 5296, 4672, 1525, 2232, 273, 3177, 18, 2452, 1435, 1525, 2232, 18, 3804, 12, 856, 33, 14661, 279, 30, 3177, 63, 69, 6362, 20, 5717, 1525, 2232, 18, 3804, 12, 856,...
raise RuntimeError, "I give up -- not sure how to do this on Windows"
if path[0] == '\\': path = path[1:] return os.path.join (new_root, path)
def change_root (new_root, pathname): """Return 'pathname' with 'new_root' prepended. If 'pathname' is relative, this is equivalent to "os.path.join(new_root,pathname)". Otherwise, it requires making 'pathname' relative and then joining the two, which is tricky on DOS/Windows and Mac OS.""" if not abspath (pathname)...
7c3f7a4a3d61490de1c6e92609311b7216e3dfb9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7c3f7a4a3d61490de1c6e92609311b7216e3dfb9/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 3085, 261, 2704, 67, 3085, 16, 9806, 4672, 225, 3536, 990, 296, 28336, 11, 598, 296, 2704, 67, 3085, 11, 26989, 18, 225, 971, 296, 28336, 11, 353, 3632, 16, 333, 353, 7680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 3085, 261, 2704, 67, 3085, 16, 9806, 4672, 225, 3536, 990, 296, 28336, 11, 598, 296, 2704, 67, 3085, 11, 26989, 18, 225, 971, 296, 28336, 11, 353, 3632, 16, 333, 353, 7680, ...
return bestitem, bestdif
return bestitem, bestprofit
def findbestdeal(curprices, destprices, quatloos, dontbuy): #print "---" #print str(curprices) #print str(destprices) #print "---" bestdif = -10000.0 bestitem = "none" for item in destprices: if item in dontbuy: continue if not curprices.has_key(item): continue elif curprices[item] >= quatloos: continue # 10 ...
c3f898eb1ec727ded93431b29729d41521bf7937 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2020/c3f898eb1ec727ded93431b29729d41521bf7937/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12729, 323, 287, 12, 1397, 683, 1242, 16, 1570, 683, 1242, 16, 25847, 383, 538, 16, 14046, 70, 9835, 4672, 468, 1188, 5238, 10951, 468, 1188, 609, 12, 1397, 683, 1242, 13, 468, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12729, 323, 287, 12, 1397, 683, 1242, 16, 1570, 683, 1242, 16, 25847, 383, 538, 16, 14046, 70, 9835, 4672, 468, 1188, 5238, 10951, 468, 1188, 609, 12, 1397, 683, 1242, 13, 468, 1...
"""
"""
def csctocsr(*args): """ csctocsr(int n_row, int n_col, int Ap, int Ai, float Ax, std::vector<(int)> Bp, std::vector<(int)> Bj, std::vector<(float)> Bx) csctocsr(int n_row, int n_col, int Ap, int Ai, double Ax, std::vector<(int)> Bp, std::vector<(int)> Bj, std::vector<(double)> Bx) csctocsr(int n_row, int n_col, int Ap...
5ae78c789fc0e199f798df7b612701ba4deb366c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/5ae78c789fc0e199f798df7b612701ba4deb366c/sparsetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2873, 299, 504, 11254, 30857, 1968, 4672, 3536, 2873, 299, 504, 11254, 12, 474, 290, 67, 492, 16, 509, 290, 67, 1293, 16, 509, 1716, 16, 509, 432, 77, 16, 1431, 22516, 16, 2044, 2866, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2873, 299, 504, 11254, 30857, 1968, 4672, 3536, 2873, 299, 504, 11254, 12, 474, 290, 67, 492, 16, 509, 290, 67, 1293, 16, 509, 1716, 16, 509, 432, 77, 16, 1431, 22516, 16, 2044, 2866, ...
if (you): VS.IOmessage (0,"bounty mission",self.mplay,"Good Day, %s. Your mission is as follows:" % (you.getName()))
if (self.you): VS.IOmessage (0,"bounty mission",self.mplay,"Good Day, %s. Your mission is as follows:" % (self.you.getName()))
def __init__ (self,minnumsystemsaway, maxnumsystemsaway, creds, run_away, shipdifficulty, tempfaction): Director.Mission.__init__ () self.newship="" self.mplay="all" self.istarget=0 self.obj=0 self.curiter=0 self.arrived=0 self.faction = tempfaction self.difficulty = shipdifficulty self.runaway=run_away self.cred=creds...
a537f39c17600bf6b993994cfcfafc164c3f274f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2883/a537f39c17600bf6b993994cfcfafc164c3f274f/bounty.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1154, 2107, 4299, 13098, 1888, 16, 943, 2107, 4299, 13098, 1888, 16, 12534, 16, 1086, 67, 26718, 16, 24316, 5413, 21934, 16, 1906, 507, 349, 4672, 29701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 1154, 2107, 4299, 13098, 1888, 16, 943, 2107, 4299, 13098, 1888, 16, 12534, 16, 1086, 67, 26718, 16, 24316, 5413, 21934, 16, 1906, 507, 349, 4672, 29701, ...
self._recordings_cache_name = name
self._recordings_cache_name = self.get_cache_file_name()
def use_cached_session(self, name, real_http_client=None): """Attempts to load recordings from a previous live request. If a temp file with the recordings exists, then it is used to fulfill requests. If the file does not exist, then a real client is used to actually make the desired HTTP requests. Requests and respons...
369396ea66a5afc3604ab85c34a1cff9614eff10 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/369396ea66a5afc3604ab85c34a1cff9614eff10/mock_http_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 7097, 67, 3184, 12, 2890, 16, 508, 16, 2863, 67, 2505, 67, 2625, 33, 7036, 4672, 3536, 10113, 358, 1262, 1409, 899, 628, 279, 2416, 8429, 590, 18, 225, 971, 279, 1906, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 7097, 67, 3184, 12, 2890, 16, 508, 16, 2863, 67, 2505, 67, 2625, 33, 7036, 4672, 3536, 10113, 358, 1262, 1409, 899, 628, 279, 2416, 8429, 590, 18, 225, 971, 279, 1906, 585, ...
res = ir.ir_get(cr, uid, 'default', False, [self._name])
ir_values_obj = self.pool.get('ir.values') res = ir_values_obj.get(cr, uid, 'default', False, [self._name])
def default_get(self, cr, uid, fields, context=None): if not context: context={} value = {} # get the default values for the inherited fields for t in self._inherits.keys(): value.update(self.pool.get(t).default_get(cr, uid, fields, context))
36b95ea77932c42d9940f3534e42b4fe24e69965 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/36b95ea77932c42d9940f3534e42b4fe24e69965/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 460, 273, 2618, 468, 336, 326, 805, 924, 364, 326, 12078, 1466, 364, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 1466, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 460, 273, 2618, 468, 336, 326, 805, 924, 364, 326, 12078, 1466, 364, 268...
result.append(channel.read())
value = channel.read() result.append(value)
def _consumer(channel, reads, result_channel): result = [] for i in xrange(reads): result.append(channel.read()) result_channel.write(result)
7bc9d1c19922e91df587c0941b9e85ec0e7c5fa1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10307/7bc9d1c19922e91df587c0941b9e85ec0e7c5fa1/test_builtins.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13230, 12, 4327, 16, 6838, 16, 563, 67, 4327, 4672, 563, 273, 5378, 364, 277, 316, 12314, 12, 11904, 4672, 460, 273, 1904, 18, 896, 1435, 563, 18, 6923, 12, 1132, 13, 563, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13230, 12, 4327, 16, 6838, 16, 563, 67, 4327, 4672, 563, 273, 5378, 364, 277, 316, 12314, 12, 11904, 4672, 460, 273, 1904, 18, 896, 1435, 563, 18, 6923, 12, 1132, 13, 563, 67, 4...
brother_ids = self.search(cursor, 0, [ (field_name, '=', parent_id), ])
if parent_id is False: cursor.execute('SELECT id FROM "' + self._table + '" WHERE "' +\ field_name + '" IS NULL') else: cursor.execute('SELECT id FROM "' + self._table + '" WHERE "' +\ field_name + '" = %s', (parent_id,)) brother_ids = [x[0] for x in cursor.fetchall()]
def _update_tree(self, cursor, user, object_id, field_name, left, right): ''' Update left, right values for the tree. Remarks: - the value (right - left - 1) / 2 will not give the number of children node - the order of the tree respects the default _order ''' cursor.execute('SELECT "' + left + '", "' + right + '" ' \ '...
4e3e32722d6d2e457c97838311eeb34383fca356 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/4e3e32722d6d2e457c97838311eeb34383fca356/modelsql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 3413, 12, 2890, 16, 3347, 16, 729, 16, 733, 67, 350, 16, 652, 67, 529, 16, 2002, 16, 2145, 4672, 9163, 2315, 2002, 16, 2145, 924, 364, 326, 2151, 18, 2663, 27943, 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, 2725, 67, 3413, 12, 2890, 16, 3347, 16, 729, 16, 733, 67, 350, 16, 652, 67, 529, 16, 2002, 16, 2145, 4672, 9163, 2315, 2002, 16, 2145, 924, 364, 326, 2151, 18, 2663, 27943, 30, ...
def setScore(self, track, score): c = self._conn.cursor() trackID = track.getID() if trackID == None: print "\'"+self.getPath(track)+"\' is not in the library." return c.execute("update tracks set unscored = 0 where trackid = ?", (trackID, )) c.execute("""insert into scores (trackid, score, datetime) values (?, ?, dat...
def getAllTrackIDs(self): c = self._conn.cursor() c.execute("select trackid from tracks") result = c.fetchall() c.close() return result def _getTrackID(self, track): c = self._conn.cursor() c.execute("select trackid from tracks where path = ?", (track.getPath(), )) result = c.fetchone() c.close() if result == None: r...
def addPlay(self, track): c = self._conn.cursor() trackID = track.getID() if trackID == None: print "\'"+self.getPath(track)+"\' is not in the library." return c.execute("""insert into plays (trackid, datetime) values (?, datetime('now'))""", (trackID, )) c.close() self._conn.commit()
f519de613c45ce7f8a3ec460dbf9aa6671d55daf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/f519de613c45ce7f8a3ec460dbf9aa6671d55daf/Database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 11765, 12, 2890, 16, 3298, 4672, 276, 273, 365, 6315, 4646, 18, 9216, 1435, 3298, 734, 273, 3298, 18, 588, 734, 1435, 309, 3298, 734, 422, 599, 30, 1172, 1548, 4970, 15, 2890, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 11765, 12, 2890, 16, 3298, 4672, 276, 273, 365, 6315, 4646, 18, 9216, 1435, 3298, 734, 273, 3298, 18, 588, 734, 1435, 309, 3298, 734, 422, 599, 30, 1172, 1548, 4970, 15, 2890, 18,...
for udv in uahvars: if udv is None: continue uahdecl, _ = udv block.addstmt(uahdecl) for wrdv in wasrepackedvars: if wrdv is None: continue wrdecl, wrvar = wrdv block.addstmt(wrdecl) block.addstmt(cxx.StmtExpr( cxx.ExprAssn(wrvar, cxx.ExprVar('false'))))
block.addstmt(cxx.CppDirective('endif', '// ifdef DEBUG'))
af5a28651f5c6a1e3baf00de15bfc27c838f3c14 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/af5a28651f5c6a1e3baf00de15bfc27c838f3c14/lower.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1203, 18, 1289, 10589, 12, 71, 5279, 18, 39, 11858, 13307, 2668, 409, 430, 2187, 12084, 309, 536, 6369, 26112, 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, 1203, 18, 1289, 10589, 12, 71, 5279, 18, 39, 11858, 13307, 2668, 409, 430, 2187, 12084, 309, 536, 6369, 26112, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
print "
def hideLoadingScreen(self): #Function that controls the player's death print "############## LOADING SCREEN: Fase terminou de ser carregada ##############" self.loadingFrame.destroy() self.loadingBGFrame.destroy()
5e9a1d19a32ed2d24e7ed4f8184ae8a0f209640a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4878/5e9a1d19a32ed2d24e7ed4f8184ae8a0f209640a/Gaivota.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 10515, 7956, 12, 2890, 4672, 468, 2083, 716, 11022, 326, 7291, 1807, 443, 421, 1172, 315, 26487, 1189, 24089, 1360, 348, 5458, 1157, 30, 478, 448, 16122, 1395, 443, 703, 5926, 1574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6853, 10515, 7956, 12, 2890, 4672, 468, 2083, 716, 11022, 326, 7291, 1807, 443, 421, 1172, 315, 26487, 1189, 24089, 1360, 348, 5458, 1157, 30, 478, 448, 16122, 1395, 443, 703, 5926, 1574, ...
Script.registerSwitch( "d", "debug", "Enable debug output", self.setDebug )
Script.registerSwitch( "D", "proxydebug", "Enable debug output when generating proxy", self.setDebug )
def registerCLISwitches( self ): Script.registerSwitch( "v:", "valid=", "Valid HH:MM for the proxy. By default is 24 hours", self.setProxyLifeTime ) Script.registerSwitch( "g:", "group=", "DIRAC Group to embed in the proxy", self.setDIRACGroup ) Script.registerSwitch( "b:", "strength=", "Set the proxy strength in bytes...
746c4e9f93a895cf4a084162d7675fb130c151f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/746c4e9f93a895cf4a084162d7675fb130c151f2/ProxyGeneration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 7697, 10200, 281, 12, 365, 262, 30, 7739, 18, 4861, 10200, 12, 315, 90, 2773, 16, 315, 877, 1546, 16, 315, 1556, 20842, 30, 8206, 364, 326, 2889, 18, 2525, 805, 353, 4248, 7507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7697, 10200, 281, 12, 365, 262, 30, 7739, 18, 4861, 10200, 12, 315, 90, 2773, 16, 315, 877, 1546, 16, 315, 1556, 20842, 30, 8206, 364, 326, 2889, 18, 2525, 805, 353, 4248, 7507, ...
if idxs != []:
if idxs:
def reindexObject(self, object, idxs=[]): '''Update catalog after object data has changed. The optional idxs argument is a list of specific indexes to update (all of them by default). ''' url = self.__url(object) ## Zope 2.3 ZCatalog is supposed to work better if ## you don't uncatalog_object() when reindexing. # self....
f37c701405a9a8c2d44a150904bdae7e76f07017 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/f37c701405a9a8c2d44a150904bdae7e76f07017/CatalogTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17492, 921, 12, 2890, 16, 733, 16, 20039, 33, 8526, 4672, 9163, 1891, 6222, 1839, 733, 501, 711, 3550, 18, 1021, 3129, 20039, 1237, 353, 279, 666, 434, 2923, 5596, 358, 1089, 261, 454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17492, 921, 12, 2890, 16, 733, 16, 20039, 33, 8526, 4672, 9163, 1891, 6222, 1839, 733, 501, 711, 3550, 18, 1021, 3129, 20039, 1237, 353, 279, 666, 434, 2923, 5596, 358, 1089, 261, 454, ...
zinfo.name = zinfo.filename zinfo.size = zinfo.file_size zinfo.mtime = calendar.timegm(zinfo.date_time) self.tarfile.addfile(zinfo, StringIO(bytes))
tinfo = TarInfo(zinfo.filename) tinfo.size = len(bytes) tinfo.mtime = calendar.timegm(zinfo.date_time) self.tarfile.addfile(tinfo, StringIO(bytes))
def writestr(self, zinfo, bytes): try: from cStringIO import StringIO except ImportError: from StringIO import StringIO import calendar zinfo.name = zinfo.filename zinfo.size = zinfo.file_size zinfo.mtime = calendar.timegm(zinfo.date_time) self.tarfile.addfile(zinfo, StringIO(bytes))
15c3eb6858620d8a701e01516bf464eea84d362e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/15c3eb6858620d8a701e01516bf464eea84d362e/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7262, 313, 12, 2890, 16, 998, 1376, 16, 1731, 4672, 775, 30, 628, 276, 780, 4294, 1930, 15777, 1335, 11308, 30, 628, 15777, 1930, 15777, 1930, 5686, 998, 1376, 18, 529, 273, 998, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7262, 313, 12, 2890, 16, 998, 1376, 16, 1731, 4672, 775, 30, 628, 276, 780, 4294, 1930, 15777, 1335, 11308, 30, 628, 15777, 1930, 15777, 1930, 5686, 998, 1376, 18, 529, 273, 998, 1376, ...
m_tseries = initial_state.time_series(timesteps, 1, lsys_lines)
m_tseries = initial_state.time_series(timesteps, timesteps - 1, lsys_lines)
def knockout_concentration_matrix_lsys(knockout_network, aux_network, lsys_lines, timesteps) : """docu missing """ # gfd_wildtype contains only the wildtype genes because # KnockoutTranssysProgram has only one factor added, genes are # unchanged (unless in knockout state, which we don't expect at the start). gfd_wildty...
7b4d404d385acdff7ab344cb466eda00cb52b547 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1770/7b4d404d385acdff7ab344cb466eda00cb52b547/transdisrupt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15516, 975, 659, 67, 11504, 8230, 367, 67, 5667, 67, 3251, 1900, 12, 21112, 975, 659, 67, 5185, 16, 9397, 67, 5185, 16, 7180, 1900, 67, 3548, 16, 17145, 13058, 13, 294, 3536, 2434, 89,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15516, 975, 659, 67, 11504, 8230, 367, 67, 5667, 67, 3251, 1900, 12, 21112, 975, 659, 67, 5185, 16, 9397, 67, 5185, 16, 7180, 1900, 67, 3548, 16, 17145, 13058, 13, 294, 3536, 2434, 89,...
if upgpkg in changeset:
if upgpkg in changeset and pkg.name != upgpkg.name: depchkoff[upgpkg] = True elif upgpkg in changeset:
def commit(self, changeset, pkgpaths):
72a8928bc1c5e7989d246c63e52974dff816a8f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8317/72a8928bc1c5e7989d246c63e52974dff816a8f8/pm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 22463, 16, 3475, 4481, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3294, 12, 2890, 16, 22463, 16, 3475, 4481, 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...
time.sleep(1)
time.sleep(.1)
def callibrate(): ser = serial.Serial('/dev/tty.usbmodem1411'); ser.baudrate = 9600; print ("serial successful"); while (True): lin = raw_input("what input should I do?"); if (lin == 'break'): return ser.setDTR(level=0) time.sleep(1) temp = ser.write(lin); result = ser.readline();
dd0ca4c2f84132a23048764750b7fa51b5d59029 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7703/dd0ca4c2f84132a23048764750b7fa51b5d59029/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 495, 5141, 13332, 703, 273, 2734, 18, 6342, 2668, 19, 5206, 19, 5512, 18, 25525, 3188, 81, 3461, 2499, 8284, 703, 18, 12124, 1100, 5141, 273, 19332, 713, 31, 1172, 7566, 8818, 6873,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 495, 5141, 13332, 703, 273, 2734, 18, 6342, 2668, 19, 5206, 19, 5512, 18, 25525, 3188, 81, 3461, 2499, 8284, 703, 18, 12124, 1100, 5141, 273, 19332, 713, 31, 1172, 7566, 8818, 6873,...
if isinstance( period, basestring ):
if isinstance(period, basestring):
def getPeriodSeconds( period ): """ return the number of seconds in the specified period """ if isinstance( period, basestring ): try: result = eval( 'seconds_per_%s' % period.lower() ) except NameError: raise ValueError, "period not in ( minute, hour, day, year )" elif isinstance( period, ( int, long ) ): result = per...
ccdd4176bbf664bc1e8b113fff77933c61ec889b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/865/ccdd4176bbf664bc1e8b113fff77933c61ec889b/datetools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22612, 2386, 6762, 12, 3879, 262, 30, 3536, 327, 326, 1300, 434, 3974, 316, 326, 1269, 3879, 3536, 309, 1549, 12, 6908, 16, 10699, 4672, 775, 30, 563, 273, 5302, 12, 296, 7572, 67, 457...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22612, 2386, 6762, 12, 3879, 262, 30, 3536, 327, 326, 1300, 434, 3974, 316, 326, 1269, 3879, 3536, 309, 1549, 12, 6908, 16, 10699, 4672, 775, 30, 563, 273, 5302, 12, 296, 7572, 67, 457...
print "Oops"
if msg[0] != 6: print "Oops", msg
def rawrequest3 (url, port): """raw request with proxy CONNECT protocol""" from wc.proxy.Dispatcher import create_socket from urllib import splitnport parts = urlparse.urlsplit(url) host, sslport = splitnport(parts[1], 443) path = urlparse.urlunsplit(('', '', parts[2], parts[3], parts[4])) _sock = create_socket(socket....
be161445026098c6100b9ce2201594c86781541a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/be161445026098c6100b9ce2201594c86781541a/getssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1831, 2293, 23, 261, 718, 16, 1756, 4672, 3536, 1899, 590, 598, 2889, 21593, 1771, 8395, 628, 14310, 18, 5656, 18, 6681, 1930, 752, 67, 7814, 628, 11527, 1930, 1416, 82, 655, 2140, 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, 1831, 2293, 23, 261, 718, 16, 1756, 4672, 3536, 1899, 590, 598, 2889, 21593, 1771, 8395, 628, 14310, 18, 5656, 18, 6681, 1930, 752, 67, 7814, 628, 11527, 1930, 1416, 82, 655, 2140, 273, ...
p0 = p raise RuntimeError, "Failed to converge after %d iterations, value is %f" % (maxiter,p)
p0 = p raise RuntimeError, "Failed to converge after %d iterations, value is %s" % (maxiter,p)
def fixed_point(func, x0, args=(), xtol=1e-10, maxiter=500): """Find the point where func(x) == x Given a function of one or more variables and a starting point, find a fixed-point of the function: i.e. where func(x)=x. Uses Steffensen's Method using Aitken's Del^2 convergence acceleration. See Burden, Faires, "Numer...
126030232a94ef6039220c1806ee939f288b3c98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/126030232a94ef6039220c1806ee939f288b3c98/minpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5499, 67, 1153, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 619, 3490, 33, 21, 73, 17, 2163, 16, 25743, 33, 12483, 4672, 3536, 3125, 326, 1634, 1625, 1326, 12, 92, 13, 422, 619, 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, 5499, 67, 1153, 12, 644, 16, 619, 20, 16, 833, 33, 9334, 619, 3490, 33, 21, 73, 17, 2163, 16, 25743, 33, 12483, 4672, 3536, 3125, 326, 1634, 1625, 1326, 12, 92, 13, 422, 619, 225, ...
MASK = 0xffffffff
def _parse(self, fp): """Override this method to support alternative .mo formats.""" # We need to & all 32 bit unsigned integers with 0xffffffff for # portability to 64 bit machines. MASK = 0xffffffff unpack = struct.unpack filename = getattr(fp, 'name', '') # Parse the .mo file header, which consists of 5 little endia...
09707e363723fa24ba53e4e5d77cc26d4dea724f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/09707e363723fa24ba53e4e5d77cc26d4dea724f/gettext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 2890, 16, 4253, 4672, 3536, 6618, 333, 707, 358, 2865, 10355, 263, 8683, 6449, 12123, 468, 1660, 1608, 358, 473, 777, 3847, 2831, 9088, 12321, 598, 374, 28857, 364, 468, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 12, 2890, 16, 4253, 4672, 3536, 6618, 333, 707, 358, 2865, 10355, 263, 8683, 6449, 12123, 468, 1660, 1608, 358, 473, 777, 3847, 2831, 9088, 12321, 598, 374, 28857, 364, 468, 1...
return (1.0+(x/1000.0))
return math.pow(10.0,x/2000.0)
def slider2coef(x): return (1.0+(x/1000.0))
5b8c7f9237714ed634ca2f4b377af716c7ab0b87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/150/5b8c7f9237714ed634ca2f4b377af716c7ab0b87/qpaeq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18442, 22, 24305, 12, 92, 4672, 327, 261, 21, 18, 20, 15, 12, 92, 19, 18088, 18, 20, 3719, 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, 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, 18442, 22, 24305, 12, 92, 4672, 327, 261, 21, 18, 20, 15, 12, 92, 19, 18088, 18, 20, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
line = regexColorReplace(r':(\d+)', ["magenta"], line)
line = regexColorReplace(':(\d+)[,:]', ["magenta"], line)
def main(log, retryscript): if log: fp_log = open("noI.log", 'w') #################################### # loop over stdin lines #################################### # have the retry script echo a message if there are no errors no_op_mesg = "No errors were found in the most recent scons compile." s = "#!/usr/bin/env b...
4c783f59fc9c178ee8392d3ad8a3e9b16a035ae1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/4c783f59fc9c178ee8392d3ad8a3e9b16a035ae1/noI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 1330, 16, 3300, 4263, 4672, 225, 309, 613, 30, 4253, 67, 1330, 273, 1696, 2932, 2135, 45, 18, 1330, 3113, 296, 91, 6134, 225, 19709, 13151, 468, 2798, 1879, 8801, 2362, 19709, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1330, 16, 3300, 4263, 4672, 225, 309, 613, 30, 4253, 67, 1330, 273, 1696, 2932, 2135, 45, 18, 1330, 3113, 296, 91, 6134, 225, 19709, 13151, 468, 2798, 1879, 8801, 2362, 19709, ...
self.canvas.tkraise(self.id, abovethis)
self.canvas.tag_raise(self.id, abovethis)
def tkraise(self, abovethis=None): self.canvas.tkraise(self.id, abovethis)
f0c06c96c8ea1257fc228a6111fb74dba48579f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f0c06c96c8ea1257fc228a6111fb74dba48579f3/Canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13030, 11628, 12, 2890, 16, 279, 1075, 90, 546, 291, 33, 7036, 4672, 365, 18, 15424, 18, 16099, 11628, 12, 2890, 18, 350, 16, 279, 1075, 90, 546, 291, 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, 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, 13030, 11628, 12, 2890, 16, 279, 1075, 90, 546, 291, 33, 7036, 4672, 365, 18, 15424, 18, 16099, 11628, 12, 2890, 18, 350, 16, 279, 1075, 90, 546, 291, 13, 2, -100, -100, -100, -100, ...
'Failed to start PyWebSocket server on port %s.' % self._port)
'Failed to start %s server on port %s.' % (self._server_name, self._port))
def Start(self): if not self._webkit_tests: logging.info('No need to start PyWebSocket server.') return if self.IsRunning(): raise PyWebSocketNotStarted('PyWebSocket is already running.')
1e7c64df25a5fd0d96d40455e10197ad34d0bbbe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/1e7c64df25a5fd0d96d40455e10197ad34d0bbbe/websocket_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 12, 2890, 4672, 309, 486, 365, 6315, 29319, 67, 16341, 30, 2907, 18, 1376, 2668, 2279, 1608, 358, 787, 4707, 19217, 1438, 1093, 13, 327, 309, 365, 18, 2520, 7051, 13332, 1002, 4707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3603, 12, 2890, 4672, 309, 486, 365, 6315, 29319, 67, 16341, 30, 2907, 18, 1376, 2668, 2279, 1608, 358, 787, 4707, 19217, 1438, 1093, 13, 327, 309, 365, 18, 2520, 7051, 13332, 1002, 4707...
def remove_option(section, option):
def remove_option(self, section, option):
def remove_option(section, option): """Remove an option.""" if not section or section == "DEFAULT": sectdict = self.__defaults else: try: sectdict = self.__sections[section] except KeyError: raise NoSectionError(section) existed = sectdict.has_key(key) if existed: del sectdict[key] return existed
4d00c3e84c95acc135aa85c6f588fdbdee987a3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4d00c3e84c95acc135aa85c6f588fdbdee987a3c/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 3288, 392, 1456, 12123, 309, 486, 2442, 578, 2442, 422, 315, 5280, 6877, 29140, 1576, 273, 365, 16186, 7606, 469, 30, 775, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3482, 12, 2890, 16, 2442, 16, 1456, 4672, 3536, 3288, 392, 1456, 12123, 309, 486, 2442, 578, 2442, 422, 315, 5280, 6877, 29140, 1576, 273, 365, 16186, 7606, 469, 30, 775, 30, ...
return method_handler = getattr(self, '_handle_%s' % chunk.method, None) if method_handler is not None: method_handler(chunk)
elif chunk is not None: method_handler = getattr(self, '_handle_%s' % chunk.method, None) if method_handler is not None: method_handler(chunk)
def _handle_incoming(self, chunk=None, error=None): notification_center = NotificationCenter() if error is not None: ndata = TimestampedNotificationData(context='reading', failure=error, reason=error.getErrorMessage()) notification_center.post_notification('MediaStreamDidFail', self, ndata) return method_handler = geta...
5793b217f38244e6292c857964ceac37d2a46135 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/5793b217f38244e6292c857964ceac37d2a46135/msrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 31033, 12, 2890, 16, 2441, 33, 7036, 16, 555, 33, 7036, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 555, 353, 486, 599, 30, 290, 892, 273, 8159, 329, 4386, 751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4110, 67, 31033, 12, 2890, 16, 2441, 33, 7036, 16, 555, 33, 7036, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 309, 555, 353, 486, 599, 30, 290, 892, 273, 8159, 329, 4386, 751, ...
write("Failed to run mythtrancode to fix any errors")
write("Failed to run mythtranscode to fix any errors")
def doProcessFile(file, folder, count): """Process a single video/recording file ready for burning.""" write( "*************************************************************") write( "Processing %s %d: '%s'" % (file.attributes["type"].value, count, file.attributes["filename"].value)) write( "***************************...
167134f57a3ed9bf52ced5d704c36521fcb3b806 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/167134f57a3ed9bf52ced5d704c36521fcb3b806/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2227, 812, 12, 768, 16, 3009, 16, 1056, 4672, 3536, 2227, 279, 2202, 6191, 19, 3366, 310, 585, 5695, 364, 18305, 310, 12123, 225, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 1045, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2227, 812, 12, 768, 16, 3009, 16, 1056, 4672, 3536, 2227, 279, 2202, 6191, 19, 3366, 310, 585, 5695, 364, 18305, 310, 12123, 225, 1045, 12, 315, 5021, 19482, 1007, 7388, 13, 1045, ...
for x, position in enumerate(value): yield cls.encode(value), position
for position, x in enumerate(value): yield cls.encode(x), position
def split(cls, value): """To index a field it must be split in a sequence of words and positions:
db2599ef986493f4a501b63cc2c90c84adf829a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12681/db2599ef986493f4a501b63cc2c90c84adf829a0/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 6429, 16, 460, 4672, 3536, 774, 770, 279, 652, 518, 1297, 506, 1416, 316, 279, 3102, 434, 4511, 471, 6865, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 6429, 16, 460, 4672, 3536, 774, 770, 279, 652, 518, 1297, 506, 1416, 316, 279, 3102, 434, 4511, 471, 6865, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
You can either turn off the drawing of the axes:
You can turn off the drawing of the axes:
def show(self, xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, filename=None, dpi=DEFAULT_DPI, axes=None, axes_labels=None,frame=False, fontsize=None, aspect_ratio=None): """ Show this graphics image with the default image viewer. OPTIONAL INPUT: filename -- (default: None) string dpi ...
d759964ba419dcfb87541e3f5eb662d8e733c34a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d759964ba419dcfb87541e3f5eb662d8e733c34a/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 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, 2405, 12, 2890, 16, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 1544, 33, 7036, 16, 16361, 33, 5280, 67, ...
def get_request (self):
def get_request(self):
def get_request (self): # override this to wrap socket with SSL sock, addr = self.socket.accept() sslconn = ssl.wrap_socket(sock, server_side=True, certfile=self.certfile) return sslconn, addr
cb62a4cb12d8f0f9904d111d93c76ea857434a52 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/cb62a4cb12d8f0f9904d111d93c76ea857434a52/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2293, 12, 2890, 4672, 468, 3849, 333, 358, 2193, 2987, 598, 7419, 7313, 16, 3091, 273, 365, 18, 7814, 18, 9436, 1435, 5832, 4646, 273, 5832, 18, 4113, 67, 7814, 12, 15031, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2293, 12, 2890, 4672, 468, 3849, 333, 358, 2193, 2987, 598, 7419, 7313, 16, 3091, 273, 365, 18, 7814, 18, 9436, 1435, 5832, 4646, 273, 5832, 18, 4113, 67, 7814, 12, 15031, 16,...
"""an open dialog
"""An open dialog.
def open_filechooser( title, parent=None, patterns=None, folder=None, filter=None, _before_run=None, action=None): """an open dialog :param parent: window or None :param patterns: file match patterns :param folder: initial folder :param filter: file filter use of filter and patterns at the same time is invalid """ as...
a21f909440acf5900d458025f06f0c8062574053 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11322/a21f909440acf5900d458025f06f0c8062574053/dialogs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 768, 2599, 13164, 12, 2077, 16, 982, 33, 7036, 16, 6884, 33, 7036, 16, 3009, 33, 7036, 16, 1034, 33, 7036, 16, 389, 5771, 67, 2681, 33, 7036, 16, 1301, 33, 7036, 4672, 3536...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 768, 2599, 13164, 12, 2077, 16, 982, 33, 7036, 16, 6884, 33, 7036, 16, 3009, 33, 7036, 16, 1034, 33, 7036, 16, 389, 5771, 67, 2681, 33, 7036, 16, 1301, 33, 7036, 4672, 3536...
A non-false value results in debug messages for connection and for all messages sent to and received from the server.
A non-false value results in debug messages for connection and for all messages sent to and received from the server.
def set_debuglevel(self, debuglevel): """Set the debug output level.
a7d9bdfab61551ed16efc55c1b6c37268c2d9832 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a7d9bdfab61551ed16efc55c1b6c37268c2d9832/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 4148, 2815, 12, 2890, 16, 1198, 2815, 4672, 3536, 694, 326, 1198, 876, 1801, 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, ...
[ 1, 1, 1, 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, 444, 67, 4148, 2815, 12, 2890, 16, 1198, 2815, 4672, 3536, 694, 326, 1198, 876, 1801, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if verbose==1: sys.stdout.write('.') sys.stdout.flush() elif verbose>1: print 'Writing docs for class: ', n
if progress_callback: progress_callback(filename, d)
def _write_docs(self, directory, verbose): """ A helper for L{write} that does the work of writing the documentation to the given directory. @param directory: Testing L{_find_toplevel}. """ # Create dest directory, if necessary if not os.path.isdir(directory): if os.path.exists(directory): raise ValueError('%r is not ...
56a666908c7d1ee0cf7944ea2204abf170753cce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/56a666908c7d1ee0cf7944ea2204abf170753cce/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 8532, 12, 2890, 16, 1867, 16, 3988, 4672, 3536, 432, 4222, 364, 511, 95, 2626, 97, 716, 1552, 326, 1440, 434, 7410, 326, 7323, 358, 326, 864, 1867, 18, 225, 632, 891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2626, 67, 8532, 12, 2890, 16, 1867, 16, 3988, 4672, 3536, 432, 4222, 364, 511, 95, 2626, 97, 716, 1552, 326, 1440, 434, 7410, 326, 7323, 358, 326, 864, 1867, 18, 225, 632, 891, ...
for vote in votes: event.emit(event.T_VOTE_CAST, vote.user, instance=c.instance, topics=[c.poll.scope], vote=vote, poll=c.poll)
if c.poll.action != model.Poll.SELECT: for vote in votes: event.emit(event.T_VOTE_CAST, vote.user, instance=c.instance, topics=[c.poll.scope], vote=vote, poll=c.poll)
def vote(self, id, format='html'): c.poll = self._get_open_poll(id) if c.poll.action not in [model.Poll.ADOPT, model.Poll.SELECT]: abort(400, _("This is a rating poll, not an adoption poll.")) require.poll.vote(c.poll) decision = democracy.Decision(c.user, c.poll) votes = decision.make(self.form_result.get("position"))...
efd00cd1fa43f0b498451229230631afc216597b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10360/efd00cd1fa43f0b498451229230631afc216597b/poll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12501, 12, 2890, 16, 612, 16, 740, 2218, 2620, 11, 4672, 276, 18, 13835, 273, 365, 6315, 588, 67, 3190, 67, 13835, 12, 350, 13, 309, 276, 18, 13835, 18, 1128, 486, 316, 306, 2284, 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, 12501, 12, 2890, 16, 612, 16, 740, 2218, 2620, 11, 4672, 276, 18, 13835, 273, 365, 6315, 588, 67, 3190, 67, 13835, 12, 350, 13, 309, 276, 18, 13835, 18, 1128, 486, 316, 306, 2284, 18...
self.stateVarsNondim = self.stateVars
def __init__(self, name="druckerprager3delastic"): """ Constructor. """ ElasticMaterialApp.__init__(self, name)
7457070fc151c31ad4b7704dd791acb50ee6640a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8645/7457070fc151c31ad4b7704dd791acb50ee6640a/DruckerPrager3DTimeDep.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 1546, 3069, 9031, 264, 683, 6817, 23, 3771, 8160, 6, 4672, 3536, 11417, 18, 3536, 9775, 11790, 3371, 16186, 2738, 972, 12, 2890, 16, 508, 13, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 508, 1546, 3069, 9031, 264, 683, 6817, 23, 3771, 8160, 6, 4672, 3536, 11417, 18, 3536, 9775, 11790, 3371, 16186, 2738, 972, 12, 2890, 16, 508, 13, 2, -10...
force = player.CreateForce("jail_force", int(time / 5))
force = player.CreateForce("jail_force", int(time / 6.25))
def jail(self, player, time, check = True): # Check if this player is already jailed... if check and self.get_jail_force(player): return False
84d08eab3acb8c9924a19b9b90e182dc6527a5dd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8118/84d08eab3acb8c9924a19b9b90e182dc6527a5dd/Jail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 525, 671, 12, 2890, 16, 7291, 16, 813, 16, 866, 273, 1053, 4672, 468, 2073, 309, 333, 7291, 353, 1818, 525, 1708, 2777, 309, 866, 471, 365, 18, 588, 67, 78, 671, 67, 5734, 12, 14872,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 525, 671, 12, 2890, 16, 7291, 16, 813, 16, 866, 273, 1053, 4672, 468, 2073, 309, 333, 7291, 353, 1818, 525, 1708, 2777, 309, 866, 471, 365, 18, 588, 67, 78, 671, 67, 5734, 12, 14872,...
PostgreSql.getConnection(connectArgs)
self.conn = PostgreSql.getConnection(connectArgs)
def __init__(self, connectArgs): connectArgs = string.split(connectArgs,':') host = None if connectArgs and connectArgs[0]: #if host is there if '|' in connectArgs[0]: #if specified port host = connectArgs[0].replace('|', ':') if connectArgs and connectArgs[-1] == 'verbose': self.verbose = 1 connectArgs = connectArgs[...
6d0c0f8e6600bd5286a6e5f1c243a0270c4aed6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/6d0c0f8e6600bd5286a6e5f1c243a0270c4aed6e/postconn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3077, 2615, 4672, 3077, 2615, 273, 533, 18, 4939, 12, 3612, 2615, 11189, 2497, 13, 1479, 273, 599, 309, 3077, 2615, 471, 3077, 2615, 63, 20, 14542, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3077, 2615, 4672, 3077, 2615, 273, 533, 18, 4939, 12, 3612, 2615, 11189, 2497, 13, 1479, 273, 599, 309, 3077, 2615, 471, 3077, 2615, 63, 20, 14542, 468, ...
'''The variable names, and associated collumn indices: {'foo':0, 'bar':1}'''
'''The variable names, and associated collumn indices: {'foo':0, 'bar':1}'''
def __init__(self, varArray=None, nameList=None, fileName=None): ''' Initialize the object. Arguments: dataArray : the data; 2D numpy.ndarray, each variable is a collumn nameList : the variable names; list or tuple of strings. Also accepted is a dict with names:indices, which is accepted untested. ''' #create empty o...
4f7397e773983ae72bd3ffebc2d43ad44a277e2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2720/4f7397e773983ae72bd3ffebc2d43ad44a277e2e/storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 569, 1076, 33, 7036, 16, 508, 682, 33, 7036, 16, 3968, 33, 7036, 4672, 9163, 9190, 326, 733, 18, 225, 13599, 30, 30541, 294, 326, 501, 31, 576, 40, 397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 569, 1076, 33, 7036, 16, 508, 682, 33, 7036, 16, 3968, 33, 7036, 4672, 9163, 9190, 326, 733, 18, 225, 13599, 30, 30541, 294, 326, 501, 31, 576, 40, 397...
if subnode['refuri'] == docname and \ not subnode['anchorname']: p = subnode while p: p['classes'].append('current') p = p.parent
if subnode['refuri'] == docname: if not subnode['anchorname']: branchnode = subnode while branchnode: branchnode['classes'].append('current') branchnode = branchnode.parent if subnode.parent.parent.get('iscurrent'): return while subnode: subnode['iscurrent'] = True subnode = subnode.parent
def _walk_depth(node, depth, maxdepth): """Utility: Cut a TOC at a specified depth.""" for subnode in node.children[:]: if isinstance(subnode, (addnodes.compact_paragraph, nodes.list_item)): subnode['classes'].append('toctree-l%d' % (depth-1)) _walk_depth(subnode, depth, maxdepth) elif isinstance(subnode, nodes.bullet_...
6ef0e9ea67ff9ff392c78e5b79e29a400b301b79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/6ef0e9ea67ff9ff392c78e5b79e29a400b301b79/environment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11348, 67, 5979, 12, 2159, 16, 3598, 16, 943, 5979, 4672, 3536, 6497, 30, 385, 322, 279, 8493, 39, 622, 279, 1269, 3598, 12123, 364, 28300, 316, 756, 18, 5906, 10531, 14542, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11348, 67, 5979, 12, 2159, 16, 3598, 16, 943, 5979, 4672, 3536, 6497, 30, 385, 322, 279, 8493, 39, 622, 279, 1269, 3598, 12123, 364, 28300, 316, 756, 18, 5906, 10531, 14542, 309, ...
sage: E2 Elliptic Curve defined by y^2 + a*x*y + (a+1)*y = x^3 + (a+1)*x^2 + (12289755603565800754*a-75759141535687466985)*x + (51556320144761417221790307379*a-317814501841918807353201512829) over Number Field in a with defining polynomial x^2 - 38
sage: E2 Elliptic Curve defined by y^2 + a*x*y + (a+1)*y = x^3 + (a+1)*x^2 + (368258520200522046806318444*a-2270097978636731786720859345)*x + (8456608930173478039472018047583706316424*a-52130038506793883217874390501829588391299) over Number Field in a with defining polynomial x^2 - 38
def global_minimal_model(self, proof = None): r""" Returns a model of self that is integral, minimal at all primes. .. note::
73136fe88017b1ada2ab43235edd1ad9bf1f056d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/73136fe88017b1ada2ab43235edd1ad9bf1f056d/ell_number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2552, 67, 1154, 2840, 67, 2284, 12, 2890, 16, 14601, 273, 599, 4672, 436, 8395, 2860, 279, 938, 434, 365, 716, 353, 21423, 16, 16745, 622, 777, 846, 4485, 18, 225, 6116, 4721, 2866, 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, 2552, 67, 1154, 2840, 67, 2284, 12, 2890, 16, 14601, 273, 599, 4672, 436, 8395, 2860, 279, 938, 434, 365, 716, 353, 21423, 16, 16745, 622, 777, 846, 4485, 18, 225, 6116, 4721, 2866, 2,...
expirationDate = record[ 2 ]
expirationDate = record[ 2 ]
def registerCLISwitches( self ): Script.registerSwitch( "v:", "valid=", "Required HH:MM for the users", self.setProxyLifeTime )
0cc69800cbecb24d785f242039c4b7365bb58b95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0cc69800cbecb24d785f242039c4b7365bb58b95/dirac-admin-users-with-proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 7697, 10200, 281, 12, 365, 262, 30, 7739, 18, 4861, 10200, 12, 315, 90, 2773, 16, 315, 877, 1546, 16, 315, 3705, 20842, 30, 8206, 364, 326, 3677, 3113, 365, 18, 542, 3886, 15315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 7697, 10200, 281, 12, 365, 262, 30, 7739, 18, 4861, 10200, 12, 315, 90, 2773, 16, 315, 877, 1546, 16, 315, 3705, 20842, 30, 8206, 364, 326, 3677, 3113, 365, 18, 542, 3886, 15315,...
def _entry_header(self, type, user, prefix="= ", suffix=" ="):
def _entry_header(self, type, user, prefix="= ", suffix=""):
def _entry_header(self, type, user, prefix="= ", suffix=" ="): """Return text for the header of a new transcript entry.""" # Ideally this would be a skin method (probly python script), but i # don't know how to call it from the product, sigh. t = string.capitalize(type) if self.action_number: lead = t + " - Entry #" + ...
295b4e4b2cb82abcf55fc326fb4a27cc8c2ae1c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/295b4e4b2cb82abcf55fc326fb4a27cc8c2ae1c0/CollectorIssue.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4099, 67, 3374, 12, 2890, 16, 618, 16, 729, 16, 1633, 1546, 33, 3104, 3758, 1546, 6, 4672, 3536, 990, 977, 364, 326, 1446, 434, 279, 394, 15194, 1241, 12123, 468, 23062, 1230, 333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4099, 67, 3374, 12, 2890, 16, 618, 16, 729, 16, 1633, 1546, 33, 3104, 3758, 1546, 6, 4672, 3536, 990, 977, 364, 326, 1446, 434, 279, 394, 15194, 1241, 12123, 468, 23062, 1230, 333...
pnv=u64(read(8))
pnv=U64(read(8))
def pack(self, t, referencesf): """Copy data from the current database file to a packed file Non-current records from transactions with time-stamp strings less than packtss are ommitted. As are all undone records. Also, data back pointers that point before packtss are resolved and the associated data are copied, sinc...
e9aa3bd398cba329c8a421eb6d47f4dba6e400a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/e9aa3bd398cba329c8a421eb6d47f4dba6e400a9/FileStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2890, 16, 268, 16, 5351, 74, 4672, 3536, 2951, 501, 628, 326, 783, 2063, 585, 358, 279, 12456, 585, 225, 3858, 17, 2972, 3853, 628, 8938, 598, 813, 17, 14317, 2064, 5242, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2298, 12, 2890, 16, 268, 16, 5351, 74, 4672, 3536, 2951, 501, 628, 326, 783, 2063, 585, 358, 279, 12456, 585, 225, 3858, 17, 2972, 3853, 628, 8938, 598, 813, 17, 14317, 2064, 5242, 235...
if request.method == 'POST': return redirect('personmeetingattendances') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id") personmeetingattendances = PersonMeetingAttendance.objects.filter(screening__in = screenings).distinct().order_by(...
if request.method == 'POST': return redirect('personmeetingattendances') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id") personmeetingattendances = PersonMeetingAttendance.objects.filter(screening__in = screenings).distinct().order_by(...
def get_personmeetingattendances_online(request, offset, limit): if request.method == 'POST': return redirect('personmeetingattendances') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id") personmeetingattendances = PersonMeetingAttendanc...
7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12479, 3501, 21747, 4558, 409, 6872, 67, 21026, 12, 2293, 16, 1384, 16, 1800, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 327, 3136, 2668, 12479, 3501, 21747, 4558, 409, 687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12479, 3501, 21747, 4558, 409, 6872, 67, 21026, 12, 2293, 16, 1384, 16, 1800, 4672, 309, 590, 18, 2039, 422, 296, 3798, 4278, 327, 3136, 2668, 12479, 3501, 21747, 4558, 409, 687...
in_rec = string.split(string.strip(in_str))
in_rec = in_str.strip().split()
def __init__(self,in_str): self.raw = in_str in_rec = string.split(string.strip(in_str)) # print in_rec self.nr = string.atoi(in_rec[0][:-1]) self.pdb1 = in_rec[1][:4] if len(in_rec[1]) == 4: self.chain1='0' elif len(in_rec[1]) == 5: self.chain1=in_rec[1][4] else: raise ValueError('Bad PDB ID 1') self.pdb2 = in_rec[2][...
8c1f8eaf8b05ee393719b964a31a2c4f6cca1a92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/8c1f8eaf8b05ee393719b964a31a2c4f6cca1a92/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 267, 67, 701, 4672, 365, 18, 1899, 273, 316, 67, 701, 316, 67, 3927, 273, 316, 67, 701, 18, 6406, 7675, 4939, 1435, 468, 1172, 316, 67, 3927, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 267, 67, 701, 4672, 365, 18, 1899, 273, 316, 67, 701, 316, 67, 3927, 273, 316, 67, 701, 18, 6406, 7675, 4939, 1435, 468, 1172, 316, 67, 3927, 365, 18, ...
this = apply(_quickfix.new_Yield, args)
this = _quickfix.new_Yield(*args)
def __init__(self, *args): this = apply(_quickfix.new_Yield, 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, 16348, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 16348, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 22...
def create_mat():
def Create_Mat():
def create_mat(): id = bpy.data.materials.new("Clay_Render") #diffuse id.diffuse_shader = "OREN_NAYAR" id.diffuse_color = 0.800, 0.741, 0.536 id.diffuse_intensity = 1 id.roughness = 0.909 #specular id.specular_shader = "COOKTORR" id.specular_color = 1, 1, 1 id.specular_hardness = 10 id.specular_intensity = 0.115 return...
e6b5c1a3ecbf3cf3e1bff92597f90631a576aa84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11963/e6b5c1a3ecbf3cf3e1bff92597f90631a576aa84/render_clay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 67, 15947, 13332, 612, 273, 324, 2074, 18, 892, 18, 20542, 87, 18, 2704, 2932, 2009, 528, 67, 3420, 7923, 468, 5413, 1202, 612, 18, 5413, 1202, 67, 674, 1143, 273, 315, 8607, 50,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 67, 15947, 13332, 612, 273, 324, 2074, 18, 892, 18, 20542, 87, 18, 2704, 2932, 2009, 528, 67, 3420, 7923, 468, 5413, 1202, 612, 18, 5413, 1202, 67, 674, 1143, 273, 315, 8607, 50,...
""" return hash(self._repr_(simplify=False))
In this example hashing is important otherwise the answer is wrong: sage: uniq([x-x, -x+x]) [0] """ return hash(self._repr_(simplify=True))
def __hash__(self): """ Returns the hash of this symbolic expression.
95f2fade4869d50fcc95f5d3722c833758b6ad73 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/95f2fade4869d50fcc95f5d3722c833758b6ad73/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2816, 972, 12, 2890, 4672, 3536, 2860, 326, 1651, 434, 333, 16754, 2652, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2816, 972, 12, 2890, 4672, 3536, 2860, 326, 1651, 434, 333, 16754, 2652, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
@gtk_unsafe
def populate_files_table(self): """ First clears and then populates the files table based on the items retrieved in self.load() """ self.files_table.clear()
74a23f3d43e94516df57c3794deee45b211f5cf0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/74a23f3d43e94516df57c3794deee45b211f5cf0/commit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6490, 67, 2354, 67, 2121, 12, 2890, 4672, 3536, 5783, 22655, 471, 1508, 22065, 326, 1390, 1014, 2511, 603, 326, 1516, 10295, 316, 365, 18, 945, 1435, 225, 3536, 225, 365, 18, 2354, 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, 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, 6490, 67, 2354, 67, 2121, 12, 2890, 4672, 3536, 5783, 22655, 471, 1508, 22065, 326, 1390, 1014, 2511, 603, 326, 1516, 10295, 316, 365, 18, 945, 1435, 225, 3536, 225, 365, 18, 2354, 67, ...
if progress_callback: progress_callback(filename, None)
if progress_callback: progress_callback(filename)
def _write_frames(self, directory, progress_callback): """ Write the frames-driven contents files for the project to the given directory.
ff8a7768302f9a81d34b7d6002d78ad59f4ed37f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/ff8a7768302f9a81d34b7d6002d78ad59f4ed37f/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 10278, 12, 2890, 16, 1867, 16, 4007, 67, 3394, 4672, 3536, 2598, 326, 7793, 17, 3069, 837, 2939, 1390, 364, 326, 1984, 358, 326, 864, 1867, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 10278, 12, 2890, 16, 1867, 16, 4007, 67, 3394, 4672, 3536, 2598, 326, 7793, 17, 3069, 837, 2939, 1390, 364, 326, 1984, 358, 326, 864, 1867, 18, 2, -100, -100, -100, -100...
self.assertRows(expr, [(1, 1), (2, 2)])
self.assertRows(expr, [(10, 20), (11, 21)])
def test_join_x1(self): """Joins t1->t2."""
9226871456014f1283633ead19fac23487a0e429 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/9226871456014f1283633ead19fac23487a0e429/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5701, 67, 92, 21, 12, 2890, 4672, 3536, 21108, 268, 21, 2122, 88, 22, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 67, 5701, 67, 92, 21, 12, 2890, 4672, 3536, 21108, 268, 21, 2122, 88, 22, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
atype = bti.get_typeclass( t[4:-2], tns )
atype = bti.get_typeclass( localName[:-2], namespaceURI )
def getArrayType(self):
4d8ebba35fff2bb9af80b30200f02500bb52a11d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/4d8ebba35fff2bb9af80b30200f02500bb52a11d/wsdlInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12634, 559, 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, 12634, 559, 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, -...
if len(old_bugs) > len(newb) and len(newb) > 0:
if len(old_bugs) > len(new_bugs) and len(new_bugs) > 0:
def should_upgrade_src(self, src, suite): """Check if source package should be upgraded
7fb9f58bb8a2f515d3965fd81f9f747b8e4604f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2784/7fb9f58bb8a2f515d3965fd81f9f747b8e4604f2/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 67, 15097, 67, 4816, 12, 2890, 16, 1705, 16, 11371, 4672, 3536, 1564, 309, 1084, 2181, 1410, 506, 31049, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 67, 15097, 67, 4816, 12, 2890, 16, 1705, 16, 11371, 4672, 3536, 1564, 309, 1084, 2181, 1410, 506, 31049, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif type != None:
elif kind != None:
def __init__(self,ref=None,kind=None):
8b320a3c80ce1f8a45d2441a306b51ef3f79fa20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9020/8b320a3c80ce1f8a45d2441a306b51ef3f79fa20/Component.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1734, 33, 7036, 16, 9224, 33, 7036, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1734, 33, 7036, 16, 9224, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return _PackInt1(114) + _PackInt2(len(term.id)) + \
return _PackInt1(MAGIC_NEW_REFERENCE) + \ _PackInt2(len(term.id)) + \
def _PackNewReferenceExt(term): node = _PackOneTerm(term.node) creation = _PackCreation(term.creation) id0 = _PackId(term.id[0]) ids = id0 for id in term.id[1:]: ids = ids + _PackInt4(id) return _PackInt1(114) + _PackInt2(len(term.id)) + \ node + creation + ids
f5a33431908f2d30884e237b626d15ed55b2f169 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/f5a33431908f2d30884e237b626d15ed55b2f169/erl_term.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4420, 1908, 2404, 2482, 12, 6408, 4672, 756, 273, 389, 4420, 3335, 4065, 12, 6408, 18, 2159, 13, 6710, 273, 389, 4420, 9906, 12, 6408, 18, 17169, 13, 612, 20, 273, 389, 4420, 548,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4420, 1908, 2404, 2482, 12, 6408, 4672, 756, 273, 389, 4420, 3335, 4065, 12, 6408, 18, 2159, 13, 6710, 273, 389, 4420, 9906, 12, 6408, 18, 17169, 13, 612, 20, 273, 389, 4420, 548,...
ienv_stats['HASH_BUCKETS'] = Stat([], 'hash buckets')
def __init__(self, config, str): self.config = config self.str = str
23515af75f6302b77e37e238f77064274a7cb6ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11841/23515af75f6302b77e37e238f77064274a7cb6ec/stat_class.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 16, 609, 4672, 365, 18, 1425, 273, 642, 365, 18, 701, 273, 609, 2, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 16, 609, 4672, 365, 18, 1425, 273, 642, 365, 18, 701, 273, 609, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
context.error("unsupported directive: %s %s" % (self.mnemonic, operands)) sys.exit()
self.parse_DEC(context, symbol, operands)
def parse_MM(self, context, symbol, operands): context.error("unsupported directive: %s %s" % (self.mnemonic, operands)) sys.exit()
076e122989f046984d57fad8e5901e741385fd9a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/076e122989f046984d57fad8e5901e741385fd9a/directives.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 8206, 12, 2890, 16, 819, 16, 3273, 16, 14883, 4672, 365, 18, 2670, 67, 1639, 39, 12, 2472, 16, 3273, 16, 14883, 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, 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, 1109, 67, 8206, 12, 2890, 16, 819, 16, 3273, 16, 14883, 4672, 365, 18, 2670, 67, 1639, 39, 12, 2472, 16, 3273, 16, 14883, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
self._recordings_cache_name = name
self._recordings_cache_name = self.get_cache_file_name()
def use_cached_session(self, name, real_http_client=None): """Attempts to load recordings from a previous live request. If a temp file with the recordings exists, then it is used to fulfill requests. If the file does not exist, then a real client is used to actually make the desired HTTP requests. Requests and respons...
7700a3d89d9b507e202ecb8eaeffc4f27fbadbf8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/7700a3d89d9b507e202ecb8eaeffc4f27fbadbf8/mock_http_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 7097, 67, 3184, 12, 2890, 16, 508, 16, 2863, 67, 2505, 67, 2625, 33, 7036, 4672, 3536, 10113, 358, 1262, 1409, 899, 628, 279, 2416, 8429, 590, 18, 225, 971, 279, 1906, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 999, 67, 7097, 67, 3184, 12, 2890, 16, 508, 16, 2863, 67, 2505, 67, 2625, 33, 7036, 4672, 3536, 10113, 358, 1262, 1409, 899, 628, 279, 2416, 8429, 590, 18, 225, 971, 279, 1906, 585, ...
DIRAC.exit(1)
DIRAC.exit( 1 )
def registerCLISwitches( self ): Script.registerSwitch( "v:", "valid=", "Required HH:MM for the users", self.setProxyLifeTime )
0cc69800cbecb24d785f242039c4b7365bb58b95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0cc69800cbecb24d785f242039c4b7365bb58b95/dirac-admin-users-with-proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 7697, 10200, 281, 12, 365, 262, 30, 7739, 18, 4861, 10200, 12, 315, 90, 2773, 16, 315, 877, 1546, 16, 315, 3705, 20842, 30, 8206, 364, 326, 3677, 3113, 365, 18, 542, 3886, 15315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1744, 7697, 10200, 281, 12, 365, 262, 30, 7739, 18, 4861, 10200, 12, 315, 90, 2773, 16, 315, 877, 1546, 16, 315, 3705, 20842, 30, 8206, 364, 326, 3677, 3113, 365, 18, 542, 3886, 15315,...
(list) A list of ``WeierstrassIsomorphism``s consisting of all the isomorphisms from the curve ``self`` to itself defined over ``field``.
(list) A list of ``WeierstrassIsomorphism`` objects consisting of all the isomorphisms from the curve ``self`` to itself defined over ``field``.
def automorphisms(self, field=None): """ Return the set of isomorphisms from self to itself (as a list).
eb2401e745e193322d12a3277b276f66b3162e3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/eb2401e745e193322d12a3277b276f66b3162e3c/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18472, 7657, 23749, 12, 2890, 16, 652, 33, 7036, 4672, 3536, 2000, 326, 444, 434, 353, 362, 7657, 23749, 628, 365, 358, 6174, 261, 345, 279, 666, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 18472, 7657, 23749, 12, 2890, 16, 652, 33, 7036, 4672, 3536, 2000, 326, 444, 434, 353, 362, 7657, 23749, 628, 365, 358, 6174, 261, 345, 279, 666, 2934, 2, -100, -100, -100, -100, -100, ...
fr = file(stampFile, 'ru')
fr = file(stampFile, 'r')
def lastStamp(self): stampFile = self.stampFile() try: fr = file(stampFile, 'ru') for line in fr: last_time = line.strip() break fr.close() except IOError: last_time = None
88f0fc499da7f927e28b71862c6f18acbe1879c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3616/88f0fc499da7f927e28b71862c6f18acbe1879c8/gmb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1142, 8860, 12, 2890, 4672, 14429, 812, 273, 365, 18, 14317, 812, 1435, 775, 30, 3812, 273, 585, 12, 14317, 812, 16, 296, 86, 6134, 364, 980, 316, 3812, 30, 1142, 67, 957, 273, 980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1142, 8860, 12, 2890, 4672, 14429, 812, 273, 365, 18, 14317, 812, 1435, 775, 30, 3812, 273, 585, 12, 14317, 812, 16, 296, 86, 6134, 364, 980, 316, 3812, 30, 1142, 67, 957, 273, 980, ...
s.sendmail(email_from, flatten([email_to, email_cc, email_bcc]), msg.as_string()) s.quit() except Exception, e: import logging logging.getLogger().error(str(e)) return True def email_send_attach(email_from, email_to, subject, body, email_cc=None, email_bcc=None, on_error=False, reply_to=False, attach=None, tinycrm...
s.sendmail(email_from, flatten([email_to, email_cc, email_bcc]), msg.as_string() )
def email_send(email_from, email_to, subject, body, email_cc=None, email_bcc=None, on_error=False, reply_to=False, tinycrm=False, ssl=False, debug=False,subtype='plain'): """Send an email.""" if not email_cc: email_cc=[] if not email_bcc: email_bcc=[] import smtplib from email.MIMEText import MIMEText from email.MIMEMu...
84928ad0c1ac14a64e3e1717c1c576ce525b6c49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/84928ad0c1ac14a64e3e1717c1c576ce525b6c49/misc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 3652, 67, 2080, 16, 2699, 67, 869, 16, 3221, 16, 1417, 16, 2699, 67, 952, 33, 7036, 16, 2699, 67, 31345, 33, 7036, 16, 603, 67, 1636, 33, 8381, 16, 4332, 67, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2699, 67, 4661, 12, 3652, 67, 2080, 16, 2699, 67, 869, 16, 3221, 16, 1417, 16, 2699, 67, 952, 33, 7036, 16, 2699, 67, 31345, 33, 7036, 16, 603, 67, 1636, 33, 8381, 16, 4332, 67, 86...
self that are filled with a number less than
self that are filled with a number less than `n`.
def anti_restrict(self, n): """ Returns the skew tableau formed by removing all of the cells from self that are filled with a number less than
37d130246c10e7b0112af26e2825fcf33c637b30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/37d130246c10e7b0112af26e2825fcf33c637b30/tableau.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30959, 67, 30604, 12, 2890, 16, 290, 4672, 3536, 2860, 326, 20001, 1014, 8377, 20010, 635, 9427, 777, 434, 326, 5983, 628, 365, 716, 854, 6300, 598, 279, 1300, 5242, 2353, 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, 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, 30959, 67, 30604, 12, 2890, 16, 290, 4672, 3536, 2860, 326, 20001, 1014, 8377, 20010, 635, 9427, 777, 434, 326, 5983, 628, 365, 716, 854, 6300, 598, 279, 1300, 5242, 2353, 2, -100, -100,...
self.shared_library_filename (output_libname),
self.library_filename (output_libname, lib_type='shared'),
def link_shared_lib (self, objects, output_libname, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None):
04f30f40b995e0892316b0d57895f91ba6e2bdc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/04f30f40b995e0892316b0d57895f91ba6e2bdc9/unixccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 2941, 261, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 2941, 261, 2890, 16, 2184, 16, 876, 67, 2941, 529, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291,...
rm $2/$1
rm $2/$1 ;
def setup_distrib_script(self,tag_base): distrib_script = open('distribRemoteScan_'+tag_base+'.sh','w') distrib_script.write("""#!/bin/bash
154fa74bf8e4d8677cc922914fbb92d97e85216c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/154fa74bf8e4d8677cc922914fbb92d97e85216c/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2251, 665, 67, 4263, 12, 2890, 16, 2692, 67, 1969, 4672, 1015, 665, 67, 4263, 273, 1696, 2668, 2251, 665, 5169, 7972, 4623, 15, 2692, 67, 1969, 6797, 18, 674, 17023, 91, 6134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 2251, 665, 67, 4263, 12, 2890, 16, 2692, 67, 1969, 4672, 1015, 665, 67, 4263, 273, 1696, 2668, 2251, 665, 5169, 7972, 4623, 15, 2692, 67, 1969, 6797, 18, 674, 17023, 91, 6134...
error.append("Invalid image width value")
error.append(i18n._("Invalid image width value"))
def _form_apply_image (form): _form_rule_matchurl(form) width = getval(form, 'rule_imgwidth').strip() try: width = int(width) except ValueError: error.append("Invalid image width value") return if width!=currule.width: currule.width = width info.append("Rule image width changed") height = getval(form, 'rule_imgheight')...
9ad2312d756ee18c5d8cc9bb1f58ad01a1c25b45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/9ad2312d756ee18c5d8cc9bb1f58ad01a1c25b45/filterconfig_html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 687, 67, 9010, 67, 2730, 261, 687, 4672, 389, 687, 67, 5345, 67, 1916, 718, 12, 687, 13, 1835, 273, 336, 1125, 12, 687, 16, 296, 5345, 67, 6081, 2819, 16063, 6406, 1435, 775, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 687, 67, 9010, 67, 2730, 261, 687, 4672, 389, 687, 67, 5345, 67, 1916, 718, 12, 687, 13, 1835, 273, 336, 1125, 12, 687, 16, 296, 5345, 67, 6081, 2819, 16063, 6406, 1435, 775, 30...
def current_changed(self, treemodel, path, iter): pass
def on_drag_drop(self, treeview, drag_context, x, y, selection, info, timestamp): model = treeview.get_model() foobar, self._selected = self.current_selection.get_selected_rows() data = pickle.loads(selection.data) drop_info = treeview.get_dest_row_at_pos(x, y)
425abf9af04ed4b85cd2a26dcd23830368f5e584 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/425abf9af04ed4b85cd2a26dcd23830368f5e584/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 7285, 12, 2890, 16, 2151, 1945, 16, 8823, 67, 2472, 16, 619, 16, 677, 16, 4421, 16, 1123, 16, 2858, 4672, 938, 273, 2151, 1945, 18, 588, 67, 2284, 1435, 18261, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7285, 12, 2890, 16, 2151, 1945, 16, 8823, 67, 2472, 16, 619, 16, 677, 16, 4421, 16, 1123, 16, 2858, 4672, 938, 273, 2151, 1945, 18, 588, 67, 2284, 1435, 18261, 94...
self._type = type
self._regexp_type = regexp_type
def _getCategory(char): if (None == char): return Char.NONE elif ('_' == char): return Char.OTHER_WORD elif (char in DIGITS): return CATEGORY_DIGIT elif (char in SPECIAL_CHARS): return Char.SPECIAL elif (char in WHITESPACE): return CATEGORY_SPACE elif (char.isalpha()): if (char.islower()): return Char.LOWER_CASE_LETTER...
9b3ed74c17dec8d9116a2102e8382fb7fa489058 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6399/9b3ed74c17dec8d9116a2102e8382fb7fa489058/generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4457, 12, 3001, 4672, 309, 261, 7036, 422, 1149, 4672, 327, 3703, 18, 9826, 1327, 7707, 4623, 422, 1149, 4672, 327, 3703, 18, 23940, 67, 7952, 1327, 261, 3001, 316, 24313, 1015...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4457, 12, 3001, 4672, 309, 261, 7036, 422, 1149, 4672, 327, 3703, 18, 9826, 1327, 7707, 4623, 422, 1149, 4672, 327, 3703, 18, 23940, 67, 7952, 1327, 261, 3001, 316, 24313, 1015...
self.tmp_dir = tempfile.mkdtemp(prefix="pythontest_")
self.tmp_dir = os.path.join(os.path.dirname(__file__), 'xx') os.mkdir(self.tmp_dir)
def setUp(self): # Create a simple test environment # Note that we're making changes to sys.path self.tmp_dir = tempfile.mkdtemp(prefix="pythontest_") self.sys_path = sys.path[:] sys.path.append(self.tmp_dir) shutil.copy(_get_source_filename(), self.tmp_dir)
86f12d47b16e3f0dd4f1db187dcb5ed04968a210 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/86f12d47b16e3f0dd4f1db187dcb5ed04968a210/test_build_ext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 468, 1788, 279, 4143, 1842, 3330, 468, 3609, 716, 732, 4565, 10480, 3478, 358, 2589, 18, 803, 365, 18, 5645, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 538, 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, 24292, 12, 2890, 4672, 468, 1788, 279, 4143, 1842, 3330, 468, 3609, 716, 732, 4565, 10480, 3478, 358, 2589, 18, 803, 365, 18, 5645, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 538, 18,...
function_signature = FUNCTION + function_name("name") + LPARN + Optional( function_arguments("args") ) + RPARN + Optional( type, "void" )("type")
function_signature = FUNCTION + function_name + LPARN + Optional( function_arguments("args") ) + RPARN + Optional( type, "void" )("type")
def getMetaData(s,l,t): meta = ASMetaTag(t.name) for att in t.attributes: if att.key == "": meta.addParam(att.value) else: meta.addParam(att.value,att.key) return meta
977ba618732a36c027a6f53d26c86a40da63238e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/977ba618732a36c027a6f53d26c86a40da63238e/asGrammar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23028, 12, 87, 16, 80, 16, 88, 4672, 2191, 273, 5355, 2781, 1805, 12, 88, 18, 529, 13, 225, 364, 2403, 316, 268, 18, 4350, 30, 309, 2403, 18, 856, 422, 1408, 30, 2191, 18, 1289, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23028, 12, 87, 16, 80, 16, 88, 4672, 2191, 273, 5355, 2781, 1805, 12, 88, 18, 529, 13, 225, 364, 2403, 316, 268, 18, 4350, 30, 309, 2403, 18, 856, 422, 1408, 30, 2191, 18, 1289, 78...
filename = 'login-data/%s-%s-%slogin.data' % (self.site.family.name, self.site.lang, self.username)
filename = 'login-data/%s-%s-login.data' % (self.site.family.name, self.site.lang)
def storecookiedata(self, data): """ Stores cookie data.
d8726f0a89eb09437143b02cca49e64816eb817a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d8726f0a89eb09437143b02cca49e64816eb817a/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 29854, 2092, 396, 12, 2890, 16, 501, 4672, 3536, 20296, 455, 3878, 501, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 29854, 2092, 396, 12, 2890, 16, 501, 4672, 3536, 20296, 455, 3878, 501, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
or e.type == 'gismu' and e.word[0:4] == query)]
or e.type in ('gismu', 'experimental gismu') and e.word[0:4] == query)]
def query(query): query = query.replace('+', ' ') matches = set() entry = db.entries.get(query, None) if entry: matches.add(entry) glosses = [g for g in db.glosses if g.gloss == query or g.gloss == query.capitalize()] matches.update(g.entry for g in glosses) affix = [e for e in db.entries.itervalues() if e not in ma...
b4c58a12db6d3f54c124027d54e4ccc7928fd151 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12705/b4c58a12db6d3f54c124027d54e4ccc7928fd151/vlasisku.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2271, 4672, 843, 273, 843, 18, 2079, 2668, 15, 2187, 296, 8624, 1885, 273, 444, 1435, 225, 1241, 273, 1319, 18, 8219, 18, 588, 12, 2271, 16, 599, 13, 309, 1241, 30, 1885, 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, 843, 12, 2271, 4672, 843, 273, 843, 18, 2079, 2668, 15, 2187, 296, 8624, 1885, 273, 444, 1435, 225, 1241, 273, 1319, 18, 8219, 18, 588, 12, 2271, 16, 599, 13, 309, 1241, 30, 1885, 18...
self._structures = x._structures self._isotypes = x._isotypes
def define(self, x): """ Defines self to be equal to the combinatorial species x. This is used to define combinatorial species recursively. All of the real work is done by calling the .set() method for each of the series associated to self. EXAMPLES: The species of linear orders L can be recursively defined by $L = ...
54460afae51d276c6bbf549a5bb9292bd1bb1960 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/54460afae51d276c6bbf549a5bb9292bd1bb1960/recursive_species.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4426, 12, 2890, 16, 619, 4672, 3536, 18003, 281, 365, 358, 506, 3959, 358, 326, 3894, 4240, 649, 12891, 619, 18, 225, 1220, 353, 1399, 358, 4426, 3894, 4240, 649, 12891, 8536, 18, 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, 4426, 12, 2890, 16, 619, 4672, 3536, 18003, 281, 365, 358, 506, 3959, 358, 326, 3894, 4240, 649, 12891, 619, 18, 225, 1220, 353, 1399, 358, 4426, 3894, 4240, 649, 12891, 8536, 18, 225, ...
sys.exit("syntax error in Interrogate directive"); ipath = ["built/tmp"] + ipath + ["built/include"] outd = "built/etc/"+outd outc = "built/tmp/"+outc
sys.exit("syntax error in Interrogate directive") ipath = [PREFIX+"/tmp"] + ipath + [PREFIX+"/include"] outd = PREFIX+"/etc/"+outd outc = PREFIX+"/tmp/"+outc
def Interrogate(ipath=0, opts=0, outd=0, outc=0, src=0, module=0, library=0, files=0): if ((ipath==0)|(opts==0)|(outd==0)|(outc==0)|(src==0)|(module==0)|(library==0)|(files==0)): sys.exit("syntax error in Interrogate directive"); ipath = ["built/tmp"] + ipath + ["built/include"] outd = "built/etc/"+outd outc = "built/t...
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5294, 15283, 12, 625, 421, 33, 20, 16, 1500, 33, 20, 16, 596, 72, 33, 20, 16, 596, 71, 33, 20, 16, 1705, 33, 20, 16, 1605, 33, 20, 16, 5313, 33, 20, 16, 1390, 33, 20, 4672, 309...
values, bins = np.histogram(all_isi, nbins)
values, bins = np.histogram(all_isi, nbins, range=(0,all_isi.max()))
def calc_isih(spike_trains, bin_size=1, trial_num=None): """ Calculate inter-spike interval histogram. >>> spikes = [np.array([1,2,3]), np.array([2,5,8])] >>> calc_isih(spikes) (array([ 1., 1.]), array([ 1., 2., 3.])) """ isi_trains = [ np.diff(train) for train in spike_trains ] all_isi = np.concatenate(isi_train...
41719d53d2dae035c53fd06c7f97fb3b39c79d75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7039/41719d53d2dae035c53fd06c7f97fb3b39c79d75/_thorns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 291, 7392, 12, 1752, 2547, 67, 313, 4167, 16, 4158, 67, 1467, 33, 21, 16, 12950, 67, 2107, 33, 7036, 4672, 3536, 9029, 1554, 17, 1752, 2547, 3673, 8892, 18, 225, 4080, 1694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 291, 7392, 12, 1752, 2547, 67, 313, 4167, 16, 4158, 67, 1467, 33, 21, 16, 12950, 67, 2107, 33, 7036, 4672, 3536, 9029, 1554, 17, 1752, 2547, 3673, 8892, 18, 225, 4080, 1694, ...