-
Notifications
You must be signed in to change notification settings - Fork 6
CI fixed #47
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
CI fixed #47
Changes from 2 commits
b2a2546
6ed9939
3090184
8f9c24b
feb4dcf
7f00c77
f7861ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,19 +30,17 @@ AILevenshteinDistance >> distanceBetween: firstString and: secondString [ | |
| { #category : 'private' } | ||
| AILevenshteinDistance >> distanceMatrixBasedOn: firstString and: secondString [ | ||
|
|
||
| | distanceMatrix | | ||
| "Changed from CTArray2D to Array2D to fix undeclared variable error" | ||
| distanceMatrix := Array2D | ||
| rows: secondString size + 1 | ||
| columns: firstString size + 1. | ||
| | distanceMatrix | | ||
| distanceMatrix := CTArray2D | ||
| extent: (firstString size + 1) @ (secondString size + 1). | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would say to instantiate the array 2d with the method |
||
|
|
||
| self fillFirstRowAndColumn: distanceMatrix. | ||
| self fillStartingFromSecondRowAndColumn: distanceMatrix | ||
| basedOn: firstString | ||
| and: secondString. | ||
| ^ distanceMatrix | ||
| self fillFirstRowAndColumn: distanceMatrix. | ||
|
|
||
| self fillStartingFromSecondRowAndColumn: distanceMatrix | ||
| basedOn: firstString | ||
| and: secondString. | ||
|
|
||
| ^ distanceMatrix | ||
| ] | ||
|
|
||
| { #category : 'private' } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,9 @@ BaselineOfAIEditDistances >> baseline: spec [ | |
| spec | ||
| baseline: 'AIExternalVectorMatrix' | ||
| with: [ spec repository: 'github://pharo-ai/external-dependencies' ]. | ||
| spec | ||
| baseline: 'ContainersArray2D' | ||
| with: [ spec repository: 'github://pharo-containers/Containers-Array2D/src' ]. | ||
| "Packages" | ||
| spec | ||
| package: 'AI-EditDistances' with: [ spec requires: #( 'AIExternalVectorMatrix' ) ]; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you need to add the dependency to ContainersArray2D here, just as external vector matrix |
||
|
|
||
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.
same here
I would say to instantiate the array 2d with the method
#rows:columns:instead, for clarity