Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 078f931

Browse files
committed
more typos
1 parent 57171a1 commit 078f931

File tree

10 files changed

+34
-30
lines changed

10 files changed

+34
-30
lines changed

src/sage/combinat/crystals/pbw_datum.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ cpdef list enhance_braid_move_chain(braid_move_chain, cartan_type):
462462
# This likely could be done when performing chain_of_reduced_words
463463
# Things in here get called the most (about 50x more than enhance_braid_move_chain)
464464
for pos in range(1, len(braid_move_chain)):
465-
# This gets the smallest continguous half-open interval [a, b)
465+
# This gets the smallest contiguous half-open interval [a, b)
466466
# that contains the indices where current_word and previous_word differ.
467467
current_word = <tuple> (braid_move_chain[pos])
468468
for k in range(ell):

src/sage/geometry/polyhedron/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3455,7 +3455,7 @@ def triangulate(self, engine='auto', connected=True, fine=False, regular=None, s
34553455
except AssertionError:
34563456
# PointConfiguration is not adapted to inhomogeneous cones
34573457
# This is a hack. TODO: Implement the necessary things in
3458-
# PointConfiguration to accep such cases.
3458+
# PointConfiguration to accept such cases.
34593459
c = self.representative_point()
34603460
normed_v = ((1/(r.vector()*c))*r.vector() for r in self.ray_generator())
34613461
pc = PointConfiguration(normed_v, connected=connected, fine=fine, regular=regular, star=star)

src/sage/graphs/generic_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6196,7 +6196,7 @@ def edge_disjoint_spanning_trees(self, k, root=None, solver=None, verbose=0):
61966196
if root is None:
61976197
root = next(self.vertex_iterator())
61986198

6199-
# r_edges is a relaxed variable grater than edges. It is used to
6199+
# r_edges is a relaxed variable greater than edges. It is used to
62006200
# check the presence of cycles
62016201
r_edges = p.new_variable(nonnegative=True)
62026202

src/sage/matrix/matrix_modn_sparse.pyx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Sparse matrices over `\ZZ/n\ZZ` for `n` small
44
This is a compiled implementation of sparse matrices over
55
`\ZZ/n\ZZ` for `n` small.
66
7-
TODO: - move vectors into a Cython vector class - add _add_ and
8-
_mul_ methods.
7+
.. TODO::
8+
9+
move vectors into a Cython vector class - add _add_ and _mul_ methods.
910
1011
EXAMPLES::
1112
@@ -68,15 +69,15 @@ TESTS::
6869
[]
6970
"""
7071

71-
#*****************************************************************************
72+
# ****************************************************************************
7273
# Copyright (C) 2006 William Stein <[email protected]>
7374
#
7475
# This program is free software: you can redistribute it and/or modify
7576
# it under the terms of the GNU General Public License as published by
7677
# the Free Software Foundation, either version 2 of the License, or
7778
# (at your option) any later version.
78-
# http://www.gnu.org/licenses/
79-
#*****************************************************************************
79+
# https://www.gnu.org/licenses/
80+
# ****************************************************************************
8081

8182
from __future__ import absolute_import
8283

@@ -760,7 +761,7 @@ cdef class Matrix_modn_sparse(matrix_sparse.Matrix_sparse):
760761
.. NOTE::
761762
762763
For very sparse matrices Gaussian elimination is faster
763-
because it barly has anything to do. If the fill in needs to
764+
because it barely has anything to do. If the fill in needs to
764765
be considered, 'Symbolic Reordering' is usually much faster.
765766
"""
766767
if self._nrows == 0 or self._ncols == 0:

src/sage/misc/classcall_metaclass.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AUTHORS:
99
documentation, Cythonization and optimization.
1010
"""
1111

12-
#*****************************************************************************
12+
# ****************************************************************************
1313
# Copyright (C) 2009 Nicolas M. Thiery <nthiery at users.sf.net>
1414
# Copyright (C) 2010-2012 Florent Hivert <Florent.Hivert at lri.fr>
1515
#
@@ -18,7 +18,7 @@ AUTHORS:
1818
# the Free Software Foundation, either version 2 of the License, or
1919
# (at your option) any later version.
2020
# https://www.gnu.org/licenses/
21-
#*****************************************************************************
21+
# ****************************************************************************
2222
from __future__ import print_function
2323

2424
from cpython.object cimport *
@@ -270,7 +270,7 @@ cdef class ClasscallMetaclass(NestedClassMetaclass):
270270
271271
Typical applications include the implementation of factories or of
272272
unique representation (see :class:`UniqueRepresentation`). Such
273-
features are traditionaly implemented by either using a wrapper
273+
features are traditionally implemented by either using a wrapper
274274
function, or fiddling with :meth:`~object.__new__`.
275275
276276
The benefit, compared with fiddling directly with

src/sage/schemes/elliptic_curves/ell_rational_field.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,7 @@ def congruence_number(self, M=1):
37733773
r"""
37743774
The case `M==1` corresponds to the classical definition of congruence number:
37753775
Let `X` be the subspace of `S_2(\Gamma_0(N))` spanned by the newform
3776-
associated with this elliptic curve, and `Y` be orthogonal compliment
3776+
associated with this elliptic curve, and `Y` be orthogonal complement
37773777
of `X` under the Petersson inner product. Let `S_X` and `S_Y` be the
37783778
intersections of `X` and `Y` with `S_2(\Gamma_0(N), \ZZ)`. The congruence
37793779
number is defined to be `[S_X \oplus S_Y : S_2(\Gamma_0(N),\ZZ)]`.

src/sage/sets/cartesian_product.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
66
- Nicolas Thiery (2010-03): initial version
77
"""
8-
#*****************************************************************************
8+
# ****************************************************************************
99
# Copyright (C) 2008 Nicolas Thiery <nthiery at users.sf.net>,
1010
# Mike Hansen <[email protected]>,
1111
# Florent Hivert <[email protected]>
1212
#
1313
# Distributed under the terms of the GNU General Public License (GPL)
14-
# http://www.gnu.org/licenses/
15-
#*****************************************************************************
14+
# https://www.gnu.org/licenses/
15+
# ****************************************************************************
1616
from __future__ import print_function
1717

1818
import numbers
@@ -121,7 +121,7 @@ def _element_constructor_(self,x):
121121
sage: R(-5)
122122
(-5, -5)
123123
"""
124-
# NOTE: should we more generlly allow diagonal embedding
124+
# NOTE: should we more generally allow diagonal embedding
125125
# if we have a conversion?
126126
if self in _Rings and isinstance(x, numbers.Integral):
127127
return x * self.one()

src/sage/sets/integer_range.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
66
- Nicolas Borie (2010-03): First release.
77
- Florent Hivert (2010-03): Added a class factory + cardinality method.
8-
- Vincent Delecroix (2012-02): add methods rank/unrank, make it complient with
8+
- Vincent Delecroix (2012-02): add methods rank/unrank, make it compliant with
99
Python int.
1010
"""
11-
#*****************************************************************************
11+
# ****************************************************************************
1212
# Copyright (C) 2010 Nicolas Borie <[email protected]>
1313
#
1414
# Distributed under the terms of the GNU General Public License (GPL)
15-
# http://www.gnu.org/licenses/
16-
#*****************************************************************************
15+
# https://www.gnu.org/licenses/
16+
# ****************************************************************************
1717

1818
from sage.structure.parent import Parent
1919
from sage.categories.infinite_enumerated_sets import InfiniteEnumeratedSets
@@ -24,6 +24,7 @@
2424
from sage.rings.integer_ring import IntegerRing
2525
from sage.rings.infinity import Infinity, MinusInfinity, PlusInfinity
2626

27+
2728
class IntegerRange(UniqueRepresentation, Parent):
2829
r"""
2930
The class of :class:`Integer <sage.rings.integer.Integer>` ranges

src/sage/stats/hmm/hmm.pyx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ AUTHOR:
2121
- William Stein, 2010-03
2222
"""
2323

24-
#*****************************************************************************
24+
# ****************************************************************************
2525
# Copyright (C) 2010 William Stein <[email protected]>
2626
#
2727
# This program is free software: you can redistribute it and/or modify
2828
# it under the terms of the GNU General Public License as published by
2929
# the Free Software Foundation, either version 2 of the License, or
3030
# (at your option) any later version.
31-
# http://www.gnu.org/licenses/
32-
#*****************************************************************************
31+
# https://www.gnu.org/licenses/
32+
# ****************************************************************************
3333

3434
from __future__ import print_function
3535

@@ -385,9 +385,11 @@ cdef class DiscreteHiddenMarkovModel(HiddenMarkovModel):
385385
def emission_matrix(self):
386386
"""
387387
Return the matrix whose i-th row specifies the emission
388-
probability distribution for the i-th state. More precisely,
388+
probability distribution for the i-th state.
389+
390+
More precisely,
389391
the i,j entry of the matrix is the probability of the Markov
390-
model outputing the j-th symbol when it is in the i-th state.
392+
model outputting the j-th symbol when it is in the i-th state.
391393
392394
OUTPUT:
393395

src/sage/typeset/character_art_factory.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
r"""
33
Factory for Character-Based Art
44
"""
5-
#*******************************************************************************
5+
# ******************************************************************************
66
# Copyright (C) 2013 Jean-Baptiste Priez <[email protected]>,
77
#
88
# Distributed under the terms of the GNU General Public License (GPL)
@@ -14,8 +14,8 @@
1414
#
1515
# The full text of the GPL is available at:
1616
#
17-
# http://www.gnu.org/licenses/
18-
#*******************************************************************************
17+
# https://www.gnu.org/licenses/
18+
# ******************************************************************************
1919
from six import iteritems, string_types, text_type, binary_type
2020
from six.moves import range
2121

@@ -364,7 +364,7 @@ def build_list(self, l, baseline=0):
364364
sage: l.get_breakpoints()
365365
[9, 17, 25]
366366
367-
The parantheses only stretch as high as the content (:trac:`28527`)::
367+
The parentheses only stretch as high as the content (:trac:`28527`)::
368368
369369
sage: ascii_art([ascii_art('a', baseline=1)])
370370
[ a ]

0 commit comments

Comments
 (0)