Skip to content

Commit 3d98c77

Browse files
authored
fix(interactive): Fix typo (#4233)
<!-- Thanks for your contribution! please review https://github.com/alibaba/GraphScope/blob/main/CONTRIBUTING.md before opening an issue. --> ## What do these changes do? Fix typo <!-- Please give a short brief about these changes. --> ## Related issue number <!-- Are there any issues opened that will be resolved by merging this change? --> Fixes
1 parent 086d7b1 commit 3d98c77

File tree

17 files changed

+27
-27
lines changed

17 files changed

+27
-27
lines changed

python/graphscope/analytical/udf/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def patch_cython_codewriter(writer): # noqa: C901
134134
13. Add for `visit_CascadedCmpNode` node.
135135
Patch for `visit_PrimaryCmpNode` node.
136136
137-
Examaples:
137+
Examples:
138138
----------
139139
140140
>>> 5 < 6 <= 7 > 4 >= 3 > 2 != 1

python/graphscope/client/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def handle_grpc_error_with_retry(fn, retry=True):
143143
This function will retry max times with specific GRPC status.
144144
See detail in `GRPC_MAX_RETRIES_BY_CODE`.
145145
146-
Refer and specical thanks to:
146+
Refer and special thanks to:
147147
148148
https://github.com/googleapis/google-cloud-python/issues/2583
149149
"""
@@ -179,7 +179,7 @@ def with_grpc_catch(*args, **kwargs):
179179

180180

181181
def handle_grpc_error(fn_or_retry):
182-
"""Decorator to handle grpc error, and accepts an optional arugment to control
182+
"""Decorator to handle grpc error, and accepts an optional argument to control
183183
whether the function should be retried for certain errors.
184184
185185
This decorator can be used as

python/graphscope/deploy/hosts/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _launch_coordinator(self):
9191

9292
# Param `start_new_session=True` is for putting child process to a new process group
9393
# so it won't get the signals from parent.
94-
# In notebook environment, we need to accept the signal from kernel restarted/stoped.
94+
# In notebook environment, we need to accept the signal from kernel restarted/stopped.
9595
process = subprocess.Popen(
9696
cmd,
9797
start_new_session=False if in_notebook() else True,

python/graphscope/framework/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def load_app(gar=None, algo=None, context=None, **kwargs):
501501
specified path or bytes.
502502
503503
For java apps, gar can be none to indicate we should find the app in
504-
previouse added libs.
504+
previous added libs.
505505
506506
Returns:
507507
Instance of <graphscope.framework.app.AppAssets>

python/graphscope/framework/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def to_numpy(self, selector, vertex_range=None, axis=0):
146146
identical with vertices' oid type.
147147
Omitting the first index starts the slice at the beginning of the vertices,
148148
and omitting the second index extends the slice to the end of the vertices.
149-
Note the comparision is not based on numeric order, but on alphabetic order.
149+
Note the comparison is not based on numeric order, but on alphabetic order.
150150
axis (int): optional, default to 0.
151151
152152
Returns:
@@ -170,7 +170,7 @@ def to_dataframe(self, selector, vertex_range=None):
170170
of vertices from `m` to, but not including `n`. Type of `m`, `n` must be
171171
identical with vertices' oid type.
172172
Only the sub-ranges of vertices data will be retrieved.
173-
Note the comparision is not based on numeric order, but on alphabetic order.
173+
Note the comparison is not based on numeric order, but on alphabetic order.
174174
175175
Returns:
176176
:class:`graphscope.framework.context.ResultDAGNode`:

python/graphscope/framework/dag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class Dag(object):
3030
"""Class represented as a GraphScope dataflow dag.
3131
32-
A :class:`Dag` is always belongs to a session and containes a set of
32+
A :class:`Dag` is always belongs to a session and contains a set of
3333
:class:`Operation` object, which performs computations on tensors.
3434
"""
3535

python/graphscope/framework/graph_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ def load_from(
159159
generate_eid (bool, optional): Whether to generate a unique edge id for each edge. Generated eid will be placed
160160
in third column. This feature is for cooperating with interactive engine.
161161
If you only need to work with analytical engine, set it to False. Defaults to True.
162-
retain_oid (bool, optional): Whether to keep the orignal ID column as the last column of vertex table.
162+
retain_oid (bool, optional): Whether to keep the original ID column as the last column of vertex table.
163163
This feature is for cooperating with interactive engine.
164164
If you only need to work with analytical engine, set it to False. Defaults to True.
165165
vertex_map (str, optional): Indicate use global vertex map or local vertex map. Can be "global" or "local".
166-
compact_edges (bool, optional): Compact edges (CSR) using varint and delta encoding. Defaults to False.
166+
compact_edges (bool, optional): Compact edges (CSR) using variant and delta encoding. Defaults to False.
167167
Note that compact edges helps to half the memory usage of edges in graph data structure, but may cause
168168
at most 10%~20% performance degeneration in some algorithms.
169169
use_perfect_hash (bool, optional): Use perfect hashmap in vertex map to optimize the memory usage.

python/graphscope/framework/loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
class CSVOptions(object):
4545
"""Options to read from CSV files.
46-
Avaiable options are:
46+
Available options are:
4747
- column delimiters
4848
- include a subset of columns
4949
- types of each columns
@@ -165,7 +165,7 @@ def __repr__(self) -> str:
165165
return self.__str__()
166166

167167
def resolve(self, source):
168-
"""Dispatch resolver based on type of souce.
168+
"""Dispatch resolver based on type of source.
169169
170170
Args:
171171
source: Different data sources

python/graphscope/gsctl/scripts/install_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ get_os_version() {
5454
OS_VERSION=$(uname -r)
5555
fi
5656
if [[ "${PLATFORM}" != *"Ubuntu"* && "${PLATFORM}" != *"CentOS"* && "${PLATFORM}" != *"Darwin"* && "${PLATFORM}" != *"Aliyun"* ]];then
57-
err "Only suppport on Ubuntu/CentOS/macOS/AliyunOS platform."
57+
err "Only support on Ubuntu/CentOS/macOS/AliyunOS platform."
5858
exit 1
5959
fi
6060
if [[ "${PLATFORM}" == *"Ubuntu"* && "${OS_VERSION:0:2}" -lt "20" ]]; then

python/graphscope/nx/algorithms/builtin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def all_pairs_shortest_path_length(G, weight=None):
414414
----------
415415
G : networkx graph
416416
417-
weight : string (defualt=None)
417+
weight : string (default=None)
418418
edge weights will be accessed via the edge attribute with this
419419
key (that is, the weight of the edge joining `u` to `v` will be
420420
``G.edges[u, v][weight]``). If is None, every edge is assume to be one.

0 commit comments

Comments
 (0)