-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from bobleesj/fix-infra
Apply docstring automatic format, add docstrings to CIF object, set line-width to 90, fix typos
- Loading branch information
Showing
43 changed files
with
420 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
;; Please include filenames and explanations for each ignored line. | ||
;; See https://docs.openverse.org/meta/codespell.html for docs. | ||
|
||
;; .github/workflows/draft_releases.yml | ||
;; The release-drafter/release-drafter configuration variable name cannot be changed | ||
commitish: main | ||
|
||
;; frontend/src/locales/scripts/en.json5 | ||
;; Prettier insists we escape a single quote rather than the double quotes and codespell | ||
;; does not understand the escaped `\'t` as "couldn't". It instead just sees "couldn". | ||
heading: 'We couldn\'t find anything for "{query}".', | ||
|
||
;; catalog/tests/dags/providers/provider_api_scripts/test_wikimedia_commons.py | ||
;; "Titel" matches "title", but the phrase is in Dutch, not English, so "titel" | ||
;; is actually correct. Similarly, "als" incorrectly matches to "also" in the same | ||
;; block of Dutch text. | ||
"Identificatie Titel(s): Allegorie op kunstenaar Francesco Mazzoli, " | ||
"bekend als Parmigianino" | ||
|
||
;; packages/js/eslint-plugin/configs/vue.ts | ||
;; `te` gets matched with `the` and others | ||
const i18nDestructureRules = ["t", "tc", "te", "td", "d", "n"].map( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
;; Please include explanations for each ignored word (lowercase) using full sentences. | ||
;; See https://docs.openverse.org/meta/codespell.html for docs. | ||
|
||
;; `nd` is a chemical element. | ||
nd | ||
|
||
;; `te` is a chemical element. | ||
te | ||
|
||
;; `Indide` refers to the keywords in the tyvanchuk_crystal_2024 paper. | ||
indide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
def get_CN_connections_by_best_methods( | ||
best_methods, conncetions: dict | ||
best_methods, connections: dict | ||
) -> dict: | ||
""" | ||
Retrieve connections limited by the number of vertices (CN_value) | ||
for each label. | ||
""" | ||
"""Retrieve connections limited by the number of vertices (CN) for each | ||
label.""" | ||
CN_connections = {} | ||
|
||
for label, data in best_methods.items(): | ||
CN_value = data[ | ||
"number_of_vertices" | ||
] # Extract the limit for the number of vertices | ||
# Limit the connections for this label using CN_value | ||
CN_connections[label] = conncetions[label][:CN_value] | ||
CN_connections[label] = connections[label][:CN_value] | ||
|
||
return CN_connections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.