rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
assert ltrace('ldap', '< initialize() %s.' % self.available)
assert ltrace('ldap', '< initialize(%s)' % self.available)
def initialize(self, enabled=True): """ try to start it without any tests (it should work if it's installed) and become available. If that fails, try to guess a little and help user resolving issue. else, just fail miserably.
b6cd5454ed254d78f6ce9e40393d67f5a4f8a52c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/b6cd5454ed254d78f6ce9e40393d67f5a4f8a52c/ldap_backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 3696, 33, 5510, 4672, 3536, 202, 698, 358, 787, 518, 2887, 1281, 7434, 261, 305, 1410, 1440, 309, 518, 1807, 5876, 13, 471, 12561, 2319, 18, 971, 716, 6684, 16, 775...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 16, 3696, 33, 5510, 4672, 3536, 202, 698, 358, 787, 518, 2887, 1281, 7434, 261, 305, 1410, 1440, 309, 518, 1807, 5876, 13, 471, 12561, 2319, 18, 971, 716, 6684, 16, 775...
def update_section_numbers(self, node, prefix, depth): cur_index = 1
def update_section_numbers(self, node, prefix=(), depth=0): depth += 1 sectnum = 1
def update_section_numbers(self, node, prefix, depth): cur_index = 1 for child in node: if isinstance(child, nodes.section): number_str = "%s%d." % (prefix, cur_index) title = child[0] child['autonum_origtitle'] = copy_and_filter(self.document, title) child['autonum_prefix'] = prefix if isinstance(title[0], nodes.Text)...
e3f923e077187dea1181d53a0ed028dac271f831 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/e3f923e077187dea1181d53a0ed028dac271f831/parts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3464, 67, 13851, 12, 2890, 16, 756, 16, 1633, 33, 9334, 3598, 33, 20, 4672, 3598, 1011, 404, 29140, 2107, 273, 404, 364, 1151, 316, 756, 30, 309, 1549, 12, 3624, 16, 2199, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 3464, 67, 13851, 12, 2890, 16, 756, 16, 1633, 33, 9334, 3598, 33, 20, 4672, 3598, 1011, 404, 29140, 2107, 273, 404, 364, 1151, 316, 756, 30, 309, 1549, 12, 3624, 16, 2199, ...
factorConcentrationsUpdate = [0.0] * self.numFactors
factorConcentrationNew = [0.0] * self.numFactors
def update_factor_concentrations(self, currentState): """Update function of the simulator, calculates the factor concentrations of the next timestep.
c0740bdaa035187eb5e0596d71a0ffb7dfff28a9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1770/c0740bdaa035187eb5e0596d71a0ffb7dfff28a9/translattice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 6812, 67, 11504, 8230, 1012, 12, 2890, 16, 17773, 4672, 3536, 1891, 445, 434, 326, 3142, 11775, 16, 17264, 326, 5578, 20570, 8230, 1012, 434, 326, 1024, 27072, 18, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 6812, 67, 11504, 8230, 1012, 12, 2890, 16, 17773, 4672, 3536, 1891, 445, 434, 326, 3142, 11775, 16, 17264, 326, 5578, 20570, 8230, 1012, 434, 326, 1024, 27072, 18, 2, -100, -10...
pages = self.update_queue.pages()[:amount] for name in pages: self._index_page(request, connection, name, mode='update') self.update_queue.remove([name]) items = self.remove_queue.pages()[:amount] for item in items: assert len(item.split('//')) == 2 pagename, attachment = item.split('//') page = Page(request, pagena...
try: pages = self.update_queue.pages()[:amount] logging.debug("update queue: updating %d pages+attachments in index..." % len(pages)) for name in pages: self._index_page(request, connection, name, mode='update') self.update_queue.remove([name]) items = self.remove_queue.pages()[:amount] logging.debug("remove queue: ...
def _do_queued_updates(self, request, amount=5): """ Assumes that the write lock is acquired """ self.touch() connection = MoinIndexerConnection(self.dir) # do all page updates pages = self.update_queue.pages()[:amount] for name in pages: self._index_page(request, connection, name, mode='update') self.update_queue.remo...
abe71dc364506c67642c0aee33ba275d324b2052 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/888/abe71dc364506c67642c0aee33ba275d324b2052/indexing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 19499, 67, 14703, 12, 2890, 16, 590, 16, 3844, 33, 25, 4672, 3536, 25374, 716, 326, 1045, 2176, 353, 20598, 3536, 365, 18, 14084, 1435, 1459, 273, 490, 885, 20877, 1952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 67, 19499, 67, 14703, 12, 2890, 16, 590, 16, 3844, 33, 25, 4672, 3536, 25374, 716, 326, 1045, 2176, 353, 20598, 3536, 365, 18, 14084, 1435, 1459, 273, 490, 885, 20877, 1952, ...
return list(itertools.chain.from_iterable(test_batches))
return list(itertools.chain(*test_batches))
def create_driver(self, image_path, options): return RecordingTestDriver(self, image_path, options)
1e78ce346805f1c3d4b4039cf7553c7187e4fdc1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/1e78ce346805f1c3d4b4039cf7553c7187e4fdc1/run_webkit_tests_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7407, 12, 2890, 16, 1316, 67, 803, 16, 702, 4672, 327, 868, 4643, 4709, 4668, 12, 2890, 16, 1316, 67, 803, 16, 702, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 7407, 12, 2890, 16, 1316, 67, 803, 16, 702, 4672, 327, 868, 4643, 4709, 4668, 12, 2890, 16, 1316, 67, 803, 16, 702, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return None
def qparents(self, repo, rev=None): if rev is None: (p1, p2) = repo.dirstate.parents() if p2 == revlog.nullid: return p1 if len(self.applied) == 0: return None (top, patch) = self.applied[-1].split(':') top = revlog.bin(top) return top pp = repo.changelog.parents(rev) if pp[1] != revlog.nullid: arevs = [ x.split(':')[0...
bdddbe3fb926942ba6a38abae9971591be721354 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/bdddbe3fb926942ba6a38abae9971591be721354/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 12606, 12, 2890, 16, 3538, 16, 5588, 33, 7036, 4672, 309, 5588, 353, 599, 30, 261, 84, 21, 16, 293, 22, 13, 273, 3538, 18, 72, 920, 340, 18, 12606, 1435, 309, 293, 22, 422, 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, 1043, 12606, 12, 2890, 16, 3538, 16, 5588, 33, 7036, 4672, 309, 5588, 353, 599, 30, 261, 84, 21, 16, 293, 22, 13, 273, 3538, 18, 72, 920, 340, 18, 12606, 1435, 309, 293, 22, 422, 5...
def _ExtractAndAddNewBaselines(self, archive_file, rebaselining_tests):
def _ExtractAndAddNewBaselines(self, archive_file):
def _ExtractAndAddNewBaselines(self, archive_file, rebaselining_tests): """Extract new baselines from archive and add them to SVN repository.
f88af6d54c48237ad0edb1b3bd6a6d27d9f30401 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/f88af6d54c48237ad0edb1b3bd6a6d27d9f30401/rebaseline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4976, 1876, 986, 1908, 11494, 14567, 12, 2890, 16, 5052, 67, 768, 4672, 3536, 4976, 394, 2580, 14567, 628, 5052, 471, 527, 2182, 358, 29537, 50, 3352, 18, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 4976, 1876, 986, 1908, 11494, 14567, 12, 2890, 16, 5052, 67, 768, 4672, 3536, 4976, 394, 2580, 14567, 628, 5052, 471, 527, 2182, 358, 29537, 50, 3352, 18, 2, -100, -100, -100, -100,...
rewrite_map_file.write("%s %s\n" % (ob_url.path, new_url))
rewrite_map_file.write("%s %s\n" % (unicode_safe(ob_url.path), unicode_safe(new_url)))
def _post_process(self, rewrite_map_file): posts = list(Link._query(Link.c.ob_permalink != None, data = True))
9b5e22b8e481f9aeec24b258719d5d322378595a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6723/9b5e22b8e481f9aeec24b258719d5d322378595a/importer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2767, 67, 2567, 12, 2890, 16, 10738, 67, 1458, 67, 768, 4672, 10775, 273, 666, 12, 2098, 6315, 2271, 12, 2098, 18, 71, 18, 947, 67, 30898, 480, 599, 16, 501, 273, 1053, 3719, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2767, 67, 2567, 12, 2890, 16, 10738, 67, 1458, 67, 768, 4672, 10775, 273, 666, 12, 2098, 6315, 2271, 12, 2098, 18, 71, 18, 947, 67, 30898, 480, 599, 16, 501, 273, 1053, 3719, 2,...
tkw_1 > llin register 20 dl secret keyword tester tkw_1 < Hello ktester! You are now registered as Distribution point team leader at KANO State.
tkw_1 > llin register 20 dl keyword tester tkw_1 < Hello keyword! You are now registered as Distribution point team leader at KANO State.
def testScript(self): a = """ 8005551219 > llin register 20 dl secret crummy user 8005551219 < Hello cuser! You are now registered as Distribution point team leader at KANO State. """ self.runScript(a) # this should succeed because we just created him Reporter.objects.get(alias="cuser") dict = {"alias":"fail"} # make s...
f47a45ce40c2d07eef6e7d34514c9541ea3d902b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/f47a45ce40c2d07eef6e7d34514c9541ea3d902b/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3651, 12, 2890, 4672, 279, 273, 3536, 1725, 713, 2539, 13757, 3657, 405, 6579, 267, 1744, 4200, 8910, 4001, 4422, 379, 4811, 729, 1725, 713, 2539, 13757, 3657, 411, 20889, 276, 1355,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3651, 12, 2890, 4672, 279, 273, 3536, 1725, 713, 2539, 13757, 3657, 405, 6579, 267, 1744, 4200, 8910, 4001, 4422, 379, 4811, 729, 1725, 713, 2539, 13757, 3657, 411, 20889, 276, 1355,...
message = _("Shared files database seems to be corrupted, rescan your shares") print message if self.frame: self.frame.logMessage(message)
log.addwarning(_("Shared files database seems to be corrupted, rescan your shares"))
def readConfig(self): self.config_lock.acquire() path, fn = os.path.split(self.filename) try: if not os.path.isdir(path): os.makedirs(path) except OSError, msg: message = "Can't create directory '%s', reported error: %s" % (path, msg) print message if self.frame: self.frame.logMessage(message) for i in self.parser.sec...
d03b1060449a904912df2e17c0cce7abc6348d8f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/d03b1060449a904912df2e17c0cce7abc6348d8f/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 809, 12, 2890, 4672, 365, 18, 1425, 67, 739, 18, 1077, 1039, 1435, 589, 16, 2295, 273, 1140, 18, 803, 18, 4939, 12, 2890, 18, 3459, 13, 775, 30, 309, 486, 1140, 18, 803, 18, 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, 855, 809, 12, 2890, 4672, 365, 18, 1425, 67, 739, 18, 1077, 1039, 1435, 589, 16, 2295, 273, 1140, 18, 803, 18, 4939, 12, 2890, 18, 3459, 13, 775, 30, 309, 486, 1140, 18, 803, 18, 2...
i = verts.index(i) j = verts.index(j)
i = new_indices[i] j = new_indices[j]
def weighted_adjacency_matrix(self, sparse=True, boundary_first=False): """ Returns the weighted adjacency matrix of the graph. Each vertex is represented by its position in the list returned by the vertices() function. EXAMPLES: sage: G = Graph(sparse=True, weighted=True) sage: G.add_edges([(0,1,1),(1,2,2),(0,2,3),(0...
99995f599351d611bce09b75fa2125fed0060008 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/99995f599351d611bce09b75fa2125fed0060008/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13747, 67, 13829, 1077, 2075, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 13747, 25220, 3148, 434, 326, 2667, 18, 8315, 5253, 353, 10584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13747, 67, 13829, 1077, 2075, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 16, 7679, 67, 3645, 33, 8381, 4672, 3536, 2860, 326, 13747, 25220, 3148, 434, 326, 2667, 18, 8315, 5253, 353, 10584,...
e = Echeance.objects.get(utilisateur=self.utilisateur,groupe=self.groupe,
e = Echeance.objects.get(utilisateur=self.utilisateur, groupe=self.groupe,
def save(self, force_insert=False, force_update=False): if not self.groupe: u = self.utilisateur self.groupe = u.groupe if not self.cours: # recherche du cours à partir du groupe et du module for c in self.groupe.cours_set.all(): if self.module in [mc.module for mc in c.modulecours_set.all()]: self.cours = c break # on...
6286fbe70a49e03f78a7f261d4bed0b0b5586341 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11552/6286fbe70a49e03f78a7f261d4bed0b0b5586341/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 2944, 67, 6387, 33, 8381, 16, 2944, 67, 2725, 33, 8381, 4672, 309, 486, 365, 18, 75, 15995, 30, 582, 273, 365, 18, 1367, 24954, 365, 18, 75, 15995, 273, 582, 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, 1923, 12, 2890, 16, 2944, 67, 6387, 33, 8381, 16, 2944, 67, 2725, 33, 8381, 4672, 309, 486, 365, 18, 75, 15995, 30, 582, 273, 365, 18, 1367, 24954, 365, 18, 75, 15995, 273, 582, 18, ...
dbg('ConfigBase::get_item: found in profile %s (%s)' % ( profile, self.profiles[profile][key]))
dbg('ConfigBase::get_item: %s found in profile %s: %s' % ( key, profile, self.profiles[profile][key]))
def get_item(self, key, profile='default', plugin=None): """Look up a configuration item""" dbg('ConfigBase::get_item: %s:%s' % (profile, key)) if self.global_config.has_key(key): dbg('ConfigBase::get_item: found in globals: %s' % self.global_config[key]) return(self.global_config[key]) elif self.profiles[profile].has_...
3d72c7b55895402710a8d79e0e73242d626c335d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/3d72c7b55895402710a8d79e0e73242d626c335d/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 12, 2890, 16, 498, 16, 3042, 2218, 1886, 2187, 1909, 33, 7036, 4672, 3536, 9794, 731, 279, 1664, 761, 8395, 28966, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 738, 87, 531...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1726, 12, 2890, 16, 498, 16, 3042, 2218, 1886, 2187, 1909, 33, 7036, 4672, 3536, 9794, 731, 279, 1664, 761, 8395, 28966, 2668, 809, 2171, 2866, 588, 67, 1726, 30, 738, 87, 531...
for name, pref in items:
items_wanted = [] for sortkey, name_junk, pref in items:
def debug_prefs_menuspec( atom_debug): """ Return a list of zero or more menu items or submenus (as menu_spec tuples or lists) usable to see and edit settings of all active debug prefs (for atom_debug true) or all the ones that have their non_debug flag set (for atom_debug false). """ from utilities import debug_flags ...
ce3d58e6232fc65a976b68127d0cbd43e6ae2302 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ce3d58e6232fc65a976b68127d0cbd43e6ae2302/debug_prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 67, 1484, 2556, 67, 26065, 705, 12, 3179, 67, 4148, 4672, 3536, 2000, 279, 666, 434, 3634, 578, 1898, 3824, 1516, 578, 720, 26065, 261, 345, 3824, 67, 2793, 10384, 578, 6035, 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, 1198, 67, 1484, 2556, 67, 26065, 705, 12, 3179, 67, 4148, 4672, 3536, 2000, 279, 666, 434, 3634, 578, 1898, 3824, 1516, 578, 720, 26065, 261, 345, 3824, 67, 2793, 10384, 578, 6035, 13, ...
self.manager.disconnect_completed(self)
self.manager.disconnect_completed()
def disconnect(self, reason): _moduleLogger.info("Disconnecting")
e17631d67d280caf7475a66a06794545ae0e3743 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/e17631d67d280caf7475a66a06794545ae0e3743/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9479, 12, 2890, 16, 3971, 4672, 389, 2978, 3328, 18, 1376, 2932, 18895, 310, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9479, 12, 2890, 16, 3971, 4672, 389, 2978, 3328, 18, 1376, 2932, 18895, 310, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return ip_from_response(ip), ip_from_response(mask)
mac = fcntl.ioctl(s.fileno(), SIOCGIFHWADDR, ifname) return ip_from_response(ip), ip_from_response(mask), mac_from_response(mac)
def ip_from_response(resp): return socket.inet_ntoa(resp[20:24])
59e8e5335caeeb1207878df14ff73937795e46c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10054/59e8e5335caeeb1207878df14ff73937795e46c4/dhcpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2359, 67, 2080, 67, 2740, 12, 12243, 4672, 327, 2987, 18, 23864, 67, 496, 11867, 12, 12243, 63, 3462, 30, 3247, 5717, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2359, 67, 2080, 67, 2740, 12, 12243, 4672, 327, 2987, 18, 23864, 67, 496, 11867, 12, 12243, 63, 3462, 30, 3247, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.wfile.write('ERR -1 missing path.')
self.wfile.write('ERR 550 missing path.')
def handle(self): """The protocol:
ecb646663de852068763b5a732b2310a44383c87 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9481/ecb646663de852068763b5a732b2310a44383c87/pyunoserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 1986, 1771, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 4672, 3536, 1986, 1771, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
cert.set_pubkey(pkey) cert.set_pubkey(cert.get_pubkey())
cert.set_pubkey(pkey)
def check_mkcacert(self): req, pk = self.mkreq(512, ca=1) pkey = req.get_pubkey() sub = req.get_subject() cert = X509.X509() cert.set_serial_number(1) cert.set_version(2) cert.set_subject(sub) t = long(time.time()) + time.timezone now = ASN1.ASN1_UTCTIME() now.set_time(t) nowPlusYear = ASN1.ASN1_UTCTIME() nowPlusYear.s...
66490ba9b17750ebae72c297924555f513ff8602 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/66490ba9b17750ebae72c297924555f513ff8602/test_x509.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 24816, 71, 1077, 1051, 12, 2890, 4672, 1111, 16, 2365, 273, 365, 18, 24816, 3658, 12, 13757, 16, 3474, 33, 21, 13, 19291, 273, 1111, 18, 588, 67, 23428, 1435, 720, 273, 1111, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24816, 71, 1077, 1051, 12, 2890, 4672, 1111, 16, 2365, 273, 365, 18, 24816, 3658, 12, 13757, 16, 3474, 33, 21, 13, 19291, 273, 1111, 18, 588, 67, 23428, 1435, 720, 273, 1111, ...
})
}, context=context)
def write(self, cr, uid, ids, vals, context=None): """Overrides orm write method """ if not context: context={} res = super(account_invoice_line, self).write(cr, uid, ids, vals, context=context) member_line_obj = self.pool.get('membership.membership_line') for line in self.browse(cr, uid, ids): if line.invoice_id.type ...
2a4c1e50cb967d4599507ed63424b4f85c7753ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/2a4c1e50cb967d4599507ed63424b4f85c7753ea/membership.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 13084, 13969, 1045, 707, 3536, 309, 486, 819, 30, 819, 12938, 400, 273, 2240, 12, 4631, 67, 16119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 5773, 16, 819, 33, 7036, 4672, 3536, 13084, 13969, 1045, 707, 3536, 309, 486, 819, 30, 819, 12938, 400, 273, 2240, 12, 4631, 67, 16119...
cursor.close() connection.close()
cursor.close() connection.close()
def update_device_database_collections(self, booklists, collections_attributes):
ad8911b65f3e8a940abc5b01e9dc878ce0f616c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/ad8911b65f3e8a940abc5b01e9dc878ce0f616c3/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 5964, 67, 6231, 67, 19246, 12, 2890, 16, 6978, 9772, 16, 6980, 67, 4350, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 5964, 67, 6231, 67, 19246, 12, 2890, 16, 6978, 9772, 16, 6980, 67, 4350, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.bbfile = name
self.bbfile = os.path.abspath( name )
def __init__(self,cache,name,clean,parent): """ Construct a persistent data instance """ #Initialize the dictionary DataSmart.__init__(self)
5522675eb21f724bb43de715ff6e23840dac8553 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/5522675eb21f724bb43de715ff6e23840dac8553/data_smart.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2493, 16, 529, 16, 6200, 16, 2938, 4672, 3536, 14291, 279, 9195, 501, 791, 3536, 468, 7520, 326, 3880, 1910, 23824, 16186, 2738, 972, 12, 2890, 13, 2, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2493, 16, 529, 16, 6200, 16, 2938, 4672, 3536, 14291, 279, 9195, 501, 791, 3536, 468, 7520, 326, 3880, 1910, 23824, 16186, 2738, 972, 12, 2890, 13, 2, -1...
sage: C.cliques_containing_node(cliques=E)
sage: C.cliques_containing_vertex(cliques=E)
def cliques_containing_node(self, nodes=None, cliques=None, with_labels=False): """ Returns the cliques containing each node, represented as a list of lists. (Returns a single list if only one input node).
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 29896, 67, 1213, 3280, 67, 2159, 12, 2890, 16, 2199, 33, 7036, 16, 4942, 29896, 33, 7036, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 4942, 29896, 4191, 1517, 756, 16, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4942, 29896, 67, 1213, 3280, 67, 2159, 12, 2890, 16, 2199, 33, 7036, 16, 4942, 29896, 33, 7036, 16, 598, 67, 5336, 33, 8381, 4672, 3536, 2860, 326, 4942, 29896, 4191, 1517, 756, 16, 10...
print "new metadata:", metadata
def getMetadata(self, troveList, label, cacheFile = None, cacheOnly = False, saveOnly = False): metadata = {} if cacheFile and not saveOnly: try: print "opening cache" cacheFp = open(cacheFile, "r") cache = pickle.load(cacheFp) cacheFp.close() except IOError, EOFError: print "got an error, returning" if cacheOnly: retu...
08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/08f4b50b7b59c04afbfa7e1bc89323cb1d41ea4a/conaryclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 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, 11159, 12, 2890, 16, 23432, 537, 682, 16, 1433, 16, 18748, 273, 599, 16, 1247, 3386, 273, 1083, 16, 1923, 3386, 273, 1083, 4672, 1982, 273, 2618, 309, 18748, 471, 486, 1923, 3386, 30, ...
def unlock(self):
def unlock(self, interactive=1):
def unlock(self): """Remove webdav lock from edited zope object""" if not hasattr(self, 'lock_token'): return 0 headers = {'Lock-Token':self.lock_token} response = self.zopeRequest('UNLOCK', headers) if response.status / 100 != 2: # Captain, she's still locked! if self.askRetryAfterError(response, 'Unlock request fai...
5d6e99ea99a901d01f29839fea62036ca53ce621 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/5d6e99ea99a901d01f29839fea62036ca53ce621/zopeedit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7186, 12, 2890, 16, 12625, 33, 21, 4672, 3536, 3288, 3311, 20752, 2176, 628, 18532, 998, 1306, 733, 8395, 309, 486, 3859, 12, 2890, 16, 296, 739, 67, 2316, 11, 4672, 327, 374, 225, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7186, 12, 2890, 16, 12625, 33, 21, 4672, 3536, 3288, 3311, 20752, 2176, 628, 18532, 998, 1306, 733, 8395, 309, 486, 3859, 12, 2890, 16, 296, 739, 67, 2316, 11, 4672, 327, 374, 225, 160...
def delBanIP(self, ip):
def delBanIP(self, ip, debug):
def delBanIP(self, ip): if self.inBanList(ip): del self.banList[ip] self.executeCmd(self.unBanIP(ip)) else: if self.verbose: print ip, "not in ban list"
e34580a805945a2b65b28006fe1e21f1a72ee679 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12786/e34580a805945a2b65b28006fe1e21f1a72ee679/firewall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 38, 304, 2579, 12, 2890, 16, 2359, 16, 1198, 4672, 309, 365, 18, 267, 38, 304, 682, 12, 625, 4672, 1464, 365, 18, 21515, 682, 63, 625, 65, 365, 18, 8837, 5931, 12, 2890, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 38, 304, 2579, 12, 2890, 16, 2359, 16, 1198, 4672, 309, 365, 18, 267, 38, 304, 682, 12, 625, 4672, 1464, 365, 18, 21515, 682, 63, 625, 65, 365, 18, 8837, 5931, 12, 2890, 18, ...
PsynthLabelString = 'Psynth'
PsynthLabelString = 'Psynth: %+.3f' % self.dicts[self.stPt]['Pres']
def drawPsynthLabel(self): if not self.dicts[self.stPt].has_key('Psynth'): return PsynthLabelString = 'Psynth' self.PsynthLabel = self.axs[0].text(self.dicts[self.stPt]['Psynth'], 1 - 0.08 * len(self.axs), ' ' + PsynthLabelString, transform = self.trans[0], color=self.dictPhaseColors['Psynth'])
476f8b2c81f6c224c717d23b033a7c4cd956fbee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/476f8b2c81f6c224c717d23b033a7c4cd956fbee/pickingGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 52, 11982, 451, 2224, 12, 2890, 4672, 309, 486, 365, 18, 16287, 63, 2890, 18, 334, 16484, 8009, 5332, 67, 856, 2668, 52, 11982, 451, 11, 4672, 327, 453, 11982, 451, 2224, 780, 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, 3724, 52, 11982, 451, 2224, 12, 2890, 4672, 309, 486, 365, 18, 16287, 63, 2890, 18, 334, 16484, 8009, 5332, 67, 856, 2668, 52, 11982, 451, 11, 4672, 327, 453, 11982, 451, 2224, 780, 27...
def readline(self):
def readline(self, size=None):
def readline(self): return self._do_read(self.rfile.readline)
b0854e8ad58f20cc5947e8bec3b51c7075acce45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10423/b0854e8ad58f20cc5947e8bec3b51c7075acce45/pywsgi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12023, 12, 2890, 16, 963, 33, 7036, 4672, 327, 365, 6315, 2896, 67, 896, 12, 2890, 18, 86, 768, 18, 896, 1369, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12023, 12, 2890, 16, 963, 33, 7036, 4672, 327, 365, 6315, 2896, 67, 896, 12, 2890, 18, 86, 768, 18, 896, 1369, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.roomsmodel = gtk.ListStore(str, str, int, int)
self.roomsmodel = gtk.ListStore(str, int, int)
def __init__(self, frame, ChatNotebook): self.frame = frame self.joinedrooms = {} self.autojoin = 1 self.rooms = [] self.privaterooms = {} self.OtherPrivateRooms = self.frame.np.config.sections["private_rooms"]["membership"] self.roomsmodel = gtk.ListStore(str, str, int, int) frame.roomlist.RoomsList.set_model(self.roo...
3461deb06acecf71d609bd51524fb250228a39af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/3461deb06acecf71d609bd51524fb250228a39af/chatrooms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2623, 16, 16903, 19751, 4672, 365, 18, 3789, 273, 2623, 365, 18, 5701, 329, 13924, 87, 273, 2618, 365, 18, 6079, 5701, 273, 404, 365, 18, 13924, 87, 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, 1001, 2738, 972, 12, 2890, 16, 2623, 16, 16903, 19751, 4672, 365, 18, 3789, 273, 2623, 365, 18, 5701, 329, 13924, 87, 273, 2618, 365, 18, 6079, 5701, 273, 404, 365, 18, 13924, 87, 273,...
class ForkingHTTPServer(SocketServer.ForkingMixIn, StoppableHTTPServer): """This is a specialization of of StoppableHTTPServer which serves each request in a separate process""" pass class ForkingHTTPSServer(SocketServer.ForkingMixIn, HTTPSServer): """This is a specialization of of HTTPSServer which serves each reque...
def handshake(self, tlsConnection): """Creates the SSL connection.""" try: tlsConnection.handshakeServer(certChain=self.cert_chain, privateKey=self.private_key, sessionCache=self.session_cache) tlsConnection.ignoreAbruptClose = True return True except tlslite.api.TLSError, error: print "Handshake failure:", str(error) ...
6c95057f238b96c6d89e366c5eb21ed532a92d02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/6c95057f238b96c6d89e366c5eb21ed532a92d02/testserver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11942, 12, 2890, 16, 6871, 1952, 4672, 3536, 2729, 326, 7419, 1459, 12123, 775, 30, 6871, 1952, 18, 2349, 7478, 2081, 12, 7593, 3893, 33, 2890, 18, 7593, 67, 5639, 16, 11896, 33, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11942, 12, 2890, 16, 6871, 1952, 4672, 3536, 2729, 326, 7419, 1459, 12123, 775, 30, 6871, 1952, 18, 2349, 7478, 2081, 12, 7593, 3893, 33, 2890, 18, 7593, 67, 5639, 16, 11896, 33, 2890, ...
o = utils.Objectify(copy.deepcopy(d))
o = utils.objectify(copy.deepcopy(d))
def test_dict(self): d = {'hello': 'world', 'thanks': 'mom'} o = utils.Objectify(copy.deepcopy(d)) self.assertEqual(len(o), len(d)) for key, value in d.items(): self.assertEqual(o[key], value) self.assertEqual(getattr(o, key), value) self.assertEqual(unicode(o), unicode(d)) self.assertEqual(str(o), str(d))
4b4f07f4bf9d81ab1829ccdf6562dc95d75ab7d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12635/4b4f07f4bf9d81ab1829ccdf6562dc95d75ab7d4/test_objectify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1576, 12, 2890, 4672, 302, 273, 13666, 23711, 4278, 296, 18179, 2187, 296, 451, 19965, 4278, 296, 81, 362, 11, 97, 320, 273, 2990, 18, 1612, 1164, 12, 3530, 18, 16589, 3530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1576, 12, 2890, 4672, 302, 273, 13666, 23711, 4278, 296, 18179, 2187, 296, 451, 19965, 4278, 296, 81, 362, 11, 97, 320, 273, 2990, 18, 1612, 1164, 12, 3530, 18, 16589, 3530, ...
library_dirs=None):
library_dirs=None, build_info=None):
def link_shared_object (self, objects, output_filename, libraries=None, library_dirs=None):
de6a1e2939e1379adf884ed5fd5b6f676885d387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/de6a1e2939e1379adf884ed5fd5b6f676885d387/unixccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 4672, 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, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
rel_name = core_state["link_list"][core_state["selected_link"]] real_filename = os.path.join (base_path, rel_name) os.system (os.getenv ("EDITOR") + " \"" + real_filename + "\"")
dest = os.path.join (core_state["curr_base_path"], core_state["link_list"][core_state["selected_link"]]) os.system (os.getenv ("EDITOR") + " \"" + dest + "\"")
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Kee...
3d935dc1773bd71731a9550b77a62ca6c32a7bb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/3d935dc1773bd71731a9550b77a62ca6c32a7bb4/hylt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4855, 5618, 6376, 261, 3901, 67, 9252, 16, 5023, 67, 3459, 4672, 3536, 1986, 2922, 14881, 5618, 14176, 18, 225, 8398, 326, 2774, 810, 471, 2562, 14075, 16, 328, 6968, 434, 10313, 16, 471...
if size:
"""High level interface for reading from the socket, includes a buffering scheme that works well for receiving fixed size messages. """ if size is None: received = self.readBuffer self.readBuffer = '' try: while 1: received += self.recv(bufferSize) except Errors.ConnectionLost: pass return received elif size != 0:
def read(self, size=None, bufferSize=64*1024): if size: # Read the amount specified, first from our # local read buffer then from the socket itself. # If we can't read the complete packet, return # None and keep the partial packet buffered. received = self.readBuffer[:size] while len(received) < size: chunk = self.sock...
5ec5176a26cc188e3bf773bf903bbc68efe95421 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/5ec5176a26cc188e3bf773bf903bbc68efe95421/Network.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 7036, 16, 16939, 33, 1105, 14, 2163, 3247, 4672, 3536, 8573, 1801, 1560, 364, 6453, 628, 326, 2987, 16, 6104, 279, 25056, 4355, 716, 6330, 5492, 364, 15847, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 7036, 16, 16939, 33, 1105, 14, 2163, 3247, 4672, 3536, 8573, 1801, 1560, 364, 6453, 628, 326, 2987, 16, 6104, 279, 25056, 4355, 716, 6330, 5492, 364, 15847, ...
os.rename(os.path.join(getTempPath(), 'mythburn.iso'), savefilename)
try: os.rename(os.path.join(getTempPath(), 'mythburn.iso'), savefilename) except: f1 = open(os.path.join(getTempPath(), 'mythburn.iso'), 'rb') f2 = open(savefilename, 'wb') data = f1.read(1024 * 1024) while data: f2.write(data) data = f1.read(1024 * 1024) f1.close() f2.close() os.unlink(os.path.join(getTempPath(), 'myt...
def processJob(job): """Starts processing a MythBurn job, expects XML nodes to be passed as input.""" global wantIntro, wantMainMenu, wantChapterMenu, wantDetailsPage global themeDOM, themeName, themeFonts media=job.getElementsByTagName("media") if media.length==1: themeName=job.attributes["theme"].value #Check the...
e93b00afab0c98a2f86707d4a1eca7836ee2bc21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/e93b00afab0c98a2f86707d4a1eca7836ee2bc21/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 2278, 12, 4688, 4672, 3536, 11203, 4929, 279, 8005, 451, 38, 321, 1719, 16, 10999, 3167, 2199, 358, 506, 2275, 487, 810, 12123, 2552, 2545, 1702, 303, 16, 2545, 6376, 4599, 16, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2278, 12, 4688, 4672, 3536, 11203, 4929, 279, 8005, 451, 38, 321, 1719, 16, 10999, 3167, 2199, 358, 506, 2275, 487, 810, 12123, 2552, 2545, 1702, 303, 16, 2545, 6376, 4599, 16, 254...
glScale(-1, 1, 1)
glScalef(-1, 1, 1)
def render(self, visibility, song, pos, controls): glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) glEnable(GL_COLOR_MATERIAL) if self.leftyMode: glScale(-1, 1, 1)
fa339671f28c326642d0fb4da0990cde7c0ab8f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7946/fa339671f28c326642d0fb4da0990cde7c0ab8f4/Guitar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 9478, 16, 17180, 16, 949, 16, 11022, 4672, 5118, 8317, 12, 11261, 67, 38, 900, 2908, 13, 5118, 4802, 409, 2622, 12, 11261, 67, 28413, 67, 26313, 16, 10252, 67, 5998...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 9478, 16, 17180, 16, 949, 16, 11022, 4672, 5118, 8317, 12, 11261, 67, 38, 900, 2908, 13, 5118, 4802, 409, 2622, 12, 11261, 67, 28413, 67, 26313, 16, 10252, 67, 5998...
% (targ_varname, string.join(objects), string.join(deps),
% (targ_varname, string.join(objects + deps), add_deps,
def main(fname, oname=None, skip_depends=0): parser = ConfigParser.ConfigParser(_cfg_defaults) parser.read(fname) if oname is None: oname = os.path.splitext(os.path.basename(fname))[0] + '-outputs.mk' ofile = open(oname, 'w') ofile.write('# DO NOT EDIT -- AUTOMATICALLY GENERATED\n\n') errors = 0 targets = { } groups...
5e33dfc7be98134bfb187ad0c78d8b958e93cfda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6036/5e33dfc7be98134bfb187ad0c78d8b958e93cfda/gen-make.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 12749, 16, 603, 339, 33, 7036, 16, 2488, 67, 27360, 33, 20, 4672, 2082, 273, 25076, 18, 809, 2678, 24899, 7066, 67, 7606, 13, 2082, 18, 896, 12, 12749, 13, 225, 309, 603, 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, 2774, 12, 12749, 16, 603, 339, 33, 7036, 16, 2488, 67, 27360, 33, 20, 4672, 2082, 273, 25076, 18, 809, 2678, 24899, 7066, 67, 7606, 13, 2082, 18, 896, 12, 12749, 13, 225, 309, 603, 3...
self.assert_(isinstance(bi[0], int))
self.assert_(isinstance(bi[0], (int, long)))
def test_buffer_info(self): a = array.array(self.typecode, self.example) self.assertRaises(TypeError, a.buffer_info, 42) bi = a.buffer_info() self.assert_(isinstance(bi, tuple)) self.assertEqual(len(bi), 2) self.assert_(isinstance(bi[0], int)) self.assert_(isinstance(bi[1], int)) self.assertEqual(bi[1], len(a))
9144d71eb4003c06cefbe02088506d0b39af472c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9144d71eb4003c06cefbe02088506d0b39af472c/test_array.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 67, 1376, 12, 2890, 4672, 279, 273, 526, 18, 1126, 12, 2890, 18, 723, 710, 16, 365, 18, 8236, 13, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 279, 18, 4106, 67, 1376,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4106, 67, 1376, 12, 2890, 4672, 279, 273, 526, 18, 1126, 12, 2890, 18, 723, 710, 16, 365, 18, 8236, 13, 365, 18, 11231, 12649, 6141, 12, 19030, 16, 279, 18, 4106, 67, 1376,...
if _MS_WINDOWS:
if _WIN32:
def dlsym(handle, name): res = rwin32.GetProcAddress(handle, name) if not res: raise KeyError(name) # XXX rffi.cast here... return res
8072df862014c45b286bcb0b01309c61909a5083 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6934/8072df862014c45b286bcb0b01309c61909a5083/libffi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 3251, 2942, 12, 4110, 16, 508, 4672, 400, 273, 7985, 267, 1578, 18, 967, 15417, 1887, 12, 4110, 16, 508, 13, 309, 486, 400, 30, 1002, 4999, 12, 529, 13, 468, 11329, 436, 1403, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 3251, 2942, 12, 4110, 16, 508, 4672, 400, 273, 7985, 267, 1578, 18, 967, 15417, 1887, 12, 4110, 16, 508, 13, 309, 486, 400, 30, 1002, 4999, 12, 529, 13, 468, 11329, 436, 1403, 7...
RGBAlist=['Red','Green','Blue','Alpha']
RGBAlist = ['Red','Green','Blue','Alpha']
def export_cb(self,*args): ipfile=self.frame_dict['Files'].get('Input') opfile=self.frame_dict['Files'].get('Output') if os.path.isfile(opfile): resp=GtkExtra.message_box('Confirmation',opfile + ' exists. Overwrite?',('Yes','No')) if resp == 'No': return elif len(opfile) == 0: gvutils.error('No output filename entered...
18bebfddf000a5af98d1ab83e4246e700756e2a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11090/18bebfddf000a5af98d1ab83e4246e700756e2a4/Tool_Export.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 7358, 12, 2890, 16, 14, 1968, 4672, 2359, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29489, 588, 2668, 1210, 6134, 1061, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 7358, 12, 2890, 16, 14, 1968, 4672, 2359, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29489, 588, 2668, 1210, 6134, 1061, 768, 33, 2890, 18, 3789, 67, 1576, 3292, 2697, 29...
self.default = None
self.default_address = None
def __init__(self, hatari, icon): self.hatari = hatari self.address = None self.default = None self.dumpmode = self._DISASM self.no_destroy = True self.window = self.create_ui("Hatari Debug UI", icon) self.dbg_out_file = self.hatari.open_debug_output()
52c802198824c1426f266f7e4f4294735167c5e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/52c802198824c1426f266f7e4f4294735167c5e9/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 366, 8761, 77, 16, 4126, 4672, 365, 18, 76, 8761, 77, 273, 366, 8761, 77, 365, 18, 2867, 273, 599, 365, 18, 1886, 67, 2867, 273, 599, 365, 18, 8481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 366, 8761, 77, 16, 4126, 4672, 365, 18, 76, 8761, 77, 273, 366, 8761, 77, 365, 18, 2867, 273, 599, 365, 18, 1886, 67, 2867, 273, 599, 365, 18, 8481, ...
code[tail] = len(code) - tail
code[tail] = _len(code) - tail
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
99965c47f74c2ff93d6757a9e0ee25d545898b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/99965c47f74c2ff93d6757a9e0ee25d545898b7b/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
def query(self, ignored):
def query(self, *ignored):
def query(self, ignored):
db1317055bce387420c079f11bdd78e9aa619a43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/db1317055bce387420c079f11bdd78e9aa619a43/DT_InSV.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 5455, 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, ...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 12, 2890, 16, 5455, 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...
gDataStoreClient.addRegister(oDataOperation)
gDataStoreClient.addRegister( oDataOperation )
def putAndRegister(self,lfn,file,diracSE,guid=None,path=None,checksum=None,catalog=None): """ Put a local file to a Storage Element and register in the File Catalogues
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1876, 3996, 12, 2890, 16, 80, 4293, 16, 768, 16, 3211, 8836, 1090, 16, 14066, 33, 7036, 16, 803, 33, 7036, 16, 15149, 33, 7036, 16, 7199, 33, 7036, 4672, 3536, 4399, 279, 1191, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1378, 1876, 3996, 12, 2890, 16, 80, 4293, 16, 768, 16, 3211, 8836, 1090, 16, 14066, 33, 7036, 16, 803, 33, 7036, 16, 15149, 33, 7036, 16, 7199, 33, 7036, 4672, 3536, 4399, 279, 1191, ...
ps.dumpAsDot("turn%d.dot" % turn)
def testPredictSplits7(self): print "\ntest 7 begins" ps = PredictSplits("Gr", "Gr08", ['Titan', 'Angel', 'Gargoyle', 'Gargoyle', 'Centaur', 'Centaur', 'Ogre', 'Ogre']) ps.printLeaves()
29f105858f8a8c5d94f98471fb58ccd85ebaa865 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3755/29f105858f8a8c5d94f98471fb58ccd85ebaa865/test_predictsplits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 21362, 16582, 27, 12, 2890, 4672, 1172, 1548, 496, 395, 2371, 17874, 6, 4250, 273, 19166, 933, 16582, 2932, 20799, 3113, 315, 20799, 6840, 3113, 10228, 56, 305, 304, 2187, 296, 22757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21362, 16582, 27, 12, 2890, 4672, 1172, 1548, 496, 395, 2371, 17874, 6, 4250, 273, 19166, 933, 16582, 2932, 20799, 3113, 315, 20799, 6840, 3113, 10228, 56, 305, 304, 2187, 296, 22757...
(0, 4)
(0, 2)
def test_testfile(): r"""
b1a9f2772ba21f268a8164908714e5a106be50d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b1a9f2772ba21f268a8164908714e5a106be50d1/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3813, 768, 13332, 436, 8395, 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, 1842, 67, 3813, 768, 13332, 436, 8395, 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, -1...
def IncrementTickCount(self):
def Tick(self, pc):
def IncrementTickCount(self): self.tick_count += 1
a69811607c4d1676a9b3e11ccda413ce99fc5780 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6651/a69811607c4d1676a9b3e11ccda413ce99fc5780/tickprocessor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13588, 12, 2890, 16, 6125, 4672, 365, 18, 6470, 67, 1883, 1011, 404, 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, 13588, 12, 2890, 16, 6125, 4672, 365, 18, 6470, 67, 1883, 1011, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
lsctables.SnglInspiralTable.next_id = _mangled_next_id
lsctables.SnglInspiralTable.next_id = lsctables.SnglInspiralID_old(0)
def ReadSnglInspiralFromFiles(fileList, mangle_event_id=False, verbose=False, non_lsc_tables_ok=False, old_document=False): """ Read the SnglInspiralTables from a list of files @param fileList: list of input files @param mangle_event_id: ID remapping is necessary in cases where multiple files might have event_id colli...
1d1e34a17b573846d3d15d495df6067e6a05cc39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/1d1e34a17b573846d3d15d495df6067e6a05cc39/SnglInspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 55, 3368, 80, 382, 1752, 481, 287, 1265, 2697, 12, 768, 682, 16, 312, 4341, 67, 2575, 67, 350, 33, 8381, 16, 3988, 33, 8381, 16, 1661, 67, 80, 1017, 67, 9373, 67, 601, 33, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2720, 55, 3368, 80, 382, 1752, 481, 287, 1265, 2697, 12, 768, 682, 16, 312, 4341, 67, 2575, 67, 350, 33, 8381, 16, 3988, 33, 8381, 16, 1661, 67, 80, 1017, 67, 9373, 67, 601, 33, 83...
self.insert_user_data(words[5],'url_enc_display_name',words[6])
self.insert_user_data(words[5],'url_enc_display_name',urllib.unquote(words[6]))
def RNG(self): """ Target is being invited to a new session
80596cb4e5bd83259bd52b61bb7dd6a3b3b8d784 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/80596cb4e5bd83259bd52b61bb7dd6a3b3b8d784/MSN.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 534, 4960, 12, 2890, 4672, 3536, 5916, 353, 3832, 2198, 16261, 358, 279, 394, 1339, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 534, 4960, 12, 2890, 4672, 3536, 5916, 353, 3832, 2198, 16261, 358, 279, 394, 1339, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if a.date > maxdate.data:
if a.date > maxdate.date:
def __findParent(self, article, children = []): parentID = None if article.in_reply_to: parentID = article.in_reply_to elif article.references:
fc4d5d925751fb5051ea4dabbc80ce9579fd954c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/fc4d5d925751fb5051ea4dabbc80ce9579fd954c/pipermail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4720, 3054, 12, 2890, 16, 7559, 16, 2325, 273, 5378, 4672, 982, 734, 273, 599, 309, 7559, 18, 267, 67, 10629, 67, 869, 30, 982, 734, 273, 7559, 18, 267, 67, 10629, 67, 869, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4720, 3054, 12, 2890, 16, 7559, 16, 2325, 273, 5378, 4672, 982, 734, 273, 599, 309, 7559, 18, 267, 67, 10629, 67, 869, 30, 982, 734, 273, 7559, 18, 267, 67, 10629, 67, 869, 132...
logging.error('Can not get scheduler for job %s.%s : %s' % \
logging.error('Can not get scheduler for job %s.%s : [%s]' % \
def doWork(cls, job): """ __doWork__
63edbae526ace26a095456500eeceec6e59d37d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/63edbae526ace26a095456500eeceec6e59d37d2/JobOutput.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2421, 12, 6429, 16, 1719, 4672, 3536, 1001, 2896, 2421, 972, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 2421, 12, 6429, 16, 1719, 4672, 3536, 1001, 2896, 2421, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
meld = self.meldWithTile(data) if meld: for tile in meld:
if isinstance(data, Tile) and data.isBonus(): self.__removeTile(data) else: if isinstance(data, Tile): data = self.meldWithTile(data) assert data for tile in data.tiles:
def remove(self, data): """return tile or meld to the selector board""" meld = self.meldWithTile(data) if meld: for tile in meld: self.__removeTile(tile) else: self.__removeTile(data) # flower, season self.placeTiles() self.setDrawingOrder()
13f3881b22585b4afca5955a50ab9791a11df14a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/13f3881b22585b4afca5955a50ab9791a11df14a/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 501, 4672, 3536, 2463, 4769, 578, 312, 488, 358, 326, 3451, 11094, 8395, 309, 1549, 12, 892, 16, 13791, 13, 471, 501, 18, 291, 38, 22889, 13332, 365, 16186, 4479, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 2890, 16, 501, 4672, 3536, 2463, 4769, 578, 312, 488, 358, 326, 3451, 11094, 8395, 309, 1549, 12, 892, 16, 13791, 13, 471, 501, 18, 291, 38, 22889, 13332, 365, 16186, 4479, 9...
pass
logging.debug("Broker Event BROKER_INFO received");
def do_broker_events(self): count = 0 valid = self.impl.getEvent(self._event) while valid: count += 1 # print "Broker Event: ", self._event.kind if self._event.kind == qmfengine.BrokerEvent.BROKER_INFO: pass elif self._event.kind == qmfengine.BrokerEvent.DECLARE_QUEUE: self.conn.impl.declareQueue(self._session.handle, ...
baef67bcc8ab8c9bd2d1c1939587efa7edf66937 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/198/baef67bcc8ab8c9bd2d1c1939587efa7edf66937/qmf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 21722, 67, 5989, 12, 2890, 4672, 1056, 273, 374, 923, 273, 365, 18, 11299, 18, 588, 1133, 12, 2890, 6315, 2575, 13, 1323, 923, 30, 1056, 1011, 404, 468, 1172, 315, 11194, 2587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 21722, 67, 5989, 12, 2890, 4672, 1056, 273, 374, 923, 273, 365, 18, 11299, 18, 588, 1133, 12, 2890, 6315, 2575, 13, 1323, 923, 30, 1056, 1011, 404, 468, 1172, 315, 11194, 2587...
queryDict = {'pid': 12345, 'summary': dlg.summary(), 'description': dlg.description(), 'customfield_10101': dlg.contactEmail()}
queryDict = {'pid': 10000, 'summary': dlg.summary(), 'description': dlg.description(), 'customfield_10000': dlg.contactEmail()} if platform.system() == 'Darwin': environment = 'OS: Mac OS X ' + platform.mac_ver()[0] + '\n' elif platform.system() == 'Windows': release, version, csd, ptype = platform.win32_ver() environm...
def onSendFeedback(self, event_): dlg = FeedbackDialog() if dlg.ShowModal() == wx.ID_OK: queryDict = {'pid': 12345, 'summary': dlg.summary(), 'description': dlg.description(), 'customfield_10101': dlg.contactEmail()} # TODO: use the real project and 'contact email' IDs if dlg.isBugReport(): queryDict['issuetype'] = 1 ...
5314bb5eaa43f66c5ee3a53e0dd67594f1cb19cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6368/5314bb5eaa43f66c5ee3a53e0dd67594f1cb19cd/neuroptikon_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3826, 15888, 12, 2890, 16, 871, 67, 4672, 25840, 273, 14013, 823, 6353, 1435, 309, 25840, 18, 5706, 20191, 1435, 422, 7075, 18, 734, 67, 3141, 30, 843, 5014, 273, 13666, 6610, 4278,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3826, 15888, 12, 2890, 16, 871, 67, 4672, 25840, 273, 14013, 823, 6353, 1435, 309, 25840, 18, 5706, 20191, 1435, 422, 7075, 18, 734, 67, 3141, 30, 843, 5014, 273, 13666, 6610, 4278,...
if (self.compiler.find_library_file(lib_dirs, 'ncurses')):
if (self.compiler.find_library_file(lib_dirs, 'ncursesw')): curses_libs = ['ncursesw'] exts.append( Extension('_curses', ['_cursesmodule.c'], libraries = curses_libs) ) elif (self.compiler.find_library_file(lib_dirs, 'ncurses')):
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
a9394a1e18edd393554bb9e5bd1e64492e1a7be5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a9394a1e18edd393554bb9e5bd1e64492e1a7be5/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
>>> np.bitwise_or(np.array([2, 5, 255, 2147483647L], dtype=np.int32), \\\n... np.array([4, 4, 4, 2147483647L], dtype=np.int32))
>>> np.bitwise_or(np.array([2, 5, 255, 2147483647L], dtype=np.int32), ... np.array([4, 4, 4, 2147483647L], dtype=np.int32))
def add_newdoc(place, name, doc): docdict['.'.join((place, name))] = doc
59034c84a6e9efb605328e37b232f91e3c8c0618 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/59034c84a6e9efb605328e37b232f91e3c8c0618/docstrings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2704, 2434, 12, 964, 16, 508, 16, 997, 4672, 997, 1576, 3292, 1093, 18, 5701, 12443, 964, 16, 508, 3719, 65, 273, 997, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2704, 2434, 12, 964, 16, 508, 16, 997, 4672, 997, 1576, 3292, 1093, 18, 5701, 12443, 964, 16, 508, 3719, 65, 273, 997, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
args = frozenset(('iteration', 'particles')) def __call__(self, **kwds): iteration = kwds['iteration']
args = frozenset(('particles',)) def __call__(self, **kwds):
def __call__(self, **kwds): iteration = kwds['iteration'] particles = kwds['particles'] print iteration, len(particles) for part in particles: print part.value, ','.join(str(x) for x in part.pos), \ part.pbestval, ','.join(str(x) for x in part.pbestpos) print
2e86f7ed22d89cb95ef6c2d6bbb4ab4fdcf64e39 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/966/2e86f7ed22d89cb95ef6c2d6bbb4ab4fdcf64e39/output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 2826, 25577, 4672, 6532, 273, 17149, 3292, 16108, 3546, 28312, 273, 17149, 3292, 2680, 8383, 3546, 1172, 6532, 16, 562, 12, 2680, 8383, 13, 364, 1087, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 2826, 25577, 4672, 6532, 273, 17149, 3292, 16108, 3546, 28312, 273, 17149, 3292, 2680, 8383, 3546, 1172, 6532, 16, 562, 12, 2680, 8383, 13, 364, 1087, 316, ...
content, rc = RunShellWithReturnCode(["svn", "status", local_path]) if not rc and content.startswith('M'):
r = gclient_scm.CaptureSVNStatus((local_path,)) rc = -1 if r: (status, file) = r[0] rc = 0 if not rc and status[0] in ('A','M'):
def GetCachedFile(filename, max_age=60*60*24*3, use_root=False): """Retrieves a file from the repository and caches it in GetCacheDir() for max_age seconds. use_root: If False, look up the arborescence for the first match, otherwise go directory to the root repository. Note: The cache will be inconsistent if the same...
368083018db15f06bf1100383bae7a30eaa0146c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/368083018db15f06bf1100383bae7a30eaa0146c/gcl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9839, 812, 12, 3459, 16, 943, 67, 410, 33, 4848, 14, 4848, 14, 3247, 14, 23, 16, 999, 67, 3085, 33, 8381, 4672, 3536, 6960, 279, 585, 628, 326, 3352, 471, 12535, 518, 316, 968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 9839, 812, 12, 3459, 16, 943, 67, 410, 33, 4848, 14, 4848, 14, 3247, 14, 23, 16, 999, 67, 3085, 33, 8381, 4672, 3536, 6960, 279, 585, 628, 326, 3352, 471, 12535, 518, 316, 968, ...
message = 'Spam detected: %s\n\n%s\n' % (regexp, mailString) LOG('MailBoxer', PROBLEM, message)
message = '%s (%s): Spam detected: %s\n\n%s\n' %\ (self.getProperty('title', ''), self.getId(), regexp, mailString) log.error(message)
def checkMail(self, REQUEST): # Check for ip, loops and spam. # Check for correct IP mtahosts = self.getValueFor('mtahosts') if mtahosts: if 'HTTP_X_FORWARDED_FOR' in self.REQUEST.environ.keys(): REMOTE_IP = self.REQUEST.environ['HTTP_X_FORWARDED_FOR'] else: REMOTE_IP = self.REQUEST.environ['REMOTE_ADDR']
022876f88e927316bd924ded9b9dc1cbc88f4167 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6274/022876f88e927316bd924ded9b9dc1cbc88f4167/XWFMailingList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 6759, 12, 2890, 16, 12492, 4672, 468, 2073, 364, 2359, 16, 14075, 471, 24824, 18, 225, 468, 2073, 364, 3434, 2971, 312, 2351, 11588, 273, 365, 18, 24805, 1290, 2668, 1010, 69, 11588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6759, 12, 2890, 16, 12492, 4672, 468, 2073, 364, 2359, 16, 14075, 471, 24824, 18, 225, 468, 2073, 364, 3434, 2971, 312, 2351, 11588, 273, 365, 18, 24805, 1290, 2668, 1010, 69, 11588...
while total_time < 600:
while total_time < 1200:
def InitializeNewProfile(self, browser_path, process, child_process, browser_wait, extra_args, profile_dir, init_url, log): """Runs browser with the new profile directory, to negate any performance hit that could occur as a result of starting up with a new profile. Also kills the "extra" browser that gets spawned the f...
cc9eb5d75e0840d7dc6f87bf41f8aecf9a022f10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/cc9eb5d75e0840d7dc6f87bf41f8aecf9a022f10/ffsetup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9190, 1908, 4029, 12, 2890, 16, 4748, 67, 803, 16, 1207, 16, 1151, 67, 2567, 16, 4748, 67, 7048, 16, 2870, 67, 1968, 16, 3042, 67, 1214, 16, 1208, 67, 718, 16, 613, 4672, 3536, 9361,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9190, 1908, 4029, 12, 2890, 16, 4748, 67, 803, 16, 1207, 16, 1151, 67, 2567, 16, 4748, 67, 7048, 16, 2870, 67, 1968, 16, 3042, 67, 1214, 16, 1208, 67, 718, 16, 613, 4672, 3536, 9361,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 605) else quickfix.StringField.__init__(self, 605, 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, 4752, 25, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 4752, 25, 13, 469, 9549, 904, 18, 780, 974, 16186, 2738, 97...
print render.base(page=render.job(job=job, build_log=build_log), \
return render.base(page=render.job(job=job, build_log=build_log), \
def GET(self, jobid=None): job = Job.selectBy(id=jobid)[0]
05e9a6620b00fd3b6828334079ad4c6cb50f02bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5334/05e9a6620b00fd3b6828334079ad4c6cb50f02bf/RebuilddHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 1719, 350, 33, 7036, 4672, 1719, 273, 3956, 18, 4025, 858, 12, 350, 33, 4688, 350, 25146, 20, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4978, 12, 2890, 16, 1719, 350, 33, 7036, 4672, 1719, 273, 3956, 18, 4025, 858, 12, 350, 33, 4688, 350, 25146, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
`G` and you know the values `v_1, \dots, v_n` on
`G` and you know the values `v_1, \ldots, v_n` on
def character_table(self): r""" Returns the matrix of values of the irreducible characters of a permutation group `G` at the conjugacy classes of `G`. The columns represent the conjugacy classes of `G` and the rows represent the different irreducible characters in the ordering given by GAP.
2626541f3a01139ef6720f119161d0b8d9f42e8d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/2626541f3a01139ef6720f119161d0b8d9f42e8d/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 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, 3351, 67, 2121, 12, 2890, 4672, 436, 8395, 2860, 326, 3148, 434, 924, 434, 326, 9482, 1118, 5286, 1523, 3949, 434, 279, 17440, 1041, 1375, 43, 68, 622, 326, 10550, 637, 3505, 3318, 434, ...
'before': text.encode("UTF-8"),
'before': text.encode(encoding, 'ignore'),
def translate(self, text, fromLang, toLang, fromLanguage, toLanguage): if fromLanguage == 'cht' or toLanguage == 'cht': big5 = 'yes' else: big5 = 'no' translation = fromLang + toLang if translation not in self.supportedTranslations: return # create the POST body params = { 'before': text.encode("UTF-8"), 'wb_lp': tran...
3b6d9bf45a866f4fb628256cd08ee4ac0886f076 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10749/3b6d9bf45a866f4fb628256cd08ee4ac0886f076/weblookup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 16, 977, 16, 628, 7275, 16, 358, 7275, 16, 628, 3779, 16, 358, 3779, 4672, 309, 628, 3779, 422, 296, 343, 88, 11, 578, 358, 3779, 422, 296, 343, 88, 4278, 5446, 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, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4204, 12, 2890, 16, 977, 16, 628, 7275, 16, 358, 7275, 16, 628, 3779, 16, 358, 3779, 4672, 309, 628, 3779, 422, 296, 343, 88, 11, 578, 358, 3779, 422, 296, 343, 88, 4278, 5446, 25, ...
self._decode_tell_cookie(cookie)
self._unpack_cookie(cookie)
def seek(self, cookie, whence=0): if not self._seekable: raise IOError("underlying stream is not seekable") if whence == 1: # seek relative to current position if cookie != 0: raise IOError("can't do nonzero cur-relative seeks") # Seeking to the current position should attempt to # sync the underlying buffer with the c...
2e00b1ed3eaf2ada4c0cb16b188516bd10ad5f0c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/2e00b1ed3eaf2ada4c0cb16b188516bd10ad5f0c/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 3878, 16, 23692, 33, 20, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 23692, 422, 404, 30, 468, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6520, 12, 2890, 16, 3878, 16, 23692, 33, 20, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 23692, 422, 404, 30, 468, 65...
self.requred is not None
self.required is not None
def hasContent_(self): if ( self.ip_address is not None or self.ipv6_address is not None or self.dns_name is not None or self.device_name is not None or self.netmask is not None or self.port_type is not None or self.active is not None or self.requred is not None ): return True else: return False
91b7fa5f4789cd99e181dad4d2401509c907da8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/91b7fa5f4789cd99e181dad4d2401509c907da8c/generateds_system_1_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 1350, 67, 12, 2890, 4672, 309, 261, 365, 18, 625, 67, 2867, 353, 486, 599, 578, 365, 18, 10834, 26, 67, 2867, 353, 486, 599, 578, 365, 18, 14926, 67, 529, 353, 486, 599, 578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 1350, 67, 12, 2890, 4672, 309, 261, 365, 18, 625, 67, 2867, 353, 486, 599, 578, 365, 18, 10834, 26, 67, 2867, 353, 486, 599, 578, 365, 18, 14926, 67, 529, 353, 486, 599, 578, ...
pass
pass
def sendMail( self, address, subject, body, fromAddress = None, localAttempt = True ): pass
27f2136b2eb5130e4c67fc53abf126d8607336e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/27f2136b2eb5130e4c67fc53abf126d8607336e8/fake_NotificationClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 6759, 12, 365, 16, 1758, 16, 3221, 16, 1417, 16, 628, 1887, 273, 599, 16, 1191, 7744, 273, 1053, 262, 30, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 6759, 12, 365, 16, 1758, 16, 3221, 16, 1417, 16, 628, 1887, 273, 599, 16, 1191, 7744, 273, 1053, 262, 30, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
def __init__(self, sock):
def __init__(self, sock, rw): if rw not in ('r', 'w'): raise ValueError, "mode must be 'r' or 'w'"
def __init__(self, sock): self.sock = sock self.buf = ''
cd259d0b401f8cdd859bd55167610230d9a44f5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/cd259d0b401f8cdd859bd55167610230d9a44f5d/socket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 7985, 4672, 309, 7985, 486, 316, 7707, 86, 2187, 296, 91, 11, 4672, 1002, 2068, 16, 315, 3188, 1297, 506, 296, 86, 11, 578, 296, 91, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1652, 1001, 2738, 972, 12, 2890, 16, 7313, 16, 7985, 4672, 309, 7985, 486, 316, 7707, 86, 2187, 296, 91, 11, 4672, 1002, 2068, 16, 315, 3188, 1297, 506, 296, 86, 11, 578, 296, 91, 497...
tooltipText = i18n("No documents queued")
tooltip = i18n("No documents queued")
def set_statusicon_tooltip (self, tooltip=None): if not self.trayicon: return
54e94010716aa479428c6a62249aafbd1f714e0a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1682/54e94010716aa479428c6a62249aafbd1f714e0a/printer-applet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2327, 3950, 67, 19798, 261, 2890, 16, 11915, 33, 7036, 4672, 309, 486, 365, 18, 313, 528, 3950, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2327, 3950, 67, 19798, 261, 2890, 16, 11915, 33, 7036, 4672, 309, 486, 365, 18, 313, 528, 3950, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
sage: sage.symbolic.units.convert(units.length.foot, None) 381/1250*meter sage: sage.symbolic.units.convert(units.mass.kilogram, units.mass.pound) 100000000/45359237*pound
sage: sage.symbolic.units.convert(units.length.foot, None) 381/1250*meter sage: sage.symbolic.units.convert(units.mass.kilogram, units.mass.pound) 100000000/45359237*pound
def convert(expr, target): """ Converts units between expr and target. If target is None then converts to SI base units. INPUT: - `expr` -- the symbolic expression converting from - `target` -- (default None) the symbolic expression converting to OUTPUT: - `symbolic expression` EXAMPLES:: sage: sage.symbolic.uni...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 12, 8638, 16, 1018, 4672, 3536, 20377, 4971, 3086, 3065, 471, 1018, 18, 971, 1018, 353, 599, 1508, 7759, 358, 5705, 1026, 4971, 18, 225, 12943, 30, 225, 300, 1375, 8638, 68, 1493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 8638, 16, 1018, 4672, 3536, 20377, 4971, 3086, 3065, 471, 1018, 18, 971, 1018, 353, 599, 1508, 7759, 358, 5705, 1026, 4971, 18, 225, 12943, 30, 225, 300, 1375, 8638, 68, 1493, ...
def _arrow(self, xmin, ymin, xmax, ymax, options):
def _arrow(self, xtail, ytail, xhead, yhead, options):
def _arrow(self, xmin, ymin, xmax, ymax, options): """ Add an arrow with given bounding box to this graphics object.
6942445bd66f38e595fafb79a120a8709a142bb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/6942445bd66f38e595fafb79a120a8709a142bb9/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7815, 12, 2890, 16, 619, 13101, 16, 677, 13101, 16, 619, 1978, 16, 677, 1978, 16, 702, 4672, 3536, 1436, 392, 12274, 598, 864, 7552, 3919, 358, 333, 17313, 733, 18, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7815, 12, 2890, 16, 619, 13101, 16, 677, 13101, 16, 619, 1978, 16, 677, 1978, 16, 702, 4672, 3536, 1436, 392, 12274, 598, 864, 7552, 3919, 358, 333, 17313, 733, 18, 2, -100, -100,...
print ' icms.py start %s' % target
print ' %s start %s' % (parser.get_prog_name(), target)
def init(parser, options, target): try: os.mkdir(target) except OSError: parser.error('can not create the instance (check permissions)') # Create the database storage = FileStorage('%s/database.fs' % target) database = zodb.Database(storage) # Create the config file config = RawConfigParser() config.add_section('inst...
fa68d086a1fe877a8ae1d77a6739a1d5a8a6179f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/fa68d086a1fe877a8ae1d77a6739a1d5a8a6179f/icms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 12, 4288, 16, 702, 16, 1018, 4672, 775, 30, 1140, 18, 26686, 12, 3299, 13, 1335, 10002, 30, 2082, 18, 1636, 2668, 4169, 486, 752, 326, 791, 261, 1893, 4371, 2506, 13, 225, 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, 1208, 12, 4288, 16, 702, 16, 1018, 4672, 775, 30, 1140, 18, 26686, 12, 3299, 13, 1335, 10002, 30, 2082, 18, 1636, 2668, 4169, 486, 752, 326, 791, 261, 1893, 4371, 2506, 13, 225, 468, ...
('wiki remove <name>', 'Remove wiki page'),
('wiki remove <page>', 'Remove wiki page'),
def do_resync(self, line): env = self.env_open() argv = self.arg_tokenize(line) if argv: rev = argv[0] if rev: env.get_repository().sync_changeset(rev) print '%s resynced.' % rev return from trac.versioncontrol.cache import CACHE_METADATA_KEYS print 'Resyncing repository history... ' cnx = self.db_open() cursor = cnx.c...
b48f89a0d7459755834a57803360271149d7cf69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/b48f89a0d7459755834a57803360271149d7cf69/console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 455, 1209, 12, 2890, 16, 980, 4672, 1550, 273, 365, 18, 3074, 67, 3190, 1435, 5261, 273, 365, 18, 3175, 67, 2316, 554, 12, 1369, 13, 309, 5261, 30, 5588, 273, 5261, 63, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 455, 1209, 12, 2890, 16, 980, 4672, 1550, 273, 365, 18, 3074, 67, 3190, 1435, 5261, 273, 365, 18, 3175, 67, 2316, 554, 12, 1369, 13, 309, 5261, 30, 5588, 273, 5261, 63, 20, ...
return
return True
def readAnswer(self): size = 10 data = self.socket.recv(size) if data == '': if self.reconnect(): return if data == '': return "[!] lost connection with server" if len(data) == size: alldata = [data] while len(data) == size: data = self.socket.recv(size) if not data: break alldata.append(data) data = "".join(alldata) i...
e8424057361c5db604be73b03c0ba96b98511066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/e8424057361c5db604be73b03c0ba96b98511066/command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 13203, 12, 2890, 4672, 963, 273, 1728, 501, 273, 365, 18, 7814, 18, 18334, 12, 1467, 13, 309, 501, 422, 875, 30, 309, 365, 18, 25913, 13332, 327, 1053, 309, 501, 422, 875, 30, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 13203, 12, 2890, 4672, 963, 273, 1728, 501, 273, 365, 18, 7814, 18, 18334, 12, 1467, 13, 309, 501, 422, 875, 30, 309, 365, 18, 25913, 13332, 327, 1053, 309, 501, 422, 875, 30, 3...
log("minSystem stopped")
log("mintSystem stopped")
def log (string): logfile.writelines("%s - %s\n" % (strftime("%Y-%m-%d %H:%M:%S"), string)) logfile.flush()
4d60388a5117987568f55209a2eefcc61c14d941 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2818/4d60388a5117987568f55209a2eefcc61c14d941/mint-adjust.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 261, 1080, 4672, 15204, 18, 5363, 14567, 27188, 87, 300, 738, 87, 64, 82, 6, 738, 261, 701, 9982, 27188, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 6, 3631, 533, 3719,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 613, 261, 1080, 4672, 15204, 18, 5363, 14567, 27188, 87, 300, 738, 87, 64, 82, 6, 738, 261, 701, 9982, 27188, 61, 6456, 81, 6456, 72, 738, 44, 5319, 49, 5319, 55, 6, 3631, 533, 3719,...
raise TestFailed, 'list index, negative stop argument'
raise TestFailed, 'list index, very -stop argument'
def __getitem__(self, key): return str(key) + '!!!'
2743d87d7934535f16a0ea062a28c21ea18e5a24 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2743d87d7934535f16a0ea062a28c21ea18e5a24/test_types.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 327, 609, 12, 856, 13, 397, 296, 8548, 5124, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 327, 609, 12, 856, 13, 397, 296, 8548, 5124, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
src_ds = gdal.Open( 'data/utmsmall.tif' )
def tiff_write_4(): try: import gdalnumeric gdalnumeric.zeros except: return 'skip' src_ds = gdal.Open( 'data/utmsmall.tif' ) options = [ 'TILED=YES', 'BLOCKXSIZE=32', 'BLOCKYSIZE=32' ] new_ds = gdaltest.tiff_drv.Create( 'tmp/test_4.tif', 40, 50, 3, gdal.GDT_Byte, options ) data_red = gdalnumeric.zeros( (50, 40) )...
7b5ded15fa1a327beb30798a61ade963efdb7cd9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10289/7b5ded15fa1a327beb30798a61ade963efdb7cd9/tiff_write.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 3048, 67, 2626, 67, 24, 13332, 225, 775, 30, 1930, 15551, 287, 5246, 15551, 287, 5246, 18, 22008, 1335, 30, 327, 296, 7457, 11, 225, 702, 273, 306, 296, 56, 9504, 33, 29081, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 3048, 67, 2626, 67, 24, 13332, 225, 775, 30, 1930, 15551, 287, 5246, 15551, 287, 5246, 18, 22008, 1335, 30, 327, 296, 7457, 11, 225, 702, 273, 306, 296, 56, 9504, 33, 29081, 2187,...
self.blockStart.text = self.giveBlockName(tryBlock)
self.blockStart.text = self.giveBlockName(self.currentBlock)
def didWeMove(self) : if (self.currentThrottle == None) : #self.msgText("didWeMove called while currentThrottle was None\n") return #if (self.currentBlock != None) : #self.msgText("Current block: " + self.giveBlockName(self.currentBlock) + "\n") newCurrentBlocks = self.findCurrentBlocks() if (len(newCurrentBlocks) == 0...
219951f746f72f6210b1a985c486a3c0fe38a240 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1660/219951f746f72f6210b1a985c486a3c0fe38a240/RobotThrottle2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5061, 3218, 7607, 12, 2890, 13, 294, 309, 261, 2890, 18, 2972, 27636, 422, 599, 13, 294, 468, 2890, 18, 3576, 1528, 2932, 14044, 3218, 7607, 2566, 1323, 783, 27636, 1703, 599, 64, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5061, 3218, 7607, 12, 2890, 13, 294, 309, 261, 2890, 18, 2972, 27636, 422, 599, 13, 294, 468, 2890, 18, 3576, 1528, 2932, 14044, 3218, 7607, 2566, 1323, 783, 27636, 1703, 599, 64, 82, ...
name=name, color=color, local=True, private=True, tags=tags)
name=name, color=self._owner.props.color, local=True, private=True, tags=tags)
def ShareActivity(self, actid, atype, name, properties, async_cb, async_err_cb, sender): """Create the shared Activity.
ad3e09e68b6dc1dcc98479f2a225378a50bf1f72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3113/ad3e09e68b6dc1dcc98479f2a225378a50bf1f72/presenceservice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25805, 6193, 12, 2890, 16, 1328, 350, 16, 30965, 16, 508, 16, 1790, 16, 4326, 67, 7358, 16, 4326, 67, 370, 67, 7358, 16, 5793, 4672, 3536, 1684, 326, 5116, 9621, 18, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25805, 6193, 12, 2890, 16, 1328, 350, 16, 30965, 16, 508, 16, 1790, 16, 4326, 67, 7358, 16, 4326, 67, 370, 67, 7358, 16, 5793, 4672, 3536, 1684, 326, 5116, 9621, 18, 2, -100, -100, -...
self.playlist)
self.playlist, zoom=self.zoom, rotation = self.rotation)
def eventhandler(self, event):
8edad2903f5ab4605b7c9f42dfe5775c023e3bbd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/8edad2903f5ab4605b7c9f42dfe5775c023e3bbd/iview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 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,...
return self.get_feed(feed.get_next_link(), auth_token=auth_token,
return self.get_feed(feed.find_next_link(), auth_token=auth_token,
def get_next(self, feed, auth_token=None, converter=None, desired_class=None, **kwargs): """Fetches the next set of results from the feed. When requesting a feed, the number of entries returned is capped at a service specific default limit (often 25 entries). You can specify your own entry-count cap using the max-resu...
cccc642265df4601f89bbf782de4c2a653a6bbfb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/cccc642265df4601f89bbf782de4c2a653a6bbfb/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 12, 2890, 16, 4746, 16, 1357, 67, 2316, 33, 7036, 16, 6027, 33, 7036, 16, 6049, 67, 1106, 33, 7036, 16, 2826, 4333, 4672, 3536, 14288, 326, 1024, 444, 434, 1686, 628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4285, 12, 2890, 16, 4746, 16, 1357, 67, 2316, 33, 7036, 16, 6027, 33, 7036, 16, 6049, 67, 1106, 33, 7036, 16, 2826, 4333, 4672, 3536, 14288, 326, 1024, 444, 434, 1686, 628, ...
y2add=yseq[yadded-ystart:ycoord[0]-1-ystart].lower() x2add=xseq[xadded-xstart:xcoord[0]-1-xstart].lower()
y2add=yseq[yadded-ystart:as.beginY-1-ystart].lower() x2add=xseq[xadded-xstart:as.beginX-1-xstart].lower()
def formatAlnSeq(xaln,yaln,xname,yname,xstart,ystart,linelen=60): """Formats the DNA sequence alignment output""" outstr="Sequence 1: %s\nSequence 2: %s\n\n"%(xname,yname) n=len(xaln) xpos,ypos=xstart+1,ystart+1 for i in range(0,n,linelen): xline,yline=xaln[i:i+linelen],yaln[i:i+linelen] outstr+="%7d : %s\n%7d : %s\n\n...
faf7e9612437ef5b7a986d664864b3ccd58a57f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11674/faf7e9612437ef5b7a986d664864b3ccd58a57f6/Output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 1067, 82, 6926, 12, 92, 30907, 16, 93, 30907, 16, 92, 529, 16, 93, 529, 16, 92, 1937, 16, 1094, 485, 16, 7511, 292, 275, 33, 4848, 4672, 3536, 8976, 326, 463, 11277, 3102, 8710,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1067, 82, 6926, 12, 92, 30907, 16, 93, 30907, 16, 92, 529, 16, 93, 529, 16, 92, 1937, 16, 1094, 485, 16, 7511, 292, 275, 33, 4848, 4672, 3536, 8976, 326, 463, 11277, 3102, 8710,...
} } }
}
def make_drawer(name): texture = (name.find("_texture_") != -1) grad = (name.find("_grad_") != -1) solid = (name.find("_solid_") != -1) shade = (name.find("_shade") != -1) opaque = (name.find("_opaque") != -1) white = (name.find("_white") != -1) if grad and solid: print "#error grad and solid" if grad and white: print...
45b2735ddbc24779c2277b5afafaede5a9314d1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14418/45b2735ddbc24779c2277b5afafaede5a9314d1b/make_scanline_drawers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 9446, 264, 12, 529, 4672, 11428, 273, 261, 529, 18, 4720, 2932, 67, 955, 594, 67, 7923, 480, 300, 21, 13, 6058, 273, 261, 529, 18, 4720, 2932, 67, 9974, 67, 7923, 480, 300,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 9446, 264, 12, 529, 4672, 11428, 273, 261, 529, 18, 4720, 2932, 67, 955, 594, 67, 7923, 480, 300, 21, 13, 6058, 273, 261, 529, 18, 4720, 2932, 67, 9974, 67, 7923, 480, 300,...
return PyInt_FromLong(b);
return PyLong_FromLong(b);
def visitModule(self, mod): self.emit("""
d90f42e403114af6b7fdb01b9ff9d3e4ba466447 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d90f42e403114af6b7fdb01b9ff9d3e4ba466447/asdl_c.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 3120, 12, 2890, 16, 681, 4672, 365, 18, 18356, 2932, 3660, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
'rsync -v -r -z --progress %(user)s@shell.sourceforge.net:%(site_dir)s/%(source)s %(dest)s'
'rsync -v -r -z --progress %(user)s@shell.sourceforge.net:%(site_dir)s%(source)s %(dest)s'
def download( source, destination, user ): if sys.platform == 'win32': destination = os.popen( 'cygpath "%s"' % destination ).read().splitlines()[0] utils.checked_system( [ 'rsync -v -r -z --progress %(user)s@shell.sourceforge.net:%(site_dir)s/%(source)s %(dest)s' % { 'user': user, 'site_dir': site_dir, 'source': sour...
d68f250431500336b667f9dd9ac6703c86ec5e30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7959/d68f250431500336b667f9dd9ac6703c86ec5e30/sourceforge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 12, 1084, 16, 2929, 16, 729, 262, 30, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2929, 273, 1140, 18, 84, 3190, 12, 296, 2431, 75, 803, 2213, 87, 5187, 738, 2929, 262, 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, 4224, 12, 1084, 16, 2929, 16, 729, 262, 30, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2929, 273, 1140, 18, 84, 3190, 12, 296, 2431, 75, 803, 2213, 87, 5187, 738, 2929, 262, 18...
pass
"""I have no idea what this does, drag and drop is a mystery. sorry.""" selection_data.set('vte', info, str(data.terminator.terminals.index(self)))
def on_drag_data_get(self, widget, drag_context, selection_data, info, time, data): # FIXME: Implement this pass
c647948a7fe81768afb7a383769e16ee7aac44bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/c647948a7fe81768afb7a383769e16ee7aac44bc/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 15997, 67, 892, 67, 588, 12, 2890, 16, 3604, 16, 8823, 67, 2472, 16, 4421, 67, 892, 16, 1123, 16, 813, 16, 501, 4672, 468, 9852, 30, 10886, 333, 1342, 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, 603, 67, 15997, 67, 892, 67, 588, 12, 2890, 16, 3604, 16, 8823, 67, 2472, 16, 4421, 67, 892, 16, 1123, 16, 813, 16, 501, 4672, 468, 9852, 30, 10886, 333, 1342, 2, -100, -100, -100, ...
apply(self.tk.call, (self._w, 'add', 'separator', name) + self._options(cnf, kw))
apply(self.tk.call, (self._w, 'add', 'separator', name) + self._options(cnf, kw))
def add_separator(self, name, cnf={}, **kw):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 11287, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 67, 11287, 12, 2890, 16, 508, 16, 23118, 28793, 2826, 9987, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
filt.add_mime_type (tpe)
for x in tpe: if x [0] == "@": filt.add_pattern (x [1:]) else: filt.add_mime_type (x)
def MakeFilter (self, name, tpe): filt = gtk.FileFilter () filt.set_name (name) filt.add_mime_type (tpe) return filt
7a51e295674f43842d18cb2e4f4e7099632ddcb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2524/7a51e295674f43842d18cb2e4f4e7099632ddcb9/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 1586, 261, 2890, 16, 508, 16, 268, 347, 4672, 18553, 273, 22718, 18, 29837, 1832, 18553, 18, 542, 67, 529, 261, 529, 13, 364, 619, 316, 268, 347, 30, 309, 619, 306, 20, 65, 422...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 1586, 261, 2890, 16, 508, 16, 268, 347, 4672, 18553, 273, 22718, 18, 29837, 1832, 18553, 18, 542, 67, 529, 261, 529, 13, 364, 619, 316, 268, 347, 30, 309, 619, 306, 20, 65, 422...
packages = select((Package), and_(Package.id==PackageListing.packageid,
packages = select((PackageTable,), and_(Package.id==PackageListing.packageid,
def name(self, collctn): '''Return a page with information on a particular Collection
86d5ac30ace46e95754afd0bfd5ec934334d42d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9953/86d5ac30ace46e95754afd0bfd5ec934334d42d2/collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 12, 2890, 16, 4508, 299, 82, 4672, 9163, 990, 279, 1363, 598, 1779, 603, 279, 6826, 2200, 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, 508, 12, 2890, 16, 4508, 299, 82, 4672, 9163, 990, 279, 1363, 598, 1779, 603, 279, 6826, 2200, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def docmodule(self, object):
def docmodule(self, object, name=None):
def docmodule(self, object): """Produce HTML documentation for a module object.""" name = object.__name__ parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), parts[i])) linkedname = join(links + parts[-1:], '....
a8b37d1a3238fb85be760a30db03672525e8f591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a8b37d1a3238fb85be760a30db03672525e8f591/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 2140, 273, 1416, 12, 529, 16, 2611, 13, 4716...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 16, 508, 33, 7036, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 2140, 273, 1416, 12, 529, 16, 2611, 13, 4716...
S = S*ones(asarray(pfac).shape)
if type(S) in ScalarType: S = S*ones(asarray(pfac).shape, type(S)) else: S = S*ones(asarray(pfac).shape, S.dtype)
def select(condlist, choicelist, default=0): """ Return an array composed of different elements of choicelist depending on the list of conditions. condlist is a list of condition arrays containing ones or zeros choicelist is a list of choice arrays (of the "same" size as the arrays in condlist). The result array has...
2ff5b35b2ce3fd485cedf8d9345b25065b8bc94d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/2ff5b35b2ce3fd485cedf8d9345b25065b8bc94d/function_base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 10013, 1098, 16, 5011, 335, 5449, 16, 805, 33, 20, 4672, 3536, 2000, 392, 526, 18673, 434, 3775, 2186, 434, 5011, 335, 5449, 8353, 603, 326, 666, 434, 4636, 18, 225, 6941, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 12, 10013, 1098, 16, 5011, 335, 5449, 16, 805, 33, 20, 4672, 3536, 2000, 392, 526, 18673, 434, 3775, 2186, 434, 5011, 335, 5449, 8353, 603, 326, 666, 434, 4636, 18, 225, 6941, 10...
plot(injection.mass1,injection.distance,'go',scalex=False,scaley=False)
plot([injection.mass1],[injection.distance],'go',scalex=False,scaley=False)
def plot2Dkernel(xdat,ydat,Nx,Ny): xax=linspace(min(xdat),max(xdat),Nx) yax=linspace(min(ydat),max(ydat),Ny) x,y=numpy.meshgrid(xax,yax) samp=array([xdat,ydat]) kde=stats.kde.gaussian_kde(samp) grid_coords = numpy.append(x.reshape(-1,1),y.reshape(-1,1),axis=1) z = kde(grid_coords.T) z = z.reshape(Nx,Ny) asp=xax.ptp()/y...
0831130907772a52407e021196488edd437a353b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/0831130907772a52407e021196488edd437a353b/OddsPostProc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 22, 40, 8111, 12, 92, 3404, 16, 93, 3404, 16, 50, 92, 16, 50, 93, 4672, 619, 651, 33, 80, 15738, 12, 1154, 12, 92, 3404, 3631, 1896, 12, 92, 3404, 3631, 50, 92, 13, 677, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 22, 40, 8111, 12, 92, 3404, 16, 93, 3404, 16, 50, 92, 16, 50, 93, 4672, 619, 651, 33, 80, 15738, 12, 1154, 12, 92, 3404, 3631, 1896, 12, 92, 3404, 3631, 50, 92, 13, 677, 65...
self._loadAndRealiseNetwork(itemText[len(segp):], (x,y),
rx, ry = self._graphFrame.canvas.eventToRealCoords(x, y) self._loadAndRealiseNetwork(itemText[len(segp):], (rx,ry),
def canvasDropText(self, x, y, itemText): """itemText is a complete module or segment spec, e.g. module:modules.Readers.dicomRDR or segment:/home/cpbotha/work/code/dscas3/networkSegments/blaat.d3n """
cf43c85129e3af0796be052787bf65fb4caf953a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/cf43c85129e3af0796be052787bf65fb4caf953a/graphEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5953, 7544, 1528, 12, 2890, 16, 619, 16, 677, 16, 761, 1528, 4672, 3536, 1726, 1528, 353, 279, 3912, 1605, 578, 3267, 857, 16, 425, 18, 75, 18, 1605, 30, 6400, 18, 30301, 18, 15859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5953, 7544, 1528, 12, 2890, 16, 619, 16, 677, 16, 761, 1528, 4672, 3536, 1726, 1528, 353, 279, 3912, 1605, 578, 3267, 857, 16, 425, 18, 75, 18, 1605, 30, 6400, 18, 30301, 18, 15859, ...
print "x = %s, y = %s, tpw = %s, tph = %s" % ( x, y, tpw, tph)
def findLargestHole(self): """ Searches for the largest available hole. """
f2671e94376a0993e3d388e34e4d0cdc3fff82aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/f2671e94376a0993e3d388e34e4d0cdc3fff82aa/TexMemWatcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 48, 11475, 29501, 12, 2890, 4672, 3536, 5167, 281, 364, 326, 12756, 2319, 19922, 18, 3536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 48, 11475, 29501, 12, 2890, 4672, 3536, 5167, 281, 364, 326, 12756, 2319, 19922, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
version = version,
def setup_package(): from numpy.distutils.core import setup from numpy.distutils.misc_util import Configuration old_path = os.getcwd() local_path = os.path.dirname(os.path.abspath(sys.argv[0])) os.chdir(local_path) sys.path.insert(0,local_path) sys.path.insert(0,os.path.join(local_path,'scipy')) # to retrive version ...
a1a7fbbe8b3f8ffd0c819b8dac0b8ada54fddb5b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/a1a7fbbe8b3f8ffd0c819b8dac0b8ada54fddb5b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 67, 5610, 13332, 225, 628, 3972, 18, 4413, 5471, 18, 3644, 1930, 3875, 628, 3972, 18, 4413, 5471, 18, 23667, 67, 1367, 1930, 4659, 225, 1592, 67, 803, 273, 1140, 18, 588, 11089, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 5610, 13332, 225, 628, 3972, 18, 4413, 5471, 18, 3644, 1930, 3875, 628, 3972, 18, 4413, 5471, 18, 23667, 67, 1367, 1930, 4659, 225, 1592, 67, 803, 273, 1140, 18, 588, 11089, ...
sage: E.gens() [(0 : -1 : 1)]
sage: E._EllipticCurve_rational_field__rank={}
def _set_rank(self, r): """ Internal function to set the cached rank of this elliptic curve to r.
2d358660a37f1e7b7e62f90b4a0ea2c1e77e91bd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2d358660a37f1e7b7e62f90b4a0ea2c1e77e91bd/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 11500, 12, 2890, 16, 436, 4672, 3536, 3186, 445, 358, 444, 326, 3472, 6171, 434, 333, 415, 549, 21507, 8882, 358, 436, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 11500, 12, 2890, 16, 436, 4672, 3536, 3186, 445, 358, 444, 326, 3472, 6171, 434, 333, 415, 549, 21507, 8882, 358, 436, 18, 2, -100, -100, -100, -100, -100, -100, -100, -1...
bootargs = ia64bootargs
extraargs.extend(ia64bootargs)
def doCreateIsos(self): """Create isos from the various split directories."""
4e8d70bf9fa3bbca0112014aab29f696ee748b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/4e8d70bf9fa3bbca0112014aab29f696ee748b84/pungi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1684, 2520, 538, 12, 2890, 4672, 3536, 1684, 353, 538, 628, 326, 11191, 1416, 6402, 12123, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 1684, 2520, 538, 12, 2890, 4672, 3536, 1684, 353, 538, 628, 326, 11191, 1416, 6402, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if "_" in value:
if hasattr(value, '__iter__') and "_" in value:
def find(value, key=None): """For a given language code value, returns the language name. >>> find('en') {'alpha2': 'en', 'alpha3': 'eng', 'name': u'English'} >>> find('foo', THREE_LETTERS_CODE) None :param value: language code value. example: 'en' :param key: either None, ``TWO_LETTER_CODE`` or ``THREE_LETTERS_COD...
782e4e7204e415836ca0e40e014367a109a0ae23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/782e4e7204e415836ca0e40e014367a109a0ae23/iso639.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 1132, 16, 498, 33, 7036, 4672, 3536, 1290, 279, 864, 2653, 981, 460, 16, 1135, 326, 2653, 508, 18, 225, 4080, 1104, 2668, 275, 6134, 13666, 5429, 22, 4278, 296, 275, 2187, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 12, 1132, 16, 498, 33, 7036, 4672, 3536, 1290, 279, 864, 2653, 981, 460, 16, 1135, 326, 2653, 508, 18, 225, 4080, 1104, 2668, 275, 6134, 13666, 5429, 22, 4278, 296, 275, 2187, 29...
headers=[('location', url)])
headers={'location', url})
def add_slash(self, environ, start_response): """ This happens when you try to get to a directory without a trailing / """ url = request.construct_url(environ, with_query_string=False) url += '/' if environ.get('QUERY_STRING'): url += '?' + environ['QUERY_STRING'] exc = httpexceptions.HTTPMovedPermanently( 'The resourc...
fc605e07d5ee5c78907221560536057f6f6ce0c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/fc605e07d5ee5c78907221560536057f6f6ce0c7/urlparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 12877, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 3536, 1220, 10555, 1347, 1846, 775, 358, 336, 358, 279, 1867, 2887, 279, 7341, 342, 3536, 880, 273, 590, 18, 10062, 67, 718...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 12877, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 3536, 1220, 10555, 1347, 1846, 775, 358, 336, 358, 279, 1867, 2887, 279, 7341, 342, 3536, 880, 273, 590, 18, 10062, 67, 718...
%s""" % paver_install
%s""" % (dest_dir, options, paver_install)
def after_install(options, home_dir): if sys.platform == 'win32': bin_dir = join(home_dir, 'Scripts') else: bin_dir = join(home_dir, 'bin')
0419bba2ae3446c2ad992fcbd42de644991c5daa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14074/0419bba2ae3446c2ad992fcbd42de644991c5daa/virtual.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1839, 67, 5425, 12, 2116, 16, 6382, 67, 1214, 4672, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 4158, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 15041, 6134, 469, 30, 4158,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1839, 67, 5425, 12, 2116, 16, 6382, 67, 1214, 4672, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 4158, 67, 1214, 273, 1233, 12, 8712, 67, 1214, 16, 296, 15041, 6134, 469, 30, 4158,...
if atype in ("numeric", "position") and ftype == "span":
if ftype == "any": pass elif atype in ("filter", "empty") and ftype == "wml": pass elif atype in ("numeric", "position") and ftype == "span":
def argmatch(formals, actuals): if len(formals) != len(actuals): return False for (f, a) in zip(formals, actuals): ftype = formaltype(f) atype = actualtype(a) # Here's the compatibility logic. First, we catch the situations # in which a more restricted actual type matches a more general # formal one. Then we have a f...
28bee542c6366dec1f4e00874918aac4e68e859e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9355/28bee542c6366dec1f4e00874918aac4e68e859e/wmltools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1501, 1916, 12, 687, 1031, 16, 1328, 12588, 4672, 309, 562, 12, 687, 1031, 13, 480, 562, 12, 621, 12588, 4672, 327, 1083, 364, 261, 74, 16, 279, 13, 316, 3144, 12, 687, 1031, 16, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1501, 1916, 12, 687, 1031, 16, 1328, 12588, 4672, 309, 562, 12, 687, 1031, 13, 480, 562, 12, 621, 12588, 4672, 327, 1083, 364, 261, 74, 16, 279, 13, 316, 3144, 12, 687, 1031, 16, 132...