rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
pkg = create_package(self.project, 'Pkg') mod = create_module(self.project, 'Pkg.Mod') self.project.do(FixModuleNames(self.project).get_changes())
pkg = create_package(self.project, 'xkg') mod = create_module(self.project, 'xkg.xod') self.project.do(FixModuleNames(self.project).get_changes(_fixer))
def test_handling_nested_modules(self): pkg = create_package(self.project, 'Pkg') mod = create_module(self.project, 'Pkg.Mod') self.project.do(FixModuleNames(self.project).get_changes()) self.assertFalse(pkg.exists()) self.assertTrue(self.project.get_resource('pkg/__init__.py').exists()) self.assertTrue(self.project.ge...
7fed812d78d571f340e6642aadea368f82e54e8d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/7fed812d78d571f340e6642aadea368f82e54e8d/fixmodnamestest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 26822, 67, 12985, 67, 6400, 12, 2890, 4672, 3475, 273, 752, 67, 5610, 12, 2890, 18, 4406, 16, 296, 92, 14931, 6134, 681, 273, 752, 67, 2978, 12, 2890, 18, 4406, 16, 296, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 26822, 67, 12985, 67, 6400, 12, 2890, 4672, 3475, 273, 752, 67, 5610, 12, 2890, 18, 4406, 16, 296, 92, 14931, 6134, 681, 273, 752, 67, 2978, 12, 2890, 18, 4406, 16, 296, 92...
x_label_space += tick_text_size*1.5
x_label_space += tick_text_size * 1.5
def draw(self): prefs = self.prefs dpi = self.ax_contain.figure.get_dpi() # Update palette palette = prefs.get('colors',{}) if palette: self.palette.addPalette(palette) xlabel = prefs.get('xlabel','') ylabel = prefs.get('ylabel','') xticks_flag = prefs.get('xticks',True) yticks_flag = prefs.get('yticks',True) text...
34ec1e9add6e7beaae414fa998b4771d25b40ccb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/34ec1e9add6e7beaae414fa998b4771d25b40ccb/PlotBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 225, 15503, 273, 365, 18, 1484, 2556, 16361, 273, 365, 18, 651, 67, 28744, 18, 19675, 18, 588, 67, 72, 7259, 1435, 225, 468, 2315, 12127, 12127, 273, 15503, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 225, 15503, 273, 365, 18, 1484, 2556, 16361, 273, 365, 18, 651, 67, 28744, 18, 19675, 18, 588, 67, 72, 7259, 1435, 225, 468, 2315, 12127, 12127, 273, 15503, 18, 5...
self.job.runs.append(next_run) next_run2 = self.scheduler.next_run(self.job) assert_equal(next_run2.run_time - next_run.run_time, self.interval)
def test_next_run(self): next_run = self.scheduler.next_run(self.job) assert_gte(datetime.datetime.now() + self.interval, next_run.run_time) self.job.runs.append(next_run) next_run2 = self.scheduler.next_run(self.job) assert_equal(next_run2.run_time - next_run.run_time, self.interval)
92424352b85f114c98b44ac7c323cd125453ae74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14977/92424352b85f114c98b44ac7c323cd125453ae74/scheduler_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4285, 67, 2681, 12, 2890, 4672, 1024, 67, 2681, 273, 365, 18, 19972, 18, 4285, 67, 2681, 12, 2890, 18, 4688, 13, 1815, 67, 27225, 12, 6585, 18, 6585, 18, 3338, 1435, 397, 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, 1842, 67, 4285, 67, 2681, 12, 2890, 4672, 1024, 67, 2681, 273, 365, 18, 19972, 18, 4285, 67, 2681, 12, 2890, 18, 4688, 13, 1815, 67, 27225, 12, 6585, 18, 6585, 18, 3338, 1435, 397, 3...
self._dragging = False self._drag_start = None
if self._dragging: self._dragging = False self._drag_start = None return True
def on_mouse_release(self, x, y, button, modifiers): self._dragging = False self._drag_start = None lx, ly = self.position
c6e6cbe08305873a75f65c8572d395a52598b4f8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/c6e6cbe08305873a75f65c8572d395a52598b4f8/editor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 11697, 67, 9340, 12, 2890, 16, 619, 16, 677, 16, 3568, 16, 10429, 4672, 309, 365, 6315, 15997, 1998, 30, 365, 6315, 15997, 1998, 273, 1083, 365, 6315, 15997, 67, 1937, 273, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 11697, 67, 9340, 12, 2890, 16, 619, 16, 677, 16, 3568, 16, 10429, 4672, 309, 365, 6315, 15997, 1998, 30, 365, 6315, 15997, 1998, 273, 1083, 365, 6315, 15997, 67, 1937, 273, 59...
bsu_pn = sre.sub(r'(\w)[^a-zA-Z0-9\s:]+(\w)', "\\1 \\2", bsu_p) basic_search_unit_hitlist = search_basic_pattern(bsu_pn, bsu_f, bsu_m) if basic_search_unit_hitlist._nbhits > 0:
bsu_pn = sre.sub(r'(\w)[^a-zA-Z0-9\s\:]+(\w|$)', "\\1 \\2", bsu_p) if dbg and of.startswith('h') and req: print_warning(req, "trying %s/%s/%s" % (bsu_pn,bsu_f,bsu_m)) basic_search_unit_hitset = search_pattern(req=None, p=bsu_pn, f=bsu_f, m=bsu_m, of="id") if basic_search_unit_hitset._nbhits > 0:
def search_pattern(req, p=None, f=None, m=None, of='hb', dbg=0): """Search for pattern 'p' and field 'f' and return hitlist of recIDs. Breaks `p' into ``basic search units'', runs the search for them, and aggregates the results together. Optionally, the function accepts the match type argument 'm'. If it is set (e.g. f...
f89feb7ea51a59100f9e1291d3f34cbf65a4ba8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/f89feb7ea51a59100f9e1291d3f34cbf65a4ba8b/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 312, 33, 7036, 16, 434, 2218, 76, 70, 2187, 28966, 33, 20, 4672, 3536, 2979, 364, 1936, 296, 84, 11, 471, 652, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 312, 33, 7036, 16, 434, 2218, 76, 70, 2187, 28966, 33, 20, 4672, 3536, 2979, 364, 1936, 296, 84, 11, 471, 652, 2...
logger.notify('Requirement already satisfied: %s' % req_to_install)
logger.notify('Requirement already satisfied (use --upgrade to upgrade): %s' % req_to_install)
def install_files(self, finder, force_root_egg_info=False): unnamed = list(self.unnamed_requirements) reqs = self.requirements.values() while reqs or unnamed: if unnamed: req_to_install = unnamed.pop(0) else: req_to_install = reqs.pop(0) install = True if not self.ignore_installed and not req_to_install.editable and no...
e81474e8596af0374695a64b259dd8f1ae033f0b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/e81474e8596af0374695a64b259dd8f1ae033f0b/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 2354, 12, 2890, 16, 7532, 16, 2944, 67, 3085, 67, 23171, 67, 1376, 33, 8381, 4672, 640, 13188, 273, 666, 12, 2890, 18, 318, 13188, 67, 16175, 13, 20927, 273, 365, 18, 16175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 67, 2354, 12, 2890, 16, 7532, 16, 2944, 67, 3085, 67, 23171, 67, 1376, 33, 8381, 4672, 640, 13188, 273, 666, 12, 2890, 18, 318, 13188, 67, 16175, 13, 20927, 273, 365, 18, 16175, ...
def testNonBlockingHandshake(self):
def test_non_blocking_handshake(self):
def testNonBlockingHandshake(self): s = socket.socket(socket.AF_INET) s.connect(("svn.python.org", 443)) s.setblocking(False) s = ssl.wrap_socket(s, cert_reqs=ssl.CERT_NONE, do_handshake_on_connect=False) count = 0 while True: try: count += 1 s.do_handshake() break except ssl.SSLError, err: if err.args[0] == ssl.SSL_ER...
f08683542eada763321715f558eac5b2baec28e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/f08683542eada763321715f558eac5b2baec28e9/test_ssl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 67, 18926, 67, 2349, 7478, 12, 2890, 4672, 272, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 13, 272, 18, 3612, 12, 2932, 31505, 18, 8103, 18, 3341, 3113, 23796,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 67, 18926, 67, 2349, 7478, 12, 2890, 4672, 272, 273, 2987, 18, 7814, 12, 7814, 18, 6799, 67, 18819, 13, 272, 18, 3612, 12, 2932, 31505, 18, 8103, 18, 3341, 3113, 23796,...
cr.execute('select u.id'+fields+' from perm p right join '+self._table+' u on u.perm_id=p.id where u.id in ('+ids_str+')')
cr.execute('select u.id'+fields+' from perm p right join "'+self._table+'" u on u.perm_id=p.id where u.id in ('+ids_str+')')
def perm_read(self, cr, user, ids, context=None, details=True): if not context: context={} if not ids: return [] fields = ', p.level, p.uid, p.gid' if self._log_access: fields +=', u.create_uid, u.create_date, u.write_uid, u.write_date' if isinstance(ids, (int, long)): ids_str = str(ids) else: ids_str = string.join(map...
21e2436edcfd48b26e17230380299a3196aac8b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/21e2436edcfd48b26e17230380299a3196aac8b0/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4641, 67, 896, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 819, 33, 7036, 16, 3189, 33, 5510, 4672, 309, 486, 819, 30, 819, 12938, 309, 486, 3258, 30, 327, 5378, 1466, 273, 2265, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4641, 67, 896, 12, 2890, 16, 4422, 16, 729, 16, 3258, 16, 819, 33, 7036, 16, 3189, 33, 5510, 4672, 309, 486, 819, 30, 819, 12938, 309, 486, 3258, 30, 327, 5378, 1466, 273, 2265, 293,...
return apply(datetime, tuple(d.split('-')+t.split(':')))
return apply(datetime, tuple(map(int, d.split('-')+t.split(':'))))
def DateTime_or_None(s): if ' ' in s: sep = ' ' elif 'T' in s: sep = 'T' else: return None try: d, t = s.split(sep, 1) return apply(datetime, tuple(d.split('-')+t.split(':'))) except: return None
8308b8de7e6944fdd49a7bed9f6e333065135300 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10477/8308b8de7e6944fdd49a7bed9f6e333065135300/pytimes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3716, 67, 280, 67, 7036, 12, 87, 4672, 309, 296, 296, 316, 272, 30, 5478, 273, 296, 296, 1327, 296, 56, 11, 316, 272, 30, 5478, 273, 296, 56, 11, 469, 30, 327, 599, 225, 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, 3716, 67, 280, 67, 7036, 12, 87, 4672, 309, 296, 296, 316, 272, 30, 5478, 273, 296, 296, 1327, 296, 56, 11, 316, 272, 30, 5478, 273, 296, 56, 11, 469, 30, 327, 599, 225, 775, 30, ...
print "Couldn't get", url
print >> sys.stderr, "Couldn't get", url
def spamprob(self, wordstream, evidence=False, time_limit=None): global url_dict start_time = time.time() prob, clues = Classifier.spamprob(self, wordstream, True) if len(clues) < options["Classifier", "max_discriminators"] and \ prob > options["Categorization", "ham_cutoff"] and \ prob < options["Categorization", "spa...
a6042208d9789ce0343a0b889ceca3f6cd236824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/a6042208d9789ce0343a0b889ceca3f6cd236824/urlslurper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24824, 7748, 12, 2890, 16, 2076, 3256, 16, 14481, 33, 8381, 16, 813, 67, 3595, 33, 7036, 4672, 2552, 880, 67, 1576, 787, 67, 957, 273, 813, 18, 957, 1435, 3137, 16, 927, 3610, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24824, 7748, 12, 2890, 16, 2076, 3256, 16, 14481, 33, 8381, 16, 813, 67, 3595, 33, 7036, 4672, 2552, 880, 67, 1576, 787, 67, 957, 273, 813, 18, 957, 1435, 3137, 16, 927, 3610, 273, 1...
fp = _io.open(fd, 'w') fp.write('blat')
fp = _io.open(fd, 'wb') fp.write(b'blat')
def _get_default_tempdir(): """Calculate the default directory to use for temporary files. This routine should be called exactly once. We determine whether or not a candidate temp dir is usable by trying to create and write to a file in that directory. If this is successful, the test file is deleted. To prevent deni...
0bdb859436554e82a6e83ed69c0dd41162c57b80 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/0bdb859436554e82a6e83ed69c0dd41162c57b80/tempfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1886, 67, 5814, 1214, 13332, 3536, 8695, 326, 805, 1867, 358, 999, 364, 6269, 1390, 18, 1220, 12245, 1410, 506, 2566, 8950, 3647, 18, 225, 1660, 4199, 2856, 578, 486, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1886, 67, 5814, 1214, 13332, 3536, 8695, 326, 805, 1867, 358, 999, 364, 6269, 1390, 18, 1220, 12245, 1410, 506, 2566, 8950, 3647, 18, 225, 1660, 4199, 2856, 578, 486, 279, ...
self.write(line)
self.write(line.encode('ascii'))
def mt_interact(self): """Multithreaded version of interact().""" import _thread _thread.start_new_thread(self.listener, ()) while 1: line = sys.stdin.readline() if not line: break self.write(line)
d350fb58a30488412c0b78aa6225e3060c54a8f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/d350fb58a30488412c0b78aa6225e3060c54a8f6/telnetlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5874, 67, 2761, 621, 12, 2890, 4672, 3536, 5049, 483, 20528, 1177, 434, 16592, 1435, 12123, 1930, 389, 5930, 389, 5930, 18, 1937, 67, 2704, 67, 5930, 12, 2890, 18, 12757, 16, 1832, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5874, 67, 2761, 621, 12, 2890, 4672, 3536, 5049, 483, 20528, 1177, 434, 16592, 1435, 12123, 1930, 389, 5930, 389, 5930, 18, 1937, 67, 2704, 67, 5930, 12, 2890, 18, 12757, 16, 1832, 13, ...
self.header = None
def build(self): if Config.debug: print "In build." ns_map = {}
fc493e96de65ae9c28676a8c38cbc9a9bb07a3e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/fc493e96de65ae9c28676a8c38cbc9a9bb07a3e2/SOAPBuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 12, 2890, 4672, 309, 1903, 18, 4148, 30, 1172, 315, 382, 1361, 1199, 3153, 67, 1458, 273, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 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, 1361, 12, 2890, 4672, 309, 1903, 18, 4148, 30, 1172, 315, 382, 1361, 1199, 3153, 67, 1458, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return "%s(frame, mode).action(%d, %d)" % (self.index, self.multiplier)
return "%s(frame, mode).action(%d, %d)" % (self.actioncls.__name__, self.index, self.multiplier)
def getScripted(self): return "%s(frame, mode).action(%d, %d)" % (self.index, self.multiplier)
f89b9c07a8dc2f2d68a1b908594466c4d6846da7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/f89b9c07a8dc2f2d68a1b908594466c4d6846da7/macro.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 22611, 329, 12, 2890, 4672, 327, 2213, 87, 12, 3789, 16, 1965, 2934, 1128, 9275, 72, 16, 738, 72, 2225, 738, 261, 2890, 18, 1615, 16, 365, 18, 20538, 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, 22611, 329, 12, 2890, 4672, 327, 2213, 87, 12, 3789, 16, 1965, 2934, 1128, 9275, 72, 16, 738, 72, 2225, 738, 261, 2890, 18, 1615, 16, 365, 18, 20538, 13, 2, -100, -100, -100, -100, -...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 57) else quickfix.StringField.__init__(self, 57, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 15981, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 15981, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 972, ...
def request(self, method, url, body=None, headers={}):
def request(self, method, url, body=None, headers=None):
def request(self, method, url, body=None, headers={}): self.method = method self.selector = url self.req_headers += headers.items() self.req_headers.sort() if body: self.data = body if self.raise_on_endheaders: import socket raise socket.error()
3293593b5439a092e7423ccf13ed01f058fc2d63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/3293593b5439a092e7423ccf13ed01f058fc2d63/test_urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 33, 7036, 4672, 365, 18, 2039, 273, 707, 365, 18, 9663, 273, 880, 365, 18, 3658, 67, 2485, 1011, 1607, 18, 3319, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 707, 16, 880, 16, 1417, 33, 7036, 16, 1607, 33, 7036, 4672, 365, 18, 2039, 273, 707, 365, 18, 9663, 273, 880, 365, 18, 3658, 67, 2485, 1011, 1607, 18, 3319, 1435, ...
return u"" return rffi.charp2strn(rffi.cast(rffi.CCHARP, buf), buflen)
return space.wrap("") s = rffi.charp2strn(rffi.cast(rffi.CCHARP, buf), buflen) return space.wrap(s)
def convert_from_regdata(buf, buflen, typ): if typ == rwinreg.REG_DWORD: if not buflen: return 0 return rffi.cast(rwin32.LPDWORD, buf)[0] elif typ == rwinreg.REG_SZ or typ == rwinreg.REG_EXPAND_SZ: if not buflen: return u"" return rffi.charp2strn(rffi.cast(rffi.CCHARP, buf), buflen) elif typ == rwinreg.REG_MULTI_SZ: ...
65a0cb4fb5ecc10e2f370ba1c4260d41630090c7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/65a0cb4fb5ecc10e2f370ba1c4260d41630090c7/interp_winreg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 1574, 892, 12, 4385, 16, 1681, 1897, 16, 3815, 4672, 309, 3815, 422, 7985, 267, 1574, 18, 5937, 67, 40, 7952, 30, 309, 486, 1681, 1897, 30, 327, 374, 327, 436, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 2080, 67, 1574, 892, 12, 4385, 16, 1681, 1897, 16, 3815, 4672, 309, 3815, 422, 7985, 267, 1574, 18, 5937, 67, 40, 7952, 30, 309, 486, 1681, 1897, 30, 327, 374, 327, 436, 14...
builder = Diff.HDFBuilder(self.req.hdf, '%s.diff' % prefix, tabwidth)
builder = Diff.HDFBuilder(self.req.hdf, '%s.diff' % self.prefix, tabwidth)
def apply_textdelta(self, file_baton, base_checksum): if not file_baton: return (old_path, new_path, pool) = file_baton old_rev = svn.fs.node_created_rev(self.old_root, old_path, pool) new_rev = svn.fs.node_created_rev(self.new_root, new_path, pool)
5d4c14a9ae16d7086c0ba29b263aafad5e909c0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5d4c14a9ae16d7086c0ba29b263aafad5e909c0b/Changeset.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 955, 9878, 12, 2890, 16, 585, 67, 70, 16799, 16, 1026, 67, 15149, 4672, 309, 486, 585, 67, 70, 16799, 30, 327, 261, 1673, 67, 803, 16, 394, 67, 803, 16, 2845, 13, 273, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 955, 9878, 12, 2890, 16, 585, 67, 70, 16799, 16, 1026, 67, 15149, 4672, 309, 486, 585, 67, 70, 16799, 30, 327, 261, 1673, 67, 803, 16, 394, 67, 803, 16, 2845, 13, 273, 58...
if self._line_width != MAPAREA_LINE_MIN_WIDTH:
if self._line_width != djvu.const.MAPAREA_LINE_MIN_WIDTH:
def _get_sexpr_extra(self): result = [] if self._line_arrow: result += (djvu.const.MAPAREA_ARROW,), if self._line_width != MAPAREA_LINE_MIN_WIDTH: result += (djvu.const.MAPAREA_LINE_WIDTH, self._line_width), if self._line_color != djvu.const.MAPAREA_LINE_COLOR_DEFAULT: result += (djvu.const.MAPAREA_LINE_COLOR, self._li...
5adf8fc7aee327c422f0e8e000c5d9afb090fde4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3683/5adf8fc7aee327c422f0e8e000c5d9afb090fde4/annotations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 20909, 683, 67, 7763, 12, 2890, 4672, 563, 273, 5378, 309, 365, 6315, 1369, 67, 7815, 30, 563, 1011, 261, 31646, 90, 89, 18, 10248, 18, 8352, 20933, 67, 985, 11226, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 20909, 683, 67, 7763, 12, 2890, 4672, 563, 273, 5378, 309, 365, 6315, 1369, 67, 7815, 30, 563, 1011, 261, 31646, 90, 89, 18, 10248, 18, 8352, 20933, 67, 985, 11226, 16, ...
if finalizer: finalizer()
if completer: completer()
def server_activate(self): self.base.server_activate(self) if self.callback: self.callback(self)
e3dab6b2374c22c9d8ca6567b59533708b7ecddc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e3dab6b2374c22c9d8ca6567b59533708b7ecddc/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 10014, 12, 2890, 4672, 365, 18, 1969, 18, 3567, 67, 10014, 12, 2890, 13, 309, 365, 18, 3394, 30, 365, 18, 3394, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 67, 10014, 12, 2890, 4672, 365, 18, 1969, 18, 3567, 67, 10014, 12, 2890, 13, 309, 365, 18, 3394, 30, 365, 18, 3394, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -...
mend = moff + mlen
moff &= MASK mend = moff + (mlen & MASK)
def _parse(self, fp): """Override this method to support alternative .mo formats.""" unpack = struct.unpack filename = getattr(fp, 'name', '') # Parse the .mo file header, which consists of 5 little endian 32 # bit words. self._catalog = catalog = {} buf = fp.read() # Are we big endian or little endian? magic = unpack(...
eabd0a01156dcd11b352baf6d6d05cfcf36e1a3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/eabd0a01156dcd11b352baf6d6d05cfcf36e1a3f/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, 6167, 273, 1958, 18, 17309, 1544, 273, 3869, 12, 7944, 16, 296, 529, 2187, 28707, 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, 389, 2670, 12, 2890, 16, 4253, 4672, 3536, 6618, 333, 707, 358, 2865, 10355, 263, 8683, 6449, 12123, 6167, 273, 1958, 18, 17309, 1544, 273, 3869, 12, 7944, 16, 296, 529, 2187, 28707, 468...
def endTagTable(self, token): self.parser.parseError() ignoreEndTag = self.ignoreEndTagCaption() self.parser.phase.processEndTag(impliedTagToken("caption")) if not ignoreEndTag: self.parser.phase.processEndTag(token) def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) ...
ignoreEndTag = self.ignoreEndTagCaption() self.parser.phase.processEndTag(impliedTagToken("caption")) if not ignoreEndTag: self.parser.phase.processEndTag(token) def endTagIgnore(self, token): self.parser.parseError("unexpected-end-tag", {"name": token["name"]}) def endTagOther(self, token): self.parser.phases["inBod...
def endTagCaption(self, token): if not self.ignoreEndTagCaption(): # AT this code is quite similar to endTagTable in "InTable" self.tree.generateImpliedEndTags() if self.tree.openElements[-1].name != "caption": self.parser.parseError("expected-one-end-tag-but-got-another", {"gotName": "caption", "expectedName": self.tr...
5cc56a5db432ce478d90ee0dd744811935854947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10463/5cc56a5db432ce478d90ee0dd744811935854947/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 21158, 12, 2890, 16, 1147, 4672, 309, 486, 365, 18, 6185, 25633, 21158, 13332, 468, 14464, 333, 981, 353, 25102, 7281, 358, 29765, 1388, 316, 315, 382, 1388, 6, 365, 18, 3413, 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, 29765, 21158, 12, 2890, 16, 1147, 4672, 309, 486, 365, 18, 6185, 25633, 21158, 13332, 468, 14464, 333, 981, 353, 25102, 7281, 358, 29765, 1388, 316, 315, 382, 1388, 6, 365, 18, 3413, 18,...
try:
if sys.modules.has_key(modname):
def run_module(self, event=None): filename = self.editwin.io.filename if not filename: tkMessageBox.showerror("No file name", "This window has no file name", master=self.editwin.text) return modname, ext = os.path.splitext(os.path.basename(filename)) try: mod = sys.modules[modname] except KeyError: mod = imp.new_module...
9f4258490726c15a37484676177913a928b35783 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9f4258490726c15a37484676177913a928b35783/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2978, 12, 2890, 16, 871, 33, 7036, 4672, 1544, 273, 365, 18, 4619, 8082, 18, 1594, 18, 3459, 309, 486, 1544, 30, 13030, 27647, 18, 4500, 1636, 2932, 2279, 585, 508, 3113, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2978, 12, 2890, 16, 871, 33, 7036, 4672, 1544, 273, 365, 18, 4619, 8082, 18, 1594, 18, 3459, 309, 486, 1544, 30, 13030, 27647, 18, 4500, 1636, 2932, 2279, 585, 508, 3113, 315...
def _getFileRepresentationType(): """ Cocoa filetype representation function to mach the filetype with the _fileRepresentationMapping dictionary""" base, ext = os.path.splitext(shotFile) return _fileRepresentationMapping[ext.lower()]
if (config.system == 'darwin'): class CocoaScreenshot(NSObject): """ NSObject wrapper for the Cocoa screenshooting code """ _fileRepresentationMapping = { '.png': 'NSPNGFileType', '.gif': 'NSGIFFileType', '.jpg': 'NSJPEGFileType', '.jpeg': 'NSJPEGFileType', '.bmp': 'NSBMPFileType', '.tif': 'NSTIFFFileType', '.tiff': ...
def _getFileRepresentationType(): """ Cocoa filetype representation function to mach the filetype with the _fileRepresentationMapping dictionary""" base, ext = os.path.splitext(shotFile) return _fileRepresentationMapping[ext.lower()]
76e77cfb80c61f57b36605e67b2bf997cebe4c79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/943/76e77cfb80c61f57b36605e67b2bf997cebe4c79/screenshot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1425, 18, 4299, 422, 296, 28076, 11, 4672, 667, 385, 504, 11867, 29354, 12, 3156, 921, 4672, 3536, 11472, 921, 4053, 364, 326, 385, 504, 11867, 5518, 674, 1632, 310, 981, 3536, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1425, 18, 4299, 422, 296, 28076, 11, 4672, 667, 385, 504, 11867, 29354, 12, 3156, 921, 4672, 3536, 11472, 921, 4053, 364, 326, 385, 504, 11867, 5518, 674, 1632, 310, 981, 3536, 282, ...
sector_position += current - current_position * (self.sector_size / 4)
sector_position += (current - current_position * (self.sector_size / 4)) * 4
def _get_next_mini_fat_sector(self, current): ''' Get next mini FAT sector block number ''' current_position = 0 sector_number = self.first_mini_fat_sector_location while (current_position + 1) * (self.sector_size / 4) < current: sector_number = self._get_next_fat_sector(sector_number)
b88f6269c60cb7f022d35d9f66921521a48dfd19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13802/b88f6269c60cb7f022d35d9f66921521a48dfd19/reader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4285, 67, 1154, 77, 67, 74, 270, 67, 5709, 280, 12, 2890, 16, 783, 4672, 9163, 968, 1024, 21959, 478, 789, 16323, 1203, 1300, 9163, 783, 67, 3276, 273, 374, 16323, 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, 389, 588, 67, 4285, 67, 1154, 77, 67, 74, 270, 67, 5709, 280, 12, 2890, 16, 783, 4672, 9163, 968, 1024, 21959, 478, 789, 16323, 1203, 1300, 9163, 783, 67, 3276, 273, 374, 16323, 67, ...
pass def get_repository_info(self):
return self.cmis.simple('repository', **kwargs) def get_repository_info(self, repositoryId, **kwargs):
def get_repositories(self): """ GET /alfresco/service/api/repository GET /alfresco/service/api/cmis """ pass
8d0171682262bad5b80c787206c898c457577733 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4571/8d0171682262bad5b80c787206c898c457577733/cmis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 26626, 12, 2890, 4672, 3536, 4978, 342, 6186, 455, 2894, 19, 3278, 19, 2425, 19, 9071, 4978, 342, 6186, 455, 2894, 19, 3278, 19, 2425, 19, 7670, 291, 3536, 1342, 225, 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, 336, 67, 26626, 12, 2890, 4672, 3536, 4978, 342, 6186, 455, 2894, 19, 3278, 19, 2425, 19, 9071, 4978, 342, 6186, 455, 2894, 19, 3278, 19, 2425, 19, 7670, 291, 3536, 1342, 225, 2, -100,...
return r
return r
def parseblock(ll): r = {} cols = splitcols(ll[0]) r["Name"], r["Title"] = cols[1:] cols = splitcols(ll[1]) r["Entries"] = int(cols[1]) sizes = cols[2].split() r["Total size"] = int(sizes[2]) if sizes[-1] == "memory": r["File size"] = 0 else: r["File size"] = int(sizes[-1]) cols = splitcols(ll[2]) sizes = cols[2].sp...
2fa638037c5796105293905450ff04c814893ed4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9140/2fa638037c5796105293905450ff04c814893ed4/GaudiTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2629, 12, 2906, 4672, 436, 273, 2618, 5347, 273, 1416, 6842, 12, 2906, 63, 20, 5717, 436, 9614, 461, 6, 6487, 436, 9614, 4247, 11929, 273, 5347, 63, 21, 26894, 225, 5347, 273, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 2629, 12, 2906, 4672, 436, 273, 2618, 5347, 273, 1416, 6842, 12, 2906, 63, 20, 5717, 436, 9614, 461, 6, 6487, 436, 9614, 4247, 11929, 273, 5347, 63, 21, 26894, 225, 5347, 273, 14...
message_error = "Test '%s' ended with ABORT" " (info: '%s')" % (result[0], result[3])
message_error = ("Test '%s' ended with ABORT " "(info: '%s')" % (result[0], result[3]))
def run_autotest(test, params, env): """ Run an autotest test inside a guest. @param test: kvm test object. @param params: Dictionary with test parameters. @param env: Dictionary with the test environment. """ vm = kvm_utils.env_get_vm(env, params.get("main_vm")) if not vm: raise error.TestError("VM object not found i...
f817944f67319e63dc1215f3babc3163674735f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/f817944f67319e63dc1215f3babc3163674735f5/kvm_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 5854, 352, 395, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 1939, 392, 2059, 352, 395, 1842, 4832, 279, 13051, 18, 225, 632, 891, 1842, 30, 417, 3489, 1842, 733, 18, 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, 1086, 67, 5854, 352, 395, 12, 3813, 16, 859, 16, 1550, 4672, 3536, 1939, 392, 2059, 352, 395, 1842, 4832, 279, 13051, 18, 225, 632, 891, 1842, 30, 417, 3489, 1842, 733, 18, 632, 891, ...
idleTime + abs(int(snmpEngineTime) - \ int(msgAuthoritativeEngineTime)) > 150:
abs(idleTime + int(snmpEngineTime) - \ int(msgAuthoritativeEngineTime)) > 150:
def processIncomingMsg( self, snmpEngine, messageProcessingModel, maxMessageSize, securityParameters, securityModel, securityLevel, wholeMsg, msg # XXX ): # 3.2.1 try: securityParameters, rest = decoder.decode( securityParameters, asn1Spec=self._securityParametersSpec ) except PyAsn1Error: snmpInASNParseErrs, = snmpEn...
1d6d80c85367b8d7a65035ffb2679f8b9f02ae88 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/587/1d6d80c85367b8d7a65035ffb2679f8b9f02ae88/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 20370, 3332, 12, 365, 16, 15366, 4410, 16, 883, 7798, 1488, 16, 943, 1079, 1225, 16, 4373, 2402, 16, 4373, 1488, 16, 4373, 2355, 16, 7339, 3332, 16, 1234, 225, 468, 11329, 262, 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, 1207, 20370, 3332, 12, 365, 16, 15366, 4410, 16, 883, 7798, 1488, 16, 943, 1079, 1225, 16, 4373, 2402, 16, 4373, 1488, 16, 4373, 2355, 16, 7339, 3332, 16, 1234, 225, 468, 11329, 262, 3...
info.append("Rule url port changed")
info.append(i18n._("Rule url port changed"))
def _form_rule_urlparts (form): scheme = getval(form, 'rule_urlscheme').strip() if scheme!=currule.scheme: currule.scheme = scheme info.append("Rule url scheme changed") host = getval(form, 'rule_urlhost').strip() if host!=currule.host: currule.host = host info.append("Rule url host changed") port = getval(form, 'rule_...
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, 5345, 67, 718, 6019, 261, 687, 4672, 4355, 273, 336, 1125, 12, 687, 16, 296, 5345, 67, 718, 9068, 16063, 6406, 1435, 309, 4355, 5, 33, 1397, 5345, 18, 9068, 30, 4306, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 687, 67, 5345, 67, 718, 6019, 261, 687, 4672, 4355, 273, 336, 1125, 12, 687, 16, 296, 5345, 67, 718, 9068, 16063, 6406, 1435, 309, 4355, 5, 33, 1397, 5345, 18, 9068, 30, 4306, 7...
cmds.append('select _Allele_key_1, _Allele_key_2 ' + 'from GXD_AllelePair ' + 'where _GenoType_key = ' + str(geno1['key'])) cmds.append('select _Allele_key_1, _Allele_key_2 ' + 'from GXD_AllelePair ' + 'where _GenoType_key = ' + str(geno2['key']))
cmds.append('select _Allele_key_1, _Allele_key_2 from GXD_AllelePair where _GenoType_key = ' + str(geno1['key'])) cmds.append('select _Allele_key_1, _Allele_key_2 from GXD_AllelePair where _GenoType_key = ' + str(geno2['key']))
def formatOutput( genoTypeSet ): output = '' cmds = [] # # Get accession id for genotype 1 # cmds.append('select accID ' + 'from GXD_Genotype g, ACC_Accession ac, ACC_MGIType mt ' + 'where g._GenoType_key = ' + str(genoTypeSet['geno1']['key']) + 'and g._GenoType_key = ac._Object_key ' + 'and ac._MGIType_key = mt._MG...
e1dcd392ea4209c5ca5a5e54089b7fc8a51fa92b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/340/e1dcd392ea4209c5ca5a5e54089b7fc8a51fa92b/GXD_DupGenotype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1447, 12, 3157, 83, 559, 694, 262, 30, 876, 273, 875, 225, 13446, 273, 5378, 225, 468, 468, 225, 968, 2006, 285, 612, 364, 22306, 404, 468, 13446, 18, 6923, 2668, 4025, 4078, 734,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1447, 12, 3157, 83, 559, 694, 262, 30, 876, 273, 875, 225, 13446, 273, 5378, 225, 468, 468, 225, 968, 2006, 285, 612, 364, 22306, 404, 468, 13446, 18, 6923, 2668, 4025, 4078, 734,...
d = d.split('T')
d = d.split("T")
def bday_from_value(value): try: (y, m, d) = value.split("-", 2) d = d.split('T') if y.isdigit() and m.isdigit() and d[0].isdigit(): year = int(y); month = int(m); day = int(d[0]) if month >=1 and month <=12: if day >= 1 and day <=31: return (year, month, day) except: pass return (None, None, None)
a8a4c6ca09f6afe3062c9a37ce6363c545145985 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2651/a8a4c6ca09f6afe3062c9a37ce6363c545145985/arkadas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 2881, 67, 2080, 67, 1132, 12, 1132, 4672, 775, 30, 261, 93, 16, 312, 16, 302, 13, 273, 460, 18, 4939, 2932, 17, 3113, 576, 13, 302, 273, 302, 18, 4939, 2932, 56, 7923, 309, 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, 324, 2881, 67, 2080, 67, 1132, 12, 1132, 4672, 775, 30, 261, 93, 16, 312, 16, 302, 13, 273, 460, 18, 4939, 2932, 17, 3113, 576, 13, 302, 273, 302, 18, 4939, 2932, 56, 7923, 309, 67...
temp = line.strip().split() self.geovalues.append([float(temp[3]), float(temp[7])])
parts = line.split() if len(parts) == 8: maximum = float(parts[3]) rms = float(parts[7]) if len(parts) == 4: maximum = float(parts[3]) line = inputfile.next() parts = line.split() rms = float(parts[3]) self.geovalues.append([maximum, rms])
def extract(self, inputfile, line): """Extract information from the file object inputfile.""" if line.find("OPTTOL") >= 0: # Two possibilities: # OPTTOL = 1.000E-04 RMIN = 1.500E-03 # INPUT CARD> $STATPT OPTTOL=0.0001 NSTEP=100 $END if not hasattr(self, "geotargets"): temp = line.split() for i, x ...
620320a814c76698882f303aca8fba743aa6496c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8167/620320a814c76698882f303aca8fba743aa6496c/gamessparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 810, 768, 16, 980, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 225, 309, 980, 18, 4720, 2932, 3665, 1470, 1741, 7923, 1545, 374, 30, 468, 16896, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 810, 768, 16, 980, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 225, 309, 980, 18, 4720, 2932, 3665, 1470, 1741, 7923, 1545, 374, 30, 468, 16896, 28...
self._delegate.irc_nickname, self._delegate.irc_nickname) self._channel = config.irc.channel
self._delegate.irc_nickname(), self._delegate.irc_nickname()) self._channel = config_irc.channel
def __init__(self, message_queue, delegate): self._message_queue = message_queue self._delegate = delegate ircbot.SingleServerIRCBot.__init__( self, [( config.irc.server, config.irc.port, self._delegate.irc_password() )], self._delegate.irc_nickname, self._delegate.irc_nickname) self._channel = config.irc.channel
43d06125c0c4de27bc9a41caa40a5a588dea0ff1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/43d06125c0c4de27bc9a41caa40a5a588dea0ff1/ircbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 883, 67, 4000, 16, 7152, 4672, 365, 6315, 2150, 67, 4000, 273, 883, 67, 4000, 365, 6315, 22216, 273, 7152, 277, 1310, 4819, 18, 5281, 2081, 30240, 6522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 883, 67, 4000, 16, 7152, 4672, 365, 6315, 2150, 67, 4000, 273, 883, 67, 4000, 365, 6315, 22216, 273, 7152, 277, 1310, 4819, 18, 5281, 2081, 30240, 6522, ...
query = QueryParser(Version.LUCENE_CURRENT, "contents", analyzer).parse(queryString)
parser = QueryParser(Version.LUCENE_CURRENT, "contents", analyzer) parser.setAutoGeneratePhraseQueries(True) query = parser.parse(queryString)
def testAnalyzer(self):
27332e99f86df8856f3c9b91691d1bc182216c1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4005/27332e99f86df8856f3c9b91691d1bc182216c1d/AnalysisParalysisTest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12803, 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, 1842, 12803, 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, ...
xyzstr = self.posn() ainfo = ("Atom "] [X = " + str(xyzstr[0]) + "] [Y = " + str(xyzstr[1]) + "] [Z = " + str(xyzstr[2]) + "]")
xyz = self.posn() ainfo = ("Atom ( self.key, self.element.name, xyz[0], xyz[1], xyz[2] )) if len(self.bonds) != self.element.numbonds: ainfo += platform.fix_plurals(" (has %d bond(s), should have %d)" % \ (len(self.bonds), self.element.numbonds))
def getinfo(self): # Return information about the selected atom for the msgbar # [mark 2004-10-14] xyzstr = self.posn() ainfo = ("Atom #" + str (self.key ) + " [" + self.element.name + "] [X = " + str(xyzstr[0]) + "] [Y = " + str(xyzstr[1]) + "] [Z = " + str(xyzstr[2]) + "]") return ainfo
be0e21faacd8d18e5b1a3935575a3b9a203a71ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/be0e21faacd8d18e5b1a3935575a3b9a203a71ca/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1376, 12, 2890, 4672, 468, 2000, 1779, 2973, 326, 3170, 3179, 364, 326, 1234, 3215, 468, 306, 3355, 4044, 24, 17, 2163, 17, 3461, 65, 14779, 701, 273, 365, 18, 917, 82, 1435, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 1376, 12, 2890, 4672, 468, 2000, 1779, 2973, 326, 3170, 3179, 364, 326, 1234, 3215, 468, 306, 3355, 4044, 24, 17, 2163, 17, 3461, 65, 14779, 701, 273, 365, 18, 917, 82, 1435, 279,...
return [filter(None, attrList)]
return [attrList]
def getAttributeSubsetUsingGammaDistribution(self, attrCount): maxTries = 50 triedDict = self.evaluationData.get("triedCombinations", {}) projCountWidth = len(triedDict.keys()) / 1000 if self.attrCont == CONT_MEAS_S2NMIX or self.attrSubsetSelection == GAMMA_SINGLE: numClasses = len(self.data.domain.classVar.values) at...
acc1fb4401157c045f0c7814dbb7691a1870e453 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/acc1fb4401157c045f0c7814dbb7691a1870e453/orngVizRank.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4061, 20315, 7736, 31300, 9003, 12, 2890, 16, 1604, 1380, 4672, 943, 13652, 273, 6437, 12928, 5014, 273, 365, 18, 14168, 367, 751, 18, 588, 2932, 313, 2092, 24107, 1012, 3113, 2618, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4061, 20315, 7736, 31300, 9003, 12, 2890, 16, 1604, 1380, 4672, 943, 13652, 273, 6437, 12928, 5014, 273, 365, 18, 14168, 367, 751, 18, 588, 2932, 313, 2092, 24107, 1012, 3113, 2618, 13, ...
self.execEntry.show()
def __init__ (self, driver, app): """ Constructor. """ gtk.Frame.__init__ (self, "Application: " + app.name) self.driver = driver self.app = app table = gtk.Table(2, 2) execLabel = gtk.Label ("Executable:") execLabel.show() table.attach (execLabel, 0, 1, 0, 1, 0, 0, 5, 5) self.execEntry = gtk.Entry() if app.executable ...
502d7fb041a76fe0d96c8f8ea35a64b9a6d8ad84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/502d7fb041a76fe0d96c8f8ea35a64b9a6d8ad84/driconf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 2890, 16, 3419, 16, 595, 4672, 3536, 11417, 18, 3536, 22718, 18, 3219, 16186, 2738, 972, 261, 2890, 16, 315, 3208, 30, 315, 397, 595, 18, 529, 13, 365, 18, 7407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3419, 16, 595, 4672, 3536, 11417, 18, 3536, 22718, 18, 3219, 16186, 2738, 972, 261, 2890, 16, 315, 3208, 30, 315, 397, 595, 18, 529, 13, 365, 18, 7407, ...
index = playerlib.getPlayer(attacker).attributes['index']
index = gungamelib.getPlayer(attacker)['index']
def player_death(event_var): # Check to see if the round is active if not dict_addonVars['roundActive']: return # Get userid and attacker userids userid = event_var['userid'] attacker = event_var['attacker'] # Was suicide? if userid == attacker or attacker == '0': gamethread.delayed(5, respawnPlayer, (userid, dict_ad...
5600605bdd4013825d560848af3c8c2130b41103 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/5600605bdd4013825d560848af3c8c2130b41103/gg_elimination.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7291, 67, 323, 421, 12, 2575, 67, 1401, 4672, 468, 2073, 358, 2621, 309, 326, 3643, 353, 2695, 309, 486, 2065, 67, 24390, 5555, 3292, 2260, 3896, 3546, 30, 327, 225, 468, 968, 6709, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7291, 67, 323, 421, 12, 2575, 67, 1401, 4672, 468, 2073, 358, 2621, 309, 326, 3643, 353, 2695, 309, 486, 2065, 67, 24390, 5555, 3292, 2260, 3896, 3546, 30, 327, 225, 468, 968, 6709, 47...
'poles': [(-0.037010000000000001+0.037010000000000001j), (-0.037010000000000001-0.037010000000000001j), (-131+467.30000000000001j), (-131-467.30000000000001j), (-251.30000000000001+0j)]}
'poles': [(-0.037010000000000001 + 0.037010000000000001j), (-0.037010000000000001 - 0.037010000000000001j), (-131 + 467.30000000000001j), (-131 - 467.30000000000001j), (-251.30000000000001 + 0j)]}
def test_sacpaz_from_dataless(self): ### The following dictionary is extracted from a datalessSEED ### file pazdict = {'sensitivity': 2516580000.0, 'digitizer_gain': 1677720.0, 'seismometer_gain': 1500.0, 'zeros': [0j, 0j], 'gain': 59198800.0, 'poles': [(-0.037010000000000001+0.037010000000000001j), (-0.037010000000000...
23cf8d1fc93b75d57746fbbec9e3d40d86eb2926 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/23cf8d1fc93b75d57746fbbec9e3d40d86eb2926/test_sacio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 1077, 84, 1561, 67, 2080, 67, 72, 3145, 403, 12, 2890, 4672, 11849, 1021, 3751, 3880, 353, 9438, 628, 279, 18462, 403, 1090, 2056, 11849, 585, 293, 1561, 1576, 273, 13666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 1077, 84, 1561, 67, 2080, 67, 72, 3145, 403, 12, 2890, 4672, 11849, 1021, 3751, 3880, 353, 9438, 628, 279, 18462, 403, 1090, 2056, 11849, 585, 293, 1561, 1576, 273, 13666, ...
min_length = None, max_length = None, \ min_sinuosity = None, max_sinuosity = None, \ min_latitude = None, max_latitude = None, \ min_longitude = None, max_longitude = None, \ min_delta_rms = None, max_delta_rms = None, \ min_dbar = None, max_dbar = None):
length_min = None, length_max = None, \ sinuosity_min = None, sinuosity_max = None, \ latitude_min = None, latitude_max = None, \ longitude_min = None, longitude_max = None, \ delta_min = None, delta_max = None, \ dbar_min = None, dbar_max = None):
def filter(lins, \ min_length = None, max_length = None, \ min_sinuosity = None, max_sinuosity = None, \ min_latitude = None, max_latitude = None, \ min_longitude = None, max_longitude = None, \ min_delta_rms = None, max_delta_rms = None, \ min_dbar = None, max_dbar = None): #{{{ TODO: Testing/debuggi...
3ce7bee8800eba157d17edf5e5b124d917ff6021 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/3ce7bee8800eba157d17edf5e5b124d917ff6021/lineament.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 80, 2679, 16, 521, 769, 67, 1154, 565, 273, 599, 16, 769, 67, 1896, 565, 273, 599, 16, 521, 5367, 89, 8807, 67, 1154, 273, 599, 16, 5367, 89, 8807, 67, 1896, 273, 599, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 12, 80, 2679, 16, 521, 769, 67, 1154, 565, 273, 599, 16, 769, 67, 1896, 565, 273, 599, 16, 521, 5367, 89, 8807, 67, 1154, 273, 599, 16, 5367, 89, 8807, 67, 1896, 273, 599, 16...
% self.__class__.__name__)
% self.__class__.__name__, level=pywikibot.DEBUG)
def __iter__(self): """Submit request and iterate the response based on self.resultkey
24d108b44a885614fae40c20a1943969391b4fc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9005/24d108b44a885614fae40c20a1943969391b4fc8/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2165, 972, 12, 2890, 4672, 3536, 11620, 590, 471, 7401, 326, 766, 2511, 603, 365, 18, 2088, 856, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2165, 972, 12, 2890, 4672, 3536, 11620, 590, 471, 7401, 326, 766, 2511, 603, 365, 18, 2088, 856, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
] == create_session().query(User).filter(User.id.in_([8,9]))._from_self().join('addresses').add_entity(Address).all()
] == create_session().query(User).filter(User.id.in_([8,9]))._from_self().join('addresses').add_entity(Address).order_by(User.id, Address.id).all()
def test_join(self): assert [ (User(id=8), Address(id=2)), (User(id=8), Address(id=3)), (User(id=8), Address(id=4)), (User(id=9), Address(id=5)) ] == create_session().query(User).filter(User.id.in_([8,9]))._from_self().join('addresses').add_entity(Address).all()
8f2ff2a64824d0a7b7ded83c10b0a0c1764d1fd1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/8f2ff2a64824d0a7b7ded83c10b0a0c1764d1fd1/query.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5701, 12, 2890, 4672, 1815, 306, 261, 1299, 12, 350, 33, 28, 3631, 5267, 12, 350, 33, 22, 13, 3631, 261, 1299, 12, 350, 33, 28, 3631, 5267, 12, 350, 33, 23, 13, 3631, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5701, 12, 2890, 4672, 1815, 306, 261, 1299, 12, 350, 33, 28, 3631, 5267, 12, 350, 33, 22, 13, 3631, 261, 1299, 12, 350, 33, 28, 3631, 5267, 12, 350, 33, 23, 13, 3631, 261...
if barename(child.tag) == 'body':
if isinstance(child.tag, (unicode, str)) and barename(child.tag) == 'body':
def first_pass(data): try: data = etree.fromstring(data, parser=parser) except etree.XMLSyntaxError, err: self.oeb.log.exception('Initial parse failed:') repl = lambda m: ENTITYDEFS.get(m.group(1), m.group(0)) data = ENTITY_RE.sub(repl, data) try: data = etree.fromstring(data, parser=parser) except etree.XMLSyntaxError...
684f51b9598fc93625f220953db8ab9c2170aa43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/684f51b9598fc93625f220953db8ab9c2170aa43/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1122, 67, 5466, 12, 892, 4672, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 16, 393, 30, 365, 18, 15548, 70, 18, 1330, 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, 1122, 67, 5466, 12, 892, 4672, 775, 30, 501, 273, 12031, 18, 2080, 1080, 12, 892, 16, 2082, 33, 4288, 13, 1335, 12031, 18, 4201, 22510, 16, 393, 30, 365, 18, 15548, 70, 18, 1330, 18,...
class SaveProcessor:
class SaveProcessor(object):
def __setstate__(self,state): if 'data' in state: self.update(state['data'])
0cb1506674182526857aef8db2e41c9d94e09cdf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/0cb1506674182526857aef8db2e41c9d94e09cdf/rssdler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 2019, 4672, 309, 296, 892, 11, 316, 919, 30, 365, 18, 2725, 12, 2019, 3292, 892, 19486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 2019, 4672, 309, 296, 892, 11, 316, 919, 30, 365, 18, 2725, 12, 2019, 3292, 892, 19486, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
res = [u'%s: %s' % (i[0].upper(), i[1]) for i in res] source.msg(typ, show_list(res))
param = param.lower() res = [tld for tld in TLDS if param in tld] if not res: res = [tld for tld in TLDS if tld[0].count(param) or tld[1].count(param)] if len(res) == 0: source.lmsg(typ, 'not_found') elif len(res) == 1: if res[0][0].count(param): source.msg(typ, res[0][1]) else: source.msg(typ, res[0][0]) else: res = [...
def tld_handler(typ, source, param): param = param.strip() if not param: source.syntax(typ, '.tld') param = param.lower() res = [tld for tld in TLDS if param in tld] if not res: res = [tld for tld in TLDS if tld[0].count(param) or tld[1].count(param)] if len(res) == 0: source.lmsg(typ, 'not_found') elif len(res) == 1: ...
3c9cb1b33f6f9f5cff332a9d4c24bc65f7fd4a1e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2729/3c9cb1b33f6f9f5cff332a9d4c24bc65f7fd4a1e/static.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23373, 67, 4176, 12, 12846, 16, 1084, 16, 579, 4672, 579, 273, 579, 18, 6406, 1435, 309, 486, 579, 30, 1084, 18, 14308, 12, 12846, 16, 2418, 88, 1236, 6134, 579, 273, 579, 18, 8167, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23373, 67, 4176, 12, 12846, 16, 1084, 16, 579, 4672, 579, 273, 579, 18, 6406, 1435, 309, 486, 579, 30, 1084, 18, 14308, 12, 12846, 16, 2418, 88, 1236, 6134, 579, 273, 579, 18, 8167, ...
ui.status(_('Writing '), m['Subject'], ' ...\n')
ui.status(_('Writing '), subj, ' ...\n')
def getaddrs(opt, prpt, default = None): addrs = opts.get(opt) or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()]
3b053405a27372ffc5ed867f68485aaa28e9f79a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/3b053405a27372ffc5ed867f68485aaa28e9f79a/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, ...
e[(i,j)] = x
if rows: e[(i,j)] = x else: e[(j,i)] = x
def __call__(self, entries=0, coerce=True, copy=True): """ EXAMPLES: sage: k = GF(7); G = MatrixGroup([matrix(k,2,[1,1,0,1]), matrix(k,2,[1,0,0,2])]) sage: g = G.0 sage: MatrixSpace(k,2)(g) [1 1] [0 1] """ if entries is None: entries = 0
fe3ecebbf3bd6a3fb2c89a05ca13590856cad94a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/fe3ecebbf3bd6a3fb2c89a05ca13590856cad94a/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3222, 33, 20, 16, 12270, 33, 5510, 16, 1610, 33, 5510, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 417, 273, 611, 42, 12, 27, 1769, 611, 273, 7298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 3222, 33, 20, 16, 12270, 33, 5510, 16, 1610, 33, 5510, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 417, 273, 611, 42, 12, 27, 1769, 611, 273, 7298...
if self.untagged_responses.has_key('READ-WRITE') \ and self.untagged_responses.has_key('READ-ONLY'): del self.untagged_responses['READ-WRITE']
if self.untagged_responses.has_key('READ-ONLY') \ and not self.is_readonly:
def _command(self, name, *args):
d6ad385b5e813e4f8ab912d5ae43f15527a937c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d6ad385b5e813e4f8ab912d5ae43f15527a937c4/imaplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3076, 12, 2890, 16, 508, 16, 380, 1968, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3076, 12, 2890, 16, 508, 16, 380, 1968, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dump_in.close();
dump_in.close()
def copy_repos(src_path, dst_path, head_revision, ignore_uuid = 1): "Copy the repository SRC_PATH, with head revision HEAD_REVISION, to DST_PATH" # Do an svnadmin dump|svnadmin load cycle. Print a fake pipe command so that # the displayed CMDs can be run by hand create_repos(dst_path) dump_args = ' dump "' + src_path ...
8f81c4e5a89d369f783dc9f9e90ff95d6fcd9e31 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1387/8f81c4e5a89d369f783dc9f9e90ff95d6fcd9e31/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 15564, 12, 4816, 67, 803, 16, 3046, 67, 803, 16, 910, 67, 13057, 16, 2305, 67, 7080, 273, 404, 4672, 315, 2951, 326, 3352, 348, 11529, 67, 4211, 16, 598, 910, 6350, 14792, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 15564, 12, 4816, 67, 803, 16, 3046, 67, 803, 16, 910, 67, 13057, 16, 2305, 67, 7080, 273, 404, 4672, 315, 2951, 326, 3352, 348, 11529, 67, 4211, 16, 598, 910, 6350, 14792, ...
obj = super(RecruitmentForm, self).save(commit=False, *args, **kwargs)
obj = super(RecruitmentForm, self).save(commit=True, *args, **kwargs)
def save(self, commit=True, *args, **kwargs): obj = super(RecruitmentForm, self).save(commit=False, *args, **kwargs)
c92062ec3a5998016f91aed7ed9ec7c2412bb0dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12441/c92062ec3a5998016f91aed7ed9ec7c2412bb0dc/trds_forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 3294, 33, 5510, 16, 380, 1968, 16, 2826, 4333, 4672, 1081, 273, 2240, 12, 426, 3353, 14945, 475, 1204, 16, 365, 2934, 5688, 12, 7371, 33, 8381, 16, 380, 1968, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 3294, 33, 5510, 16, 380, 1968, 16, 2826, 4333, 4672, 1081, 273, 2240, 12, 426, 3353, 14945, 475, 1204, 16, 365, 2934, 5688, 12, 7371, 33, 8381, 16, 380, 1968, 16, ...
"li.defaultStyle": "Definition"
"ul.defaultStyle": "UnorderedList", "ol.defaultStyle": "OrderedList", "li.defaultStyle": "Definition",
def addAttributes(self, dictionary): for key in dictionary.keys(): value = dictionary[key] if value is not None: if hasattr(StyleAttributeConverters, key): converter = getattr(StyleAttributeConverters, key)[0] value = converter(value) setattr(self, key, value)
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2498, 12, 2890, 16, 3880, 4672, 364, 498, 316, 3880, 18, 2452, 13332, 460, 273, 3880, 63, 856, 65, 309, 460, 353, 486, 599, 30, 309, 3859, 12, 2885, 1499, 24615, 16, 498, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 2498, 12, 2890, 16, 3880, 4672, 364, 498, 316, 3880, 18, 2452, 13332, 460, 273, 3880, 63, 856, 65, 309, 460, 353, 486, 599, 30, 309, 3859, 12, 2885, 1499, 24615, 16, 498, 4672, ...
test_nodename = self.object2.name + (content.suffix or '') + (content.extension or '')
content_name = self.object2.name obj = pool.get(self.object.ressource_type_id.model) name_for = obj._name.split('.')[-1] if content_name and content_name.find(name_for) == 0 : content_name = content_name.replace(name_for,'') test_nodename = content_name + (content.suffix or '') + (content.extension or '')
def _file_get(self, nodename=False): if not self.object: return [] pool = pooler.get_pool(self.cr.dbname) fobj = pool.get('ir.attachment') res2 = [] where = [] if self.object2: where.append( ('res_model','=',self.object2._name) ) where.append( ('res_id','=',self.object2.id) ) else: where.append( ('parent_id','=',self.o...
d05bfafb5145c24561f9040bb39dba1d10318ea6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/d05bfafb5145c24561f9040bb39dba1d10318ea6/document.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 768, 67, 588, 12, 2890, 16, 14003, 1069, 33, 8381, 4672, 309, 486, 365, 18, 1612, 30, 327, 5378, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 2890, 18, 3353, 18, 20979, 13, 2470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 768, 67, 588, 12, 2890, 16, 14003, 1069, 33, 8381, 4672, 309, 486, 365, 18, 1612, 30, 327, 5378, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 2890, 18, 3353, 18, 20979, 13, 2470...
if isinstance(field, (models.OneToOneField, models.ForeignKey, models.ManyToManyField)):
if isinstance(field, (models.OneToOneField, models.ForeignKey, models.ManyToManyField, GenericRelation)):
def field_dependencies(field, last_models=None): depends = {} if isinstance(field, (models.OneToOneField, models.ForeignKey, models.ManyToManyField)): depends[field.rel.to] = last_models depends.update(field_dependencies(field.rel.to._meta.pk, last_models)) return depends
db78f62809ae9640f7b4d1002ca560ac9a4be5e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13142/db78f62809ae9640f7b4d1002ca560ac9a4be5e9/startmigration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 11037, 12, 1518, 16, 1142, 67, 7665, 33, 7036, 4672, 10935, 273, 2618, 309, 1549, 12, 1518, 16, 261, 7665, 18, 3335, 16027, 974, 16, 3679, 18, 15420, 16, 3679, 18, 5594, 12601...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 652, 67, 11037, 12, 1518, 16, 1142, 67, 7665, 33, 7036, 4672, 10935, 273, 2618, 309, 1549, 12, 1518, 16, 261, 7665, 18, 3335, 16027, 974, 16, 3679, 18, 15420, 16, 3679, 18, 5594, 12601...
""" % (instPath, cf))
""" % (instPath, cf, instPath, instPath))
def _writePostFlightFile(self, pfFile): """Write the postflight file Mac Package Installer """ instPath = os.path.basename(self.buildSourcePath) # "nanoENGINEER-1-0.0.6" appname = self.appName + '.app' cf = os.path.join(instPath, appname, 'Contents/Frameworks') # $2/instPath --> /Applications/nanoENGINEER-1-0.0.6 # $...
4b71cda28be68819def9eb38ef4d2f9c32ae06a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/4b71cda28be68819def9eb38ef4d2f9c32ae06a3/autoBuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 3349, 24243, 812, 12, 2890, 16, 10811, 812, 4672, 3536, 3067, 326, 1603, 19131, 585, 13217, 7508, 10284, 264, 3536, 1804, 743, 273, 1140, 18, 803, 18, 13909, 12, 2890, 18, 351...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3349, 24243, 812, 12, 2890, 16, 10811, 812, 4672, 3536, 3067, 326, 1603, 19131, 585, 13217, 7508, 10284, 264, 3536, 1804, 743, 273, 1140, 18, 803, 18, 13909, 12, 2890, 18, 351...
try: port = int(port) except: port = None try: if hostname is not None: hostname = str(hostname) except: hostname = None
try: port = int(port) except: port = None if hostname == 'None': hostname = None else: try: hostname = str(hostname) except Exception, msg: print msg hostname = None else: hostname = port = None
def main(): r""" argv[1] == hostname argv[2] == port """ if len(sys.argv) == 3: hostname, port = sys.argv[1:3] try: port = int(port) except: port = None try: if hostname is not None: hostname = str(hostname) except: hostname = None monitor = Monitor(hostname, port) monitor.connect() monitor.startLoopingCalls() try...
428c4adbab512c2fd0c7abe91221da4102285eb4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/428c4adbab512c2fd0c7abe91221da4102285eb4/dsage_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 436, 8395, 5261, 63, 21, 65, 422, 5199, 5261, 63, 22, 65, 422, 1756, 225, 3536, 225, 309, 562, 12, 9499, 18, 19485, 13, 422, 890, 30, 5199, 16, 1756, 273, 2589, 18, 1948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 436, 8395, 5261, 63, 21, 65, 422, 5199, 5261, 63, 22, 65, 422, 1756, 225, 3536, 225, 309, 562, 12, 9499, 18, 19485, 13, 422, 890, 30, 5199, 16, 1756, 273, 2589, 18, 1948...
cmd = "/sbin/fsck.ext3 -f -p " + self.partitionPath("1")
cmd = "fsck.ext3 -f -p " + self.partitionPath("1")
def fsck(self): # We autocorrect any failures # TODO: we could check if the fs is actually ext3 cmd = "/sbin/fsck.ext3 -f -p " + self.partitionPath("1") res = system(cmd) return (res >> 8)
a35c57a736086abaef5a82e2e117a12e3a79b273 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/a35c57a736086abaef5a82e2e117a12e3a79b273/Harddisk.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2662, 363, 12, 2890, 4672, 468, 1660, 23173, 280, 2607, 1281, 11720, 468, 2660, 30, 732, 3377, 866, 309, 326, 2662, 353, 6013, 1110, 23, 1797, 273, 315, 2556, 363, 18, 408, 23, 300, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2662, 363, 12, 2890, 4672, 468, 1660, 23173, 280, 2607, 1281, 11720, 468, 2660, 30, 732, 3377, 866, 309, 326, 2662, 353, 6013, 1110, 23, 1797, 273, 315, 2556, 363, 18, 408, 23, 300, 74...
"UI language, but %(lang_code) is not available in Pootle's "\
"UI language, but %(lang_code)s is not available in Pootle's "\
def create_database_user(data, user_name): # Create basic user information user = User(username = user_name, first_name = _get_user_attribute(data, user_name, 'name'), email = _get_user_attribute(data, user_name, 'email'), activated = try_type(bool, _get_user_attribute(data, user_name, 'activate...
5b1d4d4319cd3c1ee1fffca49c5e3c171c1a1a8b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/5b1d4d4319cd3c1ee1fffca49c5e3c171c1a1a8b/import_old_prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 6231, 67, 1355, 12, 892, 16, 729, 67, 529, 4672, 468, 1788, 5337, 729, 1779, 729, 273, 2177, 12, 5053, 4202, 273, 729, 67, 529, 16, 1122, 67, 529, 377, 273, 389, 588, 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, 752, 67, 6231, 67, 1355, 12, 892, 16, 729, 67, 529, 4672, 468, 1788, 5337, 729, 1779, 729, 273, 2177, 12, 5053, 4202, 273, 729, 67, 529, 16, 1122, 67, 529, 377, 273, 389, 588, 67, ...
consec = 0 for j in xrange(length): discard = discards[i + j] if j >= 8 and discard == 1: break if discard == 2: consec = 0 discards[i + j] = 0 elif discard == 0: consec = 0 else: consec += 1 if consec == 3: break
j += 1 scan_run(discards, i, length, lambda x,y: x + y)
def check_discard_runs(data, discards): for i in xrange(data.length): # Cancel the provisional discards that are not in the middle # of a run of discards if discards[i] == 2: discards[i] = 0 elif discards[i] != 0: # We found a provisional discard provisional = 0
97543e17e72ffa73040dbf9d8592f08aa6cf12c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/97543e17e72ffa73040dbf9d8592f08aa6cf12c3/myersdiff.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 31992, 67, 20152, 12, 892, 16, 10388, 87, 4672, 364, 277, 316, 12314, 12, 892, 18, 2469, 4672, 468, 10347, 326, 10595, 287, 10388, 87, 716, 854, 486, 316, 326, 7689, 468, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 31992, 67, 20152, 12, 892, 16, 10388, 87, 4672, 364, 277, 316, 12314, 12, 892, 18, 2469, 4672, 468, 10347, 326, 10595, 287, 10388, 87, 716, 854, 486, 316, 326, 7689, 468, 434,...
return code
return (code,msg)
def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name=socket.gethostbyaddr(socket.gethostname())[0] self.putcmd("ehlo",name) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # MT...
53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/53ecf9d0a34d0a10b05db7f05f9837e5aa9ed6d9/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20124, 383, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 18102, 296, 73, 76, 383, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20124, 383, 12, 2890, 16, 508, 2218, 11, 4672, 3536, 18102, 296, 73, 76, 383, 11, 1296, 18, 17423, 358, 1366, 364, 333, 1296, 3467, 358, 326, 23127, 8609, 434, 326, 1191, 1479, 18, 353...
self.__set_field('commemail', email or git.committer().email)
self._set_field('commemail', email or git.committer().email)
def set_commemail(self, email): self.__set_field('commemail', email or git.committer().email)
8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5702, 3652, 12, 2890, 16, 2699, 4672, 365, 16186, 542, 67, 1518, 2668, 5702, 3652, 2187, 2699, 578, 5071, 18, 7371, 387, 7675, 3652, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 5702, 3652, 12, 2890, 16, 2699, 4672, 365, 16186, 542, 67, 1518, 2668, 5702, 3652, 2187, 2699, 578, 5071, 18, 7371, 387, 7675, 3652, 13, 2, -100, -100, -100, -100, -100, -100, ...
if int(vat[0:2]) == 0 and len(vat) == 10:
if int(vat[0:2]) in (0, 10, 20) and len(vat) == 10:
def check_vat_sk(self, vat): ''' Check Slovakia VAT number. ''' try: int(vat) except: return False if len(vat) not in(9, 10): return False
154eea64433d2734620100671b96a9ca091af774 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/154eea64433d2734620100671b96a9ca091af774/base_vat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 25012, 67, 7771, 12, 2890, 16, 17359, 4672, 9163, 2073, 348, 383, 90, 581, 1155, 776, 789, 1300, 18, 9163, 775, 30, 509, 12, 25012, 13, 1335, 30, 327, 1083, 309, 562, 12, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 25012, 67, 7771, 12, 2890, 16, 17359, 4672, 9163, 2073, 348, 383, 90, 581, 1155, 776, 789, 1300, 18, 9163, 775, 30, 509, 12, 25012, 13, 1335, 30, 327, 1083, 309, 562, 12, 25...
assert not self.isResource()
assert not self.isCollection
def getContent(self): """Open content as a stream for reading.
4c3b1244e6aca1aac0d4ea159b75ccbe42d94a0e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8193/4c3b1244e6aca1aac0d4ea159b75ccbe42d94a0e/dav_provider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5154, 12, 2890, 4672, 3536, 3678, 913, 487, 279, 1407, 364, 6453, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5154, 12, 2890, 4672, 3536, 3678, 913, 487, 279, 1407, 364, 6453, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return set(self) == set(other)
return dict(self.items()) == dict(other.items())
def __eq__(self, other): return set(self) == set(other)
224076bd4ce7a8a18ed25ff42c65a5fb75526215 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/224076bd4ce7a8a18ed25ff42c65a5fb75526215/_abcoll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 327, 444, 12, 2890, 13, 422, 444, 12, 3011, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 327, 444, 12, 2890, 13, 422, 444, 12, 3011, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if sys.platform != 'win32': self.window.set_resize_mode(gtk.RESIZE_IMMEDIATE)
def __init__(self): self.is_fullscreen = False self.verbose = True self.window = gtk.Window() self.window.set_title('Testing OpenGL') if sys.platform != 'win32': self.window.set_resize_mode(gtk.RESIZE_IMMEDIATE) self.window.set_reallocate_redraws(True) self.window.connect('delete_event', self.on_delete_event) self.wind...
3b67b85e99556271865210ae7472d5929c2a3297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/579/3b67b85e99556271865210ae7472d5929c2a3297/gl-hello.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 291, 67, 2854, 9252, 273, 1083, 365, 18, 11369, 273, 1053, 365, 18, 5668, 273, 22718, 18, 3829, 1435, 365, 18, 5668, 18, 542, 67, 2649, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 291, 67, 2854, 9252, 273, 1083, 365, 18, 11369, 273, 1053, 365, 18, 5668, 273, 22718, 18, 3829, 1435, 365, 18, 5668, 18, 542, 67, 2649, 2668, ...
'.svg' : 'image/svg+xml'
'.svg' : 'image/svg+xml',
def _default_mime_types(): global suffix_map global encodings_map global types_map global common_types suffix_map = { '.svgz': '.svg.gz', '.tgz': '.tar.gz', '.taz': '.tar.gz', '.tz': '.tar.gz', '.tbz2': '.tar.bz2', } encodings_map = { '.gz': 'gzip', '.Z': 'compress', '.bz2': 'bzip2', } # Before adding new types, mak...
6a80bd677d61e2b5e29a3f1ad0f0d0e5bc735e5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/6a80bd677d61e2b5e29a3f1ad0f0d0e5bc735e5b/mimetypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1886, 67, 11757, 67, 2352, 13332, 2552, 3758, 67, 1458, 2552, 24118, 67, 1458, 2552, 1953, 67, 1458, 2552, 2975, 67, 2352, 225, 3758, 67, 1458, 273, 288, 2418, 5751, 9764, 4278, 241...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1886, 67, 11757, 67, 2352, 13332, 2552, 3758, 67, 1458, 2552, 24118, 67, 1458, 2552, 1953, 67, 1458, 2552, 2975, 67, 2352, 225, 3758, 67, 1458, 273, 288, 2418, 5751, 9764, 4278, 241...
for uuid, attr, name in self._subIndexes: indexed = getattr(view[uuid], attr) index = indexed.getIndex(name, None) if index is not None and index.removeKeys(keys): indexed._setDirty(True)
gone = () for uItem, attr, name in self._subIndexes: item = view.find(uItem) if item is None: gone += (uItem,) else: indexed = getattr(item, attr) index = indexed.getIndex(name, None) if index is not None and index.removeKeys(keys): indexed._setDirty(True) if gone: self._subIndexes = set(subIndex for subIndex in self._...
def removeKeys(self, keys):
31c96352066cafc30a7278914d2e00320455d7ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/31c96352066cafc30a7278914d2e00320455d7ff/Indexes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 2396, 12, 2890, 16, 1311, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 2396, 12, 2890, 16, 1311, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def arping(net, **kargs):
def arping(net, timeout=2, **kargs):
def arping(net, **kargs): """Send ARP who-has requests to determine which hosts are up
190a2c770bdd967748dea32a325afc5b1e65f8ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/190a2c770bdd967748dea32a325afc5b1e65f8ee/scapy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 419, 1382, 12, 2758, 16, 2021, 33, 22, 16, 2826, 79, 1968, 4672, 3536, 3826, 6052, 52, 10354, 17, 5332, 3285, 358, 4199, 1492, 7206, 854, 731, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 419, 1382, 12, 2758, 16, 2021, 33, 22, 16, 2826, 79, 1968, 4672, 3536, 3826, 6052, 52, 10354, 17, 5332, 3285, 358, 4199, 1492, 7206, 854, 731, 2, -100, -100, -100, -100, -100, -100, -1...
% (topic, item, pos, total, units, pct))
% (topic, item, pos, total, unit, pct))
def progress(self, topic, pos, item="", unit="", total=None): '''show a progress message
69ed50508dd5db9bec38e8af1639b9d10d155c2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/69ed50508dd5db9bec38e8af1639b9d10d155c2f/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 12, 2890, 16, 3958, 16, 949, 16, 761, 1546, 3113, 2836, 1546, 3113, 2078, 33, 7036, 4672, 9163, 4500, 279, 4007, 883, 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, 4007, 12, 2890, 16, 3958, 16, 949, 16, 761, 1546, 3113, 2836, 1546, 3113, 2078, 33, 7036, 4672, 9163, 4500, 279, 4007, 883, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
likes = [r"%s %s %%s ESCAPE '_'" % (i, db.like()) for i in columns]
likes = [r"%s %s %%s ESCAPE '/'" % (i, db.like()) for i in columns]
def search_to_sql(db, columns, terms): """ Convert a search query into a SQL condition string and corresponding parameters. The result is returned as a (string, params) tuple. """ if len(columns) < 1 or len(terms) < 1: raise TracError('Empty search attempt, this should really not happen.') likes = [r"%s %s %%s ESCAPE ...
642c2fedf294d71a6a01e35aa5c468dda7607da7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/642c2fedf294d71a6a01e35aa5c468dda7607da7/Search.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 869, 67, 4669, 12, 1966, 16, 2168, 16, 6548, 4672, 3536, 4037, 279, 1623, 843, 1368, 279, 3063, 2269, 533, 471, 4656, 1472, 18, 1021, 563, 353, 2106, 487, 279, 261, 1080, 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, 1623, 67, 869, 67, 4669, 12, 1966, 16, 2168, 16, 6548, 4672, 3536, 4037, 279, 1623, 843, 1368, 279, 3063, 2269, 533, 471, 4656, 1472, 18, 1021, 563, 353, 2106, 487, 279, 261, 1080, 16,...
self.repub = re.compile(r'\s*.diteur\s*', re.I) self.reauteur = re.compile(r'\s*auteur.*', re.I) self.reautclean = re.compile(r'\s*\(.*\)\s*')
self.repub = re.compile(u'\s*.diteur\s*', re.I) self.reauteur = re.compile(u'\s*auteur.*', re.I) self.reautclean = re.compile(u'\s*\(.*\)\s*')
def __init__(self): self.repub = re.compile(r'\s*.diteur\s*', re.I) self.reauteur = re.compile(r'\s*auteur.*', re.I) self.reautclean = re.compile(r'\s*\(.*\)\s*')
fd711e6075e2dec43ab37c76fad9ed299fcdc71d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/fd711e6075e2dec43ab37c76fad9ed299fcdc71d/nicebooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 266, 10174, 273, 283, 18, 11100, 12, 86, 8314, 87, 11146, 72, 1137, 295, 64, 87, 14, 2187, 283, 18, 45, 13, 365, 18, 266, 69, 624, 295, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 266, 10174, 273, 283, 18, 11100, 12, 86, 8314, 87, 11146, 72, 1137, 295, 64, 87, 14, 2187, 283, 18, 45, 13, 365, 18, 266, 69, 624, 295, 27...
side-effect. It proves that the inde of the points in their
side-effect. It proves that the index of the points in their
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura...
c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
values.append((key, operator, value))
values.append((key, operator, value) + args[3:])
def search_filter(self, widget=None, only_ids=False): limit = None offset = 0 values = [] if self.filter_widget: limit = self.filter_widget.get_limit() offset = self.filter_widget.get_offset() values = self.filter_widget.value else: values = [('id', 'in', [x.id for x in self.models])] filter_keys = [] for key, operator...
7bb5cebfb371e8d8ba7fd5ec284caf65a11812d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/7bb5cebfb371e8d8ba7fd5ec284caf65a11812d3/screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 2188, 12, 2890, 16, 3604, 33, 7036, 16, 1338, 67, 2232, 33, 8381, 4672, 1800, 273, 599, 1384, 273, 374, 924, 273, 5378, 309, 365, 18, 2188, 67, 6587, 30, 1800, 273, 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, 1623, 67, 2188, 12, 2890, 16, 3604, 33, 7036, 16, 1338, 67, 2232, 33, 8381, 4672, 1800, 273, 599, 1384, 273, 374, 924, 273, 5378, 309, 365, 18, 2188, 67, 6587, 30, 1800, 273, 365, 18...
'start': fields.boolean('Start',help= "Its necessary to start activity \ before running campaign"),
'start': fields.boolean('Start',help= "This activity is launched when the campaign starts."),
def process_segment(self, cr, uid, context={}): last_action_date = '' if 'segment_ids' in context: segment_ids = context['segment_ids'] last_action_date = (datetime.now() + _intervalTypes['days'](-1) \ ).strftime('%Y-%m-%d %H:%M:%S')
4760a832f354437350b06aae5ddce4f88aa00f51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/4760a832f354437350b06aae5ddce4f88aa00f51/marketing_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9273, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 1142, 67, 1128, 67, 712, 273, 875, 309, 296, 9273, 67, 2232, 11, 316, 819, 30, 3267, 67, 2232, 273, 819, 3292, 927...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9273, 12, 2890, 16, 4422, 16, 4555, 16, 819, 12938, 4672, 1142, 67, 1128, 67, 712, 273, 875, 309, 296, 9273, 67, 2232, 11, 316, 819, 30, 3267, 67, 2232, 273, 819, 3292, 927...
pkg_name = k
if len(desc) > 40: desc = desc[:40] desc += ' ...' pkg_name = cgi.escape(k)
def alpm_fill_treestore_with_pkgs_and_grps(self, treeview, treestore, pkgs, groups, repo_name = None): treeview.set_model(None) already_visited_pkgs = {} already_visited_grps = {}
406465af1625206c1b85268c2a144f8c51a0f1af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/406465af1625206c1b85268c2a144f8c51a0f1af/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 524, 7755, 67, 5935, 67, 27427, 25626, 67, 1918, 67, 25376, 67, 464, 67, 3197, 1121, 12, 2890, 16, 2151, 1945, 16, 9787, 25626, 16, 16922, 16, 3252, 16, 3538, 67, 529, 273, 599, 4672, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 524, 7755, 67, 5935, 67, 27427, 25626, 67, 1918, 67, 25376, 67, 464, 67, 3197, 1121, 12, 2890, 16, 2151, 1945, 16, 9787, 25626, 16, 16922, 16, 3252, 16, 3538, 67, 529, 273, 599, 4672, ...
if game.skill > SKILL_GOOD and game.klhere > 0 and not game.state.galaxy[game.quadrant.x][game.quadrant.y].supernova:
if game.skill > SKILL_GOOD and game.klhere > 0 and not game.state.galaxy[game.quadrant.i][game.quadrant.j].supernova:
def no_quad_change(): # No quadrant change -- compute new average enemy distances game.quad[game.sector.x][game.sector.y] = game.ship if game.enemies: for enemy in game.enemies: finald = (w-enemy.kloc).distance() enemy.kavgd = 0.5 * (finald + enemy.kdist) enemy.kdist = finald game.enemies.sort(lambda x, y: cmp(x.kdist,...
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1158, 67, 21733, 67, 3427, 13332, 468, 2631, 9474, 6890, 2549, 1493, 3671, 394, 8164, 570, 351, 93, 12491, 7920, 18, 21733, 63, 13957, 18, 5709, 280, 18, 92, 6362, 13957, 18, 5709, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1158, 67, 21733, 67, 3427, 13332, 468, 2631, 9474, 6890, 2549, 1493, 3671, 394, 8164, 570, 351, 93, 12491, 7920, 18, 21733, 63, 13957, 18, 5709, 280, 18, 92, 6362, 13957, 18, 5709, 280, ...
if 'oldpw' in self.cleaned_data: try: u=User.objects.get(username=self.cleaned_data['username']) except: raise forms.ValidationError(_("Incorrect username. What are you trying to do ...")) if not u.check_password(self.cleaned_data['oldpw']): raise forms.ValidationError(_("Old password is wrong. Please enter a valid pa...
if not self.user.check_password(self.cleaned_data['oldpw']): raise forms.ValidationError(_("Old password is wrong. Please enter a valid password."))
def clean_oldpw(self): if 'oldpw' in self.cleaned_data: try: u=User.objects.get(username=self.cleaned_data['username']) except: raise forms.ValidationError(_("Incorrect username. What are you trying to do ...")) if not u.check_password(self.cleaned_data['oldpw']): raise forms.ValidationError(_("Old password is wrong. ...
13aed02d5e05f071cdbdbf7b75a880dcd69164eb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5675/13aed02d5e05f071cdbdbf7b75a880dcd69164eb/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 1673, 14921, 12, 2890, 4672, 309, 486, 365, 18, 1355, 18, 1893, 67, 3664, 12, 2890, 18, 6200, 329, 67, 892, 3292, 1673, 14921, 3546, 4672, 1002, 10138, 18, 12101, 24899, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 67, 1673, 14921, 12, 2890, 4672, 309, 486, 365, 18, 1355, 18, 1893, 67, 3664, 12, 2890, 18, 6200, 329, 67, 892, 3292, 1673, 14921, 3546, 4672, 1002, 10138, 18, 12101, 24899, 2932, ...
addOneItem(containerb, rez_class, {}) item = containerb.objectValues()[0] comment = createObject('plone.Comment') IConversation(item).addComment(comment)
def test_data(): """Randomise the values in certain fields """ return {'authors': [random.choice(authors_list)], 'referenceAuthors': [random.choice(referenceAuthors_list), random.choice(referenceAuthors_list)], 'ddcPlace': random.choice(ddcPlace_list), 'ddcSubject': random.choice(ddcSubject_list), 'ddcTime': random.cho...
39b45634e415054a7d7492d1a823c6ac5d89ebd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10560/39b45634e415054a7d7492d1a823c6ac5d89ebd8/setuphandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 13332, 3536, 8529, 784, 326, 924, 316, 8626, 1466, 3536, 327, 13666, 19368, 4278, 306, 9188, 18, 11569, 12, 19368, 67, 1098, 13, 6487, 296, 6180, 1730, 1383, 4278, 306, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 13332, 3536, 8529, 784, 326, 924, 316, 8626, 1466, 3536, 327, 13666, 19368, 4278, 306, 9188, 18, 11569, 12, 19368, 67, 1098, 13, 6487, 296, 6180, 1730, 1383, 4278, 306, 91...
title = Markup('Ticket <em title="%s"> summary, id, type, verb, author)
if format == 'rss': title = 'Ticket (id, type.lower(), verb, summary) else: title = Markup('Ticket <em title="%s"> summary, id, type, verb, author)
def produce((id, t, author, type, summary), status, fields, comment, cid): if status == 'edit': if 'ticket_details' in filters: info = '' if len(fields) > 0: info = ', '.join(['<i>%s</i>' % f for f in \ fields.keys()]) + ' changed<br />' else: return None elif 'ticket' in filters: if status == 'closed' and fields.has_k...
e57663470b569450b580dc3bcca7d090e3455d30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/e57663470b569450b580dc3bcca7d090e3455d30/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11402, 12443, 350, 16, 268, 16, 2869, 16, 618, 16, 4916, 3631, 1267, 16, 1466, 16, 2879, 16, 7504, 4672, 309, 1267, 422, 296, 4619, 4278, 309, 296, 16282, 67, 6395, 11, 316, 3415, 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, 11402, 12443, 350, 16, 268, 16, 2869, 16, 618, 16, 4916, 3631, 1267, 16, 1466, 16, 2879, 16, 7504, 4672, 309, 1267, 422, 296, 4619, 4278, 309, 296, 16282, 67, 6395, 11, 316, 3415, 30, ...
t.appendChild(doc.createTextNode(str(self.options["%s.%s" % (self.program, option[0])])))
t.appendChild(doc.createTextNode(str(program.get(option[0]))))
def temp(x): f = open(x, 'r') t = base64.b64encode(f.read()) f.close() return t
e3d00bde989431745d3c2d68912693a977e97fa9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2406/e3d00bde989431745d3c2d68912693a977e97fa9/xmlreport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1906, 12, 92, 4672, 284, 273, 1696, 12, 92, 16, 296, 86, 6134, 268, 273, 1026, 1105, 18, 70, 1105, 3015, 12, 74, 18, 896, 10756, 284, 18, 4412, 1435, 327, 268, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1906, 12, 92, 4672, 284, 273, 1696, 12, 92, 16, 296, 86, 6134, 268, 273, 1026, 1105, 18, 70, 1105, 3015, 12, 74, 18, 896, 10756, 284, 18, 4412, 1435, 327, 268, 2, -100, -100, -100, ...
Determine if rollover should occur
Determine if rollover should occur.
def shouldRollover(self, record): """ Determine if rollover should occur
e5aefa0b303b3146df931bab692d0758c1aa725f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/e5aefa0b303b3146df931bab692d0758c1aa725f/handlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1410, 4984, 21896, 12, 2890, 16, 1409, 4672, 3536, 10229, 309, 10643, 21896, 1410, 3334, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4984, 21896, 12, 2890, 16, 1409, 4672, 3536, 10229, 309, 10643, 21896, 1410, 3334, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
eq(he('hello\nworld', keep_eols=1),
eq(he('hello\nworld', keep_eols=True),
def test_header_encode(self): eq = self.assertEqual he = base64MIME.header_encode eq(he('hello'), '=?iso-8859-1?b?aGVsbG8=?=') eq(he('hello\nworld'), '=?iso-8859-1?b?aGVsbG8NCndvcmxk?=') # Test the charset option eq(he('hello', charset='iso-8859-2'), '=?iso-8859-2?b?aGVsbG8=?=') # Test the keep_eols flag eq(he('hello\n...
1abdc903fc08a89b4695728d372aaf3594fcb8c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1abdc903fc08a89b4695728d372aaf3594fcb8c8/test_email.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3374, 67, 3015, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 3904, 273, 1026, 1105, 18178, 18, 3374, 67, 3015, 7555, 12, 580, 2668, 23711, 19899, 15196, 35, 9699, 17, 17258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3374, 67, 3015, 12, 2890, 4672, 7555, 273, 365, 18, 11231, 5812, 3904, 273, 1026, 1105, 18178, 18, 3374, 67, 3015, 7555, 12, 580, 2668, 23711, 19899, 15196, 35, 9699, 17, 17258...
log.log( "<eddieElvin>eddieElvin.connect(), received ElvinConnectNotReady -trying again", 8 )
log.log( "<eddieElvin4>eddieElvin.connect(), received ElvinConnectNotReady - trying again", 8 )
def connect(self):
aa32b1c20f46510b6908631b429ef7410713743a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/aa32b1c20f46510b6908631b429ef7410713743a/eddieElvin4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return newSymbolTable(top, filename)
return _newSymbolTable(top, filename)
def symtable(code, filename, compile_type): raw = _symtable.symtable(code, filename, compile_type) for top in raw.itervalues(): if top.name == 'top': break return newSymbolTable(top, filename)
911174047e34dcf08dd4fc730f67690982b4cbb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/911174047e34dcf08dd4fc730f67690982b4cbb7/symtable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1393, 1010, 429, 12, 710, 16, 1544, 16, 4074, 67, 723, 4672, 1831, 273, 389, 9009, 1010, 429, 18, 9009, 1010, 429, 12, 710, 16, 1544, 16, 4074, 67, 723, 13, 364, 1760, 316, 1831, 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, 1393, 1010, 429, 12, 710, 16, 1544, 16, 4074, 67, 723, 4672, 1831, 273, 389, 9009, 1010, 429, 18, 9009, 1010, 429, 12, 710, 16, 1544, 16, 4074, 67, 723, 13, 364, 1760, 316, 1831, 18,...
while len(filedata) < total_to_recv: to_recv = min(total_to_recv - len(filedata), 1024) data = read(to_recv, 'could not get all file data') if data == None: return None filedata += data if filedata[-len(prompt):] != prompt: err('no prompt') return filedata return filedata[:-len(prompt)]
buffer = read_exact(total_to_recv, buffer, 'could not get all file data') if buffer == None: return None if buffer[-len(prompt):] != prompt: err('no prompt found after file data--DeviceManager may be out of sync with agent') return buffer return buffer[:-len(prompt)]
def read(to_recv, error_msg): data = self._sock.recv(to_recv) if not data: err(error_msg) return None return data
ede7af67cea5a7535dab09944330c7547884ff33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/ede7af67cea5a7535dab09944330c7547884ff33/devicemanager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 869, 67, 18334, 16, 555, 67, 3576, 4672, 501, 273, 365, 6315, 15031, 18, 18334, 12, 869, 67, 18334, 13, 309, 486, 501, 30, 393, 12, 1636, 67, 3576, 13, 327, 599, 327, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 12, 869, 67, 18334, 16, 555, 67, 3576, 4672, 501, 273, 365, 6315, 15031, 18, 18334, 12, 869, 67, 18334, 13, 309, 486, 501, 30, 393, 12, 1636, 67, 3576, 13, 327, 599, 327, 501, ...
template = loader.get_template('login_test.html')
def login_test(request): """username = request.POST.get('username', None) password = request.POST.get('password', None) login = 'Administrator' \ if username == 'Administrator' \ and password == '2fmckX32a' \ else None """ logging.debug('Post data:') logging.debug(request.POST) context = Context(request.POST) ...
4909b0ca1c7cc171bc2eb102cedf29bc191d623d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4925/4909b0ca1c7cc171bc2eb102cedf29bc191d623d/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 67, 3813, 12, 2293, 4672, 3536, 5053, 225, 273, 590, 18, 3798, 18, 588, 2668, 5053, 2187, 599, 13, 2201, 225, 273, 590, 18, 3798, 18, 588, 2668, 3664, 2187, 599, 13, 3925, 377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 67, 3813, 12, 2293, 4672, 3536, 5053, 225, 273, 590, 18, 3798, 18, 588, 2668, 5053, 2187, 599, 13, 2201, 225, 273, 590, 18, 3798, 18, 588, 2668, 3664, 2187, 599, 13, 3925, 377, ...
if isinstance(xbounds, basestring): xbounds = self._get_or_create_datasource(xbounds).get_data() if xbounds is None: xs = arange(array_data.shape[1]) elif isinstance(xbounds, tuple): xs = linspace(xbounds[0], xbounds[1], array_data.shape[1]) elif isinstance(xbounds, ndarray): if len(xbounds.shape) == 1 and len(xbound...
return self._create_2d_plot(cls, name, origin, xbounds, ybounds, value, hide_grids, **kwargs)
def img_plot(self, data, name=None, colormap=None, xbounds=None, ybounds=None, origin=None, hide_grids=True, **styles): """ Adds image plots to this Plot object.
1e2431fcd42684676163acf6b275c1ef4d5fd87b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13167/1e2431fcd42684676163acf6b275c1ef4d5fd87b/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 67, 4032, 12, 2890, 16, 501, 16, 508, 33, 7036, 16, 24806, 33, 7036, 16, 619, 10576, 33, 7036, 16, 677, 10576, 33, 7036, 16, 4026, 33, 7036, 16, 6853, 67, 5222, 87, 33, 5510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3774, 67, 4032, 12, 2890, 16, 501, 16, 508, 33, 7036, 16, 24806, 33, 7036, 16, 619, 10576, 33, 7036, 16, 677, 10576, 33, 7036, 16, 4026, 33, 7036, 16, 6853, 67, 5222, 87, 33, 5510, ...
lon, lat, ele = getCoord(self.client, net, sta)
lon, lat, ele = getCoord(self.client, net, sta) print lon, lat, ele
def __init__(self, client = None, streams = None, options = None): self.client = client self.streams = streams self.options = options #Define some flags, dictionaries and plotting options self.flagWheelZoom = True #Switch use of mousewheel for zooming #this next flag indicates if we zoom on time or amplitude axis self....
ae623b92d57e01494a392f27837559065662b596 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/ae623b92d57e01494a392f27837559065662b596/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1004, 273, 599, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 2625, 273, 1004, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1004, 273, 599, 16, 8205, 273, 599, 16, 702, 273, 599, 4672, 365, 18, 2625, 273, 1004, 365, 18, 16320, 273, 8205, 365, 18, 2116, 273, 702, 468, 11644, ...
index += TAB*2 + "<ul>\n"
index += TAB*orig_indent + "<ul>\n"
def CopyDocs(doc_type, doc_loc, find_term): ''' The ASKAPsoft system uses different type of documentation depending on the language used. e.g. java -> javadocs, python -> sphinx, C++ -> doxygen This is the "doc_type" parameter. The documentation is produced in different locations depending on the type. This is the "do...
cec57bc15ffab6992de685c9eb55ca92f3b99838 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6216/cec57bc15ffab6992de685c9eb55ca92f3b99838/generate-embedded-docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5631, 12656, 12, 2434, 67, 723, 16, 997, 67, 1829, 16, 1104, 67, 6408, 4672, 9163, 1021, 5355, 47, 2203, 9269, 2619, 4692, 3775, 618, 434, 7323, 8353, 603, 326, 2653, 1399, 18, 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, 5631, 12656, 12, 2434, 67, 723, 16, 997, 67, 1829, 16, 1104, 67, 6408, 4672, 9163, 1021, 5355, 47, 2203, 9269, 2619, 4692, 3775, 618, 434, 7323, 8353, 603, 326, 2653, 1399, 18, 425, 18...
if account_id and (not line or (line and not line[0].amount)) and not context.get('amount', False): company_currency_id = res_users_obj.browse(cursor, user, user, context=context).company_id.currency_id.id if not currency_id: currency_id = company_currency_id cursor.execute('SELECT sum(debit-credit) \ FROM account_mo...
def onchange_partner_id(self, cursor, user, line_id, partner_id, type, currency_id, context=None): res_users_obj = self.pool.get('res.users') res_currency_obj = self.pool.get('res.currency') res = {'value': {}} obj_partner = self.pool.get('res.partner') if context is None: context = {} if not partner_id: return res acc...
02d922e3957cc2244cf163acbaedabfef204b660 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/02d922e3957cc2244cf163acbaedabfef204b660/account_bank_statement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 3347, 16, 729, 16, 980, 67, 350, 16, 19170, 67, 350, 16, 618, 16, 5462, 67, 350, 16, 819, 33, 7036, 4672, 400, 67, 5577, 67, 2603, 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, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 3347, 16, 729, 16, 980, 67, 350, 16, 19170, 67, 350, 16, 618, 16, 5462, 67, 350, 16, 819, 33, 7036, 4672, 400, 67, 5577, 67, 2603, 273,...
def create_nearest_terms_box(urlargs, p, f, t='w', n=5, ln=cdslang):
def create_nearest_terms_box(urlargs, p, f, t='w', n=5, ln=cdslang, intro_text_p=1):
def create_nearest_terms_box(urlargs, p, f, t='w', n=5, ln=cdslang): """Return text box containing list of 'n' nearest terms above/below 'p' for the field 'f' for matching type 't' (words/phrases) in language 'ln'. Propose new searches according to `urlargs' with the new words. """ out = "" nearest_terms = [] if not p:...
70841eb0d294f6e0af0955a1e7ae2c67c303f33b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/70841eb0d294f6e0af0955a1e7ae2c67c303f33b/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 25785, 67, 10112, 67, 2147, 12, 718, 1968, 16, 293, 16, 284, 16, 268, 2218, 91, 2187, 290, 33, 25, 16, 7211, 33, 4315, 2069, 539, 16, 13079, 67, 955, 67, 84, 33, 21, 4672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 25785, 67, 10112, 67, 2147, 12, 718, 1968, 16, 293, 16, 284, 16, 268, 2218, 91, 2187, 290, 33, 25, 16, 7211, 33, 4315, 2069, 539, 16, 13079, 67, 955, 67, 84, 33, 21, 4672,...
form['headers'] = headers res = func(*args, **form.mixed()) status = headers.pop('status') start_response(status, headers.headeritems())
try: res = func(*args, **form.mixed()) except ValueError, ve: status = '500 Server Error' res = '<html>There was an error: %s</html>' % \ html_quote(ve) start_response(status, [('content-type', 'text/html')])
def application(environ, start_response): form = wsgilib.parse_formvars(environ, include_get_vars=True) headers = response.HeaderDict( {'content-type': 'text/html', 'status': '200 OK'}) form['environ'] = environ form['headers'] = headers res = func(*args, **form.mixed()) status = headers.pop('status') start_response(st...
bfceb7aa266724f818b7696526816d18411f0d39 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12946/bfceb7aa266724f818b7696526816d18411f0d39/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2521, 12, 28684, 16, 787, 67, 2740, 4672, 646, 273, 341, 1055, 330, 495, 18, 2670, 67, 687, 4699, 12, 28684, 16, 2341, 67, 588, 67, 4699, 33, 5510, 13, 1607, 273, 766, 18, 1864, 5014...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2521, 12, 28684, 16, 787, 67, 2740, 4672, 646, 273, 341, 1055, 330, 495, 18, 2670, 67, 687, 4699, 12, 28684, 16, 2341, 67, 588, 67, 4699, 33, 5510, 13, 1607, 273, 766, 18, 1864, 5014...
self.buttonUploadDownRow.setIcon(QtGui.QIcon(" "))
self.buttonUploadDownRow.setIcon(QtGui.QIcon(":/images/down.png"))
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" "))
63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 13943, 12, 2890, 16, 12740, 3829, 4672, 12740, 3829, 18, 542, 16707, 2932, 6376, 3829, 7923, 12740, 3829, 18, 15169, 12, 23310, 4670, 18, 53, 1225, 12, 23310, 4670, 18, 53, 6120, 1...
DB.__init__(self,'ProxyDB','Framework/ProxyDB',maxQueueSize)
DB.__init__( self, 'ProxyDB', 'Framework/ProxyDB', maxQueueSize )
def __init__(self, requireVoms = False, useMyProxy = False, maxQueueSize = 10 ): DB.__init__(self,'ProxyDB','Framework/ProxyDB',maxQueueSize) random.seed() self.__defaultRequestLifetime = 300 # 5min self.__defaultTokenLifetime = 86400 * 7 # 1 week self.__defaultTokenMaxUses = 50 self.__vomsRequired = requireVoms self._...
71763bc5d615265855ff68fdb1be8903192a3f1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/71763bc5d615265855ff68fdb1be8903192a3f1b/ProxyDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2583, 58, 25390, 273, 1083, 16, 999, 12062, 3886, 273, 1083, 16, 943, 3183, 1225, 273, 1728, 262, 30, 2383, 16186, 2738, 972, 12, 365, 16, 296, 3886, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2583, 58, 25390, 273, 1083, 16, 999, 12062, 3886, 273, 1083, 16, 943, 3183, 1225, 273, 1728, 262, 30, 2383, 16186, 2738, 972, 12, 365, 16, 296, 3886, 229...
assert len(fulltable(Animal.select(Animal.c.Species.like('%pede%')))) == 2 assert len(fulltable(Animal.select(Animal.c.Species.in_(['Lion', 'Tiger', 'Bear'])))) == 3
assert len(fulltable(Animal.select(Animal.c.Species.like(u'%pede%')))) == 2 assert len(fulltable(Animal.select(Animal.c.Species.in_([u'Lion', u'Tiger', u'Bear'])))) == 3
def fulltable(select): """Iterate over the full result table.""" return [list(row) for row in select.execute().fetchall()]
4d7f279d14ca4dd275de58ba11fe28a28a09dc46 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/4d7f279d14ca4dd275de58ba11fe28a28a09dc46/zoomark.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 2121, 12, 4025, 4672, 3536, 14916, 1879, 326, 1983, 563, 1014, 12123, 327, 306, 1098, 12, 492, 13, 364, 1027, 316, 2027, 18, 8837, 7675, 5754, 454, 1435, 65, 225, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1983, 2121, 12, 4025, 4672, 3536, 14916, 1879, 326, 1983, 563, 1014, 12123, 327, 306, 1098, 12, 492, 13, 364, 1027, 316, 2027, 18, 8837, 7675, 5754, 454, 1435, 65, 225, 2, -100, -100, ...
header += ['\tbool ' + cmdname + '(' + parstr[2:] + ');']
parstr4 += ', ' + tp + ' ' + i[1] if (len(i) > 2): parstr4 += ' = ' + i[2] header += ['\t/// ...'] for i in params: header += ['\t///@param ' + i[1] + ' - ...'] header += ['\t///@returns true if command was successful'] header += ['\tbool ' + cmdname + '(' + parstr4[2:] + ');'] header += ['']
def makeitso(myline, header, header2, header3, cpp, cpp2): mystrings = myline.split() cmdname = mystrings[0] params = [] for i in range(0, (len(mystrings)-1)/2): params += [(mystrings[1+2*i], mystrings[1+2*i+1])] parstr = '' parstr2 = '' parstr3 = '' for i in params: tp = i[0] if tp == 'std::string': tp = 'const ' + tp...
021a02628594d551caff08c7c4c7dd1ad9af0c74 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1597/021a02628594d551caff08c7c4c7dd1ad9af0c74/commandgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 1282, 83, 12, 4811, 1369, 16, 1446, 16, 1446, 22, 16, 1446, 23, 16, 3283, 84, 16, 3283, 84, 22, 4672, 3399, 10219, 273, 3399, 1369, 18, 4939, 1435, 1797, 529, 273, 3399, 10219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1282, 83, 12, 4811, 1369, 16, 1446, 16, 1446, 22, 16, 1446, 23, 16, 3283, 84, 16, 3283, 84, 22, 4672, 3399, 10219, 273, 3399, 1369, 18, 4939, 1435, 1797, 529, 273, 3399, 10219, ...
viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>"
viewRotateMinus90ActionText = \ "<u><b>Rotate View -90</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees "\ "around the vertical axis."\ "</p>"
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their...
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 2888, 2323, 2503, 1528, 1290, 6376, 3829, 16166, 12, 8082, 4672, 3536, 15605, 326, 315, 23801, 1807, 1220, 6, 2809, 977, 358, 1516, 1392, 316, 326, 12901, 21, 2774, 5668, 12748, 87, ...
gdaltest.have_gml_reader = 1
def ogr_georss_init(): try: ds = ogr.Open( 'data/atom_rfc_sample.xml' ) except: ds = None if ds is None: gdaltest.georss_read_support = 0 else: gdaltest.georss_read_support = 1 ds.Destroy() gdaltest.have_gml_reader = 0 try: ds = ogr.Open( 'data/ionic_wfs.gml' ) ds.Destroy() except: pass gdaltest.have_gml_reader = 1 ...
25c4e4822ab149700c3a0dcad4a492387b00ee3f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/25c4e4822ab149700c3a0dcad4a492387b00ee3f/ogr_georss.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 908, 280, 1049, 67, 2738, 13332, 225, 775, 30, 3780, 273, 320, 3197, 18, 3678, 12, 296, 892, 19, 7466, 67, 16784, 67, 6358, 18, 2902, 11, 262, 1335, 30, 3780, 273, 599...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 320, 3197, 67, 908, 280, 1049, 67, 2738, 13332, 225, 775, 30, 3780, 273, 320, 3197, 18, 3678, 12, 296, 892, 19, 7466, 67, 16784, 67, 6358, 18, 2902, 11, 262, 1335, 30, 3780, 273, 599...
if record.full[0] in '+-=.()[]': continue
if record.full[0] in '+-=()[]<>': continue
def buildPatch(self,log,progress,patchFile): """Edits patch file as desired. Will write to log.""" count = {} format = self.choiceValues[self.chosen][0] showStat = '%02d' in format keep = patchFile.getKeeper() codes = getattr(patchFile,'bodyTags','HAGPBFE') head,body,gloves,pipboy,backpack,fancy,accessory = [ x for x i...
0ac6b62db57d61ab86272bebaa0342af7139c85b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/0ac6b62db57d61ab86272bebaa0342af7139c85b/bosh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 1330, 16, 8298, 16, 2272, 812, 4672, 3536, 2671, 1282, 4729, 585, 487, 6049, 18, 9980, 1045, 358, 613, 12123, 1056, 273, 2618, 740, 273, 365, 18, 11569, 1972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 7332, 12, 2890, 16, 1330, 16, 8298, 16, 2272, 812, 4672, 3536, 2671, 1282, 4729, 585, 487, 6049, 18, 9980, 1045, 358, 613, 12123, 1056, 273, 2618, 740, 273, 365, 18, 11569, 1972, ...
else:
idleTextsPeriodInSeconds = state_machine.UpdateStateMachine.INFINITE_PERIOD else: initTextsPeriodInSeconds = state_machine.to_seconds(seconds=20) minTextsPeriodInSeconds = state_machine.to_seconds(seconds=1)
def __init__(self, cookiePath = None, defaults = None): if defaults is None: defaults = self._DEFAULTS else: for key, (quant, unit) in defaults.iteritems(): if quant == 0: defaults[key] = (self._DEFAULTS[key], unit) elif quant < 0: defaults[key] = (state_machine.UpdateStateMachine.INFINITE_PERIOD, unit) self._username ...
072ed9010fad8302874906f9fe8d4c7e5c5a4545 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/072ed9010fad8302874906f9fe8d4c7e5c5a4545/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3878, 743, 273, 599, 16, 3467, 273, 599, 4672, 309, 3467, 353, 599, 30, 3467, 273, 365, 6315, 5280, 55, 12088, 30114, 5027, 17840, 273, 919, 67, 9149, 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, 3878, 743, 273, 599, 16, 3467, 273, 599, 4672, 309, 3467, 353, 599, 30, 3467, 273, 365, 6315, 5280, 55, 12088, 30114, 5027, 17840, 273, 919, 67, 9149, 18...