add contacts program#6148
Conversation
ghost
left a comment
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
| # CHECK FOR INT OR CHAR A DO AS PER THAT | ||
| try: | ||
| a = int(a) | ||
| tmpVAR = int(KEY[a - 1]) * 1923 |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: tmpVAR
| a = int(a) | ||
| tmpVAR = int(KEY[a - 1]) * 1923 | ||
| except ValueError: | ||
| tmpVAR = ord(KEY[a - 1]) * 125 |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: tmpVAR
|
|
||
|
|
||
|
|
||
| def getReminderPLUS(i, c): |
There was a problem hiding this comment.
Please provide return type hint for the function: getReminderPLUS. If the function does not return a value, please provide the type hint as: def function() -> None:
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function getReminderPLUS
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: getReminderPLUS
Please provide type hint for the parameter: i
Please provide descriptive name for the parameter: i
Please provide type hint for the parameter: c
Please provide descriptive name for the parameter: c
|
|
||
|
|
||
|
|
||
| def encryptARRAY(array, KEY): |
There was a problem hiding this comment.
Please provide return type hint for the function: encryptARRAY. If the function does not return a value, please provide the type hint as: def function() -> None:
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function encryptARRAY
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptARRAY
Please provide type hint for the parameter: array
Please provide type hint for the parameter: KEY
|
|
||
| # check encryption status and get array | ||
| encryptionStatus = False | ||
| encryptionKey = input("ENCRYPTION KEY ('noKEY' or is default KEY): ") |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptionKey
| if encryptionKey.upper() == 'NOENCRYPTION' or encryptionKey.upper() == '' or encryptionKey.upper() == 'NOKEY': | ||
| print("your data is not encrypted") | ||
| print("you can encrypt while saving program") | ||
| encryptionKey = "noENCRYPTION" |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptionKey
| print("you can encrypt while saving program") | ||
| encryptionKey = "noENCRYPTION" | ||
| else: | ||
| encryptionStatus = True |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptionStatus
| stra = input("y/n? ") | ||
| try: | ||
| if stra[0].upper() == 'Y': | ||
| encryptionKey = input("create your encryption key ...") |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptionKey
| print("\n YOUR ENCRYPTION KEY IS", encryptionKey) | ||
| print("\n IF YOU FORGET KEY, FORGET YOUR DATA") | ||
| except IndexError: | ||
| encryptionKey = 'noENCRYPTION' |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptionKey
ghost
left a comment
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
| import pickle | ||
|
|
||
|
|
||
| def getKEYchar(a, KEY): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function getKEYchar
Please provide return type hint for the function: getKEYchar. If the function does not return a value, please provide the type hint as: def function() -> None:
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: getKEYchar
Please provide type hint for the parameter: a
Please provide descriptive name for the parameter: a
Please provide type hint for the parameter: KEY
|
|
||
|
|
||
|
|
||
| def getReminderPLUS(i, c): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function getReminderPLUS
Please provide return type hint for the function: getReminderPLUS. If the function does not return a value, please provide the type hint as: def function() -> None:
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: getReminderPLUS
Please provide type hint for the parameter: i
Please provide descriptive name for the parameter: i
Please provide type hint for the parameter: c
Please provide descriptive name for the parameter: c
|
|
||
|
|
||
|
|
||
| def encryptARRAY(array, KEY): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function encryptARRAY
Please provide return type hint for the function: encryptARRAY. If the function does not return a value, please provide the type hint as: def function() -> None:
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptARRAY
Please provide type hint for the parameter: array
Please provide type hint for the parameter: KEY
|
|
||
| def encryptARRAY(array, KEY): | ||
| # GET SOME VALUABLE VARIABLES | ||
| encryptedARRAY = [[] for tmp in range(4)] |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptedARRAY
| def encryptARRAY(array, KEY): | ||
| # GET SOME VALUABLE VARIABLES | ||
| encryptedARRAY = [[] for tmp in range(4)] | ||
| totalContacts = len(array[0]) |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: totalContacts
| if KEY == 'noENCRYPTION': | ||
| encryptedARRAY = array | ||
| else: | ||
| encryptedARRAY = encryptARRAY(array, KEY) |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptedARRAY
|
|
||
|
|
||
|
|
||
| def printallcontacts(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function printallcontacts
Please provide return type hint for the function: printallcontacts. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
|
||
|
|
||
|
|
||
| def addnewcontact(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function addnewcontact
Please provide return type hint for the function: addnewcontact. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
|
||
|
|
||
|
|
||
| def deleteOldContact(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function deleteOldContact
Please provide return type hint for the function: deleteOldContact. If the function does not return a value, please provide the type hint as: def function() -> None:
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: deleteOldContact
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
|
||
|
|
||
|
|
||
| def sorTarray(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function sorTarray
Please provide return type hint for the function: sorTarray. If the function does not return a value, please provide the type hint as: def function() -> None:
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: sorTarray
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
ghost
left a comment
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
| import pickle | ||
|
|
||
|
|
||
| def getKEYchar(a, KEY): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function getKEYchar
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: getKEYchar
Please provide return type hint for the function: getKEYchar. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide descriptive name for the parameter: a
Please provide type hint for the parameter: a
Please provide type hint for the parameter: KEY
|
|
||
|
|
||
|
|
||
| def getReminderPLUS(i, c): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function getReminderPLUS
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: getReminderPLUS
Please provide return type hint for the function: getReminderPLUS. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide descriptive name for the parameter: i
Please provide type hint for the parameter: i
Please provide descriptive name for the parameter: c
Please provide type hint for the parameter: c
|
|
||
|
|
||
|
|
||
| def encryptARRAY(array, KEY): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/encrypt10n.py, please provide doctest for the function encryptARRAY
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptARRAY
Please provide return type hint for the function: encryptARRAY. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: array
Please provide type hint for the parameter: KEY
|
|
||
| def encryptARRAY(array, KEY): | ||
| # GET SOME VALUABLE VARIABLES | ||
| encryptedARRAY = [[] for tmp in range(4)] |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptedARRAY
| def encryptARRAY(array, KEY): | ||
| # GET SOME VALUABLE VARIABLES | ||
| encryptedARRAY = [[] for tmp in range(4)] | ||
| totalContacts = len(array[0]) |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: totalContacts
| if KEY == 'noENCRYPTION': | ||
| encryptedARRAY = array | ||
| else: | ||
| encryptedARRAY = encryptARRAY(array, KEY) |
There was a problem hiding this comment.
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: encryptedARRAY
|
|
||
|
|
||
|
|
||
| def printallcontacts(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function printallcontacts
Please provide return type hint for the function: printallcontacts. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
|
||
|
|
||
|
|
||
| def addnewcontact(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function addnewcontact
Please provide return type hint for the function: addnewcontact. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
|
||
|
|
||
|
|
||
| def deleteOldContact(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function deleteOldContact
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: deleteOldContact
Please provide return type hint for the function: deleteOldContact. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
|
||
|
|
||
|
|
||
| def sorTarray(arraylen, array): |
There was a problem hiding this comment.
As there is no test file in this pull request nor any test function or class in the file contacts/functions.py, please provide doctest for the function sorTarray
Variable and function names should follow the snake_case naming convention. Please update the following name accordingly: sorTarray
Please provide return type hint for the function: sorTarray. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: arraylen
Please provide type hint for the parameter: array
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe your change:
add contacts program, which can save contacts for you
Checklist:
Fixes: #{$ISSUE_NO}.