Skip to content

[DOC] Add Documentation Header for Builtin Functions#1401

Closed
atefeh-asayesh wants to merge 1 commit intoapache:mainfrom
atefeh-asayesh:BuiltinHeader1
Closed

[DOC] Add Documentation Header for Builtin Functions#1401
atefeh-asayesh wants to merge 1 commit intoapache:mainfrom
atefeh-asayesh:BuiltinHeader1

Conversation

@atefeh-asayesh
Copy link
Copy Markdown
Contributor

In this PR we add missing Builtin Function Header for all the script/builtin Functions, Specifically, add a header to each such
builtin dml file with a brief summary, input parameters, and outputs.

Copy link
Copy Markdown
Member

@j143 j143 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! 😃

Thanks a lot for working on this. I will merge the following after changes
as two clean commits.

Part 1:

  • 1. applyAndEvaludate.dml
  • 2. bandit.dml
  • 3. components.dml
  • 4. correctTypos.dml
  • 5. cvlm.dml

Part 2:

  • 6. dmv.dml
  • 7. ema.dml
  • 8. executePipeline.dml
  • 9. gnmf.dml
  • 10. hyperband.dml

What you can do now?

  1. Revert the file changes in the remaining files

    click to know how to do it
    1. switch to BuiltinHeader1
    git checkout BuiltinHeader1
    1. Uncommit this commit, to keep the changes
    git reset HEAD^
    1. And add only these 10 files, like
    git add scripts/builtin/applyAndEvaluate.dml scripts/builtin/bandit.dml 
    1. Now, commit
    git commit -m "add documentation header"
  2. That's it!

@@ -1,4 +1,4 @@
#-------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------------------------
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not change this one, this will add inconsistency with license header.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100's of dml files use this same header!

for line in markDownArray:
if INPUT:
inputParameterCount, INPUT, INPUT_FINISHED, I_HEADER_MISSING, commentLineCount = parseParam(inputParameters, inputParameterCount, INPUT, INPUT_FINISHED, I_HEADER_MISSING, commentLineCount, additionalInfos, line)
inputParameterCount, INPUT, INPUT_FINISHED, I_HEADER_MISSING, commentLineCount = parseParam(inputParameters, inputParameterCount, INPUT, INPUT_FINISHED, I_HEADER_MISSING, commentLineCount, additionalInfos, line, OUTPUT)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script needs to be well tested 🥇 . For now, we can use this only 1 or 2 scripts in scripts/staging folder. After which, we can apply generically. 😃

@j143 j143 changed the title Builtin Functions Header [DOC] Add Documentation Header for Builtin Functions Nov 24, 2021
@Baunsgaard
Copy link
Copy Markdown
Contributor

Closing because i am merging in other PR #1492

@Baunsgaard Baunsgaard closed this Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants