e92cd9d5c5099cdcf8c80e7a7df2c1ff3190eacc,ciphers/morse_code_implementation.py,,,#,5

Before Change




// Dictionary representing the morse code chart
MORSE_CODE_DICT = {
    "A": ".-",
    "B": "-...",
    "C": "-.-.",
    "D": "-..",
    "E": ".",
    "F": "..-.",
    "G": "--.",
    "H": "....",
    "I": "..",
    "J": ".---",
    "K": "-.-",
    "L": ".-..",
    "M": "--",
    "N": "-.",
    "O": "---",
    "P": ".--.",
    "Q": "--.-",
    "R": ".-.",
    "S": "...",
    "T": "-",
    "U": "..-",
    "V": "...-",
    "W": ".--",
    "X": "-..-",
    "Y": "-.--",
    "Z": "--..",
    "1": ".----",
    "2": "..---",
    "3": "...--",
    "4": "....-",
    "5": ".....",
    "6": "-....",
    "7": "--...",
    "8": "---..",
    "9": "----.",
    "0": "-----",
    ", ": "--..--",
    ".": ".-.-.-",
    "?": "..--..",
    "/": "-..-.",
    "-": "-....-",
    "(": "-.--.",
    ")": "-.--.-",
}


def encrypt(message):
    cipher = ""

After Change

// Python program to implement Morse Code Translator

// Dictionary representing the morse code chart
MORSE_CODE_DICT = {
    "A": ".-",
    "B": "-...",
    "C": "-.-.",
    "D": "-..",
    "E": ".",
    "F": "..-.",
    "G": "--.",
    "H": "....",
    "I": "..",
    "J": ".---",
    "K": "-.-",
    "L": ".-..",
    "M": "--",
    "N": "-.",
    "O": "---",
    "P": ".--.",
    "Q": "--.-",
    "R": ".-.",
    "S": "...",
    "T": "-",
    "U": "..-",
    "V": "...-",
    "W": ".--",
    "X": "-..-",
    "Y": "-.--",
    "Z": "--..",
    "1": ".----",
    "2": "..---",
    "3": "...--",
    "4": "....-",
    "5": ".....",
    "6": "-....",
    "7": "--...",
    "8": "---..",
    "9": "----.",
    "0": "-----",
    "&": ".-...",
    "@": ".--.-.",
    ":": "---...",
    ",": "--..--",
    ".": ".-.-.-",
    """: ".----.",
    """: ".-..-.",
    "?": "..--..",
    "/": "-..-.",
    "=": "-...-",
    "+": ".-.-.",
    "-": "-....-",
    "(": "-.--.",
    ")": "-.--.-",
    // Exclamation mark is not in ITU-R recommendation
    "!": "-.-.--",
}


def encrypt(message):
    cipher = ""
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: TheAlgorithms/Python
Commit Name: e92cd9d5c5099cdcf8c80e7a7df2c1ff3190eacc
Time: 2020-09-25
Author: 57815710+Mango0x45@users.noreply.github.com
File Name: ciphers/morse_code_implementation.py
Class Name:
Method Name:


Project Name: cve-search/cve-search
Commit Name: 85907c9a522f18815ea4cde57b9b47af7f285703
Time: 2016-11-20
Author: a@foo.be
File Name: bin/cve_refs.py
Class Name:
Method Name:


Project Name: taehoonlee/tensornets
Commit Name: c40d8ec504cbd02199c795b1323e0c9de9abb7a2
Time: 2020-01-28
Author: me@taehoonlee.com
File Name: tensornets/pretrained.py
Class Name:
Method Name: