-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spelling corrections #1798
Spelling corrections #1798
Conversation
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
CLA Assistant Lite bot Good! All Contributors have signed the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrections mostly automatically suggested by Google Sheets.
All fault mine.
Optional: You can use [Github desktop](https://desktop.github.com/) to greatly simplify the commit and update process. | ||
Optional: You can use [GitHub desktop](https://desktop.github.com/) to greatly simplify the commit and update process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brand
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/RangeTest.java
Show resolved
Hide resolved
// CockroackDB not support 'template' arg of CREATE DATABASE | ||
// CockroachDB not support 'template' arg of CREATE DATABASE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
brand
"The execution peroid of the background thread that " + | ||
"The execution period of the background thread that " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User facing config
GraphTraversal<Vertex, Vertex> vertexs = g.V(); | ||
GraphTraversal<Vertex, Vertex> vertices = g.V(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is 200:1 vs vertexes
# rather than mysql silently replacing each each byte of the | ||
# rather than mysql silently replacing each byte of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't strictly a spelling thing, but spell checkers have been complaining about doubled words for decades, so my tool now includes this as well...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch for your spelling-check tool, we do need the rule
public interface Indexfiable { | ||
public interface Indexifiable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API break?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tool recognized this as a non-word. The correction here was manual (Google Sheets guessed Index Fiable
).
Picking correct words is generally left as the responsibility of a human, although for large lists, I'm able to leverage Google Sheets corrections for some portion of items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "Indexable" is a more appropriate word here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I should note that the places where I comment about api breaks are purely manual, it's my way of saying "I'm a human, not a robot, I do understand that changes have consequences". They also aren't necessarily exhaustive (I tend to do this changes while exhausted...).
"snowflake.datecenter_id", | ||
"snowflake.datacenter_id", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config break
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, although this config influence little, we should update the doc
later (mark)
public static abstract class ShardSpliter<Session extends BackendSession> { | ||
public static abstract class ShardSplitter<Session extends BackendSession> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API change
@@ -128,7 +128,7 @@ protected void formatProperties(HugeElement element, | |||
protected void parseProperties(HugeElement element, | |||
TableBackendEntry.Row row) { | |||
String properties = row.column(HugeKeys.PROPERTIES); | |||
// Query edge will wraped by a vertex, whose properties is empty | |||
// Query edge will wrapped by a vertex, whose properties is empty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will wrapped --> wil be wrapped
? (Can this be detected? lack be
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kinda. It isn't a grammar checker, but if you know someone is going to make a certain kind of mistake and can describe it with a regular expression, then, yes.
This is the set of supplemental rules that were used for this PR:
https://github.com/jsoref/hugegraph/blob/spell-check/.github/actions/spelling/line_forbidden.patterns
Only the last one is actually fancy.
But, you could do something like:
# s.b. will _be_ ...
\bwill [a-z]{3,}ed\b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this heuristic would fail for will speed up
(bumping to {4,}
would cover that case).
I haven't thought through these edges before.
In theory, there may be grammar checkers available for GitHub, although, I can't point to any as GitHub Actions.
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your contribution! Nice tool.
hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/optimize/TraversalUtil.java
Show resolved
Hide resolved
hugegraph-example/src/main/java/com/baidu/hugegraph/example/PerfExample1.java
Show resolved
Hide resolved
@@ -448,7 +448,7 @@ protected static Response createAndAssert(String path, String body, | |||
|
|||
List<Map> vertices = readList(content, "vertices", Map.class); | |||
|
|||
Map<String, String> vertextName2Ids = new HashMap<>(); | |||
Map<String, String> vertexName2Ids = new HashMap<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/vertext/vertex
@@ -49,7 +49,7 @@ public void teardown() { | |||
} | |||
|
|||
@Test | |||
public void testParseRepilcaWithSimpleStrategy() { | |||
public void testParseReplicaWithSimpleStrategy() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Repilc/Repilca
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/RangeTest.java
Show resolved
Hide resolved
public interface Indexfiable { | ||
public interface Indexifiable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "Indexable" is a more appropriate word here
hugegraph-core/src/main/java/com/baidu/hugegraph/schema/SchemaLabel.java
Outdated
Show resolved
Hide resolved
APACHE_PROPOSAL.md
Outdated
@@ -56,7 +56,7 @@ We have checked and believe the name is [suitable](https://github.com/hugegraph/ | |||
|
|||
#### Relationship with Titan/Janus Graph | |||
|
|||
In the early stage of the project, we referred to the storage structure of Titan/Janus Graph, some folks thought that HugeGraph was forked from Titan/Janus. In fact, HugeGraph is not based on these projects. HugeGraph is developed completely from scratch and in the process it addressed many new challenges. Certainly, the project was inspired by Titan/Janus and we are really gratitious for such inspirations. | |||
In the early stage of the project, we referred to the storage structure of Titan/Janus Graph, some folks thought that HugeGraph was forked from Titan/Janus. In fact, HugeGraph is not based on these projects. HugeGraph is developed completely from scratch and in the process it addressed many new challenges. Certainly, the project was inspired by Titan/Janus and we are really gratuitous for such inspirations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should note that the downside of a spelling oriented automated fix is that one can get a correctly spelled word that one shouldn't use. This is an example.
https://github.com/hugegraph/hugegraph/pull/1797#discussion_r836326440
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
6a1755f
to
09d3a9a
Compare
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1798 +/- ##
============================================
+ Coverage 66.91% 70.87% +3.96%
Complexity 978 978
============================================
Files 446 446
Lines 37781 37781
Branches 5380 5380
============================================
+ Hits 25281 26778 +1497
+ Misses 9776 8282 -1494
+ Partials 2724 2721 -3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, u could submit another pr for github action u mentioned before ~
This PR corrects misspellings identified by the check-spelling action.
The misspellings have been reported at jsoref@e94f980#commitcomment-69669718
The action reports that the changes in this PR would make it happy: jsoref@45806c1
Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.