repo
stringlengths
5
53
pr_number
int32
1
321k
task_type
stringclasses
2 values
issue_text
stringlengths
0
81.2k
pr_title
stringlengths
1
319
pr_body
stringlengths
0
105k
base_sha
stringlengths
40
40
head_sha
stringlengths
40
40
gold_diff
stringlengths
0
202M
changed_files
listlengths
0
100
review_threads
listlengths
0
100
test_patch
stringlengths
0
23.4M
merged
bool
1 class
transact-rs/sqlx
4,172
issue_to_patch
fix(sqlx-cli): bump openssl minimum to 0.10.46
native-tls 0.2.12 calls `Pkcs12::parse2()` which was added in openssl 0.10.46, but declares its minimum as 0.10.29. The minimal-versions resolver picked openssl 0.10.38 (our previous lower bound), which lacks `parse2`. ### Does your PR solve an issue? No this is to fix failing CI on main. See unrelated PR's wi...
f5cdf3316d12ba0530486b4722a4114608fa1c84
e31d15fa412440d2f3b40fdcac52c6b834bb5cb4
diff --git a/sqlx-cli/Cargo.toml b/sqlx-cli/Cargo.toml index 89dc93477e..a18366f982 100644 --- a/sqlx-cli/Cargo.toml +++ b/sqlx-cli/Cargo.toml @@ -37,7 +37,7 @@ console = "0.15.0" dialoguer = { version = "0.11", default-features = false } serde_json = "1.0.73" glob = "0.3.0" -openssl = { version = "0.10.38", optiona...
[ "sqlx-cli/Cargo.toml" ]
[]
true
transact-rs/sqlx
4,161
issue_to_patch
sqlx-sqlite: libsqlite3-sys pin prevents coexistence with rusqlite 0.38 ecosystems ### I have found these related issues/pull requests `sqlx-sqlite` currently pins `libsqlite3-sys` to `0.30.1` (on 0.8.5), which makes Cargo resolution fail in mixed graphs that also include crates using `rusqlite` 0.38 (`libsqlite3-sys...
sqlx-sqlite: relax libsqlite3-sys constraint to allow 0.36.x
### Does your PR solve an issue? Fixes #4160 ### Is this a breaking change? No
7248f6424426a9035ed28ef7fec7bf03aa767b9b
dda9e116cedc49275d328b42c83ea3c6418ab5d3
diff --git a/sqlx-sqlite/Cargo.toml b/sqlx-sqlite/Cargo.toml index 9b5c5567d6..e1b4c7edc4 100644 --- a/sqlx-sqlite/Cargo.toml +++ b/sqlx-sqlite/Cargo.toml @@ -56,7 +56,7 @@ _unstable-docs = [ [dependencies.libsqlite3-sys] # See `sqlx-sqlite/src/lib.rs` for details. -version = ">=0.30.0, <0.36.0" +version = ">=0.30....
[ "sqlx-sqlite/Cargo.toml" ]
[]
true
transact-rs/sqlx
4,042
issue_to_patch
Update to webpki-roots 1
### Does your PR solve an issue? No. ### Is this a breaking change? No. Behavior changes _can_ be breaking if significant enough. Consider [Hyrum's Law](https://www.hyrumslaw.com/): > With a sufficient number of users of an API, > it does not matter what you promise in the contract: > all observab...
452da1acf549e94a6358a770e7513433f15b5f0a
5d12f54d4d6df45d9178b7965405a6d1bce7efd8
diff --git a/Cargo.lock b/Cargo.lock index 9c397c555d..ba9c103f92 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3596,7 +3596,7 @@ dependencies = [ "tracing", "url", "uuid", - "webpki-roots 0.26.11", + "webpki-roots", ] [[package]] @@ -4796,15 +4796,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -nam...
[ "Cargo.lock", "sqlx-core/Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
5,330
issue_to_patch
feat(cli) `tree-sitter test --show-diff-symbols`
Added `tree-sitter test` option `--show-diff-symbols` so both color and symbols can use simultaneously. <img width="339" height="224" alt="image" src="https://github.com/user-attachments/assets/78e7e404-b2f4-4f6b-9d7c-550ed38533b1" />
3ed12db8f0a52600f6af386f3736b71962a1c42d
659fd57e3801ea04fe9346d7e86db6de081fdff1
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 6ec084a595..ed91600a42 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -343,6 +343,9 @@ struct Test { /// Force showing fields in test diffs #[arg(long)] pub show_fields: bool, + /// Force showing '+' and '-' in tes...
[ "crates/cli/src/main.rs", "crates/cli/src/test.rs", "docs/src/cli/test.md" ]
[]
true
tree-sitter/tree-sitter
5,675
issue_to_patch
fix(rust): use more accurate types for various `IoError` structs
More improvements along the same vein as #5671. When we originally changed from `anyhow` to `thiserror`, our only concern was displaying errors on the CLI side. Since these crates are used as libraries, it's better to store the actual data in the error rather than a stringified copy. ### AI Policy - [x] I have r...
4455da71029b13fa113956d1470c75c85db8fdc5
cc9f93483b1d537cb43271d4bca4e4971898db94
diff --git a/crates/config/src/tree_sitter_config.rs b/crates/config/src/tree_sitter_config.rs index 17b1d384ac..c6b1dc2b1f 100644 --- a/crates/config/src/tree_sitter_config.rs +++ b/crates/config/src/tree_sitter_config.rs @@ -28,14 +28,14 @@ pub enum ConfigError { #[derive(Debug, Error)] pub struct IoError { pu...
[ "crates/config/src/tree_sitter_config.rs", "crates/generate/src/generate.rs", "crates/generate/src/quickjs.rs", "crates/loader/src/loader.rs", "crates/xtask/src/build_wasm.rs" ]
[]
true
tree-sitter/tree-sitter
5,679
issue_to_patch
build(deps): bump wasmtime-c-api to v36.0.10
Latest LTS security update
519d511488497f6af43698d4c856f4b3f1f0b80c
b9bbb577c04eac2f2780bcf44460b9e1f9061505
diff --git a/Cargo.lock b/Cargo.lock index 61f45e3db0..06f16442ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -125,9 +125,9 @@ dependencies = [ [[package]] name = "bitflags" -version = "2.11.1" +version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4512299f36f043ab09a583...
[ "Cargo.lock", "build.zig.zon", "lib/Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
5,680
issue_to_patch
build(deps): bump binaryen to v130
519d511488497f6af43698d4c856f4b3f1f0b80c
e08ef17d3d401354a7ad16c6c576d9ed6ac624d1
diff --git a/crates/loader/binaryen-version b/crates/loader/binaryen-version index b0d73241ca..fd03ab2a61 100644 --- a/crates/loader/binaryen-version +++ b/crates/loader/binaryen-version @@ -1,1 +1,1 @@ -129 +130
[ "crates/loader/binaryen-version" ]
[]
true
tree-sitter/tree-sitter
5,674
issue_to_patch
fix(cli): infinite loop in highlight test
Manual backport of #5097 and #5673 (pending merge).
e502c6c18eb9016dcab15197e84598d1cc4f4648
eb41afc424de3aa8d3f80fe4f7288e5b011950cd
[ "crates/cli/src/test_highlight.rs", "crates/cli/src/tests/test_highlight_test.rs" ]
[]
diff --git a/crates/cli/src/test_highlight.rs b/crates/cli/src/test_highlight.rs index d96f90c27d..49cb6cfcc3 100644 --- a/crates/cli/src/test_highlight.rs +++ b/crates/cli/src/test_highlight.rs @@ -13,10 +13,10 @@ use crate::{ #[derive(Debug)] pub struct Failure { - row: usize, - column: usize, - expected...
true
tree-sitter/tree-sitter
5,673
issue_to_patch
fix(cli): highlight test did not properly check for spans on later rows
#5655 without the noise from Copilot. Thanks @jannschu!
4455da71029b13fa113956d1470c75c85db8fdc5
ea583d2df00a98d537ecca4894ddfebf7f521787
[ "crates/cli/src/test_highlight.rs", "crates/cli/src/tests/test_highlight_test.rs" ]
[]
diff --git a/crates/cli/src/test_highlight.rs b/crates/cli/src/test_highlight.rs index cfb65a7547..644b980b58 100644 --- a/crates/cli/src/test_highlight.rs +++ b/crates/cli/src/test_highlight.rs @@ -151,7 +151,9 @@ pub fn iterate_assertions( i += 1; continue; } - ...
true
tree-sitter/tree-sitter
5,676
issue_to_patch
ci: bump actions/checkout from 6.0.2 to 6.0.3 in the actions group
Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 6.0.2 to 6.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2...
4455da71029b13fa113956d1470c75c85db8fdc5
bdf06f4acb6a3343158cf84e274c0f27f9bc1410
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 2d5b4a65c5..23a1139af7 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v6...
[ ".github/workflows/backport.yml", ".github/workflows/bindgen.yml", ".github/workflows/build.yml", ".github/workflows/ci.yml", ".github/workflows/crate_versions.yml", ".github/workflows/docs.yml", ".github/workflows/nvim_ts.yml", ".github/workflows/release.yml", ".github/workflows/response.yml", "....
[]
true
tree-sitter/tree-sitter
5,672
issue_to_patch
fix: add DESCRIPTION to grammar Makefile template
Manual backport of #5668
2fddf5a1b4dcb137ce40bb216d30959f781282a6
8fda4cf7bd87a6fa446ba812419844b12722364b
diff --git a/crates/cli/src/init.rs b/crates/cli/src/init.rs index 6eb28b1b8f..eee1d06d19 100644 --- a/crates/cli/src/init.rs +++ b/crates/cli/src/init.rs @@ -737,6 +737,19 @@ pub fn generate_grammar_files( "} ); } + ...
[ "crates/cli/src/init.rs", "crates/cli/src/templates/makefile" ]
[]
true
tree-sitter/tree-sitter
5,669
issue_to_patch
fix(cli): display warning to user if parser test corpus dir isn't found
# Description Backport of #5666 to `release-0.26`.
70068dd48769e77e87c905c78fa3409d10ca4413
d68d76c8b503be1de732e87e11ffe8375dee2af6
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index c6d845fc8e..adbb42146b 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -1353,16 +1353,20 @@ impl Test { self.json_summary, )?; test_summary.test_num = 1; + } else { + warn!...
[ "crates/cli/src/main.rs", "crates/cli/src/test.rs" ]
[]
true
tree-sitter/tree-sitter
5,665
issue_to_patch
fix(rust): more clippy fixes in generate
Additional clippy lints fire when certain modules are temporarily made public, i.e. for testing purposes. Fixing these reduces clutter and helps with internal development.
574205298283bfbec30fac611e330fc4a4431365
fa312c60b009aea128877fdcc1c99a6b05c3824d
diff --git a/crates/generate/src/bitvec.rs b/crates/generate/src/bitvec.rs index 50c4bbf90f..28be2f8178 100644 --- a/crates/generate/src/bitvec.rs +++ b/crates/generate/src/bitvec.rs @@ -93,6 +93,7 @@ pub struct BitVec { } impl BitVec { + #[must_use] pub const fn new() -> Self { Self { ...
[ "crates/generate/src/bitvec.rs", "crates/generate/src/build_tables/coincident_tokens.rs", "crates/generate/src/build_tables/item.rs", "crates/generate/src/build_tables/item_set_builder.rs", "crates/generate/src/build_tables/token_conflicts.rs", "crates/generate/src/grammars.rs", "crates/generate/src/nfa...
[]
true
tree-sitter/tree-sitter
5,664
issue_to_patch
Alias over a supertype loses supertype information in `node_types.json` ### Problem An alias over a supertype looses supertype information in `node_types.json`. The resulting type contains no structure definitions at all; not subtypes (which I *think* would be wrong wrt the generated tree), not fields/children of the...
fix(docs): explicitly warn against aliasing supertypes
Aliases work in name only, they don't automatically make an aliased rule a supertype. I found a way to check this as part of the generate pipeline, but it requires a recursive walk over all rules in an `InputGrammar`. Furthermore, we're trying to move away from issuing warnings as part of the generate pipeline, as t...
574205298283bfbec30fac611e330fc4a4431365
77a556ffe5096ec7dcdc85ac03dd56075d8ccdc0
diff --git a/docs/src/creating-parsers/3-writing-the-grammar.md b/docs/src/creating-parsers/3-writing-the-grammar.md index f597e44b58..b938756bae 100644 --- a/docs/src/creating-parsers/3-writing-the-grammar.md +++ b/docs/src/creating-parsers/3-writing-the-grammar.md @@ -520,6 +520,13 @@ module.exports = grammar({ Alth...
[ "docs/src/creating-parsers/3-writing-the-grammar.md" ]
[]
true
tree-sitter/tree-sitter
5,667
issue_to_patch
fix(cli): warn user for various malformed tests
- attribute on same line of name - typo'd attribute - no closing `=====` line after the test body Addresses the pain points raised in #5633. I opted to _not_ make these hard errors and instead warn the user via a print to stderr.
574205298283bfbec30fac611e330fc4a4431365
d1ceb8ffc32cf7a578272a00b39761b84cb00c1b
diff --git a/crates/cli/src/test.rs b/crates/cli/src/test.rs index 386497b423..1a53975211 100644 --- a/crates/cli/src/test.rs +++ b/crates/cli/src/test.rs @@ -1376,6 +1376,17 @@ struct PendingTest { body_start_line: usize, } +/// If `token` matches the shape of one of the known test attributes, +/// then return...
[ "crates/cli/src/test.rs" ]
[]
true
tree-sitter/tree-sitter
5,666
issue_to_patch
Fail `test` subcommand if corpus is empty ### AI Policy - [x] I have read the AI Policy and this issue complies with it. ### Problem In Slint we run `tree-sitter test` in our CI. However, for a long time we didn't notice that our test corpus was in the wrong folder, because the `tree-sitter test` command still pass...
fix(cli): display warning to user if parser test corpus dir isn't found
I opted to not add similar warnings if other directories are missing (i.e. queries, tags, highlights), as it's much more common for these to not be present in a grammar repo. I don't think it's appropriate to fail (and as a side effect, bail early) if no parsing tests are found, but a logged warning should be suffic...
574205298283bfbec30fac611e330fc4a4431365
53722bd127312d16c7938dbe7d006b9abaa64306
diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 1dcec47b47..6ec084a595 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -1366,16 +1366,20 @@ impl Test { self.json_summary, )?; test_summary.test_num = 1; + } else { + warn!...
[ "crates/cli/src/main.rs", "crates/cli/src/test.rs" ]
[]
true
tree-sitter/tree-sitter
5,668
issue_to_patch
Empty descriptions in pkg-config files ### AI Policy - [x] I have read the AI Policy and this issue complies with it. ### Problem Command `tree-sitter init` generates a file, e.g., `bindings/c/tree-sitter-java.pc.in`, containing the following line: ``` Description: @PROJECT_DESCRIPTION@ ``` It also generates a `M...
fix: add DESCRIPTION to grammar Makefile template
- Closes #5590
574205298283bfbec30fac611e330fc4a4431365
cf6decc030eb10497fdad22dd10b80a77a570075
diff --git a/crates/cli/src/init.rs b/crates/cli/src/init.rs index 3496600157..66d0d13e70 100644 --- a/crates/cli/src/init.rs +++ b/crates/cli/src/init.rs @@ -1060,6 +1060,19 @@ fn update_c_makefile(path: &Path, language_name: &str, opts: &GenerateOpts) -> R "}, ); } + ...
[ "crates/cli/src/init.rs", "crates/cli/src/templates/makefile" ]
[]
true
tree-sitter/tree-sitter
5,659
issue_to_patch
build(deps): bump the cargo group with 3 updates
Bumps the cargo group with 3 updates: [cc](https://github.com/rust-lang/cc-rs), [log](https://github.com/rust-lang/log) and [memchr](https://github.com/BurntSushi/memchr). Updates `cc` from 1.2.62 to 1.2.63 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/cc-rs/relea...
ff4dbc058918336ad4dda3aa930b5d832ff9758d
613e50c6600e03e91eaea344c6e4a057f14f3ef5
diff --git a/Cargo.lock b/Cargo.lock index e6d709d9c7..61f45e3db0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ "quote", "regex", "rustc-hash", - "shlex", + "shlex 1.3.0", "syn", ] @@ -172,12 +172,12 @@ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc...
[ "Cargo.lock", "Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
5,660
issue_to_patch
ci: bump actions/checkout from 6 to 6.0.2 in the actions group
Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout). Updates `actions/checkout` from 6 to 6.0.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v6....
ff4dbc058918336ad4dda3aa930b5d832ff9758d
10764ca22f6d651d0bbbb195617bedfea21ed606
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index c8631bc52b..2d5b4a65c5 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v6...
[ ".github/workflows/backport.yml", ".github/workflows/bindgen.yml", ".github/workflows/build.yml", ".github/workflows/ci.yml", ".github/workflows/crate_versions.yml", ".github/workflows/docs.yml", ".github/workflows/nvim_ts.yml", ".github/workflows/release.yml", ".github/workflows/response.yml", "....
[]
true
tree-sitter/tree-sitter
5,589
issue_to_patch
perf(bindings): defer importlib.resources import in python template
Previously submitted as https://github.com/tree-sitter/tree-sitter-bash/pull/338 ## Summary I noticed on my machine that `import tree_sitter_bash` took ~170ms cold / ~50ms warm on CPython 3.14. Moving `from importlib.resources import files as _files` from module top-level into `_get_query` (the only function t...
a858378ce7f4c124339cf67d8ad37341964fc0ee
6ce587087fe8703154160b9777b4e03887317d74
diff --git a/crates/cli/src/templates/__init__.py b/crates/cli/src/templates/__init__.py index 784887a7ed..b540d366a2 100644 --- a/crates/cli/src/templates/__init__.py +++ b/crates/cli/src/templates/__init__.py @@ -1,13 +1,15 @@ """PARSER_DESCRIPTION""" -from importlib.resources import files as _files - from ._bind...
[ "crates/cli/src/templates/__init__.py" ]
[ { "comment": "```suggestion\n from importlib.resources import files\n try:\n query = files(f\"{__package__}\") / file\n```\nThe alias isn't necessary here since it's not exported.", "path": "crates/cli/src/templates/__init__.py", "hunk": "@@ -1,11 +1,10 @@\n \"\"\"PARSER_DESCRIPTION\"\"\"\n...
true
tree-sitter/tree-sitter
5,589
comment_to_fix
perf(bindings): defer importlib.resources import in python template
```suggestion from importlib.resources import files try: query = files(f"{__package__}") / file ``` The alias isn't necessary here since it's not exported.
a858378ce7f4c124339cf67d8ad37341964fc0ee
6ce587087fe8703154160b9777b4e03887317d74
diff --git a/crates/cli/src/templates/__init__.py b/crates/cli/src/templates/__init__.py index 784887a7ed..b540d366a2 100644 --- a/crates/cli/src/templates/__init__.py +++ b/crates/cli/src/templates/__init__.py @@ -1,13 +1,15 @@ """PARSER_DESCRIPTION""" -from importlib.resources import files as _files - from ._bind...
[ "crates/cli/src/templates/__init__.py" ]
[ { "comment": "```suggestion\n from importlib.resources import files\n try:\n query = files(f\"{__package__}\") / file\n```\nThe alias isn't necessary here since it's not exported.", "path": "crates/cli/src/templates/__init__.py", "hunk": "@@ -1,11 +1,10 @@\n \"\"\"PARSER_DESCRIPTION\"\"\"\n...
true
tree-sitter/tree-sitter
5,656
issue_to_patch
fix(lib): Consider subtree lookahead bytes when determining whether the parser can reuse a node.
# Description Backport of #5641 to `release-0.26`.
323d99ede344d46faeb0d60f06c30399c4e0d8a3
a9573f15fd71c007ca5e258893c70dd11b9f288d
diff --git a/lib/src/parser.c b/lib/src/parser.c index 714c2a19a1..50cb292150 100644 --- a/lib/src/parser.c +++ b/lib/src/parser.c @@ -795,7 +795,13 @@ static Subtree ts_parser__reuse_node( reason = "is_missing"; } else if (ts_subtree_is_fragile(result)) { reason = "is_fragile"; - } else if (ts_pa...
[ "crates/cli/src/tests/tree_test.rs", "lib/src/parser.c", "test/fixtures/test_grammars/external_lookahead_eof_boundary/corpus.txt", "test/fixtures/test_grammars/external_lookahead_eof_boundary/grammar.js", "test/fixtures/test_grammars/external_lookahead_eof_boundary/scanner.c" ]
[]
diff --git a/crates/cli/src/tests/tree_test.rs b/crates/cli/src/tests/tree_test.rs index a4941bb66e..c2be487f07 100644 --- a/crates/cli/src/tests/tree_test.rs +++ b/crates/cli/src/tests/tree_test.rs @@ -795,3 +795,44 @@ fn get_changed_ranges( *tree = new_tree; result } + +// Regression test for an incrementa...
true
tree-sitter/tree-sitter
5,641
issue_to_patch
Incorrect incremental parsing result for markdown-inline ### AI Policy - [x] I have read the AI Policy and this issue complies with it. ### Problem On a high-level, the problem is that the incremental parse tree differs from a from-scratch parse tree. Suppose you have this file that only contains a newline: `"\n"`,...
fix(lib): Consider subtree lookahead bytes when determining whether the parser can reuse a node.
### The Problem A cached external-scanner token whose lookahead reached the previous range boundary can be incorrectly reused, producing a tree that diverges from a fresh parse of the same buffer. Stepping through the failing edit from #5636 ("`c \n" -> "`c `\n"): 1. Before the edit, the inline included rang...
17125cefa69622530f0e1513618e15700dd7726f
5c2ac4555f93ee62b1e68fb927564cfadbf3efa0
diff --git a/lib/src/parser.c b/lib/src/parser.c index 140a87e9e4..7e1fcb5133 100644 --- a/lib/src/parser.c +++ b/lib/src/parser.c @@ -795,7 +795,13 @@ static Subtree ts_parser__reuse_node( reason = "is_missing"; } else if (ts_subtree_is_fragile(result)) { reason = "is_fragile"; - } else if (ts_pa...
[ "crates/cli/src/tests/tree_test.rs", "lib/src/parser.c", "test/fixtures/test_grammars/external_lookahead_eof_boundary/corpus.txt", "test/fixtures/test_grammars/external_lookahead_eof_boundary/grammar.js", "test/fixtures/test_grammars/external_lookahead_eof_boundary/scanner.c" ]
[]
diff --git a/crates/cli/src/tests/tree_test.rs b/crates/cli/src/tests/tree_test.rs index a4941bb66e..c2be487f07 100644 --- a/crates/cli/src/tests/tree_test.rs +++ b/crates/cli/src/tests/tree_test.rs @@ -795,3 +795,44 @@ fn get_changed_ranges( *tree = new_tree; result } + +// Regression test for an incrementa...
true
tree-sitter/tree-sitter
5,097
issue_to_patch
tree-sitter test hangs instead of failing on a mismatched highlight assertion ### AI Policy - [x] I have read the AI Policy and this issue complies with it. ### Problem // Disclaimer: I used AI to do the detective work for this issue - but these meaty fingers did type this myself including all the typos I'm a rank...
fix(cli): infinite loop in highlight test
Hi, I noticed an infinite loop bug when testing highlights using the test CLI. I added a test case, `test_assertion_with_non_matching_highlight_at_same_position`, that shows the bug if run on master. I fixed this by changing these nested loops: https://github.com/tree-sitter/tree-sitter/blob/df8b62fc509d45e2eb...
cd338a7a435fd04eafcfcb5892b61341efa80537
a02c81a0ca8e12e0e9802b4f38959c240ae39d4c
[ "crates/cli/src/test_highlight.rs", "crates/cli/src/tests/test_highlight_test.rs" ]
[]
diff --git a/crates/cli/src/test_highlight.rs b/crates/cli/src/test_highlight.rs index 40d3a6c9b0..cfb65a7547 100644 --- a/crates/cli/src/test_highlight.rs +++ b/crates/cli/src/test_highlight.rs @@ -13,10 +13,10 @@ use crate::{ #[derive(Debug)] pub struct Failure { - row: usize, - column: usize, - expected...
true
tree-sitter/tree-sitter
5,635
issue_to_patch
Potential macro name mismatch: TREE_SITTER_HIDE_SYMBOLS vs TREE_SITTER_HIDDEN_SYMBOLS The setup.py line 64 defines TREE_SITTER_HIDE_SYMBOLS: https://github.com/tree-sitter/tree-sitter/blob/30c00bc4fe1708a28c8f43498e4fc3b041047df3/crates/cli/src/templates/setup.py#L64 But lib/src/alloc.h line 12 checks for TREE_SITTER...
fix(lib): use correct TREE_SITTER_HIDE_SYMBOLS macro name in alloc.h
The `alloc.h` header checked for `TREE_SITTER_HIDDEN_SYMBOLS`, but the canonical macro name used everywhere else (`api.h`, `render.rs`, `setup.py`) is `TREE_SITTER_HIDE_SYMBOLS`. This mismatch meant that defining `TREE_SITTER_HIDE_SYMBOLS` (as the Python binding build does) would not actually hide the allocator symbols...
e39ef3e700f01bab839ca8a8468dbecac86c5497
50b0a1166938b2be16ebef74a86728e3decd9cc6
diff --git a/lib/src/alloc.h b/lib/src/alloc.h index a27b8a6334..3ea4cc96c8 100644 --- a/lib/src/alloc.h +++ b/lib/src/alloc.h @@ -9,7 +9,7 @@ extern "C" { #include <stdio.h> #include <stdlib.h> -#if defined(TREE_SITTER_HIDDEN_SYMBOLS) || defined(_WIN32) +#if defined(TREE_SITTER_HIDE_SYMBOLS) || defined(_WIN32) #d...
[ "lib/src/alloc.h" ]
[]
true
tree-sitter/tree-sitter
5,650
issue_to_patch
fix(cli): improve soundness of cst range calculation
Manual backport of #5640
3ab78c3c5bd4da5b479743e70304ae8eebe94178
24deca9092659586c859671304837f7dfaa44bc8
diff --git a/crates/cli/src/parse.rs b/crates/cli/src/parse.rs index 52a4f66161..3b7c959ae9 100644 --- a/crates/cli/src/parse.rs +++ b/crates/cli/src/parse.rs @@ -781,7 +781,11 @@ pub fn render_cst<'a, 'b: 'a>( let total_width = lossy_source_code .lines() .enumerate() - .map(|(row, col)| (...
[ "crates/cli/src/parse.rs" ]
[]
true
tree-sitter/tree-sitter
5,624
issue_to_patch
fix(loader): skip --no-undefined for sanitizer grammar builds
Compiling a grammar with `-fsanitize=address` (or any other sanitizer) emits a module constructor in the parser object file that references runtime symbols like `__asan_init`. These runtime-resolved symbols are incompatible with `-Wl,--no-undefined`, which breaking sanitized test runs on clang. (gcc happens to paper ov...
30c00bc4fe1708a28c8f43498e4fc3b041047df3
3cfcde510c6185118b41db739eb02c64f7d6f5bd
diff --git a/crates/loader/src/loader.rs b/crates/loader/src/loader.rs index 05304277db..2a485d81b4 100755 --- a/crates/loader/src/loader.rs +++ b/crates/loader/src/loader.rs @@ -1306,7 +1306,15 @@ impl Loader { command.arg("-UTREE_SITTER_REUSE_ALLOCATOR"); } else { comman...
[ "crates/loader/src/loader.rs", "docs/src/6-contributing.md" ]
[]
true
tree-sitter/tree-sitter
5,622
issue_to_patch
fix: rewrite `ts_subtree__write_to_string` iteratively
### The Problem Rare (but observed a couple times now) failures in CI similar to this: https://github.com/tree-sitter/tree-sitter/actions/runs/26349496040/job/77565123262?pr=5620. I believe I've narrowed down the issue to a stack overflow in the subtree printing logic, triggered by deeply nested trees. ### The So...
17125cefa69622530f0e1513618e15700dd7726f
65018f6197729b8c335cb5b107ef972f00474210
diff --git a/crates/cli/src/fuzz.rs b/crates/cli/src/fuzz.rs index da553be582..120106db2b 100644 --- a/crates/cli/src/fuzz.rs +++ b/crates/cli/src/fuzz.rs @@ -65,7 +65,7 @@ pub fn new_seed() -> usize { int_env_var("TREE_SITTER_SEED").unwrap_or_else(|| { let mut rng = rand::rng(); let seed = rng.r...
[ "crates/cli/src/fuzz.rs", "crates/cli/src/fuzz/corpus_test.rs", "lib/src/subtree.c" ]
[]
diff --git a/crates/cli/src/fuzz/corpus_test.rs b/crates/cli/src/fuzz/corpus_test.rs index d22fd6bbb9..65c16d7ae7 100644 --- a/crates/cli/src/fuzz/corpus_test.rs +++ b/crates/cli/src/fuzz/corpus_test.rs @@ -3,8 +3,20 @@ use tree_sitter::{LogType, Node, Parser, Point, Range, Tree}; use super::{LOG_ENABLED, LOG_GRAPH_EN...
true
tree-sitter/tree-sitter
5,640
issue_to_patch
fix(cli): improve soundness of cst range calculation
Small patch to address a `cast_sign_loss` clippy lint in the CST rendering logic. While most of the instances of this lint are false positives (for the code in _this_ repo), these instances are actually ones we should be fixed. At a later date, it may be worth it to look through our current allow list in `Cargo.toml` t...
e39ef3e700f01bab839ca8a8468dbecac86c5497
71c1967811905b0c8766054a077389b570f7a3fb
diff --git a/crates/cli/src/parse.rs b/crates/cli/src/parse.rs index 7d0feee298..190fee367a 100644 --- a/crates/cli/src/parse.rs +++ b/crates/cli/src/parse.rs @@ -775,7 +775,11 @@ pub fn render_cst<'a, 'b: 'a>( let total_width = lossy_source_code .lines() .enumerate() - .map(|(row, col)| (...
[ "crates/cli/src/parse.rs" ]
[]
true
tree-sitter/tree-sitter
5,644
issue_to_patch
feat(generate): derive `Deserialize` on `GenerateError` and all subtypes
These types all derive `Serialize` already. Allows for communication of errors across process boundaries, to be used in a future feature.
1da46327b3bde1271855789cd7a2c4bf7d06b758
99d972c44e687386d72faa921a42dd5917f7079e
diff --git a/crates/generate/src/build_tables/build_parse_table.rs b/crates/generate/src/build_tables/build_parse_table.rs index 771d446097..c6c1a047c6 100644 --- a/crates/generate/src/build_tables/build_parse_table.rs +++ b/crates/generate/src/build_tables/build_parse_table.rs @@ -7,7 +7,7 @@ use std::{ use indexmap:...
[ "crates/generate/src/build_tables/build_parse_table.rs", "crates/generate/src/generate.rs", "crates/generate/src/node_types.rs", "crates/generate/src/parse_grammar.rs", "crates/generate/src/prepare_grammar.rs", "crates/generate/src/prepare_grammar/expand_tokens.rs", "crates/generate/src/prepare_grammar/...
[]
true
tree-sitter/tree-sitter
5,643
issue_to_patch
fix(lib): use correct TREE_SITTER_HIDE_SYMBOLS macro name in alloc.h
# Description Backport of #5635 to `release-0.26`.
f4b1fe2ba7d943a3ff02b617f1ca3068ed63eb6e
15427af2b7ca9212cb918eaccd8365ad0ae7cd12
diff --git a/lib/src/alloc.h b/lib/src/alloc.h index a27b8a6334..3ea4cc96c8 100644 --- a/lib/src/alloc.h +++ b/lib/src/alloc.h @@ -9,7 +9,7 @@ extern "C" { #include <stdio.h> #include <stdlib.h> -#if defined(TREE_SITTER_HIDDEN_SYMBOLS) || defined(_WIN32) +#if defined(TREE_SITTER_HIDE_SYMBOLS) || defined(_WIN32) #d...
[ "lib/src/alloc.h" ]
[]
true
tree-sitter/tree-sitter
5,642
issue_to_patch
fix(lib): update doc comment for `ts_parser_parse`
Manual backport of #5639.
7f534862c3ec939c3a6ee147f7600ef5c1bf900f
dfc3828d4d1adce20af8f5389dc642cea2114c59
diff --git a/lib/binding_rust/bindings.rs b/lib/binding_rust/bindings.rs index b8fd261130..bae1b548ce 100644 --- a/lib/binding_rust/bindings.rs +++ b/lib/binding_rust/bindings.rs @@ -219,7 +219,7 @@ extern "C" { pub fn ts_parser_included_ranges(self_: *const TSParser, count: *mut u32) -> *const TSRange; } extern...
[ "lib/binding_rust/bindings.rs", "lib/include/tree_sitter/api.h" ]
[]
true
tree-sitter/tree-sitter
5,639
issue_to_patch
Update documentation for `ts_parser_parse` ### AI Policy - [x] I have read the AI Policy and this issue complies with it. ### Problem The documentation reads: ``` /** * Use the parser to parse some source code and create a syntax tree. * * If you are parsing this document for the first time, pass `NULL` for the...
fix(lib): update doc comment for `ts_parser_parse`
- Closes #5638
e39ef3e700f01bab839ca8a8468dbecac86c5497
8681fee4faf01cabdc987fd68d658c913b155b49
diff --git a/lib/binding_rust/bindings.rs b/lib/binding_rust/bindings.rs index 4ab3126c4c..f7ce385171 100644 --- a/lib/binding_rust/bindings.rs +++ b/lib/binding_rust/bindings.rs @@ -219,7 +219,7 @@ unsafe extern "C" { pub fn ts_parser_included_ranges(self_: *const TSParser, count: *mut u32) -> *const TSRange; } ...
[ "lib/binding_rust/bindings.rs", "lib/include/tree_sitter/api.h" ]
[]
true
tree-sitter/tree-sitter
5,626
issue_to_patch
build(deps): bump serde_json from 1.0.149 to 1.0.150 in the cargo group
Bumps the cargo group with 1 update: [serde_json](https://github.com/serde-rs/json). Updates `serde_json` from 1.0.149 to 1.0.150 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/serde-rs/json/releases">serde_json's releases</a>.</em></p> <blockquote> <h2>v1.0.150</h2> <ul> <l...
30c00bc4fe1708a28c8f43498e4fc3b041047df3
56c401bd81eb68c5e3c93f71b673e2a729cd7df0
diff --git a/Cargo.lock b/Cargo.lock index 22e8a8fe45..e6d709d9c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1732,9 +1732,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.149" +version = "1.0.150" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83fc039473c5595ac...
[ "Cargo.lock", "Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
1,858
issue_to_patch
Update ref to swift parser
I just realized that the docs point to the now-abandoned Swift parser. The currently-maintained one is quite complete. (Also, moved one that wasn't in the right ordering)
3563fe009aa3cf373ae01782979743e6aa258a0a
94b828f4fb8f6a39f3504c795e025f2898a43512
diff --git a/docs/index.md b/docs/index.md index 6c576c96bc..b38efda3cd 100644 --- a/docs/index.md +++ b/docs/index.md @@ -62,8 +62,9 @@ Parsers for these languages are fairly complete: * [R](https://github.com/r-lib/tree-sitter-r) * [S-expressions](https://github.com/AbstractMachinesLab/tree-sitter-sexp) * [SPARQL]...
[ "docs/index.md" ]
[]
true
tree-sitter/tree-sitter
5,620
issue_to_patch
fix(cli): place generate artifacts next to grammar file rather than cwd
### The Problem This is some weird behavior from tree-sitter-cli that I don't *think* is intentional. If you run `tree-sitter generate path/to/grammar.js`, the generated `src` directory will get placed in the current working directory of the tree-sitter invocation, rather than next to `grammar.js`. This is a bit uni...
a5c0d24749cce1181b51aab3f05ca6b732e7733d
b71a465344d79f7ebcbfbc9ae648bce62df42eec
diff --git a/crates/generate/src/generate.rs b/crates/generate/src/generate.rs index d4d7e927fb..c516f5880d 100644 --- a/crates/generate/src/generate.rs +++ b/crates/generate/src/generate.rs @@ -251,6 +251,18 @@ where repo_path = path_buf; repo_path.join("grammar.js") } else { + ...
[ "crates/generate/src/generate.rs" ]
[]
true
tree-sitter/tree-sitter
5,619
issue_to_patch
fix(test): restore corpus test header blank line and divider tie behavior
Found some minor regressions from #5471 in the tree-sitter-elixir corpus while working on another feature.
b1fa9725cf7bad668ac98b9fd3ec303f1e9076ec
ef5fcc567a38b6d7795c4b39959df416f0bae491
diff --git a/crates/cli/src/test.rs b/crates/cli/src/test.rs index 3098a7e806..386497b423 100644 --- a/crates/cli/src/test.rs +++ b/crates/cli/src/test.rs @@ -1404,6 +1404,12 @@ fn parse_header( break; } let trimmed = lines[line_num].trim(); + // Reject a blank line in the name reg...
[ "crates/cli/src/test.rs" ]
[]
true
tree-sitter/tree-sitter
5,612
issue_to_patch
release v0.26.9
77b96de523affd66c11752dc767acdc6d50ae088
4005e1feb98d947b8a42d578e4c3c14638d3c363
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5940bb87ae..9c5d4224aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.13) project(tree-sitter - VERSION "0.26.8" + VERSION "0.26.9" DESCRIPTION "An incremental parsing system for programming ...
[ "CMakeLists.txt", "Cargo.lock", "Cargo.toml", "Makefile", "build.zig.zon", "crates/cli/npm/package-lock.json", "crates/cli/npm/package.json", "flake.nix", "lib/binding_web/package-lock.json", "lib/binding_web/package.json" ]
[]
true
tree-sitter/tree-sitter
5,605
issue_to_patch
fix(wasm): load supertype tables for ABI 15 grammars
### Problem Query construction can crash when grammars that use supertypes, are compiled with ABI version 15, and are loaded via Wasm. ### Background Supertypes were introduced in ABI version 15, the same ABI version that introduced reserved words. Methods that access a language's supertypes check that the gra...
f535c3bb976bfc23014a2532eb759866f47f5560
32622b7e7c257463cfc5ea0ea58231c3f1046460
diff --git a/lib/src/wasm_store.c b/lib/src/wasm_store.c index c8c4c71958..8296657e0d 100644 --- a/lib/src/wasm_store.c +++ b/lib/src/wasm_store.c @@ -1325,7 +1325,7 @@ const TSLanguage *ts_wasm_store_load_language( } bool has_supertypes = - wasm_language.abi_version > LANGUAGE_VERSION_WITH_RESERVED_WORDS &&...
[ "lib/src/wasm_store.c" ]
[]
true
tree-sitter/tree-sitter
5,613
issue_to_patch
Validate Wasm language memory reads
# Description Backport of #5569 to `release-0.26`.
a082228e43f95c8ae56aead41ad13d293e8ae072
b764f65be362ce16087c586b3b11ec110670d76b
diff --git a/lib/src/wasm_store.c b/lib/src/wasm_store.c index d006a13559..8296657e0d 100644 --- a/lib/src/wasm_store.c +++ b/lib/src/wasm_store.c @@ -365,18 +365,60 @@ typedef struct { wasm_functype_t *type; } FunctionDefinition; -static void *copy(const void *data, size_t size) { +typedef struct { + const uint...
[ "lib/src/wasm_store.c" ]
[]
true
tree-sitter/tree-sitter
5,569
issue_to_patch
Validate Wasm language memory reads
Validate offsets from `LanguageInWasmMemory` before copying language data out of Wasm memory. The language descriptor is provided by the module being loaded. Before this change, offsets such as `parse_table`, `symbol_names`, `lex_modes`, and the alias/supertype tables were used directly as indexes into the store's mem...
8d737aa238084f9a51f1e97c195a362419beee8d
1636da71a1dcdbb41aeb127822e7e023e5bb3028
diff --git a/lib/src/wasm_store.c b/lib/src/wasm_store.c index 1276f1fa55..c8c4c71958 100644 --- a/lib/src/wasm_store.c +++ b/lib/src/wasm_store.c @@ -365,18 +365,60 @@ typedef struct { wasm_functype_t *type; } FunctionDefinition; -static void *copy(const void *data, size_t size) { +typedef struct { + const uint...
[ "lib/src/wasm_store.c" ]
[]
true
tree-sitter/tree-sitter
5,611
issue_to_patch
build(deps): bump wasmtime-c-api to v36.0.9
7aea01521d748fdddf6a0f6d3b4c917a25ecc812
04636fca57bd539894c649db1e1d29c465058399
diff --git a/Cargo.lock b/Cargo.lock index 0b8273f300..2f01c37d0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -172,9 +172,9 @@ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" [[package]] name = "cc" -version = "1.2.61" +version = "1.2.62" source = "registry+https://github.com/rust-lan...
[ "Cargo.lock", "build.zig.zon", "lib/Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
5,592
issue_to_patch
build(deps): bump wasmtime-c-api to v36.0.9
a858378ce7f4c124339cf67d8ad37341964fc0ee
57eaf00a2cb46f67e44fd14cf646e9c5496d4e55
diff --git a/Cargo.lock b/Cargo.lock index 61de114a88..22e8a8fe45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,7 +109,7 @@ version = "0.72.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895" dependencies = [ - "bitflags...
[ "Cargo.lock", "build.zig.zon", "lib/Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
5,604
issue_to_patch
build(deps): bump brace-expansion from 5.0.5 to 5.0.6 in /crates/cli/eslint
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 5.0.5 to 5.0.6. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/juliangruber/brace-expansion/commit/46317b5d8779c151d24f65c9c139cd076f91a1c3"><code>46317b5</code></a> 5.0.6</li> <li><a href="https://github.com/julian...
f535c3bb976bfc23014a2532eb759866f47f5560
b62de74c2d3b58202c37d0b44a5073969d2a270f
diff --git a/crates/cli/eslint/package-lock.json b/crates/cli/eslint/package-lock.json index 80b660cf43..e42e37a1b7 100644 --- a/crates/cli/eslint/package-lock.json +++ b/crates/cli/eslint/package-lock.json @@ -289,9 +289,9 @@ } }, "node_modules/brace-expansion": { - "version": "5.0.5", - "re...
[ "crates/cli/eslint/package-lock.json" ]
[]
true
tree-sitter/tree-sitter
5,608
issue_to_patch
ci: bump korthout/backport-action from 4.5.1 to 4.5.2 in the actions group
Bumps the actions group with 1 update: [korthout/backport-action](https://github.com/korthout/backport-action). Updates `korthout/backport-action` from 4.5.1 to 4.5.2 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/korthout/backport-action/releases">korthout/backport-action's...
a53c3b03a005ef51f21e12f39c2a27e10d008b6e
e21ce81509b77c69a71e4247e3a1a730de9a65f8
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 99f3b25603..c8631bc52b 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -24,7 +24,7 @@ jobs: private-key: ${{ secrets.BACKPORT_KEY }} - name: Create backport PR - uses: kortho...
[ ".github/workflows/backport.yml" ]
[]
true
tree-sitter/tree-sitter
5,606
issue_to_patch
fix(wasm): load supertype tables for ABI 15 grammars
# Description Backport of #5605 to `release-0.26`.
2cad8b8d47313c3d527a7b1bcd16165e1d5318d8
9f10df57f1264a17236b20c12f84a6a7d552b309
diff --git a/lib/src/wasm_store.c b/lib/src/wasm_store.c index 1276f1fa55..d006a13559 100644 --- a/lib/src/wasm_store.c +++ b/lib/src/wasm_store.c @@ -1215,7 +1215,7 @@ const TSLanguage *ts_wasm_store_load_language( memcpy(&wasm_language, &memory[language_address], sizeof(LanguageInWasmMemory)); bool has_supert...
[ "lib/src/wasm_store.c" ]
[]
true
tree-sitter/tree-sitter
5,602
issue_to_patch
fix(test): write fixture headers once
Several test functions compile the same grammar fixture. Tests sharing a grammar name also share a src_dir. Each test also unconditionally writes the three tree-sitter headers into src_dir/tree_sitter/, leading to a race. I originally tried to fix this by writing the three headers exactly once into a shared scratch/...
71040925fee47ec493dd46be3ccabef524acf5f3
a14f2a9062524cb794827106186155d6c5fc22ad
[ "crates/cli/src/tests/helpers/fixtures.rs" ]
[]
diff --git a/crates/cli/src/tests/helpers/fixtures.rs b/crates/cli/src/tests/helpers/fixtures.rs index 3cd5d0a3f7..2a9f56c8aa 100644 --- a/crates/cli/src/tests/helpers/fixtures.rs +++ b/crates/cli/src/tests/helpers/fixtures.rs @@ -1,7 +1,8 @@ use std::{ + collections::HashSet, env, fs, path::{Path, PathBu...
true
tree-sitter/tree-sitter
5,594
issue_to_patch
refactor(cli): better colored printing
I've been working on a couple new tree-sitter features and other side projects and have settled on this painting abstraction as a strict improvement over our current `paint` function. This new wrapper struct leads to generally clearer code (imo), and avoids needless temporary `String` allocations. The first commit i...
d4e7f9793c322dbac69e27020920486260253b96
ea19c9996d4137a9fcf39457bbf589f304ef28c0
diff --git a/crates/cli/src/logger.rs b/crates/cli/src/logger.rs index 41b119067b..98dfdef33d 100644 --- a/crates/cli/src/logger.rs +++ b/crates/cli/src/logger.rs @@ -1,12 +1,8 @@ use std::io::Write; -use anstyle::{AnsiColor, Color, Style}; use log::{Level, LevelFilter, Log, Metadata, Record}; -pub fn paint(color...
[ "crates/cli/src/logger.rs", "crates/cli/src/main.rs", "crates/cli/src/paint.rs", "crates/cli/src/parse.rs", "crates/cli/src/test.rs", "crates/cli/src/tree_sitter_cli.rs" ]
[]
true
tree-sitter/tree-sitter
5,593
issue_to_patch
build(deps): bump wasi-sdk to v33
a858378ce7f4c124339cf67d8ad37341964fc0ee
b1c189d622a91616b76d92e5da449deda4e19a05
diff --git a/crates/loader/wasi-sdk-version b/crates/loader/wasi-sdk-version index 593224b3fe..244a88ae08 100644 --- a/crates/loader/wasi-sdk-version +++ b/crates/loader/wasi-sdk-version @@ -1,1 +1,1 @@ -32.0 +33.0
[ "crates/loader/wasi-sdk-version" ]
[]
true
tree-sitter/tree-sitter
5,585
issue_to_patch
build(deps): bump cc from 1.2.61 to 1.2.62 in the cargo group
Bumps the cargo group with 1 update: [cc](https://github.com/rust-lang/cc-rs). Updates `cc` from 1.2.61 to 1.2.62 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/cc-rs/releases">cc's releases</a>.</em></p> <blockquote> <h2>cc-v1.2.62</h2> <h3>Other</h3> <ul> <li>Reg...
50bb81484d4c7868b14adf0d16d50e6494abdc85
399c1f1c626be0ec741b3d94bb906d007b7aa5c9
diff --git a/Cargo.lock b/Cargo.lock index affd560c4e..61de114a88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -178,9 +178,9 @@ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" [[package]] name = "cc" -version = "1.2.61" +version = "1.2.62" source = "registry+https://github.com/rust-lan...
[ "Cargo.lock", "Cargo.toml" ]
[]
true
tree-sitter/tree-sitter
5,586
issue_to_patch
ci: bump korthout/backport-action from 4.5.0 to 4.5.1 in the actions group
Bumps the actions group with 1 update: [korthout/backport-action](https://github.com/korthout/backport-action). Updates `korthout/backport-action` from 4.5.0 to 4.5.1 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/korthout/backport-action/releases">korthout/backport-action's...
50bb81484d4c7868b14adf0d16d50e6494abdc85
b134309d3f384dfc1d162d725017a568dad0893c
diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 13c7fca960..99f3b25603 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -24,7 +24,7 @@ jobs: private-key: ${{ secrets.BACKPORT_KEY }} - name: Create backport PR - uses: kortho...
[ ".github/workflows/backport.yml" ]
[]
true
tree-sitter/tree-sitter
5,584
issue_to_patch
fix(generate): rewrite `parse_grammar` with forward DFS
Manual backport of #5580
17f9796925ae302646b14b3c14f0c59f89654f2f
cb6e94eac9668b2513f4f460dcefb1db796aa8db
diff --git a/crates/generate/src/parse_grammar.rs b/crates/generate/src/parse_grammar.rs index c3d0431bc7..ab9d8ae49c 100644 --- a/crates/generate/src/parse_grammar.rs +++ b/crates/generate/src/parse_grammar.rs @@ -1,7 +1,6 @@ -use std::collections::HashSet; - use log::warn; use regex::Regex; +use rustc_hash::{FxHash...
[ "crates/generate/src/parse_grammar.rs" ]
[]
true
tree-sitter/tree-sitter
4,514
issue_to_patch
docs: fix CLI link in readme
a2c98b4b5f6032ee5b1bc4b20be331fdf078ad6b
3091a1ace7847975ad9e9ab788c7d5bb9c642f1b
diff --git a/README.md b/README.md index d378215eb0..b711938970 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Tree-sitter is a parser generator tool and an incremental parsing library. It ca - [Documentation](https://tree-sitter.github.io) - [Rust binding](lib/binding_rust/README.md) - [WASM binding](lib/...
[ "README.md" ]
[]
true
tree-sitter/tree-sitter
5,580
issue_to_patch
fix(generate): rewrite `parse_grammar` with forward DFS
### The Problem There is a (currently hidden) performance cliff inside `parse_grammar`. Luckily, it seems like no grammars are seriously affected by it yet. However, consider the following (seemingly harmless) edit to [tree-sitter-haskell](https://github.com/tree-sitter-grammars/tree-sitter-haskell): ```diff dif...
21cfae7b56b16a485424305f612bc11a78d36772
62807beab3b9d61928bb5d70281224f9c8c78e4c
diff --git a/crates/generate/src/parse_grammar.rs b/crates/generate/src/parse_grammar.rs index e73383681c..5d430b9792 100644 --- a/crates/generate/src/parse_grammar.rs +++ b/crates/generate/src/parse_grammar.rs @@ -1,4 +1,4 @@ -use rustc_hash::FxHashSet; +use rustc_hash::{FxHashMap, FxHashSet}; use log::warn; use r...
[ "crates/generate/src/parse_grammar.rs" ]
[]
true
trekhleb/javascript-algorithms
2,120
issue_to_patch
docs: fix permutations README grammar
## Summary - fix the duplicated "the the" wording in the permutations README - slightly smooth the sentence so the example reads naturally ## Validation - `npx jest src/algorithms/sets/permutations/__test__/permutateWithRepetitions.test.js src/algorithms/sets/permutations/__test__/permutateWithoutRepetitions.test.js -...
1c21085fc067501df524640e63b81aaeea049472
811365256479a3c0c7f958dff34fb94a31a793c7
diff --git a/src/algorithms/sets/permutations/README.md b/src/algorithms/sets/permutations/README.md index d778ddd8c1..08a0a05823 100644 --- a/src/algorithms/sets/permutations/README.md +++ b/src/algorithms/sets/permutations/README.md @@ -27,7 +27,7 @@ n * (n-1) * (n -2) * ... * 1 = n! ## Permutations with repetitions...
[ "src/algorithms/sets/permutations/README.md" ]
[]
true
trekhleb/javascript-algorithms
2,167
issue_to_patch
chore: fix typo in n-queens test description
## Summary Fixes # — __ Source issue: ## Spec ## Problem The n-queens Jest test description contains a typo: `hae` should be `have`. ## Acceptance criteria - The test description reads naturally: `should not have solution for 3 queens`. - No runtime behavior changes are introduced. ## Approach Fix the typo in the...
2c1d2d70e217f40a8adcd1ba91e2d2bd7db1b213
c8f4396677c3132692aad3346f3d46aac0e5bbca
[ "src/algorithms/uncategorized/n-queens/__test__/nQueens.test.js" ]
[]
diff --git a/src/algorithms/uncategorized/n-queens/__test__/nQueens.test.js b/src/algorithms/uncategorized/n-queens/__test__/nQueens.test.js index 1f01b3aab5..23dd81e8aa 100644 --- a/src/algorithms/uncategorized/n-queens/__test__/nQueens.test.js +++ b/src/algorithms/uncategorized/n-queens/__test__/nQueens.test.js @@ -1...
true
trekhleb/javascript-algorithms
2,161
issue_to_patch
Fix zero-length combinations
## Summary - return the single empty combination for zero-length combination requests - prevent negative combination lengths from recursing indefinitely in the repetition helper - cover both with-repetition and without-repetition helpers with regression tests ## Why Choosing zero items has one valid result: the empty ...
115e42816808484f76de4e6703caa8280e03ed54
0abbf30d7f8354a0edc1c9eaa31eb700bb339dda
diff --git a/src/algorithms/sets/combinations/combineWithRepetitions.js b/src/algorithms/sets/combinations/combineWithRepetitions.js index 5e25635dac..11bde52777 100644 --- a/src/algorithms/sets/combinations/combineWithRepetitions.js +++ b/src/algorithms/sets/combinations/combineWithRepetitions.js @@ -4,6 +4,14 @@ * ...
[ "src/algorithms/sets/combinations/__test__/combineWithRepetitions.test.js", "src/algorithms/sets/combinations/__test__/combineWithoutRepetitions.test.js", "src/algorithms/sets/combinations/combineWithRepetitions.js", "src/algorithms/sets/combinations/combineWithoutRepetitions.js" ]
[]
diff --git a/src/algorithms/sets/combinations/__test__/combineWithRepetitions.test.js b/src/algorithms/sets/combinations/__test__/combineWithRepetitions.test.js index 90c38958e0..5d73780e32 100644 --- a/src/algorithms/sets/combinations/__test__/combineWithRepetitions.test.js +++ b/src/algorithms/sets/combinations/__tes...
true
trekhleb/javascript-algorithms
2,107
issue_to_patch
Upgrade to node 22
1503325329d63f7fead7f455fda5a4338b4e93bb
cad55d5199d9f7e928c407e926a5ffbe4c8c63ac
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e007b6c910..8df135bfdc 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -11,14 +11,14 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [ 16.x ] + node-version: [ 22.x ] st...
[ ".github/workflows/CI.yml", ".husky/.gitignore", ".husky/pre-commit", ".nvmrc", "package-lock.json", "package.json", "src/algorithms/cryptography/hill-cipher/_test_/hillCipher.test.js", "src/algorithms/graph/eulerian-path/__test__/eulerianPath.test.js", "src/algorithms/graph/kruskal/__test__/kruskal...
[]
diff --git a/src/algorithms/cryptography/hill-cipher/_test_/hillCipher.test.js b/src/algorithms/cryptography/hill-cipher/_test_/hillCipher.test.js index f540ae9ff1..b8e681359f 100644 --- a/src/algorithms/cryptography/hill-cipher/_test_/hillCipher.test.js +++ b/src/algorithms/cryptography/hill-cipher/_test_/hillCipher.t...
true
trekhleb/javascript-algorithms
438
issue_to_patch
Graph customization
* Allow graph edges with custom keys. This is important if we have two edges connected to the same vertices but having a different weight. We could have used the weight in the name, but as conceptually two edges could also have the same vertices and weight, I think it's a better idea to propose the user a way to make s...
4ba97b99fc7999640184526881f1dbd7f0857044
45953c5374f1ad0b643feee6d141dddb4c256ab6
diff --git a/src/data-structures/graph/Graph.js b/src/data-structures/graph/Graph.js index ba0b6d0125..9a9194f2e4 100644 --- a/src/data-structures/graph/Graph.js +++ b/src/data-structures/graph/Graph.js @@ -13,7 +13,13 @@ export default class Graph { * @returns {Graph} */ addVertex(newVertex) { - this.ver...
[ "src/data-structures/graph/Graph.js", "src/data-structures/graph/GraphEdge.js", "src/data-structures/graph/GraphVertex.js", "src/data-structures/graph/__test__/Graph.test.js", "src/data-structures/graph/__test__/GraphEdge.test.js", "src/data-structures/graph/__test__/GraphVertex.test.js" ]
[]
diff --git a/src/data-structures/graph/__test__/Graph.test.js b/src/data-structures/graph/__test__/Graph.test.js index 936a69b805..dcae57d8e6 100644 --- a/src/data-structures/graph/__test__/Graph.test.js +++ b/src/data-structures/graph/__test__/Graph.test.js @@ -158,6 +158,19 @@ describe('Graph', () => { expect(ad...
true
trekhleb/javascript-algorithms
989
issue_to_patch
Upgrade packages and Node versions.
1d6249d552240794c4ea66e97cd91ae5b062392e
1b5d54d7b09aa299e877efe012bc476f441d7b92
diff --git a/.eslintrc b/.eslintrc index e1c40a0adb..cf3245bf37 100644 --- a/.eslintrc +++ b/.eslintrc @@ -14,7 +14,7 @@ }, "settings": { "react": { - "version": "latest" + "version": "18.2.0" } } } diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 912c719df3..e007b6c9...
[ ".eslintrc", ".github/workflows/CI.yml", ".nvmrc", "README.md", "jest.config.js", "package-lock.json", "package.json" ]
[]
true
trekhleb/javascript-algorithms
2,030
issue_to_patch
"Italiano" is "italian" in italian :)
ca3d16dcce7a493ae12c03ca20ede4fd7801f7a2
702ca84a80ac56724cb1980d293a589d0a39d8be
diff --git a/README.md b/README.md index a20673989c..b798a38ed3 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ _Read this in other languages:_ [_Português_](README.pt-BR.md), [_Русский_](README.ru-RU.md), [_Türkçe_](README.tr-TR.md), -[_Italiana_](README.it-IT.md), +[_Italiano_](README.it-IT.md), [_Bahasa...
[ "README.md" ]
[]
true
trekhleb/javascript-algorithms
1,077
issue_to_patch
Solving Algorithm Problems with the Stack Data Structure
I added examples of some algorithm problems that can be solved using `Stack` data structure. This would help expose newbies to the types of problems that can be solved using the `Stack` data structure in Javascript.
ca3d16dcce7a493ae12c03ca20ede4fd7801f7a2
22ba6f88984021caad8fcffa68255788fc94cec6
diff --git a/README.md b/README.md index a20673989c..da1d9dda10 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,8 @@ a set of rules that precisely define a sequence of operations. * **Linked Lists** * `B` [Straight Traversal](src/algorithms/linked-list/traversal) * `B` [Reverse Traversal](src/algorithms/li...
[ "README.md", "src/algorithms/stack/valid-parentheses/README.md", "src/algorithms/stack/valid-parentheses/__test__/validParentheses.test.js", "src/algorithms/stack/valid-parentheses/validParentheses.js" ]
[]
diff --git a/src/algorithms/stack/valid-parentheses/__test__/validParentheses.test.js b/src/algorithms/stack/valid-parentheses/__test__/validParentheses.test.js new file mode 100644 index 0000000000..e286688dfd --- /dev/null +++ b/src/algorithms/stack/valid-parentheses/__test__/validParentheses.test.js @@ -0,0 +1,23 @@...
true
trekhleb/javascript-algorithms
1,202
issue_to_patch
feat: Added hebrew translation to README in all languages
Added Hebrew translation to official README, and also added link to the translation from other translated readme files.
49e0814c434d52c66403a19f0c8c05bd2dfa6628
d43d397dd0a3d4bc65eb9a861696b9d7009dd247
diff --git a/README.ar-AR.md b/README.ar-AR.md index 81c9c91a6f..39997e24a5 100644 --- a/README.ar-AR.md +++ b/README.ar-AR.md @@ -25,6 +25,7 @@ _اقرأ هذا في لغات أخرى:_ [_Tiếng Việt_](README.vi-VN.md), [_Deutsch_](README.de-DE.md), [_Uzbek_](README.uz-UZ.md) +[_עברית_](README.he-HE.md) ☝ ملاحضة هذا المشروع مخصص...
[ "README.ar-AR.md", "README.de-DE.md", "README.es-ES.md", "README.fr-FR.md", "README.he-HE.md", "README.id-ID.md", "README.it-IT.md", "README.ja-JP.md", "README.ko-KR.md", "README.md", "README.pl-PL.md", "README.pt-BR.md", "README.ru-RU.md", "README.tr-TR.md", "README.uk-UA.md", "README...
[]
true
trekhleb/javascript-algorithms
850
issue_to_patch
Fix typos README.es-ES for linked list
In the `README.es-ES.md` file to explain the linked list, there were many typos in the description of the algorithm.
6c335c5d833fd2a68342cf3648a3174bed8c01ad
f221c07dad419a1b302af35e5c2b84016e2b3752
diff --git a/src/data-structures/linked-list/README.es-ES.md b/src/data-structures/linked-list/README.es-ES.md index c21c48cded..6c6ba7ee87 100644 --- a/src/data-structures/linked-list/README.es-ES.md +++ b/src/data-structures/linked-list/README.es-ES.md @@ -7,9 +7,9 @@ _Lee este artículo en otros idiomas:_ [_Portuguê...
[ "src/data-structures/linked-list/README.es-ES.md" ]
[]
true
trekhleb/javascript-algorithms
904
issue_to_patch
Update README.md by correcting Turkish lang name
"Türk" is like "German [people]" and the language itself is actually "Türkçe", like in "Turkish" or "Turkish langauge".
0e2b2574f83d94adfe5822b1f09203ee60a34a31
18c54770118d585cc895abcf1d8d4c63b32ac3b3
[]
[]
true
trekhleb/javascript-algorithms
991
issue_to_patch
Update README.uk-UA.md
- fix UA translate
e7f30a7bf76ffcbcd37a3163f2a5c8f346aea2e2
2b8fa0b1858eb912d5b91f7c539d03d999190806
diff --git a/src/data-structures/stack/README.uk-UA.md b/src/data-structures/stack/README.uk-UA.md index 9941114f5b..f71d2274eb 100644 --- a/src/data-structures/stack/README.uk-UA.md +++ b/src/data-structures/stack/README.uk-UA.md @@ -10,8 +10,8 @@ Додаткова операція для читання головного елемента (peek) дає доступ д...
[ "src/data-structures/stack/README.uk-UA.md" ]
[]
true
trekhleb/javascript-algorithms
893
issue_to_patch
Add es-ES translation to search/binary-search
565256088a1b99d3d7901b5d8db992fe9acabd2d
65899d28680789a59c3a2a5421ddff3c85b67f77
diff --git a/src/algorithms/search/binary-search/README.es-ES.md b/src/algorithms/search/binary-search/README.es-ES.md new file mode 100644 index 0000000000..f14aef985f --- /dev/null +++ b/src/algorithms/search/binary-search/README.es-ES.md @@ -0,0 +1,27 @@ +# Búsqueda binaria + +_Lea esto en otros idiomas:_ +[English]...
[ "src/algorithms/search/binary-search/README.es-ES.md", "src/algorithms/search/binary-search/README.md", "src/algorithms/search/binary-search/README.pt-BR.md" ]
[]
true
trekhleb/javascript-algorithms
952
issue_to_patch
update the ES README a lenguage correction
This change is not much but i put the correct way that Fibonacci sequence is written in Spanish, i know that because i live in spain and i am a student and here we call it "Sucesión de Fibonacci"
c4164bf2240b1458252c3860f584bf01be4a85f8
300695b98d73b33934f595a042875623983c2412
diff --git a/README.es-ES.md b/README.es-ES.md index d79baf6022..e3203ab1b0 100644 --- a/README.es-ES.md +++ b/README.es-ES.md @@ -69,7 +69,7 @@ definen con precisión una secuencia de operaciones. * **Matemáticas** * `P` [Manipulación de bits](src/algorithms/math/bits) - asignar/obtener/actualizar/limpiar bits, mul...
[ "README.es-ES.md" ]
[]
true
trekhleb/javascript-algorithms
959
issue_to_patch
Update README.ar-AR.md
fixing the arabic grammer and a typo
6509304ff613f88191155f1f9834aace8db1c149
3ad4e2bbb03468316c9689492cdf0effa589e06b
diff --git a/README.ar-AR.md b/README.ar-AR.md index fedd29c0e5..81c9c91a6f 100644 --- a/README.ar-AR.md +++ b/README.ar-AR.md @@ -3,7 +3,7 @@ [![Build Status](https://travis-ci.org/trekhleb/javascript-algorithms.svg?branch=master)](https://travis-ci.org/trekhleb/javascript-algorithms) [![codecov](https://codecov.io/...
[ "README.ar-AR.md" ]
[]
true
trekhleb/javascript-algorithms
987
issue_to_patch
update LRU Cache translation for ko-KR
update README.md for LRU Cache in ko-KR - README.ko-KR.md - update read in another language for original README.md
09afeb58d820ae32d6f3ccfa4042981fae4e1a9d
075dab1d246570760f9139278bcc5ea0ef4e3c71
diff --git a/src/data-structures/lru-cache/README.ko-KR.md b/src/data-structures/lru-cache/README.ko-KR.md new file mode 100644 index 0000000000..93957bc0ed --- /dev/null +++ b/src/data-structures/lru-cache/README.ko-KR.md @@ -0,0 +1,51 @@ +# LRU 캐시 알고리즘 + +**LRU 캐시 알고리즘** 은 사용된 순서대로 아이템을 정리함으로써, 오랜 시간 동안 사용되지 않은 아이템을 ...
[ "src/data-structures/lru-cache/README.ko-KR.md", "src/data-structures/lru-cache/README.md" ]
[]
true
trekhleb/javascript-algorithms
1,128
issue_to_patch
Update .eslintrc, improve UK translation for LinkedList
## Description - Add ignored patterns to `.eslintrc` to ignore images and MD files. Previously it wasn't possible to commit something from scratch. - Review and improve Ukrainian translation for the LinkedList.
d7a41a64610db25caa4525d61e9f8545fcb491c5
00d909470dc16a3736eb39f6bb5365af9f1af944
diff --git a/.eslintrc b/.eslintrc index cf3245bf37..88af3ecf32 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,6 +12,7 @@ "arrow-body-style": "off", "no-loop-func": "off" }, + "ignorePatterns": ["*.md", "*.png", "*.jpeg", "*.jpg"], "settings": { "react": { "version": "18.2.0" diff --git a/sr...
[ ".eslintrc", "src/data-structures/linked-list/README.uk-UA.md" ]
[]
true
trekhleb/javascript-algorithms
1,082
issue_to_patch
feat: added uzbek language
Adding a new file, and changing README files to add Uzbek language to the list of languages
9046d80bdb9e5c2e65c87369575a3e47e9c01978
0ca57d1e023700791c9cbfe64b69ebb35a18f326
diff --git a/README.ar-AR.md b/README.ar-AR.md index cbcfd02409..fedd29c0e5 100644 --- a/README.ar-AR.md +++ b/README.ar-AR.md @@ -23,7 +23,8 @@ _اقرأ هذا في لغات أخرى:_ [_Türk_](README.tr-TR.md), [_Italiana_](README.it-IT.md), [_Tiếng Việt_](README.vi-VN.md), -[_Deutsch_](README.de-DE.md) +[_Deutsch_](README.de-DE....
[ "README.ar-AR.md", "README.de-DE.md", "README.es-ES.md", "README.fr-FR.md", "README.id-ID.md", "README.it-IT.md", "README.ja-JP.md", "README.ko-KR.md", "README.md", "README.pl-PL.md", "README.pt-BR.md", "README.ru-RU.md", "README.tr-TR.md", "README.uk-UA.md", "README.uz-UZ.md", "README...
[]
true
trekhleb/javascript-algorithms
1,139
issue_to_patch
Fix four typos
Fix some typos
2c67b48c21eed86aafbb4d09065ffe391b4fc7e4
9c07aa55bc2db2860ce3f19c473b4dd29fee48e8
diff --git a/src/algorithms/uncategorized/best-time-to-buy-sell-stocks/README.md b/src/algorithms/uncategorized/best-time-to-buy-sell-stocks/README.md index 9446993e98..975eade3a4 100644 --- a/src/algorithms/uncategorized/best-time-to-buy-sell-stocks/README.md +++ b/src/algorithms/uncategorized/best-time-to-buy-sell-st...
[ "src/algorithms/uncategorized/best-time-to-buy-sell-stocks/README.md", "src/algorithms/uncategorized/n-queens/README.md", "src/data-structures/bloom-filter/README.md", "src/data-structures/heap/Heap.js" ]
[]
true
trekhleb/javascript-algorithms
1,141
issue_to_patch
Update README.md
Before diving into any of the data structures, readers should be reminded of two fundamental laws in software architecture: 1.Everything is a trade-ff 2."Why is more important than the how" So, readers face the nuances and reality of these data structures from the beginning. These two laws are coined by two thou...
e5b5944c6849389bbfc39f476fa7a1f97d8ce4c6
e13deb38afceaa6d2b1a105d831fc7b516c2f90b
diff --git a/README.md b/README.md index e06cfb9075..8fa631425d 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ be accessed and modified efficiently. More precisely, a data structure is a coll values, the relationships among them, and the functions or operations that can be applied to the data. +Remember t...
[ "README.md" ]
[]
true
trekhleb/javascript-algorithms
1,093
issue_to_patch
fix: 3 instead of 7 as per diagram
76617fa83ac9a8519f20c7a9c938e2d8ef2fd512
efd1d59a93dc3f0d99537c5c8c9d3c66c47131b3
diff --git a/src/data-structures/tree/README.md b/src/data-structures/tree/README.md index 7eb7ec1db1..e492257d33 100644 --- a/src/data-structures/tree/README.md +++ b/src/data-structures/tree/README.md @@ -23,7 +23,7 @@ together with a list of references to nodes (the "children"), with the constraints that no referen...
[ "src/data-structures/tree/README.md" ]
[]
true
trekhleb/javascript-algorithms
1,088
issue_to_patch
Vietsub
76617fa83ac9a8519f20c7a9c938e2d8ef2fd512
b8a400ae9a6fab036cdf4f11f1a9a285b2b163dc
diff --git a/src/data-structures/linked-list/README.vi-VN.md b/src/data-structures/linked-list/README.vi-VN.md new file mode 100644 index 0000000000..005838c6c1 --- /dev/null +++ b/src/data-structures/linked-list/README.vi-VN.md @@ -0,0 +1,155 @@ +# Danh sách liên kết (Linked List) + +_Đọc bằng ngôn ngữ khác:_ +[_简体中文_...
[ "src/data-structures/linked-list/README.vi-VN.md", "src/data-structures/queue/README.vi-VN.md", "src/data-structures/stack/README.vi-VN.md" ]
[]
true
trekhleb/javascript-algorithms
1,086
issue_to_patch
Add Vietnamese translation for LinkedList
8d1f473610f173713179fcfd4f628b3d67591ac3
b51e8487bdab5213792179fda43b9dbce9a73b9b
[]
[]
true
trekhleb/javascript-algorithms
1,079
issue_to_patch
fix binary search typo
Fixed typo issue [!1064](https://github.com/trekhleb/javascript-algorithms/issues/1064)
729bc4d78a2e7f15204bcc406a00605c6251c727
b92390844d54cc329fea4b2637148d6bab893f27
diff --git a/src/algorithms/search/binary-search/binarySearch.js b/src/algorithms/search/binary-search/binarySearch.js index b9e18aab7b..5c8d48fbea 100644 --- a/src/algorithms/search/binary-search/binarySearch.js +++ b/src/algorithms/search/binary-search/binarySearch.js @@ -11,7 +11,7 @@ import Comparator from '../../....
[ "src/algorithms/search/binary-search/binarySearch.js" ]
[]
true
trekhleb/javascript-algorithms
1,071
issue_to_patch
feat: added korean translation for trie
added korean translation for trie
8959566a36b3b7c28064da04c1522f3920956e22
906e2dd24ab7d64399450acba207a5be9690966d
diff --git a/src/data-structures/trie/README.ko-KO.md b/src/data-structures/trie/README.ko-KO.md new file mode 100644 index 0000000000..e57142ece4 --- /dev/null +++ b/src/data-structures/trie/README.ko-KO.md @@ -0,0 +1,19 @@ +# Trie + +_Read this in other languages:_ +[_简体中文_](README.zh-CN.md), +[_Русский_](README.ru-R...
[ "src/data-structures/trie/README.ko-KO.md", "src/data-structures/trie/README.md" ]
[]
true
trekhleb/javascript-algorithms
1,117
issue_to_patch
Ad hoc versions of MinHeap, MaxHeap, and DisjointSet
JS misses some data structures that might be handy for the folks who are going through the coding interview process. This PR contains several minimalistic (by their functionalities and implementation) data structures like `MinHeap`, `MaxHeap`, and `DisjointSet` that don't have external dependencies and that are easy...
ac78353e3cbc73befb7db1ffd748764ec59d6a50
aba46dc19585356908c1967057e4ebbbe59753dd
diff --git a/src/data-structures/disjoint-set/DisjointSetAdhoc.js b/src/data-structures/disjoint-set/DisjointSetAdhoc.js new file mode 100644 index 0000000000..9653418042 --- /dev/null +++ b/src/data-structures/disjoint-set/DisjointSetAdhoc.js @@ -0,0 +1,78 @@ +/** + * The minimalistic (ad hoc) version of a DisjointSet...
[ "src/data-structures/disjoint-set/DisjointSetAdhoc.js", "src/data-structures/disjoint-set/README.md", "src/data-structures/disjoint-set/__test__/DisjointSetAdhoc.test.js", "src/data-structures/heap/MaxHeapAdhoc.js", "src/data-structures/heap/MinHeapAdhoc.js", "src/data-structures/heap/README.md", "src/d...
[]
diff --git a/src/data-structures/disjoint-set/__test__/DisjointSetAdhoc.test.js b/src/data-structures/disjoint-set/__test__/DisjointSetAdhoc.test.js new file mode 100644 index 0000000000..f7be0fcde9 --- /dev/null +++ b/src/data-structures/disjoint-set/__test__/DisjointSetAdhoc.test.js @@ -0,0 +1,50 @@ +import DisjointS...
true
trekhleb/javascript-algorithms
1,006
issue_to_patch
feat: added Ukrainian translation for factorial
Ukrainian translations for factorial. Done by @VictorPoprozhuk
1ad60dc5107216e1f6febf7255e5fc915588c94b
3dc10c75c98cbfa9d993f5aeac23da2c0cb28a63
diff --git a/src/algorithms/math/factorial/README.md b/src/algorithms/math/factorial/README.md index 5f7f0e1129..9c75b41aae 100644 --- a/src/algorithms/math/factorial/README.md +++ b/src/algorithms/math/factorial/README.md @@ -1,7 +1,7 @@ # Factorial _Read this in other languages:_ -[_简体中文_](README.zh-CN.md), [fran...
[ "src/algorithms/math/factorial/README.md", "src/algorithms/math/factorial/README.uk-UA.md", "src/data-structures/linked-list/README.md" ]
[]
true
trekhleb/javascript-algorithms
1,029
issue_to_patch
Fix the repo build for Apple M1 laptops
See the [Can't install canvas npm package on Apple M1](https://github.com/Automattic/node-canvas/issues/1733) issue for more details. Basically, the solution is to replace the [node-canvas](https://www.npmjs.com/package/canvas) with [pngjs](https://www.npmjs.com/package/pngjs) npm package. Keeping the `node-canva...
bbbfd32a45a677950554a91c4ece8976b8b31c38
56a04a2e112da9d5a3a439b62ed85dc3e18e355c
diff --git a/package-lock.json b/package-lock.json index 3cfe2e3571..b61d279d87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,14 +12,14 @@ "@babel/cli": "7.20.7", "@babel/preset-env": "7.20.2", "@types/jest": "29.4.0", - "canvas": "2.11.0", "eslint": "8.33.0", ...
[ "package-lock.json", "package.json", "src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.node.js", "src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.test.js", "src/algorithms/image-processing/seam-carving/__tests__/test-image-after.jpg", "src/algorithms/image-pr...
[]
diff --git a/src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.node.js b/src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.node.js new file mode 100644 index 0000000000..e4f78b7a52 --- /dev/null +++ b/src/algorithms/image-processing/seam-carving/__tests__/resizeImageWidth.nod...
true
trekhleb/javascript-algorithms
980
issue_to_patch
Add an example of the LRU (Least Recently Used) Cache implementation
The `LRUCache` implementation example. The solution uses a `HashMap` for fast `O(1)` cache items access, and a `DoublyLinkedList` for fast `O(1)` cache items promotions and eviction (to keep the maximum allowed cache capacity).
6c335c5d833fd2a68342cf3648a3174bed8c01ad
e6af7d0f2e823ddb021f63247b7c4cdc1a9f5a93
diff --git a/README.md b/README.md index 8836940696..2c83a70b71 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ the data. * `A` [Graph](src/data-structures/graph) (both directed and undirected) * `A` [Disjoint Set](src/data-structures/disjoint-set) * `A` [Bloom Filter](src/data-structures/bloom-filter) +* `...
[ "README.md", "src/data-structures/lru-cache/LRUCache.js", "src/data-structures/lru-cache/LinkedListNode.js", "src/data-structures/lru-cache/README.md", "src/data-structures/lru-cache/__test__/LRUCache.test.js", "src/data-structures/lru-cache/images/lru-cache.jpg" ]
[]
diff --git a/src/data-structures/lru-cache/__test__/LRUCache.test.js b/src/data-structures/lru-cache/__test__/LRUCache.test.js new file mode 100644 index 0000000000..438fd50378 --- /dev/null +++ b/src/data-structures/lru-cache/__test__/LRUCache.test.js @@ -0,0 +1,150 @@ +import LRUCache from '../LRUCache'; + +describe(...
true
trekhleb/javascript-algorithms
943
issue_to_patch
Brazilian Portuguese translation and typos fixes
9ef6650207338c41eccb0e303b865ac8c3ff3e2b
46491ac8a015889b1b1fdab080fdd6c75ccbcd65
diff --git a/README.pt-BR.md b/README.pt-BR.md index 3218869a07..a937e8c0bf 100644 --- a/README.pt-BR.md +++ b/README.pt-BR.md @@ -31,9 +31,7 @@ _Leia isto em outros idiomas:_ ## Estrutura de Dados Uma estrutura de dados é uma maneira particular de organizar e armazenar dados em um computador para que ele possa -se...
[ "README.pt-BR.md", "src/algorithms/linked-list/reverse-traversal/README.md", "src/algorithms/linked-list/reverse-traversal/README.pt-BR.md", "src/algorithms/linked-list/traversal/README.md", "src/algorithms/linked-list/traversal/README.pt-BR.md", "src/algorithms/ml/k-means/README.md", "src/algorithms/ml...
[]
true
trekhleb/javascript-algorithms
933
issue_to_patch
Add a link to minimalistic data structure sketches.
Adding a link to the [Data Structure Sketches](https://okso.app/showcase/data-structures). It should give more visual context for those who learn data structures. Here is a quick demo of the interactive sketches: ![Data Structure Sketches](https://trekhleb.dev/okso-app/assets/demo/demo-12-showcase-data-structure...
1d02cd6596df17c74bf33059ee6521321a5627d3
6d1a497caa5e2bb696da54d974a4330d4b5ee4b1
diff --git a/README.md b/README.md index 4a870ccfed..f0e90fc8d3 100644 --- a/README.md +++ b/README.md @@ -301,7 +301,8 @@ npm test -- 'playground' ### References -[▶ Data Structures and Algorithms on YouTube](https://www.youtube.com/playlist?list=PLLXdhg_r2hKA7DPDsunoDZ-Z769jWn4R8) +- [▶ Data Structures and Algor...
[ "README.md" ]
[]
true
trekhleb/javascript-algorithms
947
issue_to_patch
Add Georgian translation for 'algorithms: Factorial'
Hey @trekhleb! I'd like to add a Georgian translation for the factorial algorithm. Here is [a list of some translations by me](https://github.com/davidkadaria/davidkadaria/blob/main/TRANSLATIONS.md). Thank You!
d3c0ee6f7af3fce4a3a2bdc1c5be36d7c2d9793a
907d9122e0281fc1b1c1f715c9a0b8e415ae9fe5
diff --git a/src/algorithms/math/factorial/README.ka-GE.md b/src/algorithms/math/factorial/README.ka-GE.md new file mode 100644 index 0000000000..1d02b9f7d3 --- /dev/null +++ b/src/algorithms/math/factorial/README.ka-GE.md @@ -0,0 +1,32 @@ +# ფაქტორიალი + +მათემატიკაში `n` ნატურალური რიცხვის ფაქტორიალი +(აღინიშნება `n!...
[ "src/algorithms/math/factorial/README.ka-GE.md", "src/algorithms/math/factorial/README.md" ]
[]
true
trekhleb/javascript-algorithms
965
issue_to_patch
feat: added Ukrainian translations for graph, heap, linked-list, etc.
I added Ukrainian translations for graph, heap, linked list, priority queue, queue, stack, and trie.
025b9a390b5cde87d4d00604ee745e8ea83202ff
b028306d2d293e45bfe80e615caa5035336bf534
diff --git a/src/data-structures/graph/README.md b/src/data-structures/graph/README.md index 9930053772..790602b536 100644 --- a/src/data-structures/graph/README.md +++ b/src/data-structures/graph/README.md @@ -4,7 +4,9 @@ _Read this in other languages:_ [_简体中文_](README.zh-CN.md), [_Русский_](README.ru-RU.md), [_Fra...
[ "src/data-structures/graph/README.md", "src/data-structures/graph/README.uk-UA.md", "src/data-structures/heap/README.md", "src/data-structures/heap/README.uk-UA.md", "src/data-structures/linked-list/README.md", "src/data-structures/linked-list/README.uk-UA.md", "src/data-structures/priority-queue/README...
[]
true
trekhleb/javascript-algorithms
951
issue_to_patch
Add Georgian translation for "Fibonacci Number"
I also added a link to it from other (related) files.
c4164bf2240b1458252c3860f584bf01be4a85f8
22cd6b78b3d78eed63ca8f2136d58b34122ac5ac
diff --git a/src/algorithms/math/fibonacci/README.fr-FR.md b/src/algorithms/math/fibonacci/README.fr-FR.md index 1321ca24d7..81e3549b0d 100644 --- a/src/algorithms/math/fibonacci/README.fr-FR.md +++ b/src/algorithms/math/fibonacci/README.fr-FR.md @@ -1,7 +1,8 @@ # Nombre de Fibonacci _Read this in other languages:_...
[ "src/algorithms/math/fibonacci/README.fr-FR.md", "src/algorithms/math/fibonacci/README.ka-GE.md", "src/algorithms/math/fibonacci/README.md", "src/algorithms/math/fibonacci/README.zh-CN.md" ]
[]
true
trekhleb/javascript-algorithms
975
issue_to_patch
Adding a simple cascading solution to generate a Power Set
We already have [Bitwise](https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/sets/power-set/bwPowerSet.js) and [BackTracking](https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/sets/power-set/btPowerSet.js) solutions. However, the `Cascading` solution described in ...
a123b9017d53a54853401b21382828b65c712e71
3431d509818a368c0edb46a80225dfc0c376f8f7
diff --git a/README.md b/README.md index 0392aefb96..8836940696 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ a set of rules that precisely define a sequence of operations. * **Sets** * `B` [Cartesian Product](src/algorithms/sets/cartesian-product) - product of multiple sets * `B` [Fisher–Yates Shuffl...
[ "README.md", "src/algorithms/sets/power-set/README.md", "src/algorithms/sets/power-set/__test__/caPowerSet.test.js", "src/algorithms/sets/power-set/caPowerSet.js" ]
[]
diff --git a/src/algorithms/sets/power-set/__test__/caPowerSet.test.js b/src/algorithms/sets/power-set/__test__/caPowerSet.test.js new file mode 100644 index 0000000000..4fad5efe20 --- /dev/null +++ b/src/algorithms/sets/power-set/__test__/caPowerSet.test.js @@ -0,0 +1,28 @@ +import caPowerSet from '../caPowerSet'; + +...
true
trekhleb/javascript-algorithms
927
issue_to_patch
Malay readme
malay version of read me #821
a6a4d01f95a1f1f2243360d1fd7dbd2275f0fa79
04873c5a05ce4eb56f5b0b0000a0e6cf46ba533f
diff --git a/README.ma-MA.md b/README.ma-MA.md new file mode 100644 index 0000000000..0f75b78a12 --- /dev/null +++ b/README.ma-MA.md @@ -0,0 +1,364 @@ +# Algoritma JavaScript dan Struktur Data + +> 🇺🇦 UKRAINE [SEDANG DISERANG](https://twitter.com/MFA_Ukraine) OLEH TENTERA RUSIA. ORANG AWAM SEMAKIN DIBUNUH. KAWASAN KE...
[ "README.ma-MA.md", "README.md", "src/algorithms/graph/breadth-first-search/README.md" ]
[]
true
trekhleb/javascript-algorithms
963
issue_to_patch
Update Permutation and Combination cheatsheets.
565256088a1b99d3d7901b5d8db992fe9acabd2d
73930ad8d445f2fe2cffede0bcb67a76b60342ef
diff --git a/src/algorithms/sets/combinations/README.md b/src/algorithms/sets/combinations/README.md index 30243b8614..69fc0603f9 100644 --- a/src/algorithms/sets/combinations/README.md +++ b/src/algorithms/sets/combinations/README.md @@ -5,14 +5,14 @@ When the order doesn't matter, it is a **Combination**. When the o...
[ "src/algorithms/sets/combinations/README.md", "src/algorithms/sets/combinations/images/combinations-overview.jpg", "src/algorithms/sets/combinations/images/combinations-with-repetitions.jpg", "src/algorithms/sets/combinations/images/combinations-without-repetitions.jpg", "src/algorithms/sets/combinations/im...
[]
true
trekhleb/javascript-algorithms
957
issue_to_patch
feat: added ukr translations for bloom filter, Disjoint Set, Linked List
Added ukr translations for bloom filter, Disjoint Set, Linked List
5de9ca28e90cf860dbcb114441f72b5a4342ebb9
f1bd71d2cd281b91c3184cce9a0862f9fafc5ea9
diff --git a/src/data-structures/bloom-filter/README.md b/src/data-structures/bloom-filter/README.md index 17c666775e..e156310cb4 100644 --- a/src/data-structures/bloom-filter/README.md +++ b/src/data-structures/bloom-filter/README.md @@ -2,38 +2,39 @@ _Read this in other languages:_ [_Русский_](README.ru-RU.md), -...
[ "src/data-structures/bloom-filter/README.md", "src/data-structures/bloom-filter/README.uk-UA.md", "src/data-structures/disjoint-set/README.md", "src/data-structures/disjoint-set/README.uk-UA.md", "src/data-structures/doubly-linked-list/README.md", "src/data-structures/doubly-linked-list/README.uk-UA.md" ]
[]
true
trekhleb/javascript-algorithms
953
issue_to_patch
Update README.md
Typo fixed
e62572648c42b23b4e3a7ae68ce9529098eeca32
7e42dd7a14c03a1c266dcde9c88f0ceb75dcddad
diff --git a/README.md b/README.md index aa0c184424..c9c6258769 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ _Read this in other languages:_ [_Español_](README.es-ES.md), [_Português_](README.pt-BR.md), [_Русский_](README.ru-RU.md), -[_Türk_](README.tr-TR.md), +[_Türkçe_](README.tr-TR.md), [_Italiana_](...
[ "README.md" ]
[]
true
trekhleb/javascript-algorithms
948
issue_to_patch
feat: added Ukrainian translations for hash table
Added Ukrainian translations for the hash table. @trekhleb
26a27f360a86548039af5dd0e1d593569a37c3b4
b88eb4f23f4dd4fb926d9232be1faea4edbcea2c
diff --git a/src/data-structures/hash-table/README.md b/src/data-structures/hash-table/README.md index 8711bd9b49..f0d0c9932d 100644 --- a/src/data-structures/hash-table/README.md +++ b/src/data-structures/hash-table/README.md @@ -6,12 +6,13 @@ _Read this in other languages:_ [_日本語_](README.ja-JP.md), [_Français_](RE...
[ "src/data-structures/hash-table/README.md", "src/data-structures/hash-table/README.uk-UA.md" ]
[]
true
trekhleb/javascript-algorithms
915
issue_to_patch
Update images for Linked List, Doubly Linked List, Queue, and Stack.
Update images for the Linked List, Doubly Linked List, Queue, and Stack via [okso.app](https://okso.app).
fc47fff0894b27414bb5419caf5dd601ec3adb59
a530aa4fd2055bde65d1a08390557497530fb50c
diff --git a/src/data-structures/doubly-linked-list/README.es-ES.md b/src/data-structures/doubly-linked-list/README.es-ES.md index 15a623550f..490466d74b 100644 --- a/src/data-structures/doubly-linked-list/README.es-ES.md +++ b/src/data-structures/doubly-linked-list/README.es-ES.md @@ -9,7 +9,9 @@ _Lea esto en otros id...
[ "src/data-structures/doubly-linked-list/README.es-ES.md", "src/data-structures/doubly-linked-list/README.ja-JP.md", "src/data-structures/doubly-linked-list/README.ko-KR.md", "src/data-structures/doubly-linked-list/README.md", "src/data-structures/doubly-linked-list/README.pt-BR.md", "src/data-structures/d...
[]
true
trekhleb/javascript-algorithms
843
issue_to_patch
Add Korean translation for data-structures Hash Table & Heap
Add Korean translation for data-structures Hash Table & Heap
90addf9b18274ccce734d8d6b70156c154afeb6f
0c87b9307e28e48147982ac62c30b03002800629
diff --git a/src/data-structures/hash-table/README.ko-KR.md b/src/data-structures/hash-table/README.ko-KR.md new file mode 100644 index 0000000000..1ffc9f5534 --- /dev/null +++ b/src/data-structures/hash-table/README.ko-KR.md @@ -0,0 +1,12 @@ +# 해시 테이블 + +컴퓨터 과학에서 **해시 테이블** (해시맵)은 키를 값에 매핑할 수 있는 *연관배열(associative arra...
[ "src/data-structures/hash-table/README.ko-KR.md", "src/data-structures/heap/README.ko-KR.md" ]
[]
true
trekhleb/javascript-algorithms
652
issue_to_patch
Update Copy Write to 2021
Change Copy Write to 2021 from 2018.
82680c03eeeb135c681897c0bfd824eb6e4a391a
1a47a43305fe408da00cdd4af694487e087d7e76
diff --git a/LICENSE b/LICENSE index e7885bd74b..0bad68016a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Oleksii Trekhleb +Copyright (c) 2021 Oleksii Trekhleb Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
[ "LICENSE" ]
[]
true
trekhleb/javascript-algorithms
651
issue_to_patch
fix small modification in README.ja-JP.md
This PR is to change small modification in README.ja-JP.md.
47d5c8f744e44d4967bc9e0d295eb94495b73dbd
b67afc0aa7c4ff8a9da32e29463868ec20c01a54
diff --git a/README.ja-JP.md b/README.ja-JP.md index af2c887c2c..1ca089f583 100644 --- a/README.ja-JP.md +++ b/README.ja-JP.md @@ -149,7 +149,7 @@ _Read this in other languages:_ ### Paradigmによるアルゴリズム アルゴリズムパラダイムは、あるクラスのアルゴリズムの設計の基礎をなす一般的な方法またはアプローチである。それは、アルゴリズムがコンピュータプログラムよりも高い抽象であるのと同様に、アルゴリズムの概念よりも高い抽象である。 -* *...
[ "README.ja-JP.md" ]
[]
true
trekhleb/javascript-algorithms
632
issue_to_patch
Add merge sort document in Korean
- Add merge sort document in Korean - Update README.md
0006350cc76f6dc8b1245f625bc268cea8feb447
0139a633ab34fa3e75529dea43ea7b6b0a957c0d
diff --git a/src/algorithms/sorting/merge-sort/README.ko-KR.md b/src/algorithms/sorting/merge-sort/README.ko-KR.md new file mode 100644 index 0000000000..5447fd217e --- /dev/null +++ b/src/algorithms/sorting/merge-sort/README.ko-KR.md @@ -0,0 +1,22 @@ +# 병합 정렬 + +컴퓨터과학에서, 병합 정렬(일반적으로 mergesort라고 쓰는)은 효율적이고, 범용적인, 비교 기반...
[ "src/algorithms/sorting/merge-sort/README.ko-KR.md", "src/algorithms/sorting/merge-sort/README.md" ]
[]
true
trekhleb/javascript-algorithms
634
issue_to_patch
French translation for module "Graph"
The first part of the translation is a direct translation of the english part. The second is too, although it wasn't done by me but by wikipedia contributors (the second paragraph of the English wikipedia introduction is exactly the same as the first paragraph of the French wikipedia "Description") Add french ve...
8d0f300aa5d54c3dbd9da30097a14646acb2fffb
82290e4739a27c978b50c116c10dc4a4568ed875
diff --git a/src/data-structures/graph/README.fr-FR.md b/src/data-structures/graph/README.fr-FR.md new file mode 100644 index 0000000000..48d3ccd766 --- /dev/null +++ b/src/data-structures/graph/README.fr-FR.md @@ -0,0 +1,23 @@ +# Graph + +En informatique, un **graphe** est une structure de +données abstraite qui implé...
[ "src/data-structures/graph/README.fr-FR.md", "src/data-structures/graph/README.md" ]
[]
true