-
Notifications
You must be signed in to change notification settings - Fork 2
Add comments and internal comments #453
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
Merged
popescu-v
merged 2 commits into
dev
from
423-missing-comments-and-internal-comments-in-python-core-dictionaries-v11
Aug 21, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
| #Khiops VERSION | ||
|
|
||
| // Label Iris | ||
| // Comment Iris 1 | ||
| // Comment Iris 2 | ||
| // Comment Iris 3 | ||
| // Comment Iris 4 | ||
| // Comment Iris 5 | ||
| Dictionary Iris | ||
| { | ||
| // Comment SepalLength 1 | ||
| // Comment SepalLength 2 | ||
| Numerical SepalLength ; // Label SepalLength | ||
| Numerical SepalWidth ; | ||
| Numerical PetalLength ; | ||
| // Comment PetalWidth | ||
| Numerical PetalWidth ; // Label PetalWidth | ||
| // Comment Class | ||
| Categorical Class ; | ||
| // Comment NoSetosa 1 | ||
| // Comment NoSetosa 2 | ||
| Unused Numerical NoSetosa = NEQc(Class, "Iris-setosa") ; // Label NoSetosa | ||
| // Comment internal Iris 1 | ||
| // Comment internal Iris 2 | ||
| }; |
48 changes: 48 additions & 0 deletions
48
tests/resources/dictionary/ref_kdic/CommentedSparseCustomer.kdic
This file contains hidden or 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,48 @@ | ||
| #Khiops VERSION | ||
|
|
||
| Dictionary Address (id_customer) | ||
| { | ||
| Categorical id_customer ; | ||
| Numerical StreetNumber ; | ||
| Categorical StreetName ; | ||
| Categorical City ; | ||
| }; | ||
|
|
||
| Root Dictionary Customer (id_customer) | ||
| { | ||
| Categorical id_customer ; | ||
| Categorical id = CopyC(id_customer) ; | ||
| Categorical Name ; | ||
| Entity(Address) Address ; | ||
| Table(Usage) Usages ; | ||
| // Partition comment | ||
| Structure(Partition) partition1 = Partition(ValueSetC("Mobile", "Tel", " * ")) ; // Partition label | ||
| // TablePartition comment 1 | ||
| // TablePartition comment 2 | ||
| { | ||
| // Usages_S_M_Nb comment | ||
| Unused Table(Usage) Usages_S_M_Nb ; <VarKey=1> // Usages_S_M_Nb label | ||
| // Usages_S_T_Nb comment | ||
| Unused Table(Usage) Usages_S_T_Nb ; <VarKey=2> // Usages_S_T_Nb label | ||
| } tablePartition1 = TablePartition(Usages, partition1, Service) ; // TablePartition label | ||
| { | ||
| Numerical S_M_Nb ; <VarKey=1> | ||
| Numerical S_T_Nb ; <VarKey=2> | ||
| // Internal variable block comment | ||
| } PartCounts = TablePartitionCount(tablePartition1) ; // TablePartitionCount label | ||
| // S_Total comment | ||
| Numerical S_Total = Sum(S_M_Nb, S_T_Nb) ; | ||
| Table(Usage) UsagesMobile = TableSelection(Usages, EQc(Service, "Mobile")) ; | ||
| Table(Usage) UsagesTel = TableSelection(Usages, EQc(Service, "Tel")) ; | ||
| Numerical D_M_Nb = TableCount(UsagesMobile) ; | ||
| Numerical D_T_Nb = TableCount(UsagesTel) ; | ||
| Numerical D_Total = Sum(D_M_Nb, D_T_Nb) ; | ||
| }; | ||
|
|
||
| Dictionary Usage (id_customer) | ||
| { | ||
| Categorical id_customer ; | ||
| Categorical Service ; | ||
| Numerical Duration ; | ||
| Numerical Price ; | ||
| }; |
28 changes: 28 additions & 0 deletions
28
tests/resources/dictionary/ref_kdic/CommentedSpliceJunction.kdic
This file contains hidden or 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,28 @@ | ||
| #Khiops VERSION | ||
|
|
||
| // Label SpliceJunction | ||
| // Comment SpliceJunction key before | ||
| // Comment SpliceJunction key after | ||
| // Comment end | ||
| Root Dictionary SpliceJunction (SampleId) | ||
| { | ||
| Categorical SampleId ; | ||
| Categorical Class ; | ||
| // Comment DNA | ||
| Table(SpliceJunctionDNA) DNA ; // Label DNA | ||
| }; | ||
|
|
||
| // Label SpliceJunction | ||
| // Comment SpliceJunction key before | ||
| // Comment SpliceJunction key after | ||
| // Comment SpliceJunction meta-data before | ||
| // Comment SpliceJunction meta-data after | ||
| // Comment end | ||
| Dictionary SpliceJunctionDNA (SampleId) | ||
| <TestComment> | ||
|
popescu-v marked this conversation as resolved.
|
||
| { | ||
| Categorical SampleId ; | ||
| Numerical Pos ; | ||
| Categorical Char ; | ||
| // Categorical LowerChar = ToLower(Char) ; | ||
| }; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.